configure revision 1.1.1.7 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libxcb 1.11.1.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xcb>.
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://bugs.freedesktop.org/enter_bug.cgi?product=xcb
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
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='libxcb'
593 PACKAGE_TARNAME='libxcb'
594 PACKAGE_VERSION='1.11.1'
595 PACKAGE_STRING='libxcb 1.11.1'
596 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xcb'
597 PACKAGE_URL=''
598
599 ac_unique_file="xcb.pc.in"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 LAUNCHD
641 BUILD_XVMC_FALSE
642 BUILD_XVMC_TRUE
643 BUILD_XV_FALSE
644 BUILD_XV_TRUE
645 BUILD_XTEST_FALSE
646 BUILD_XTEST_TRUE
647 BUILD_SELINUX_FALSE
648 BUILD_SELINUX_TRUE
649 BUILD_XPRINT_FALSE
650 BUILD_XPRINT_TRUE
651 BUILD_XKB_FALSE
652 BUILD_XKB_TRUE
653 BUILD_XINPUT_FALSE
654 BUILD_XINPUT_TRUE
655 BUILD_XINERAMA_FALSE
656 BUILD_XINERAMA_TRUE
657 BUILD_XFREE86_DRI_FALSE
658 BUILD_XFREE86_DRI_TRUE
659 BUILD_XFIXES_FALSE
660 BUILD_XFIXES_TRUE
661 BUILD_XEVIE_FALSE
662 BUILD_XEVIE_TRUE
663 BUILD_SYNC_FALSE
664 BUILD_SYNC_TRUE
665 BUILD_SHM_FALSE
666 BUILD_SHM_TRUE
667 BUILD_SHAPE_FALSE
668 BUILD_SHAPE_TRUE
669 BUILD_SCREENSAVER_FALSE
670 BUILD_SCREENSAVER_TRUE
671 BUILD_RESOURCE_FALSE
672 BUILD_RESOURCE_TRUE
673 BUILD_RENDER_FALSE
674 BUILD_RENDER_TRUE
675 BUILD_RECORD_FALSE
676 BUILD_RECORD_TRUE
677 BUILD_RANDR_FALSE
678 BUILD_RANDR_TRUE
679 BUILD_PRESENT_FALSE
680 BUILD_PRESENT_TRUE
681 BUILD_GLX_FALSE
682 BUILD_GLX_TRUE
683 BUILD_DRI3_FALSE
684 BUILD_DRI3_TRUE
685 BUILD_DRI2_FALSE
686 BUILD_DRI2_TRUE
687 BUILD_DPMS_FALSE
688 BUILD_DPMS_TRUE
689 BUILD_DAMAGE_FALSE
690 BUILD_DAMAGE_TRUE
691 BUILD_COMPOSITE_FALSE
692 BUILD_COMPOSITE_TRUE
693 xcbincludedir
694 XCB_HAVE_WIN32_FALSE
695 XCB_HAVE_WIN32_TRUE
696 lt_enable_auto_import
697 XCBPROTO_XCBPYTHONDIR
698 XCBPROTO_VERSION
699 XCBPROTO_XCBINCLUDEDIR
700 NEEDED
701 XDMCP_LIBS
702 XDMCP_CFLAGS
703 NEEDED_LIBS
704 NEEDED_CFLAGS
705 XCBPROTO_LIBS
706 XCBPROTO_CFLAGS
707 HTML_CHECK_RESULT
708 XSLTPROC
709 HAVE_CHECK_FALSE
710 HAVE_CHECK_TRUE
711 CHECK_LIBS
712 CHECK_CFLAGS
713 HAVE_DOXYGEN_FALSE
714 HAVE_DOXYGEN_TRUE
715 HAVE_DOT_FALSE
716 HAVE_DOT_TRUE
717 HAVE_DOT
718 DOT
719 DOXYGEN
720 ENABLE_DEVEL_DOCS_FALSE
721 ENABLE_DEVEL_DOCS_TRUE
722 MAN_SUBSTS
723 XORG_MAN_PAGE
724 ADMIN_MAN_DIR
725 DRIVER_MAN_DIR
726 MISC_MAN_DIR
727 FILE_MAN_DIR
728 LIB_MAN_DIR
729 APP_MAN_DIR
730 ADMIN_MAN_SUFFIX
731 DRIVER_MAN_SUFFIX
732 MISC_MAN_SUFFIX
733 FILE_MAN_SUFFIX
734 LIB_MAN_SUFFIX
735 APP_MAN_SUFFIX
736 INSTALL_CMD
737 PKG_CONFIG_LIBDIR
738 PKG_CONFIG_PATH
739 PKG_CONFIG
740 CHANGELOG_CMD
741 STRICT_CFLAGS
742 CWARNFLAGS
743 BASE_CFLAGS
744 OTOOL64
745 OTOOL
746 LIPO
747 NMEDIT
748 DSYMUTIL
749 MANIFEST_TOOL
750 RANLIB
751 ac_ct_AR
752 AR
753 LN_S
754 NM
755 ac_ct_DUMPBIN
756 DUMPBIN
757 LD
758 FGREP
759 SED
760 host_os
761 host_vendor
762 host_cpu
763 host
764 build_os
765 build_vendor
766 build_cpu
767 build
768 LIBTOOL
769 OBJDUMP
770 DLLTOOL
771 AS
772 EGREP
773 GREP
774 CPP
775 am__fastdepCC_FALSE
776 am__fastdepCC_TRUE
777 CCDEPMODE
778 am__nodep
779 AMDEPBACKSLASH
780 AMDEP_FALSE
781 AMDEP_TRUE
782 am__quote
783 am__include
784 DEPDIR
785 OBJEXT
786 EXEEXT
787 ac_ct_CC
788 CPPFLAGS
789 LDFLAGS
790 CFLAGS
791 CC
792 pkgpyexecdir
793 pyexecdir
794 pkgpythondir
795 pythondir
796 PYTHON_PLATFORM
797 PYTHON_EXEC_PREFIX
798 PYTHON_PREFIX
799 PYTHON_VERSION
800 PYTHON
801 AM_BACKSLASH
802 AM_DEFAULT_VERBOSITY
803 AM_DEFAULT_V
804 AM_V
805 am__untar
806 am__tar
807 AMTAR
808 am__leading_dot
809 SET_MAKE
810 AWK
811 mkdir_p
812 MKDIR_P
813 INSTALL_STRIP_PROGRAM
814 STRIP
815 install_sh
816 MAKEINFO
817 AUTOHEADER
818 AUTOMAKE
819 AUTOCONF
820 ACLOCAL
821 VERSION
822 PACKAGE
823 CYGPATH_W
824 am__isrc
825 INSTALL_DATA
826 INSTALL_SCRIPT
827 INSTALL_PROGRAM
828 target_alias
829 host_alias
830 build_alias
831 LIBS
832 ECHO_T
833 ECHO_N
834 ECHO_C
835 DEFS
836 mandir
837 localedir
838 libdir
839 psdir
840 pdfdir
841 dvidir
842 htmldir
843 infodir
844 docdir
845 oldincludedir
846 includedir
847 runstatedir
848 localstatedir
849 sharedstatedir
850 sysconfdir
851 datadir
852 datarootdir
853 libexecdir
854 sbindir
855 bindir
856 program_transform_name
857 prefix
858 exec_prefix
859 PACKAGE_URL
860 PACKAGE_BUGREPORT
861 PACKAGE_STRING
862 PACKAGE_VERSION
863 PACKAGE_TARNAME
864 PACKAGE_NAME
865 PATH_SEPARATOR
866 SHELL'
867 ac_subst_files=''
868 ac_user_opts='
869 enable_option_checking
870 enable_silent_rules
871 enable_dependency_tracking
872 enable_shared
873 enable_static
874 with_pic
875 enable_fast_install
876 with_gnu_ld
877 with_sysroot
878 enable_libtool_lock
879 enable_selective_werror
880 enable_strict_compilation
881 enable_devel_docs
882 with_doxygen
883 enable_sendfds
884 with_queue_size
885 enable_composite
886 enable_damage
887 enable_dpms
888 enable_dri2
889 enable_dri3
890 enable_glx
891 enable_present
892 enable_randr
893 enable_record
894 enable_render
895 enable_resource
896 enable_screensaver
897 enable_shape
898 enable_shm
899 enable_sync
900 enable_xevie
901 enable_xfixes
902 enable_xfree86_dri
903 enable_xinerama
904 enable_xinput
905 enable_xkb
906 enable_xprint
907 enable_selinux
908 enable_xtest
909 enable_xv
910 enable_xvmc
911 with_launchd
912 '
913 ac_precious_vars='build_alias
914 host_alias
915 target_alias
916 PYTHON
917 CC
918 CFLAGS
919 LDFLAGS
920 LIBS
921 CPPFLAGS
922 CPP
923 PKG_CONFIG
924 PKG_CONFIG_PATH
925 PKG_CONFIG_LIBDIR
926 DOXYGEN
927 DOT
928 CHECK_CFLAGS
929 CHECK_LIBS
930 XCBPROTO_CFLAGS
931 XCBPROTO_LIBS
932 NEEDED_CFLAGS
933 NEEDED_LIBS
934 XDMCP_CFLAGS
935 XDMCP_LIBS'
936
937
938 # Initialize some variables set by options.
939 ac_init_help=
940 ac_init_version=false
941 ac_unrecognized_opts=
942 ac_unrecognized_sep=
943 # The variables have the same names as the options, with
944 # dashes changed to underlines.
945 cache_file=/dev/null
946 exec_prefix=NONE
947 no_create=
948 no_recursion=
949 prefix=NONE
950 program_prefix=NONE
951 program_suffix=NONE
952 program_transform_name=s,x,x,
953 silent=
954 site=
955 srcdir=
956 verbose=
957 x_includes=NONE
958 x_libraries=NONE
959
960 # Installation directory options.
961 # These are left unexpanded so users can "make install exec_prefix=/foo"
962 # and all the variables that are supposed to be based on exec_prefix
963 # by default will actually change.
964 # Use braces instead of parens because sh, perl, etc. also accept them.
965 # (The list follows the same order as the GNU Coding Standards.)
966 bindir='${exec_prefix}/bin'
967 sbindir='${exec_prefix}/sbin'
968 libexecdir='${exec_prefix}/libexec'
969 datarootdir='${prefix}/share'
970 datadir='${datarootdir}'
971 sysconfdir='${prefix}/etc'
972 sharedstatedir='${prefix}/com'
973 localstatedir='${prefix}/var'
974 runstatedir='${localstatedir}/run'
975 includedir='${prefix}/include'
976 oldincludedir='/usr/include'
977 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
978 infodir='${datarootdir}/info'
979 htmldir='${docdir}'
980 dvidir='${docdir}'
981 pdfdir='${docdir}'
982 psdir='${docdir}'
983 libdir='${exec_prefix}/lib'
984 localedir='${datarootdir}/locale'
985 mandir='${datarootdir}/man'
986
987 ac_prev=
988 ac_dashdash=
989 for ac_option
990 do
991 # If the previous option needs an argument, assign it.
992 if test -n "$ac_prev"; then
993 eval $ac_prev=\$ac_option
994 ac_prev=
995 continue
996 fi
997
998 case $ac_option in
999 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1000 *=) ac_optarg= ;;
1001 *) ac_optarg=yes ;;
1002 esac
1003
1004 # Accept the important Cygnus configure options, so we can diagnose typos.
1005
1006 case $ac_dashdash$ac_option in
1007 --)
1008 ac_dashdash=yes ;;
1009
1010 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1011 ac_prev=bindir ;;
1012 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1013 bindir=$ac_optarg ;;
1014
1015 -build | --build | --buil | --bui | --bu)
1016 ac_prev=build_alias ;;
1017 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1018 build_alias=$ac_optarg ;;
1019
1020 -cache-file | --cache-file | --cache-fil | --cache-fi \
1021 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1022 ac_prev=cache_file ;;
1023 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1024 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1025 cache_file=$ac_optarg ;;
1026
1027 --config-cache | -C)
1028 cache_file=config.cache ;;
1029
1030 -datadir | --datadir | --datadi | --datad)
1031 ac_prev=datadir ;;
1032 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1033 datadir=$ac_optarg ;;
1034
1035 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1036 | --dataroo | --dataro | --datar)
1037 ac_prev=datarootdir ;;
1038 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1039 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1040 datarootdir=$ac_optarg ;;
1041
1042 -disable-* | --disable-*)
1043 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1044 # Reject names that are not valid shell variable names.
1045 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1046 as_fn_error $? "invalid feature name: $ac_useropt"
1047 ac_useropt_orig=$ac_useropt
1048 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1049 case $ac_user_opts in
1050 *"
1051 "enable_$ac_useropt"
1052 "*) ;;
1053 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1054 ac_unrecognized_sep=', ';;
1055 esac
1056 eval enable_$ac_useropt=no ;;
1057
1058 -docdir | --docdir | --docdi | --doc | --do)
1059 ac_prev=docdir ;;
1060 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1061 docdir=$ac_optarg ;;
1062
1063 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1064 ac_prev=dvidir ;;
1065 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1066 dvidir=$ac_optarg ;;
1067
1068 -enable-* | --enable-*)
1069 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1072 as_fn_error $? "invalid feature name: $ac_useropt"
1073 ac_useropt_orig=$ac_useropt
1074 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075 case $ac_user_opts in
1076 *"
1077 "enable_$ac_useropt"
1078 "*) ;;
1079 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1080 ac_unrecognized_sep=', ';;
1081 esac
1082 eval enable_$ac_useropt=\$ac_optarg ;;
1083
1084 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1085 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1086 | --exec | --exe | --ex)
1087 ac_prev=exec_prefix ;;
1088 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1089 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1090 | --exec=* | --exe=* | --ex=*)
1091 exec_prefix=$ac_optarg ;;
1092
1093 -gas | --gas | --ga | --g)
1094 # Obsolete; use --with-gas.
1095 with_gas=yes ;;
1096
1097 -help | --help | --hel | --he | -h)
1098 ac_init_help=long ;;
1099 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1100 ac_init_help=recursive ;;
1101 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1102 ac_init_help=short ;;
1103
1104 -host | --host | --hos | --ho)
1105 ac_prev=host_alias ;;
1106 -host=* | --host=* | --hos=* | --ho=*)
1107 host_alias=$ac_optarg ;;
1108
1109 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1110 ac_prev=htmldir ;;
1111 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1112 | --ht=*)
1113 htmldir=$ac_optarg ;;
1114
1115 -includedir | --includedir | --includedi | --included | --include \
1116 | --includ | --inclu | --incl | --inc)
1117 ac_prev=includedir ;;
1118 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1119 | --includ=* | --inclu=* | --incl=* | --inc=*)
1120 includedir=$ac_optarg ;;
1121
1122 -infodir | --infodir | --infodi | --infod | --info | --inf)
1123 ac_prev=infodir ;;
1124 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1125 infodir=$ac_optarg ;;
1126
1127 -libdir | --libdir | --libdi | --libd)
1128 ac_prev=libdir ;;
1129 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1130 libdir=$ac_optarg ;;
1131
1132 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1133 | --libexe | --libex | --libe)
1134 ac_prev=libexecdir ;;
1135 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1136 | --libexe=* | --libex=* | --libe=*)
1137 libexecdir=$ac_optarg ;;
1138
1139 -localedir | --localedir | --localedi | --localed | --locale)
1140 ac_prev=localedir ;;
1141 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1142 localedir=$ac_optarg ;;
1143
1144 -localstatedir | --localstatedir | --localstatedi | --localstated \
1145 | --localstate | --localstat | --localsta | --localst | --locals)
1146 ac_prev=localstatedir ;;
1147 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1148 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1149 localstatedir=$ac_optarg ;;
1150
1151 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1152 ac_prev=mandir ;;
1153 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1154 mandir=$ac_optarg ;;
1155
1156 -nfp | --nfp | --nf)
1157 # Obsolete; use --without-fp.
1158 with_fp=no ;;
1159
1160 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1161 | --no-cr | --no-c | -n)
1162 no_create=yes ;;
1163
1164 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1165 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1166 no_recursion=yes ;;
1167
1168 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1169 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1170 | --oldin | --oldi | --old | --ol | --o)
1171 ac_prev=oldincludedir ;;
1172 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1173 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1174 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1175 oldincludedir=$ac_optarg ;;
1176
1177 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1178 ac_prev=prefix ;;
1179 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1180 prefix=$ac_optarg ;;
1181
1182 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1183 | --program-pre | --program-pr | --program-p)
1184 ac_prev=program_prefix ;;
1185 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1186 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1187 program_prefix=$ac_optarg ;;
1188
1189 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1190 | --program-suf | --program-su | --program-s)
1191 ac_prev=program_suffix ;;
1192 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1193 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1194 program_suffix=$ac_optarg ;;
1195
1196 -program-transform-name | --program-transform-name \
1197 | --program-transform-nam | --program-transform-na \
1198 | --program-transform-n | --program-transform- \
1199 | --program-transform | --program-transfor \
1200 | --program-transfo | --program-transf \
1201 | --program-trans | --program-tran \
1202 | --progr-tra | --program-tr | --program-t)
1203 ac_prev=program_transform_name ;;
1204 -program-transform-name=* | --program-transform-name=* \
1205 | --program-transform-nam=* | --program-transform-na=* \
1206 | --program-transform-n=* | --program-transform-=* \
1207 | --program-transform=* | --program-transfor=* \
1208 | --program-transfo=* | --program-transf=* \
1209 | --program-trans=* | --program-tran=* \
1210 | --progr-tra=* | --program-tr=* | --program-t=*)
1211 program_transform_name=$ac_optarg ;;
1212
1213 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1214 ac_prev=pdfdir ;;
1215 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1216 pdfdir=$ac_optarg ;;
1217
1218 -psdir | --psdir | --psdi | --psd | --ps)
1219 ac_prev=psdir ;;
1220 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1221 psdir=$ac_optarg ;;
1222
1223 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1224 | -silent | --silent | --silen | --sile | --sil)
1225 silent=yes ;;
1226
1227 -runstatedir | --runstatedir | --runstatedi | --runstated \
1228 | --runstate | --runstat | --runsta | --runst | --runs \
1229 | --run | --ru | --r)
1230 ac_prev=runstatedir ;;
1231 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1232 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1233 | --run=* | --ru=* | --r=*)
1234 runstatedir=$ac_optarg ;;
1235
1236 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1237 ac_prev=sbindir ;;
1238 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1239 | --sbi=* | --sb=*)
1240 sbindir=$ac_optarg ;;
1241
1242 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1243 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1244 | --sharedst | --shareds | --shared | --share | --shar \
1245 | --sha | --sh)
1246 ac_prev=sharedstatedir ;;
1247 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1248 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1249 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1250 | --sha=* | --sh=*)
1251 sharedstatedir=$ac_optarg ;;
1252
1253 -site | --site | --sit)
1254 ac_prev=site ;;
1255 -site=* | --site=* | --sit=*)
1256 site=$ac_optarg ;;
1257
1258 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1259 ac_prev=srcdir ;;
1260 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1261 srcdir=$ac_optarg ;;
1262
1263 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1264 | --syscon | --sysco | --sysc | --sys | --sy)
1265 ac_prev=sysconfdir ;;
1266 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1267 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1268 sysconfdir=$ac_optarg ;;
1269
1270 -target | --target | --targe | --targ | --tar | --ta | --t)
1271 ac_prev=target_alias ;;
1272 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1273 target_alias=$ac_optarg ;;
1274
1275 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1276 verbose=yes ;;
1277
1278 -version | --version | --versio | --versi | --vers | -V)
1279 ac_init_version=: ;;
1280
1281 -with-* | --with-*)
1282 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1285 as_fn_error $? "invalid package name: $ac_useropt"
1286 ac_useropt_orig=$ac_useropt
1287 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1288 case $ac_user_opts in
1289 *"
1290 "with_$ac_useropt"
1291 "*) ;;
1292 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1293 ac_unrecognized_sep=', ';;
1294 esac
1295 eval with_$ac_useropt=\$ac_optarg ;;
1296
1297 -without-* | --without-*)
1298 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1299 # Reject names that are not valid shell variable names.
1300 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1301 as_fn_error $? "invalid package name: $ac_useropt"
1302 ac_useropt_orig=$ac_useropt
1303 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304 case $ac_user_opts in
1305 *"
1306 "with_$ac_useropt"
1307 "*) ;;
1308 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1309 ac_unrecognized_sep=', ';;
1310 esac
1311 eval with_$ac_useropt=no ;;
1312
1313 --x)
1314 # Obsolete; use --with-x.
1315 with_x=yes ;;
1316
1317 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1318 | --x-incl | --x-inc | --x-in | --x-i)
1319 ac_prev=x_includes ;;
1320 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1321 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1322 x_includes=$ac_optarg ;;
1323
1324 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1325 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1326 ac_prev=x_libraries ;;
1327 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1328 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1329 x_libraries=$ac_optarg ;;
1330
1331 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1332 Try \`$0 --help' for more information"
1333 ;;
1334
1335 *=*)
1336 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1337 # Reject names that are not valid shell variable names.
1338 case $ac_envvar in #(
1339 '' | [0-9]* | *[!_$as_cr_alnum]* )
1340 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1341 esac
1342 eval $ac_envvar=\$ac_optarg
1343 export $ac_envvar ;;
1344
1345 *)
1346 # FIXME: should be removed in autoconf 3.0.
1347 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1348 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1349 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1350 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1351 ;;
1352
1353 esac
1354 done
1355
1356 if test -n "$ac_prev"; then
1357 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1358 as_fn_error $? "missing argument to $ac_option"
1359 fi
1360
1361 if test -n "$ac_unrecognized_opts"; then
1362 case $enable_option_checking in
1363 no) ;;
1364 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1365 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1366 esac
1367 fi
1368
1369 # Check all directory arguments for consistency.
1370 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1371 datadir sysconfdir sharedstatedir localstatedir includedir \
1372 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1373 libdir localedir mandir runstatedir
1374 do
1375 eval ac_val=\$$ac_var
1376 # Remove trailing slashes.
1377 case $ac_val in
1378 */ )
1379 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1380 eval $ac_var=\$ac_val;;
1381 esac
1382 # Be sure to have absolute directory names.
1383 case $ac_val in
1384 [\\/$]* | ?:[\\/]* ) continue;;
1385 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1386 esac
1387 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1388 done
1389
1390 # There might be people who depend on the old broken behavior: `$host'
1391 # used to hold the argument of --host etc.
1392 # FIXME: To remove some day.
1393 build=$build_alias
1394 host=$host_alias
1395 target=$target_alias
1396
1397 # FIXME: To remove some day.
1398 if test "x$host_alias" != x; then
1399 if test "x$build_alias" = x; then
1400 cross_compiling=maybe
1401 elif test "x$build_alias" != "x$host_alias"; then
1402 cross_compiling=yes
1403 fi
1404 fi
1405
1406 ac_tool_prefix=
1407 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1408
1409 test "$silent" = yes && exec 6>/dev/null
1410
1411
1412 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1413 ac_ls_di=`ls -di .` &&
1414 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1415 as_fn_error $? "working directory cannot be determined"
1416 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1417 as_fn_error $? "pwd does not report name of working directory"
1418
1419
1420 # Find the source files, if location was not specified.
1421 if test -z "$srcdir"; then
1422 ac_srcdir_defaulted=yes
1423 # Try the directory containing this script, then the parent directory.
1424 ac_confdir=`$as_dirname -- "$as_myself" ||
1425 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1426 X"$as_myself" : 'X\(//\)[^/]' \| \
1427 X"$as_myself" : 'X\(//\)$' \| \
1428 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1429 $as_echo X"$as_myself" |
1430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1431 s//\1/
1432 q
1433 }
1434 /^X\(\/\/\)[^/].*/{
1435 s//\1/
1436 q
1437 }
1438 /^X\(\/\/\)$/{
1439 s//\1/
1440 q
1441 }
1442 /^X\(\/\).*/{
1443 s//\1/
1444 q
1445 }
1446 s/.*/./; q'`
1447 srcdir=$ac_confdir
1448 if test ! -r "$srcdir/$ac_unique_file"; then
1449 srcdir=..
1450 fi
1451 else
1452 ac_srcdir_defaulted=no
1453 fi
1454 if test ! -r "$srcdir/$ac_unique_file"; then
1455 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1456 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1457 fi
1458 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1459 ac_abs_confdir=`(
1460 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1461 pwd)`
1462 # When building in place, set srcdir=.
1463 if test "$ac_abs_confdir" = "$ac_pwd"; then
1464 srcdir=.
1465 fi
1466 # Remove unnecessary trailing slashes from srcdir.
1467 # Double slashes in file names in object file debugging info
1468 # mess up M-x gdb in Emacs.
1469 case $srcdir in
1470 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1471 esac
1472 for ac_var in $ac_precious_vars; do
1473 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1474 eval ac_env_${ac_var}_value=\$${ac_var}
1475 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1476 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1477 done
1478
1479 #
1480 # Report the --help message.
1481 #
1482 if test "$ac_init_help" = "long"; then
1483 # Omit some internal or obsolete options to make the list less imposing.
1484 # This message is too long to be a string in the A/UX 3.1 sh.
1485 cat <<_ACEOF
1486 \`configure' configures libxcb 1.11.1 to adapt to many kinds of systems.
1487
1488 Usage: $0 [OPTION]... [VAR=VALUE]...
1489
1490 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1491 VAR=VALUE. See below for descriptions of some of the useful variables.
1492
1493 Defaults for the options are specified in brackets.
1494
1495 Configuration:
1496 -h, --help display this help and exit
1497 --help=short display options specific to this package
1498 --help=recursive display the short help of all the included packages
1499 -V, --version display version information and exit
1500 -q, --quiet, --silent do not print \`checking ...' messages
1501 --cache-file=FILE cache test results in FILE [disabled]
1502 -C, --config-cache alias for \`--cache-file=config.cache'
1503 -n, --no-create do not create output files
1504 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1505
1506 Installation directories:
1507 --prefix=PREFIX install architecture-independent files in PREFIX
1508 [$ac_default_prefix]
1509 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1510 [PREFIX]
1511
1512 By default, \`make install' will install all the files in
1513 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1514 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1515 for instance \`--prefix=\$HOME'.
1516
1517 For better control, use the options below.
1518
1519 Fine tuning of the installation directories:
1520 --bindir=DIR user executables [EPREFIX/bin]
1521 --sbindir=DIR system admin executables [EPREFIX/sbin]
1522 --libexecdir=DIR program executables [EPREFIX/libexec]
1523 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1524 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1525 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1526 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1527 --libdir=DIR object code libraries [EPREFIX/lib]
1528 --includedir=DIR C header files [PREFIX/include]
1529 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1530 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1531 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1532 --infodir=DIR info documentation [DATAROOTDIR/info]
1533 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1534 --mandir=DIR man documentation [DATAROOTDIR/man]
1535 --docdir=DIR documentation root [DATAROOTDIR/doc/libxcb]
1536 --htmldir=DIR html documentation [DOCDIR]
1537 --dvidir=DIR dvi documentation [DOCDIR]
1538 --pdfdir=DIR pdf documentation [DOCDIR]
1539 --psdir=DIR ps documentation [DOCDIR]
1540 _ACEOF
1541
1542 cat <<\_ACEOF
1543
1544 Program names:
1545 --program-prefix=PREFIX prepend PREFIX to installed program names
1546 --program-suffix=SUFFIX append SUFFIX to installed program names
1547 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1548
1549 System types:
1550 --build=BUILD configure for building on BUILD [guessed]
1551 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1552 _ACEOF
1553 fi
1554
1555 if test -n "$ac_init_help"; then
1556 case $ac_init_help in
1557 short | recursive ) echo "Configuration of libxcb 1.11.1:";;
1558 esac
1559 cat <<\_ACEOF
1560
1561 Optional Features:
1562 --disable-option-checking ignore unrecognized --enable/--with options
1563 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1564 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1565 --enable-silent-rules less verbose build output (undo: "make V=1")
1566 --disable-silent-rules verbose build output (undo: "make V=0")
1567 --enable-dependency-tracking
1568 do not reject slow dependency extractors
1569 --disable-dependency-tracking
1570 speeds up one-time build
1571 --enable-shared[=PKGS] build shared libraries [default=yes]
1572 --enable-static[=PKGS] build static libraries [default=yes]
1573 --enable-fast-install[=PKGS]
1574 optimize for fast installation [default=yes]
1575 --disable-libtool-lock avoid locking (might break parallel builds)
1576 --disable-selective-werror
1577 Turn off selective compiler errors. (default:
1578 enabled)
1579 --enable-strict-compilation
1580 Enable all warnings from compiler and make them
1581 errors (default: disabled)
1582 --enable-devel-docs Enable building the developer documentation
1583 (default: yes)
1584 --disable-sendfds Support FD passing (default: auto)
1585 --enable-composite Build XCB Composite Extension (default: "yes")
1586 --enable-damage Build XCB Damage Extension (default: "yes")
1587 --enable-dpms Build XCB DPMS Extension (default: "yes")
1588 --enable-dri2 Build XCB DRI2 Extension (default: "yes")
1589 --enable-dri3 Build XCB DRI3 Extension (default: "$sendfds")
1590 --enable-glx Build XCB GLX Extension (default: "yes")
1591 --enable-present Build XCB Present Extension (default: "yes")
1592 --enable-randr Build XCB RandR Extension (default: "yes")
1593 --enable-record Build XCB Record Extension (default: "yes")
1594 --enable-render Build XCB Render Extension (default: "yes")
1595 --enable-resource Build XCB Resource Extension (default: "yes")
1596 --enable-screensaver Build XCB Screensaver Extension (default: "yes")
1597 --enable-shape Build XCB Shape Extension (default: "yes")
1598 --enable-shm Build XCB Shm Extension (default: "yes")
1599 --enable-sync Build XCB Sync Extension (default: "yes")
1600 --enable-xevie Build XCB Xevie Extension (default: "yes")
1601 --enable-xfixes Build XCB XFixes Extension (default: "yes")
1602 --enable-xfree86-dri Build XCB XFree86-DRI Extension (default: "yes")
1603 --enable-xinerama Build XCB Xinerama Extension (default: "yes")
1604 --enable-xinput Build XCB XInput Extension (default: "no")
1605 --enable-xkb Build XCB XKB Extension (default: "yes")
1606 --enable-xprint Build XCB Xprint Extension (default: "yes")
1607 --enable-selinux Build XCB SELinux Extension (default: "no")
1608 --enable-xtest Build XCB XTest Extension (default: "yes")
1609 --enable-xv Build XCB Xv Extension (default: "yes")
1610 --enable-xvmc Build XCB XvMC Extension (default: "yes")
1611
1612 Optional Packages:
1613 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1614 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1615 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1616 both]
1617 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1618 --with-sysroot=DIR Search for dependent libraries within DIR
1619 (or the compiler's sysroot if not specified).
1620 --with-doxygen Use doxygen to regenerate documentation (default:
1621 auto)
1622 --with-queue-size=SIZE Set the XCB buffer queue size (default is 16384)
1623 --with-launchd Build with support for Apple's launchd (default:
1624 auto)
1625
1626 Some influential environment variables:
1627 PYTHON the Python interpreter
1628 CC C compiler command
1629 CFLAGS C compiler flags
1630 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1631 nonstandard directory <lib dir>
1632 LIBS libraries to pass to the linker, e.g. -l<library>
1633 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1634 you have headers in a nonstandard directory <include dir>
1635 CPP C preprocessor
1636 PKG_CONFIG path to pkg-config utility
1637 PKG_CONFIG_PATH
1638 directories to add to pkg-config's search path
1639 PKG_CONFIG_LIBDIR
1640 path overriding pkg-config's built-in search path
1641 DOXYGEN Path to doxygen command
1642 DOT Path to the dot graphics utility
1643 CHECK_CFLAGS
1644 C compiler flags for CHECK, overriding pkg-config
1645 CHECK_LIBS linker flags for CHECK, overriding pkg-config
1646 XCBPROTO_CFLAGS
1647 C compiler flags for XCBPROTO, overriding pkg-config
1648 XCBPROTO_LIBS
1649 linker flags for XCBPROTO, overriding pkg-config
1650 NEEDED_CFLAGS
1651 C compiler flags for NEEDED, overriding pkg-config
1652 NEEDED_LIBS linker flags for NEEDED, overriding pkg-config
1653 XDMCP_CFLAGS
1654 C compiler flags for XDMCP, overriding pkg-config
1655 XDMCP_LIBS linker flags for XDMCP, overriding pkg-config
1656
1657 Use these variables to override the choices made by `configure' or to help
1658 it to find libraries and programs with nonstandard names/locations.
1659
1660 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xcb>.
1661 _ACEOF
1662 ac_status=$?
1663 fi
1664
1665 if test "$ac_init_help" = "recursive"; then
1666 # If there are subdirs, report their specific --help.
1667 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1668 test -d "$ac_dir" ||
1669 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1670 continue
1671 ac_builddir=.
1672
1673 case "$ac_dir" in
1674 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1675 *)
1676 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1677 # A ".." for each directory in $ac_dir_suffix.
1678 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1679 case $ac_top_builddir_sub in
1680 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1681 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1682 esac ;;
1683 esac
1684 ac_abs_top_builddir=$ac_pwd
1685 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1686 # for backward compatibility:
1687 ac_top_builddir=$ac_top_build_prefix
1688
1689 case $srcdir in
1690 .) # We are building in place.
1691 ac_srcdir=.
1692 ac_top_srcdir=$ac_top_builddir_sub
1693 ac_abs_top_srcdir=$ac_pwd ;;
1694 [\\/]* | ?:[\\/]* ) # Absolute name.
1695 ac_srcdir=$srcdir$ac_dir_suffix;
1696 ac_top_srcdir=$srcdir
1697 ac_abs_top_srcdir=$srcdir ;;
1698 *) # Relative name.
1699 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1700 ac_top_srcdir=$ac_top_build_prefix$srcdir
1701 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1702 esac
1703 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1704
1705 cd "$ac_dir" || { ac_status=$?; continue; }
1706 # Check for guested configure.
1707 if test -f "$ac_srcdir/configure.gnu"; then
1708 echo &&
1709 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1710 elif test -f "$ac_srcdir/configure"; then
1711 echo &&
1712 $SHELL "$ac_srcdir/configure" --help=recursive
1713 else
1714 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1715 fi || ac_status=$?
1716 cd "$ac_pwd" || { ac_status=$?; break; }
1717 done
1718 fi
1719
1720 test -n "$ac_init_help" && exit $ac_status
1721 if $ac_init_version; then
1722 cat <<\_ACEOF
1723 libxcb configure 1.11.1
1724 generated by GNU Autoconf 2.69
1725
1726 Copyright (C) 2012 Free Software Foundation, Inc.
1727 This configure script is free software; the Free Software Foundation
1728 gives unlimited permission to copy, distribute and modify it.
1729 _ACEOF
1730 exit
1731 fi
1732
1733 ## ------------------------ ##
1734 ## Autoconf initialization. ##
1735 ## ------------------------ ##
1736
1737 # ac_fn_c_try_compile LINENO
1738 # --------------------------
1739 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1740 ac_fn_c_try_compile ()
1741 {
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 rm -f conftest.$ac_objext
1744 if { { ac_try="$ac_compile"
1745 case "(($ac_try" in
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1748 esac
1749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750 $as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_compile") 2>conftest.err
1752 ac_status=$?
1753 if test -s conftest.err; then
1754 grep -v '^ *+' conftest.err >conftest.er1
1755 cat conftest.er1 >&5
1756 mv -f conftest.er1 conftest.err
1757 fi
1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; } && {
1760 test -z "$ac_c_werror_flag" ||
1761 test ! -s conftest.err
1762 } && test -s conftest.$ac_objext; then :
1763 ac_retval=0
1764 else
1765 $as_echo "$as_me: failed program was:" >&5
1766 sed 's/^/| /' conftest.$ac_ext >&5
1767
1768 ac_retval=1
1769 fi
1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771 as_fn_set_status $ac_retval
1772
1773 } # ac_fn_c_try_compile
1774
1775 # ac_fn_c_try_cpp LINENO
1776 # ----------------------
1777 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1778 ac_fn_c_try_cpp ()
1779 {
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 if { { ac_try="$ac_cpp conftest.$ac_ext"
1782 case "(($ac_try" in
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1785 esac
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1789 ac_status=$?
1790 if test -s conftest.err; then
1791 grep -v '^ *+' conftest.err >conftest.er1
1792 cat conftest.er1 >&5
1793 mv -f conftest.er1 conftest.err
1794 fi
1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; } > conftest.i && {
1797 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1798 test ! -s conftest.err
1799 }; then :
1800 ac_retval=0
1801 else
1802 $as_echo "$as_me: failed program was:" >&5
1803 sed 's/^/| /' conftest.$ac_ext >&5
1804
1805 ac_retval=1
1806 fi
1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808 as_fn_set_status $ac_retval
1809
1810 } # ac_fn_c_try_cpp
1811
1812 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1813 # -------------------------------------------------------
1814 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1815 # the include files in INCLUDES and setting the cache variable VAR
1816 # accordingly.
1817 ac_fn_c_check_header_mongrel ()
1818 {
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 if eval \${$3+:} false; then :
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822 $as_echo_n "checking for $2... " >&6; }
1823 if eval \${$3+:} false; then :
1824 $as_echo_n "(cached) " >&6
1825 fi
1826 eval ac_res=\$$3
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1828 $as_echo "$ac_res" >&6; }
1829 else
1830 # Is the header compilable?
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1832 $as_echo_n "checking $2 usability... " >&6; }
1833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834 /* end confdefs.h. */
1835 $4
1836 #include <$2>
1837 _ACEOF
1838 if ac_fn_c_try_compile "$LINENO"; then :
1839 ac_header_compiler=yes
1840 else
1841 ac_header_compiler=no
1842 fi
1843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1845 $as_echo "$ac_header_compiler" >&6; }
1846
1847 # Is the header present?
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1849 $as_echo_n "checking $2 presence... " >&6; }
1850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1851 /* end confdefs.h. */
1852 #include <$2>
1853 _ACEOF
1854 if ac_fn_c_try_cpp "$LINENO"; then :
1855 ac_header_preproc=yes
1856 else
1857 ac_header_preproc=no
1858 fi
1859 rm -f conftest.err conftest.i conftest.$ac_ext
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1861 $as_echo "$ac_header_preproc" >&6; }
1862
1863 # So? What about this header?
1864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1865 yes:no: )
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1867 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1869 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1870 ;;
1871 no:yes:* )
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1873 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1875 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1877 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1879 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1881 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1882 ( $as_echo "## --------------------------------------------------------------------- ##
1883 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xcb ##
1884 ## --------------------------------------------------------------------- ##"
1885 ) | sed "s/^/$as_me: WARNING: /" >&2
1886 ;;
1887 esac
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889 $as_echo_n "checking for $2... " >&6; }
1890 if eval \${$3+:} false; then :
1891 $as_echo_n "(cached) " >&6
1892 else
1893 eval "$3=\$ac_header_compiler"
1894 fi
1895 eval ac_res=\$$3
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1897 $as_echo "$ac_res" >&6; }
1898 fi
1899 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900
1901 } # ac_fn_c_check_header_mongrel
1902
1903 # ac_fn_c_try_run LINENO
1904 # ----------------------
1905 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1906 # that executables *can* be run.
1907 ac_fn_c_try_run ()
1908 {
1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910 if { { ac_try="$ac_link"
1911 case "(($ac_try" in
1912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1913 *) ac_try_echo=$ac_try;;
1914 esac
1915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1916 $as_echo "$ac_try_echo"; } >&5
1917 (eval "$ac_link") 2>&5
1918 ac_status=$?
1919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1920 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1921 { { case "(($ac_try" in
1922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1923 *) ac_try_echo=$ac_try;;
1924 esac
1925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1926 $as_echo "$ac_try_echo"; } >&5
1927 (eval "$ac_try") 2>&5
1928 ac_status=$?
1929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1930 test $ac_status = 0; }; }; then :
1931 ac_retval=0
1932 else
1933 $as_echo "$as_me: program exited with status $ac_status" >&5
1934 $as_echo "$as_me: failed program was:" >&5
1935 sed 's/^/| /' conftest.$ac_ext >&5
1936
1937 ac_retval=$ac_status
1938 fi
1939 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941 as_fn_set_status $ac_retval
1942
1943 } # ac_fn_c_try_run
1944
1945 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1946 # -------------------------------------------------------
1947 # Tests whether HEADER exists and can be compiled using the include files in
1948 # INCLUDES, setting the cache variable VAR accordingly.
1949 ac_fn_c_check_header_compile ()
1950 {
1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1953 $as_echo_n "checking for $2... " >&6; }
1954 if eval \${$3+:} false; then :
1955 $as_echo_n "(cached) " >&6
1956 else
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1959 $4
1960 #include <$2>
1961 _ACEOF
1962 if ac_fn_c_try_compile "$LINENO"; then :
1963 eval "$3=yes"
1964 else
1965 eval "$3=no"
1966 fi
1967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968 fi
1969 eval ac_res=\$$3
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1971 $as_echo "$ac_res" >&6; }
1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973
1974 } # ac_fn_c_check_header_compile
1975
1976 # ac_fn_c_try_link LINENO
1977 # -----------------------
1978 # Try to link conftest.$ac_ext, and return whether this succeeded.
1979 ac_fn_c_try_link ()
1980 {
1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982 rm -f conftest.$ac_objext conftest$ac_exeext
1983 if { { ac_try="$ac_link"
1984 case "(($ac_try" in
1985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1986 *) ac_try_echo=$ac_try;;
1987 esac
1988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1989 $as_echo "$ac_try_echo"; } >&5
1990 (eval "$ac_link") 2>conftest.err
1991 ac_status=$?
1992 if test -s conftest.err; then
1993 grep -v '^ *+' conftest.err >conftest.er1
1994 cat conftest.er1 >&5
1995 mv -f conftest.er1 conftest.err
1996 fi
1997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1998 test $ac_status = 0; } && {
1999 test -z "$ac_c_werror_flag" ||
2000 test ! -s conftest.err
2001 } && test -s conftest$ac_exeext && {
2002 test "$cross_compiling" = yes ||
2003 test -x conftest$ac_exeext
2004 }; then :
2005 ac_retval=0
2006 else
2007 $as_echo "$as_me: failed program was:" >&5
2008 sed 's/^/| /' conftest.$ac_ext >&5
2009
2010 ac_retval=1
2011 fi
2012 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2013 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2014 # interfere with the next link command; also delete a directory that is
2015 # left behind by Apple's compiler. We do this before executing the actions.
2016 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2017 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2018 as_fn_set_status $ac_retval
2019
2020 } # ac_fn_c_try_link
2021
2022 # ac_fn_c_check_func LINENO FUNC VAR
2023 # ----------------------------------
2024 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2025 ac_fn_c_check_func ()
2026 {
2027 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2029 $as_echo_n "checking for $2... " >&6; }
2030 if eval \${$3+:} false; then :
2031 $as_echo_n "(cached) " >&6
2032 else
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034 /* end confdefs.h. */
2035 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2037 #define $2 innocuous_$2
2038
2039 /* System header to define __stub macros and hopefully few prototypes,
2040 which can conflict with char $2 (); below.
2041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2042 <limits.h> exists even on freestanding compilers. */
2043
2044 #ifdef __STDC__
2045 # include <limits.h>
2046 #else
2047 # include <assert.h>
2048 #endif
2049
2050 #undef $2
2051
2052 /* Override any GCC internal prototype to avoid an error.
2053 Use char because int might match the return type of a GCC
2054 builtin and then its argument prototype would still apply. */
2055 #ifdef __cplusplus
2056 extern "C"
2057 #endif
2058 char $2 ();
2059 /* The GNU C library defines this for functions which it implements
2060 to always fail with ENOSYS. Some functions are actually named
2061 something starting with __ and the normal name is an alias. */
2062 #if defined __stub_$2 || defined __stub___$2
2063 choke me
2064 #endif
2065
2066 int
2067 main ()
2068 {
2069 return $2 ();
2070 ;
2071 return 0;
2072 }
2073 _ACEOF
2074 if ac_fn_c_try_link "$LINENO"; then :
2075 eval "$3=yes"
2076 else
2077 eval "$3=no"
2078 fi
2079 rm -f core conftest.err conftest.$ac_objext \
2080 conftest$ac_exeext conftest.$ac_ext
2081 fi
2082 eval ac_res=\$$3
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2084 $as_echo "$ac_res" >&6; }
2085 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2086
2087 } # ac_fn_c_check_func
2088
2089 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2090 # ---------------------------------------------
2091 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2092 # accordingly.
2093 ac_fn_c_check_decl ()
2094 {
2095 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2096 as_decl_name=`echo $2|sed 's/ *(.*//'`
2097 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2099 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2100 if eval \${$3+:} false; then :
2101 $as_echo_n "(cached) " >&6
2102 else
2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h. */
2105 $4
2106 int
2107 main ()
2108 {
2109 #ifndef $as_decl_name
2110 #ifdef __cplusplus
2111 (void) $as_decl_use;
2112 #else
2113 (void) $as_decl_name;
2114 #endif
2115 #endif
2116
2117 ;
2118 return 0;
2119 }
2120 _ACEOF
2121 if ac_fn_c_try_compile "$LINENO"; then :
2122 eval "$3=yes"
2123 else
2124 eval "$3=no"
2125 fi
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 fi
2128 eval ac_res=\$$3
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130 $as_echo "$ac_res" >&6; }
2131 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2132
2133 } # ac_fn_c_check_decl
2134
2135 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2136 # ----------------------------------------------------
2137 # Tries to find if the field MEMBER exists in type AGGR, after including
2138 # INCLUDES, setting cache variable VAR accordingly.
2139 ac_fn_c_check_member ()
2140 {
2141 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2143 $as_echo_n "checking for $2.$3... " >&6; }
2144 if eval \${$4+:} false; then :
2145 $as_echo_n "(cached) " >&6
2146 else
2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2149 $5
2150 int
2151 main ()
2152 {
2153 static $2 ac_aggr;
2154 if (ac_aggr.$3)
2155 return 0;
2156 ;
2157 return 0;
2158 }
2159 _ACEOF
2160 if ac_fn_c_try_compile "$LINENO"; then :
2161 eval "$4=yes"
2162 else
2163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164 /* end confdefs.h. */
2165 $5
2166 int
2167 main ()
2168 {
2169 static $2 ac_aggr;
2170 if (sizeof ac_aggr.$3)
2171 return 0;
2172 ;
2173 return 0;
2174 }
2175 _ACEOF
2176 if ac_fn_c_try_compile "$LINENO"; then :
2177 eval "$4=yes"
2178 else
2179 eval "$4=no"
2180 fi
2181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182 fi
2183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184 fi
2185 eval ac_res=\$$4
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2187 $as_echo "$ac_res" >&6; }
2188 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2189
2190 } # ac_fn_c_check_member
2191 cat >config.log <<_ACEOF
2192 This file contains any messages produced by compilers while
2193 running configure, to aid debugging if configure makes a mistake.
2194
2195 It was created by libxcb $as_me 1.11.1, which was
2196 generated by GNU Autoconf 2.69. Invocation command line was
2197
2198 $ $0 $@
2199
2200 _ACEOF
2201 exec 5>>config.log
2202 {
2203 cat <<_ASUNAME
2204 ## --------- ##
2205 ## Platform. ##
2206 ## --------- ##
2207
2208 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2209 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2210 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2211 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2212 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2213
2214 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2215 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2216
2217 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2218 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2219 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2220 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2221 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2222 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2223 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2224
2225 _ASUNAME
2226
2227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228 for as_dir in $PATH
2229 do
2230 IFS=$as_save_IFS
2231 test -z "$as_dir" && as_dir=.
2232 $as_echo "PATH: $as_dir"
2233 done
2234 IFS=$as_save_IFS
2235
2236 } >&5
2237
2238 cat >&5 <<_ACEOF
2239
2240
2241 ## ----------- ##
2242 ## Core tests. ##
2243 ## ----------- ##
2244
2245 _ACEOF
2246
2247
2248 # Keep a trace of the command line.
2249 # Strip out --no-create and --no-recursion so they do not pile up.
2250 # Strip out --silent because we don't want to record it for future runs.
2251 # Also quote any args containing shell meta-characters.
2252 # Make two passes to allow for proper duplicate-argument suppression.
2253 ac_configure_args=
2254 ac_configure_args0=
2255 ac_configure_args1=
2256 ac_must_keep_next=false
2257 for ac_pass in 1 2
2258 do
2259 for ac_arg
2260 do
2261 case $ac_arg in
2262 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2263 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2264 | -silent | --silent | --silen | --sile | --sil)
2265 continue ;;
2266 *\'*)
2267 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2268 esac
2269 case $ac_pass in
2270 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2271 2)
2272 as_fn_append ac_configure_args1 " '$ac_arg'"
2273 if test $ac_must_keep_next = true; then
2274 ac_must_keep_next=false # Got value, back to normal.
2275 else
2276 case $ac_arg in
2277 *=* | --config-cache | -C | -disable-* | --disable-* \
2278 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2279 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2280 | -with-* | --with-* | -without-* | --without-* | --x)
2281 case "$ac_configure_args0 " in
2282 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2283 esac
2284 ;;
2285 -* ) ac_must_keep_next=true ;;
2286 esac
2287 fi
2288 as_fn_append ac_configure_args " '$ac_arg'"
2289 ;;
2290 esac
2291 done
2292 done
2293 { ac_configure_args0=; unset ac_configure_args0;}
2294 { ac_configure_args1=; unset ac_configure_args1;}
2295
2296 # When interrupted or exit'd, cleanup temporary files, and complete
2297 # config.log. We remove comments because anyway the quotes in there
2298 # would cause problems or look ugly.
2299 # WARNING: Use '\'' to represent an apostrophe within the trap.
2300 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2301 trap 'exit_status=$?
2302 # Save into config.log some information that might help in debugging.
2303 {
2304 echo
2305
2306 $as_echo "## ---------------- ##
2307 ## Cache variables. ##
2308 ## ---------------- ##"
2309 echo
2310 # The following way of writing the cache mishandles newlines in values,
2311 (
2312 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2313 eval ac_val=\$$ac_var
2314 case $ac_val in #(
2315 *${as_nl}*)
2316 case $ac_var in #(
2317 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2318 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2319 esac
2320 case $ac_var in #(
2321 _ | IFS | as_nl) ;; #(
2322 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2323 *) { eval $ac_var=; unset $ac_var;} ;;
2324 esac ;;
2325 esac
2326 done
2327 (set) 2>&1 |
2328 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2329 *${as_nl}ac_space=\ *)
2330 sed -n \
2331 "s/'\''/'\''\\\\'\'''\''/g;
2332 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2333 ;; #(
2334 *)
2335 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2336 ;;
2337 esac |
2338 sort
2339 )
2340 echo
2341
2342 $as_echo "## ----------------- ##
2343 ## Output variables. ##
2344 ## ----------------- ##"
2345 echo
2346 for ac_var in $ac_subst_vars
2347 do
2348 eval ac_val=\$$ac_var
2349 case $ac_val in
2350 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2351 esac
2352 $as_echo "$ac_var='\''$ac_val'\''"
2353 done | sort
2354 echo
2355
2356 if test -n "$ac_subst_files"; then
2357 $as_echo "## ------------------- ##
2358 ## File substitutions. ##
2359 ## ------------------- ##"
2360 echo
2361 for ac_var in $ac_subst_files
2362 do
2363 eval ac_val=\$$ac_var
2364 case $ac_val in
2365 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2366 esac
2367 $as_echo "$ac_var='\''$ac_val'\''"
2368 done | sort
2369 echo
2370 fi
2371
2372 if test -s confdefs.h; then
2373 $as_echo "## ----------- ##
2374 ## confdefs.h. ##
2375 ## ----------- ##"
2376 echo
2377 cat confdefs.h
2378 echo
2379 fi
2380 test "$ac_signal" != 0 &&
2381 $as_echo "$as_me: caught signal $ac_signal"
2382 $as_echo "$as_me: exit $exit_status"
2383 } >&5
2384 rm -f core *.core core.conftest.* &&
2385 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2386 exit $exit_status
2387 ' 0
2388 for ac_signal in 1 2 13 15; do
2389 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2390 done
2391 ac_signal=0
2392
2393 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2394 rm -f -r conftest* confdefs.h
2395
2396 $as_echo "/* confdefs.h */" > confdefs.h
2397
2398 # Predefined preprocessor variables.
2399
2400 cat >>confdefs.h <<_ACEOF
2401 #define PACKAGE_NAME "$PACKAGE_NAME"
2402 _ACEOF
2403
2404 cat >>confdefs.h <<_ACEOF
2405 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2406 _ACEOF
2407
2408 cat >>confdefs.h <<_ACEOF
2409 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2410 _ACEOF
2411
2412 cat >>confdefs.h <<_ACEOF
2413 #define PACKAGE_STRING "$PACKAGE_STRING"
2414 _ACEOF
2415
2416 cat >>confdefs.h <<_ACEOF
2417 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2418 _ACEOF
2419
2420 cat >>confdefs.h <<_ACEOF
2421 #define PACKAGE_URL "$PACKAGE_URL"
2422 _ACEOF
2423
2424
2425 # Let the site file select an alternate cache file if it wants to.
2426 # Prefer an explicitly selected file to automatically selected ones.
2427 ac_site_file1=NONE
2428 ac_site_file2=NONE
2429 if test -n "$CONFIG_SITE"; then
2430 # We do not want a PATH search for config.site.
2431 case $CONFIG_SITE in #((
2432 -*) ac_site_file1=./$CONFIG_SITE;;
2433 */*) ac_site_file1=$CONFIG_SITE;;
2434 *) ac_site_file1=./$CONFIG_SITE;;
2435 esac
2436 elif test "x$prefix" != xNONE; then
2437 ac_site_file1=$prefix/share/config.site
2438 ac_site_file2=$prefix/etc/config.site
2439 else
2440 ac_site_file1=$ac_default_prefix/share/config.site
2441 ac_site_file2=$ac_default_prefix/etc/config.site
2442 fi
2443 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2444 do
2445 test "x$ac_site_file" = xNONE && continue
2446 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2448 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2449 sed 's/^/| /' "$ac_site_file" >&5
2450 . "$ac_site_file" \
2451 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2453 as_fn_error $? "failed to load site script $ac_site_file
2454 See \`config.log' for more details" "$LINENO" 5; }
2455 fi
2456 done
2457
2458 if test -r "$cache_file"; then
2459 # Some versions of bash will fail to source /dev/null (special files
2460 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2461 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2463 $as_echo "$as_me: loading cache $cache_file" >&6;}
2464 case $cache_file in
2465 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2466 *) . "./$cache_file";;
2467 esac
2468 fi
2469 else
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2471 $as_echo "$as_me: creating cache $cache_file" >&6;}
2472 >$cache_file
2473 fi
2474
2475 # Check that the precious variables saved in the cache have kept the same
2476 # value.
2477 ac_cache_corrupted=false
2478 for ac_var in $ac_precious_vars; do
2479 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2480 eval ac_new_set=\$ac_env_${ac_var}_set
2481 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2482 eval ac_new_val=\$ac_env_${ac_var}_value
2483 case $ac_old_set,$ac_new_set in
2484 set,)
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2486 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2487 ac_cache_corrupted=: ;;
2488 ,set)
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2490 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2491 ac_cache_corrupted=: ;;
2492 ,);;
2493 *)
2494 if test "x$ac_old_val" != "x$ac_new_val"; then
2495 # differences in whitespace do not lead to failure.
2496 ac_old_val_w=`echo x $ac_old_val`
2497 ac_new_val_w=`echo x $ac_new_val`
2498 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2500 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2501 ac_cache_corrupted=:
2502 else
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2504 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2505 eval $ac_var=\$ac_old_val
2506 fi
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2508 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2510 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2511 fi;;
2512 esac
2513 # Pass precious variables to config.status.
2514 if test "$ac_new_set" = set; then
2515 case $ac_new_val in
2516 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2517 *) ac_arg=$ac_var=$ac_new_val ;;
2518 esac
2519 case " $ac_configure_args " in
2520 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2521 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2522 esac
2523 fi
2524 done
2525 if $ac_cache_corrupted; then
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2529 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2530 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2531 fi
2532 ## -------------------- ##
2533 ## Main body of script. ##
2534 ## -------------------- ##
2535
2536 ac_ext=c
2537 ac_cpp='$CPP $CPPFLAGS'
2538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2541
2542
2543 ac_aux_dir=
2544 for ac_dir in build-aux "$srcdir"/build-aux; do
2545 if test -f "$ac_dir/install-sh"; then
2546 ac_aux_dir=$ac_dir
2547 ac_install_sh="$ac_aux_dir/install-sh -c"
2548 break
2549 elif test -f "$ac_dir/install.sh"; then
2550 ac_aux_dir=$ac_dir
2551 ac_install_sh="$ac_aux_dir/install.sh -c"
2552 break
2553 elif test -f "$ac_dir/shtool"; then
2554 ac_aux_dir=$ac_dir
2555 ac_install_sh="$ac_aux_dir/shtool install -c"
2556 break
2557 fi
2558 done
2559 if test -z "$ac_aux_dir"; then
2560 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2561 fi
2562
2563 # These three variables are undocumented and unsupported,
2564 # and are intended to be withdrawn in a future Autoconf release.
2565 # They can cause serious problems if a builder's source tree is in a directory
2566 # whose full name contains unusual characters.
2567 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2568 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2569 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2570
2571
2572
2573
2574 ac_config_headers="$ac_config_headers src/config.h"
2575
2576
2577 # Initialize Automake
2578 am__api_version='1.15'
2579
2580 # Find a good install program. We prefer a C program (faster),
2581 # so one script is as good as another. But avoid the broken or
2582 # incompatible versions:
2583 # SysV /etc/install, /usr/sbin/install
2584 # SunOS /usr/etc/install
2585 # IRIX /sbin/install
2586 # AIX /bin/install
2587 # AmigaOS /C/install, which installs bootblocks on floppy discs
2588 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2589 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2590 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2591 # OS/2's system install, which has a completely different semantic
2592 # ./install, which can be erroneously created by make from ./install.sh.
2593 # Reject install programs that cannot install multiple files.
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2595 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2596 if test -z "$INSTALL"; then
2597 if ${ac_cv_path_install+:} false; then :
2598 $as_echo_n "(cached) " >&6
2599 else
2600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2601 for as_dir in $PATH
2602 do
2603 IFS=$as_save_IFS
2604 test -z "$as_dir" && as_dir=.
2605 # Account for people who put trailing slashes in PATH elements.
2606 case $as_dir/ in #((
2607 ./ | .// | /[cC]/* | \
2608 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2609 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2610 /usr/ucb/* ) ;;
2611 *)
2612 # OSF1 and SCO ODT 3.0 have their own names for install.
2613 # Don't use installbsd from OSF since it installs stuff as root
2614 # by default.
2615 for ac_prog in ginstall scoinst install; do
2616 for ac_exec_ext in '' $ac_executable_extensions; do
2617 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2618 if test $ac_prog = install &&
2619 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2620 # AIX install. It has an incompatible calling convention.
2621 :
2622 elif test $ac_prog = install &&
2623 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2624 # program-specific install script used by HP pwplus--don't use.
2625 :
2626 else
2627 rm -rf conftest.one conftest.two conftest.dir
2628 echo one > conftest.one
2629 echo two > conftest.two
2630 mkdir conftest.dir
2631 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2632 test -s conftest.one && test -s conftest.two &&
2633 test -s conftest.dir/conftest.one &&
2634 test -s conftest.dir/conftest.two
2635 then
2636 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2637 break 3
2638 fi
2639 fi
2640 fi
2641 done
2642 done
2643 ;;
2644 esac
2645
2646 done
2647 IFS=$as_save_IFS
2648
2649 rm -rf conftest.one conftest.two conftest.dir
2650
2651 fi
2652 if test "${ac_cv_path_install+set}" = set; then
2653 INSTALL=$ac_cv_path_install
2654 else
2655 # As a last resort, use the slow shell script. Don't cache a
2656 # value for INSTALL within a source directory, because that will
2657 # break other packages using the cache if that directory is
2658 # removed, or if the value is a relative name.
2659 INSTALL=$ac_install_sh
2660 fi
2661 fi
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2663 $as_echo "$INSTALL" >&6; }
2664
2665 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2666 # It thinks the first close brace ends the variable substitution.
2667 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2668
2669 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2670
2671 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2672
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2674 $as_echo_n "checking whether build environment is sane... " >&6; }
2675 # Reject unsafe characters in $srcdir or the absolute working directory
2676 # name. Accept space and tab only in the latter.
2677 am_lf='
2678 '
2679 case `pwd` in
2680 *[\\\"\#\$\&\'\`$am_lf]*)
2681 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2682 esac
2683 case $srcdir in
2684 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2685 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2686 esac
2687
2688 # Do 'set' in a subshell so we don't clobber the current shell's
2689 # arguments. Must try -L first in case configure is actually a
2690 # symlink; some systems play weird games with the mod time of symlinks
2691 # (eg FreeBSD returns the mod time of the symlink's containing
2692 # directory).
2693 if (
2694 am_has_slept=no
2695 for am_try in 1 2; do
2696 echo "timestamp, slept: $am_has_slept" > conftest.file
2697 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2698 if test "$*" = "X"; then
2699 # -L didn't work.
2700 set X `ls -t "$srcdir/configure" conftest.file`
2701 fi
2702 if test "$*" != "X $srcdir/configure conftest.file" \
2703 && test "$*" != "X conftest.file $srcdir/configure"; then
2704
2705 # If neither matched, then we have a broken ls. This can happen
2706 # if, for instance, CONFIG_SHELL is bash and it inherits a
2707 # broken ls alias from the environment. This has actually
2708 # happened. Such a system could not be considered "sane".
2709 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2710 alias in your environment" "$LINENO" 5
2711 fi
2712 if test "$2" = conftest.file || test $am_try -eq 2; then
2713 break
2714 fi
2715 # Just in case.
2716 sleep 1
2717 am_has_slept=yes
2718 done
2719 test "$2" = conftest.file
2720 )
2721 then
2722 # Ok.
2723 :
2724 else
2725 as_fn_error $? "newly created file is older than distributed files!
2726 Check your system clock" "$LINENO" 5
2727 fi
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2729 $as_echo "yes" >&6; }
2730 # If we didn't sleep, we still need to ensure time stamps of config.status and
2731 # generated files are strictly newer.
2732 am_sleep_pid=
2733 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2734 ( sleep 1 ) &
2735 am_sleep_pid=$!
2736 fi
2737
2738 rm -f conftest.file
2739
2740 test "$program_prefix" != NONE &&
2741 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2742 # Use a double $ so make ignores it.
2743 test "$program_suffix" != NONE &&
2744 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2745 # Double any \ or $.
2746 # By default was `s,x,x', remove it if useless.
2747 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2748 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2749
2750 # Expand $ac_aux_dir to an absolute path.
2751 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2752
2753 if test x"${MISSING+set}" != xset; then
2754 case $am_aux_dir in
2755 *\ * | *\ *)
2756 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2757 *)
2758 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2759 esac
2760 fi
2761 # Use eval to expand $SHELL
2762 if eval "$MISSING --is-lightweight"; then
2763 am_missing_run="$MISSING "
2764 else
2765 am_missing_run=
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2767 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2768 fi
2769
2770 if test x"${install_sh+set}" != xset; then
2771 case $am_aux_dir in
2772 *\ * | *\ *)
2773 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2774 *)
2775 install_sh="\${SHELL} $am_aux_dir/install-sh"
2776 esac
2777 fi
2778
2779 # Installed binaries are usually stripped using 'strip' when the user
2780 # run "make install-strip". However 'strip' might not be the right
2781 # tool to use in cross-compilation environments, therefore Automake
2782 # will honor the 'STRIP' environment variable to overrule this program.
2783 if test "$cross_compiling" != no; then
2784 if test -n "$ac_tool_prefix"; then
2785 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2786 set dummy ${ac_tool_prefix}strip; ac_word=$2
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2788 $as_echo_n "checking for $ac_word... " >&6; }
2789 if ${ac_cv_prog_STRIP+:} false; then :
2790 $as_echo_n "(cached) " >&6
2791 else
2792 if test -n "$STRIP"; then
2793 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2794 else
2795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 for as_dir in $PATH
2797 do
2798 IFS=$as_save_IFS
2799 test -z "$as_dir" && as_dir=.
2800 for ac_exec_ext in '' $ac_executable_extensions; do
2801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2802 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2804 break 2
2805 fi
2806 done
2807 done
2808 IFS=$as_save_IFS
2809
2810 fi
2811 fi
2812 STRIP=$ac_cv_prog_STRIP
2813 if test -n "$STRIP"; then
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2815 $as_echo "$STRIP" >&6; }
2816 else
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2818 $as_echo "no" >&6; }
2819 fi
2820
2821
2822 fi
2823 if test -z "$ac_cv_prog_STRIP"; then
2824 ac_ct_STRIP=$STRIP
2825 # Extract the first word of "strip", so it can be a program name with args.
2826 set dummy strip; ac_word=$2
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2828 $as_echo_n "checking for $ac_word... " >&6; }
2829 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2830 $as_echo_n "(cached) " >&6
2831 else
2832 if test -n "$ac_ct_STRIP"; then
2833 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2834 else
2835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 for as_dir in $PATH
2837 do
2838 IFS=$as_save_IFS
2839 test -z "$as_dir" && as_dir=.
2840 for ac_exec_ext in '' $ac_executable_extensions; do
2841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2842 ac_cv_prog_ac_ct_STRIP="strip"
2843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2844 break 2
2845 fi
2846 done
2847 done
2848 IFS=$as_save_IFS
2849
2850 fi
2851 fi
2852 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2853 if test -n "$ac_ct_STRIP"; then
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2855 $as_echo "$ac_ct_STRIP" >&6; }
2856 else
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2858 $as_echo "no" >&6; }
2859 fi
2860
2861 if test "x$ac_ct_STRIP" = x; then
2862 STRIP=":"
2863 else
2864 case $cross_compiling:$ac_tool_warned in
2865 yes:)
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2867 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2868 ac_tool_warned=yes ;;
2869 esac
2870 STRIP=$ac_ct_STRIP
2871 fi
2872 else
2873 STRIP="$ac_cv_prog_STRIP"
2874 fi
2875
2876 fi
2877 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2878
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2880 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2881 if test -z "$MKDIR_P"; then
2882 if ${ac_cv_path_mkdir+:} false; then :
2883 $as_echo_n "(cached) " >&6
2884 else
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2887 do
2888 IFS=$as_save_IFS
2889 test -z "$as_dir" && as_dir=.
2890 for ac_prog in mkdir gmkdir; do
2891 for ac_exec_ext in '' $ac_executable_extensions; do
2892 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2893 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2894 'mkdir (GNU coreutils) '* | \
2895 'mkdir (coreutils) '* | \
2896 'mkdir (fileutils) '4.1*)
2897 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2898 break 3;;
2899 esac
2900 done
2901 done
2902 done
2903 IFS=$as_save_IFS
2904
2905 fi
2906
2907 test -d ./--version && rmdir ./--version
2908 if test "${ac_cv_path_mkdir+set}" = set; then
2909 MKDIR_P="$ac_cv_path_mkdir -p"
2910 else
2911 # As a last resort, use the slow shell script. Don't cache a
2912 # value for MKDIR_P within a source directory, because that will
2913 # break other packages using the cache if that directory is
2914 # removed, or if the value is a relative name.
2915 MKDIR_P="$ac_install_sh -d"
2916 fi
2917 fi
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2919 $as_echo "$MKDIR_P" >&6; }
2920
2921 for ac_prog in gawk mawk nawk awk
2922 do
2923 # Extract the first word of "$ac_prog", so it can be a program name with args.
2924 set dummy $ac_prog; ac_word=$2
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2926 $as_echo_n "checking for $ac_word... " >&6; }
2927 if ${ac_cv_prog_AWK+:} false; then :
2928 $as_echo_n "(cached) " >&6
2929 else
2930 if test -n "$AWK"; then
2931 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2932 else
2933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934 for as_dir in $PATH
2935 do
2936 IFS=$as_save_IFS
2937 test -z "$as_dir" && as_dir=.
2938 for ac_exec_ext in '' $ac_executable_extensions; do
2939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2940 ac_cv_prog_AWK="$ac_prog"
2941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2942 break 2
2943 fi
2944 done
2945 done
2946 IFS=$as_save_IFS
2947
2948 fi
2949 fi
2950 AWK=$ac_cv_prog_AWK
2951 if test -n "$AWK"; then
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2953 $as_echo "$AWK" >&6; }
2954 else
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956 $as_echo "no" >&6; }
2957 fi
2958
2959
2960 test -n "$AWK" && break
2961 done
2962
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2964 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2965 set x ${MAKE-make}
2966 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2967 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2968 $as_echo_n "(cached) " >&6
2969 else
2970 cat >conftest.make <<\_ACEOF
2971 SHELL = /bin/sh
2972 all:
2973 @echo '@@@%%%=$(MAKE)=@@@%%%'
2974 _ACEOF
2975 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2976 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2977 *@@@%%%=?*=@@@%%%*)
2978 eval ac_cv_prog_make_${ac_make}_set=yes;;
2979 *)
2980 eval ac_cv_prog_make_${ac_make}_set=no;;
2981 esac
2982 rm -f conftest.make
2983 fi
2984 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2986 $as_echo "yes" >&6; }
2987 SET_MAKE=
2988 else
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2990 $as_echo "no" >&6; }
2991 SET_MAKE="MAKE=${MAKE-make}"
2992 fi
2993
2994 rm -rf .tst 2>/dev/null
2995 mkdir .tst 2>/dev/null
2996 if test -d .tst; then
2997 am__leading_dot=.
2998 else
2999 am__leading_dot=_
3000 fi
3001 rmdir .tst 2>/dev/null
3002
3003 # Check whether --enable-silent-rules was given.
3004 if test "${enable_silent_rules+set}" = set; then :
3005 enableval=$enable_silent_rules;
3006 fi
3007
3008 case $enable_silent_rules in # (((
3009 yes) AM_DEFAULT_VERBOSITY=0;;
3010 no) AM_DEFAULT_VERBOSITY=1;;
3011 *) AM_DEFAULT_VERBOSITY=1;;
3012 esac
3013 am_make=${MAKE-make}
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3015 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3016 if ${am_cv_make_support_nested_variables+:} false; then :
3017 $as_echo_n "(cached) " >&6
3018 else
3019 if $as_echo 'TRUE=$(BAR$(V))
3020 BAR0=false
3021 BAR1=true
3022 V=1
3023 am__doit:
3024 @$(TRUE)
3025 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3026 am_cv_make_support_nested_variables=yes
3027 else
3028 am_cv_make_support_nested_variables=no
3029 fi
3030 fi
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3032 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3033 if test $am_cv_make_support_nested_variables = yes; then
3034 AM_V='$(V)'
3035 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3036 else
3037 AM_V=$AM_DEFAULT_VERBOSITY
3038 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3039 fi
3040 AM_BACKSLASH='\'
3041
3042 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3043 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3044 # is not polluted with repeated "-I."
3045 am__isrc=' -I$(srcdir)'
3046 # test to see if srcdir already configured
3047 if test -f $srcdir/config.status; then
3048 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3049 fi
3050 fi
3051
3052 # test whether we have cygpath
3053 if test -z "$CYGPATH_W"; then
3054 if (cygpath --version) >/dev/null 2>/dev/null; then
3055 CYGPATH_W='cygpath -w'
3056 else
3057 CYGPATH_W=echo
3058 fi
3059 fi
3060
3061
3062 # Define the identity of the package.
3063 PACKAGE='libxcb'
3064 VERSION='1.11.1'
3065
3066
3067 cat >>confdefs.h <<_ACEOF
3068 #define PACKAGE "$PACKAGE"
3069 _ACEOF
3070
3071
3072 cat >>confdefs.h <<_ACEOF
3073 #define VERSION "$VERSION"
3074 _ACEOF
3075
3076 # Some tools Automake needs.
3077
3078 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3079
3080
3081 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3082
3083
3084 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3085
3086
3087 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3088
3089
3090 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3091
3092 # For better backward compatibility. To be removed once Automake 1.9.x
3093 # dies out for good. For more background, see:
3094 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3095 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3096 mkdir_p='$(MKDIR_P)'
3097
3098 # We need awk for the "check" target (and possibly the TAP driver). The
3099 # system "awk" is bad on some platforms.
3100 # Always define AMTAR for backward compatibility. Yes, it's still used
3101 # in the wild :-( We should find a proper way to deprecate it ...
3102 AMTAR='$${TAR-tar}'
3103
3104
3105 # We'll loop over all known methods to create a tar archive until one works.
3106 _am_tools='gnutar pax cpio none'
3107
3108 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3109
3110
3111
3112
3113
3114
3115 # POSIX will say in a future version that running "rm -f" with no argument
3116 # is OK; and we want to be able to make that assumption in our Makefile
3117 # recipes. So use an aggressive probe to check that the usage we want is
3118 # actually supported "in the wild" to an acceptable degree.
3119 # See automake bug#10828.
3120 # To make any issue more visible, cause the running configure to be aborted
3121 # by default if the 'rm' program in use doesn't match our expectations; the
3122 # user can still override this though.
3123 if rm -f && rm -fr && rm -rf; then : OK; else
3124 cat >&2 <<'END'
3125 Oops!
3126
3127 Your 'rm' program seems unable to run without file operands specified
3128 on the command line, even when the '-f' option is present. This is contrary
3129 to the behaviour of most rm programs out there, and not conforming with
3130 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3131
3132 Please tell bug-automake@gnu.org about your system, including the value
3133 of your $PATH and any error possibly output before this message. This
3134 can help us improve future automake versions.
3135
3136 END
3137 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3138 echo 'Configuration will proceed anyway, since you have set the' >&2
3139 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3140 echo >&2
3141 else
3142 cat >&2 <<'END'
3143 Aborting the configuration process, to ensure you take notice of the issue.
3144
3145 You can download and install GNU coreutils to get an 'rm' implementation
3146 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3147
3148 If you want to complete the configuration process using your problematic
3149 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3150 to "yes", and re-run configure.
3151
3152 END
3153 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3154 fi
3155 fi
3156
3157
3158
3159
3160
3161
3162
3163 if test -n "$PYTHON"; then
3164 # If the user set $PYTHON, use it and don't search something else.
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.6" >&5
3166 $as_echo_n "checking whether $PYTHON version is >= 2.6... " >&6; }
3167 prog="import sys
3168 # split strings by '.' and convert to numeric. Append some zeros
3169 # because we need at least 4 digits for the hex conversion.
3170 # map returns an iterator in Python 3.0 and a list in 2.x
3171 minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
3172 minverhex = 0
3173 # xrange is not present in Python 3.0 and range returns an iterator
3174 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
3175 sys.exit(sys.hexversion < minverhex)"
3176 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
3177 ($PYTHON -c "$prog") >&5 2>&5
3178 ac_status=$?
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); }; then :
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3182 $as_echo "yes" >&6; }
3183 else
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185 $as_echo "no" >&6; }
3186 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
3187 fi
3188 am_display_PYTHON=$PYTHON
3189 else
3190 # Otherwise, try each interpreter until we find one that satisfies
3191 # VERSION.
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.6" >&5
3193 $as_echo_n "checking for a Python interpreter with version >= 2.6... " >&6; }
3194 if ${am_cv_pathless_PYTHON+:} false; then :
3195 $as_echo_n "(cached) " >&6
3196 else
3197
3198 for am_cv_pathless_PYTHON in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
3199 test "$am_cv_pathless_PYTHON" = none && break
3200 prog="import sys
3201 # split strings by '.' and convert to numeric. Append some zeros
3202 # because we need at least 4 digits for the hex conversion.
3203 # map returns an iterator in Python 3.0 and a list in 2.x
3204 minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
3205 minverhex = 0
3206 # xrange is not present in Python 3.0 and range returns an iterator
3207 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
3208 sys.exit(sys.hexversion < minverhex)"
3209 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
3210 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
3211 ac_status=$?
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; then :
3214 break
3215 fi
3216 done
3217 fi
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
3219 $as_echo "$am_cv_pathless_PYTHON" >&6; }
3220 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
3221 if test "$am_cv_pathless_PYTHON" = none; then
3222 PYTHON=:
3223 else
3224 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
3225 set dummy $am_cv_pathless_PYTHON; ac_word=$2
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3227 $as_echo_n "checking for $ac_word... " >&6; }
3228 if ${ac_cv_path_PYTHON+:} false; then :
3229 $as_echo_n "(cached) " >&6
3230 else
3231 case $PYTHON in
3232 [\\/]* | ?:[\\/]*)
3233 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3234 ;;
3235 *)
3236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237 for as_dir in $PATH
3238 do
3239 IFS=$as_save_IFS
3240 test -z "$as_dir" && as_dir=.
3241 for ac_exec_ext in '' $ac_executable_extensions; do
3242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3243 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3245 break 2
3246 fi
3247 done
3248 done
3249 IFS=$as_save_IFS
3250
3251 ;;
3252 esac
3253 fi
3254 PYTHON=$ac_cv_path_PYTHON
3255 if test -n "$PYTHON"; then
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
3257 $as_echo "$PYTHON" >&6; }
3258 else
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3260 $as_echo "no" >&6; }
3261 fi
3262
3263
3264 fi
3265 am_display_PYTHON=$am_cv_pathless_PYTHON
3266 fi
3267
3268
3269 if test "$PYTHON" = :; then
3270 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
3271 else
3272
3273
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
3275 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
3276 if ${am_cv_python_version+:} false; then :
3277 $as_echo_n "(cached) " >&6
3278 else
3279 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
3280 fi
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
3282 $as_echo "$am_cv_python_version" >&6; }
3283 PYTHON_VERSION=$am_cv_python_version
3284
3285
3286
3287 PYTHON_PREFIX='${prefix}'
3288
3289 PYTHON_EXEC_PREFIX='${exec_prefix}'
3290
3291
3292
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
3294 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
3295 if ${am_cv_python_platform+:} false; then :
3296 $as_echo_n "(cached) " >&6
3297 else
3298 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
3299 fi
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
3301 $as_echo "$am_cv_python_platform" >&6; }
3302 PYTHON_PLATFORM=$am_cv_python_platform
3303
3304
3305 # Just factor out some code duplication.
3306 am_python_setup_sysconfig="\
3307 import sys
3308 # Prefer sysconfig over distutils.sysconfig, for better compatibility
3309 # with python 3.x. See automake bug#10227.
3310 try:
3311 import sysconfig
3312 except ImportError:
3313 can_use_sysconfig = 0
3314 else:
3315 can_use_sysconfig = 1
3316 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
3317 # <https://github.com/pypa/virtualenv/issues/118>
3318 try:
3319 from platform import python_implementation
3320 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
3321 can_use_sysconfig = 0
3322 except ImportError:
3323 pass"
3324
3325
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
3327 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
3328 if ${am_cv_python_pythondir+:} false; then :
3329 $as_echo_n "(cached) " >&6
3330 else
3331 if test "x$prefix" = xNONE
3332 then
3333 am_py_prefix=$ac_default_prefix
3334 else
3335 am_py_prefix=$prefix
3336 fi
3337 am_cv_python_pythondir=`$PYTHON -c "
3338 $am_python_setup_sysconfig
3339 if can_use_sysconfig:
3340 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
3341 else:
3342 from distutils import sysconfig
3343 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
3344 sys.stdout.write(sitedir)"`
3345 case $am_cv_python_pythondir in
3346 $am_py_prefix*)
3347 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
3348 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
3349 ;;
3350 *)
3351 case $am_py_prefix in
3352 /usr|/System*) ;;
3353 *)
3354 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
3355 ;;
3356 esac
3357 ;;
3358 esac
3359
3360 fi
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
3362 $as_echo "$am_cv_python_pythondir" >&6; }
3363 pythondir=$am_cv_python_pythondir
3364
3365
3366
3367 pkgpythondir=\${pythondir}/$PACKAGE
3368
3369
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
3371 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
3372 if ${am_cv_python_pyexecdir+:} false; then :
3373 $as_echo_n "(cached) " >&6
3374 else
3375 if test "x$exec_prefix" = xNONE
3376 then
3377 am_py_exec_prefix=$am_py_prefix
3378 else
3379 am_py_exec_prefix=$exec_prefix
3380 fi
3381 am_cv_python_pyexecdir=`$PYTHON -c "
3382 $am_python_setup_sysconfig
3383 if can_use_sysconfig:
3384 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
3385 else:
3386 from distutils import sysconfig
3387 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
3388 sys.stdout.write(sitedir)"`
3389 case $am_cv_python_pyexecdir in
3390 $am_py_exec_prefix*)
3391 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
3392 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
3393 ;;
3394 *)
3395 case $am_py_exec_prefix in
3396 /usr|/System*) ;;
3397 *)
3398 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
3399 ;;
3400 esac
3401 ;;
3402 esac
3403
3404 fi
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
3406 $as_echo "$am_cv_python_pyexecdir" >&6; }
3407 pyexecdir=$am_cv_python_pyexecdir
3408
3409
3410
3411 pkgpyexecdir=\${pyexecdir}/$PACKAGE
3412
3413
3414
3415 fi
3416
3417
3418
3419 # Set common system defines for POSIX extensions, such as _GNU_SOURCE
3420 # Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL)
3421 # to avoid autoconf errors.
3422 DEPDIR="${am__leading_dot}deps"
3423
3424 ac_config_commands="$ac_config_commands depfiles"
3425
3426
3427 am_make=${MAKE-make}
3428 cat > confinc << 'END'
3429 am__doit:
3430 @echo this is the am__doit target
3431 .PHONY: am__doit
3432 END
3433 # If we don't find an include directive, just comment out the code.
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3435 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3436 am__include="#"
3437 am__quote=
3438 _am_result=none
3439 # First try GNU make style include.
3440 echo "include confinc" > confmf
3441 # Ignore all kinds of additional output from 'make'.
3442 case `$am_make -s -f confmf 2> /dev/null` in #(
3443 *the\ am__doit\ target*)
3444 am__include=include
3445 am__quote=
3446 _am_result=GNU
3447 ;;
3448 esac
3449 # Now try BSD make style include.
3450 if test "$am__include" = "#"; then
3451 echo '.include "confinc"' > confmf
3452 case `$am_make -s -f confmf 2> /dev/null` in #(
3453 *the\ am__doit\ target*)
3454 am__include=.include
3455 am__quote="\""
3456 _am_result=BSD
3457 ;;
3458 esac
3459 fi
3460
3461
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3463 $as_echo "$_am_result" >&6; }
3464 rm -f confinc confmf
3465
3466 # Check whether --enable-dependency-tracking was given.
3467 if test "${enable_dependency_tracking+set}" = set; then :
3468 enableval=$enable_dependency_tracking;
3469 fi
3470
3471 if test "x$enable_dependency_tracking" != xno; then
3472 am_depcomp="$ac_aux_dir/depcomp"
3473 AMDEPBACKSLASH='\'
3474 am__nodep='_no'
3475 fi
3476 if test "x$enable_dependency_tracking" != xno; then
3477 AMDEP_TRUE=
3478 AMDEP_FALSE='#'
3479 else
3480 AMDEP_TRUE='#'
3481 AMDEP_FALSE=
3482 fi
3483
3484
3485 ac_ext=c
3486 ac_cpp='$CPP $CPPFLAGS'
3487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3490 if test -n "$ac_tool_prefix"; then
3491 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3492 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3494 $as_echo_n "checking for $ac_word... " >&6; }
3495 if ${ac_cv_prog_CC+:} false; then :
3496 $as_echo_n "(cached) " >&6
3497 else
3498 if test -n "$CC"; then
3499 ac_cv_prog_CC="$CC" # Let the user override the test.
3500 else
3501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502 for as_dir in $PATH
3503 do
3504 IFS=$as_save_IFS
3505 test -z "$as_dir" && as_dir=.
3506 for ac_exec_ext in '' $ac_executable_extensions; do
3507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3508 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3510 break 2
3511 fi
3512 done
3513 done
3514 IFS=$as_save_IFS
3515
3516 fi
3517 fi
3518 CC=$ac_cv_prog_CC
3519 if test -n "$CC"; then
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3521 $as_echo "$CC" >&6; }
3522 else
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3524 $as_echo "no" >&6; }
3525 fi
3526
3527
3528 fi
3529 if test -z "$ac_cv_prog_CC"; then
3530 ac_ct_CC=$CC
3531 # Extract the first word of "gcc", so it can be a program name with args.
3532 set dummy gcc; ac_word=$2
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3534 $as_echo_n "checking for $ac_word... " >&6; }
3535 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3536 $as_echo_n "(cached) " >&6
3537 else
3538 if test -n "$ac_ct_CC"; then
3539 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3540 else
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 for as_dir in $PATH
3543 do
3544 IFS=$as_save_IFS
3545 test -z "$as_dir" && as_dir=.
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3548 ac_cv_prog_ac_ct_CC="gcc"
3549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3550 break 2
3551 fi
3552 done
3553 done
3554 IFS=$as_save_IFS
3555
3556 fi
3557 fi
3558 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3559 if test -n "$ac_ct_CC"; then
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3561 $as_echo "$ac_ct_CC" >&6; }
3562 else
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564 $as_echo "no" >&6; }
3565 fi
3566
3567 if test "x$ac_ct_CC" = x; then
3568 CC=""
3569 else
3570 case $cross_compiling:$ac_tool_warned in
3571 yes:)
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3574 ac_tool_warned=yes ;;
3575 esac
3576 CC=$ac_ct_CC
3577 fi
3578 else
3579 CC="$ac_cv_prog_CC"
3580 fi
3581
3582 if test -z "$CC"; then
3583 if test -n "$ac_tool_prefix"; then
3584 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3585 set dummy ${ac_tool_prefix}cc; ac_word=$2
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3587 $as_echo_n "checking for $ac_word... " >&6; }
3588 if ${ac_cv_prog_CC+:} false; then :
3589 $as_echo_n "(cached) " >&6
3590 else
3591 if test -n "$CC"; then
3592 ac_cv_prog_CC="$CC" # Let the user override the test.
3593 else
3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 for as_dir in $PATH
3596 do
3597 IFS=$as_save_IFS
3598 test -z "$as_dir" && as_dir=.
3599 for ac_exec_ext in '' $ac_executable_extensions; do
3600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3601 ac_cv_prog_CC="${ac_tool_prefix}cc"
3602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3603 break 2
3604 fi
3605 done
3606 done
3607 IFS=$as_save_IFS
3608
3609 fi
3610 fi
3611 CC=$ac_cv_prog_CC
3612 if test -n "$CC"; then
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3614 $as_echo "$CC" >&6; }
3615 else
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617 $as_echo "no" >&6; }
3618 fi
3619
3620
3621 fi
3622 fi
3623 if test -z "$CC"; then
3624 # Extract the first word of "cc", so it can be a program name with args.
3625 set dummy cc; ac_word=$2
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3627 $as_echo_n "checking for $ac_word... " >&6; }
3628 if ${ac_cv_prog_CC+:} false; then :
3629 $as_echo_n "(cached) " >&6
3630 else
3631 if test -n "$CC"; then
3632 ac_cv_prog_CC="$CC" # Let the user override the test.
3633 else
3634 ac_prog_rejected=no
3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636 for as_dir in $PATH
3637 do
3638 IFS=$as_save_IFS
3639 test -z "$as_dir" && as_dir=.
3640 for ac_exec_ext in '' $ac_executable_extensions; do
3641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3642 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3643 ac_prog_rejected=yes
3644 continue
3645 fi
3646 ac_cv_prog_CC="cc"
3647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3648 break 2
3649 fi
3650 done
3651 done
3652 IFS=$as_save_IFS
3653
3654 if test $ac_prog_rejected = yes; then
3655 # We found a bogon in the path, so make sure we never use it.
3656 set dummy $ac_cv_prog_CC
3657 shift
3658 if test $# != 0; then
3659 # We chose a different compiler from the bogus one.
3660 # However, it has the same basename, so the bogon will be chosen
3661 # first if we set CC to just the basename; use the full file name.
3662 shift
3663 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3664 fi
3665 fi
3666 fi
3667 fi
3668 CC=$ac_cv_prog_CC
3669 if test -n "$CC"; then
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3671 $as_echo "$CC" >&6; }
3672 else
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674 $as_echo "no" >&6; }
3675 fi
3676
3677
3678 fi
3679 if test -z "$CC"; then
3680 if test -n "$ac_tool_prefix"; then
3681 for ac_prog in cl.exe
3682 do
3683 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3684 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3686 $as_echo_n "checking for $ac_word... " >&6; }
3687 if ${ac_cv_prog_CC+:} false; then :
3688 $as_echo_n "(cached) " >&6
3689 else
3690 if test -n "$CC"; then
3691 ac_cv_prog_CC="$CC" # Let the user override the test.
3692 else
3693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694 for as_dir in $PATH
3695 do
3696 IFS=$as_save_IFS
3697 test -z "$as_dir" && as_dir=.
3698 for ac_exec_ext in '' $ac_executable_extensions; do
3699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3700 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3702 break 2
3703 fi
3704 done
3705 done
3706 IFS=$as_save_IFS
3707
3708 fi
3709 fi
3710 CC=$ac_cv_prog_CC
3711 if test -n "$CC"; then
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3713 $as_echo "$CC" >&6; }
3714 else
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3716 $as_echo "no" >&6; }
3717 fi
3718
3719
3720 test -n "$CC" && break
3721 done
3722 fi
3723 if test -z "$CC"; then
3724 ac_ct_CC=$CC
3725 for ac_prog in cl.exe
3726 do
3727 # Extract the first word of "$ac_prog", so it can be a program name with args.
3728 set dummy $ac_prog; ac_word=$2
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3730 $as_echo_n "checking for $ac_word... " >&6; }
3731 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3732 $as_echo_n "(cached) " >&6
3733 else
3734 if test -n "$ac_ct_CC"; then
3735 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3736 else
3737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738 for as_dir in $PATH
3739 do
3740 IFS=$as_save_IFS
3741 test -z "$as_dir" && as_dir=.
3742 for ac_exec_ext in '' $ac_executable_extensions; do
3743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3744 ac_cv_prog_ac_ct_CC="$ac_prog"
3745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3746 break 2
3747 fi
3748 done
3749 done
3750 IFS=$as_save_IFS
3751
3752 fi
3753 fi
3754 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3755 if test -n "$ac_ct_CC"; then
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3757 $as_echo "$ac_ct_CC" >&6; }
3758 else
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3760 $as_echo "no" >&6; }
3761 fi
3762
3763
3764 test -n "$ac_ct_CC" && break
3765 done
3766
3767 if test "x$ac_ct_CC" = x; then
3768 CC=""
3769 else
3770 case $cross_compiling:$ac_tool_warned in
3771 yes:)
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3774 ac_tool_warned=yes ;;
3775 esac
3776 CC=$ac_ct_CC
3777 fi
3778 fi
3779
3780 fi
3781
3782
3783 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3785 as_fn_error $? "no acceptable C compiler found in \$PATH
3786 See \`config.log' for more details" "$LINENO" 5; }
3787
3788 # Provide some information about the compiler.
3789 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3790 set X $ac_compile
3791 ac_compiler=$2
3792 for ac_option in --version -v -V -qversion; do
3793 { { ac_try="$ac_compiler $ac_option >&5"
3794 case "(($ac_try" in
3795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796 *) ac_try_echo=$ac_try;;
3797 esac
3798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3799 $as_echo "$ac_try_echo"; } >&5
3800 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3801 ac_status=$?
3802 if test -s conftest.err; then
3803 sed '10a\
3804 ... rest of stderr output deleted ...
3805 10q' conftest.err >conftest.er1
3806 cat conftest.er1 >&5
3807 fi
3808 rm -f conftest.er1 conftest.err
3809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3810 test $ac_status = 0; }
3811 done
3812
3813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814 /* end confdefs.h. */
3815
3816 int
3817 main ()
3818 {
3819
3820 ;
3821 return 0;
3822 }
3823 _ACEOF
3824 ac_clean_files_save=$ac_clean_files
3825 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3826 # Try to create an executable without -o first, disregard a.out.
3827 # It will help us diagnose broken compilers, and finding out an intuition
3828 # of exeext.
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3830 $as_echo_n "checking whether the C compiler works... " >&6; }
3831 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3832
3833 # The possible output files:
3834 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3835
3836 ac_rmfiles=
3837 for ac_file in $ac_files
3838 do
3839 case $ac_file in
3840 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3841 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3842 esac
3843 done
3844 rm -f $ac_rmfiles
3845
3846 if { { ac_try="$ac_link_default"
3847 case "(($ac_try" in
3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849 *) ac_try_echo=$ac_try;;
3850 esac
3851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3852 $as_echo "$ac_try_echo"; } >&5
3853 (eval "$ac_link_default") 2>&5
3854 ac_status=$?
3855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3856 test $ac_status = 0; }; then :
3857 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3858 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3859 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3860 # so that the user can short-circuit this test for compilers unknown to
3861 # Autoconf.
3862 for ac_file in $ac_files ''
3863 do
3864 test -f "$ac_file" || continue
3865 case $ac_file in
3866 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3867 ;;
3868 [ab].out )
3869 # We found the default executable, but exeext='' is most
3870 # certainly right.
3871 break;;
3872 *.* )
3873 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3874 then :; else
3875 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3876 fi
3877 # We set ac_cv_exeext here because the later test for it is not
3878 # safe: cross compilers may not add the suffix if given an `-o'
3879 # argument, so we may need to know it at that point already.
3880 # Even if this section looks crufty: it has the advantage of
3881 # actually working.
3882 break;;
3883 * )
3884 break;;
3885 esac
3886 done
3887 test "$ac_cv_exeext" = no && ac_cv_exeext=
3888
3889 else
3890 ac_file=''
3891 fi
3892 if test -z "$ac_file"; then :
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3894 $as_echo "no" >&6; }
3895 $as_echo "$as_me: failed program was:" >&5
3896 sed 's/^/| /' conftest.$ac_ext >&5
3897
3898 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3900 as_fn_error 77 "C compiler cannot create executables
3901 See \`config.log' for more details" "$LINENO" 5; }
3902 else
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3904 $as_echo "yes" >&6; }
3905 fi
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3907 $as_echo_n "checking for C compiler default output file name... " >&6; }
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3909 $as_echo "$ac_file" >&6; }
3910 ac_exeext=$ac_cv_exeext
3911
3912 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3913 ac_clean_files=$ac_clean_files_save
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3915 $as_echo_n "checking for suffix of executables... " >&6; }
3916 if { { ac_try="$ac_link"
3917 case "(($ac_try" in
3918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3919 *) ac_try_echo=$ac_try;;
3920 esac
3921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3922 $as_echo "$ac_try_echo"; } >&5
3923 (eval "$ac_link") 2>&5
3924 ac_status=$?
3925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3926 test $ac_status = 0; }; then :
3927 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3928 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3929 # work properly (i.e., refer to `conftest.exe'), while it won't with
3930 # `rm'.
3931 for ac_file in conftest.exe conftest conftest.*; do
3932 test -f "$ac_file" || continue
3933 case $ac_file in
3934 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3935 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3936 break;;
3937 * ) break;;
3938 esac
3939 done
3940 else
3941 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3943 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3944 See \`config.log' for more details" "$LINENO" 5; }
3945 fi
3946 rm -f conftest conftest$ac_cv_exeext
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3948 $as_echo "$ac_cv_exeext" >&6; }
3949
3950 rm -f conftest.$ac_ext
3951 EXEEXT=$ac_cv_exeext
3952 ac_exeext=$EXEEXT
3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h. */
3955 #include <stdio.h>
3956 int
3957 main ()
3958 {
3959 FILE *f = fopen ("conftest.out", "w");
3960 return ferror (f) || fclose (f) != 0;
3961
3962 ;
3963 return 0;
3964 }
3965 _ACEOF
3966 ac_clean_files="$ac_clean_files conftest.out"
3967 # Check that the compiler produces executables we can run. If not, either
3968 # the compiler is broken, or we cross compile.
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3970 $as_echo_n "checking whether we are cross compiling... " >&6; }
3971 if test "$cross_compiling" != yes; then
3972 { { ac_try="$ac_link"
3973 case "(($ac_try" in
3974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975 *) ac_try_echo=$ac_try;;
3976 esac
3977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3978 $as_echo "$ac_try_echo"; } >&5
3979 (eval "$ac_link") 2>&5
3980 ac_status=$?
3981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3982 test $ac_status = 0; }
3983 if { ac_try='./conftest$ac_cv_exeext'
3984 { { case "(($ac_try" in
3985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3986 *) ac_try_echo=$ac_try;;
3987 esac
3988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3989 $as_echo "$ac_try_echo"; } >&5
3990 (eval "$ac_try") 2>&5
3991 ac_status=$?
3992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3993 test $ac_status = 0; }; }; then
3994 cross_compiling=no
3995 else
3996 if test "$cross_compiling" = maybe; then
3997 cross_compiling=yes
3998 else
3999 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4000 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4001 as_fn_error $? "cannot run C compiled programs.
4002 If you meant to cross compile, use \`--host'.
4003 See \`config.log' for more details" "$LINENO" 5; }
4004 fi
4005 fi
4006 fi
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4008 $as_echo "$cross_compiling" >&6; }
4009
4010 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4011 ac_clean_files=$ac_clean_files_save
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4013 $as_echo_n "checking for suffix of object files... " >&6; }
4014 if ${ac_cv_objext+:} false; then :
4015 $as_echo_n "(cached) " >&6
4016 else
4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h. */
4019
4020 int
4021 main ()
4022 {
4023
4024 ;
4025 return 0;
4026 }
4027 _ACEOF
4028 rm -f conftest.o conftest.obj
4029 if { { ac_try="$ac_compile"
4030 case "(($ac_try" in
4031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032 *) ac_try_echo=$ac_try;;
4033 esac
4034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4035 $as_echo "$ac_try_echo"; } >&5
4036 (eval "$ac_compile") 2>&5
4037 ac_status=$?
4038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4039 test $ac_status = 0; }; then :
4040 for ac_file in conftest.o conftest.obj conftest.*; do
4041 test -f "$ac_file" || continue;
4042 case $ac_file in
4043 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4044 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4045 break;;
4046 esac
4047 done
4048 else
4049 $as_echo "$as_me: failed program was:" >&5
4050 sed 's/^/| /' conftest.$ac_ext >&5
4051
4052 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4054 as_fn_error $? "cannot compute suffix of object files: cannot compile
4055 See \`config.log' for more details" "$LINENO" 5; }
4056 fi
4057 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4058 fi
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4060 $as_echo "$ac_cv_objext" >&6; }
4061 OBJEXT=$ac_cv_objext
4062 ac_objext=$OBJEXT
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4064 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4065 if ${ac_cv_c_compiler_gnu+:} false; then :
4066 $as_echo_n "(cached) " >&6
4067 else
4068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069 /* end confdefs.h. */
4070
4071 int
4072 main ()
4073 {
4074 #ifndef __GNUC__
4075 choke me
4076 #endif
4077
4078 ;
4079 return 0;
4080 }
4081 _ACEOF
4082 if ac_fn_c_try_compile "$LINENO"; then :
4083 ac_compiler_gnu=yes
4084 else
4085 ac_compiler_gnu=no
4086 fi
4087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4088 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4089
4090 fi
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4092 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4093 if test $ac_compiler_gnu = yes; then
4094 GCC=yes
4095 else
4096 GCC=
4097 fi
4098 ac_test_CFLAGS=${CFLAGS+set}
4099 ac_save_CFLAGS=$CFLAGS
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4101 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4102 if ${ac_cv_prog_cc_g+:} false; then :
4103 $as_echo_n "(cached) " >&6
4104 else
4105 ac_save_c_werror_flag=$ac_c_werror_flag
4106 ac_c_werror_flag=yes
4107 ac_cv_prog_cc_g=no
4108 CFLAGS="-g"
4109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4110 /* end confdefs.h. */
4111
4112 int
4113 main ()
4114 {
4115
4116 ;
4117 return 0;
4118 }
4119 _ACEOF
4120 if ac_fn_c_try_compile "$LINENO"; then :
4121 ac_cv_prog_cc_g=yes
4122 else
4123 CFLAGS=""
4124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125 /* end confdefs.h. */
4126
4127 int
4128 main ()
4129 {
4130
4131 ;
4132 return 0;
4133 }
4134 _ACEOF
4135 if ac_fn_c_try_compile "$LINENO"; then :
4136
4137 else
4138 ac_c_werror_flag=$ac_save_c_werror_flag
4139 CFLAGS="-g"
4140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4141 /* end confdefs.h. */
4142
4143 int
4144 main ()
4145 {
4146
4147 ;
4148 return 0;
4149 }
4150 _ACEOF
4151 if ac_fn_c_try_compile "$LINENO"; then :
4152 ac_cv_prog_cc_g=yes
4153 fi
4154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4155 fi
4156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4157 fi
4158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4159 ac_c_werror_flag=$ac_save_c_werror_flag
4160 fi
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4162 $as_echo "$ac_cv_prog_cc_g" >&6; }
4163 if test "$ac_test_CFLAGS" = set; then
4164 CFLAGS=$ac_save_CFLAGS
4165 elif test $ac_cv_prog_cc_g = yes; then
4166 if test "$GCC" = yes; then
4167 CFLAGS="-g -O2"
4168 else
4169 CFLAGS="-g"
4170 fi
4171 else
4172 if test "$GCC" = yes; then
4173 CFLAGS="-O2"
4174 else
4175 CFLAGS=
4176 fi
4177 fi
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4179 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4180 if ${ac_cv_prog_cc_c89+:} false; then :
4181 $as_echo_n "(cached) " >&6
4182 else
4183 ac_cv_prog_cc_c89=no
4184 ac_save_CC=$CC
4185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186 /* end confdefs.h. */
4187 #include <stdarg.h>
4188 #include <stdio.h>
4189 struct stat;
4190 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4191 struct buf { int x; };
4192 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4193 static char *e (p, i)
4194 char **p;
4195 int i;
4196 {
4197 return p[i];
4198 }
4199 static char *f (char * (*g) (char **, int), char **p, ...)
4200 {
4201 char *s;
4202 va_list v;
4203 va_start (v,p);
4204 s = g (p, va_arg (v,int));
4205 va_end (v);
4206 return s;
4207 }
4208
4209 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4210 function prototypes and stuff, but not '\xHH' hex character constants.
4211 These don't provoke an error unfortunately, instead are silently treated
4212 as 'x'. The following induces an error, until -std is added to get
4213 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4214 array size at least. It's necessary to write '\x00'==0 to get something
4215 that's true only with -std. */
4216 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4217
4218 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4219 inside strings and character constants. */
4220 #define FOO(x) 'x'
4221 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4222
4223 int test (int i, double x);
4224 struct s1 {int (*f) (int a);};
4225 struct s2 {int (*f) (double a);};
4226 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4227 int argc;
4228 char **argv;
4229 int
4230 main ()
4231 {
4232 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4233 ;
4234 return 0;
4235 }
4236 _ACEOF
4237 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4238 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4239 do
4240 CC="$ac_save_CC $ac_arg"
4241 if ac_fn_c_try_compile "$LINENO"; then :
4242 ac_cv_prog_cc_c89=$ac_arg
4243 fi
4244 rm -f core conftest.err conftest.$ac_objext
4245 test "x$ac_cv_prog_cc_c89" != "xno" && break
4246 done
4247 rm -f conftest.$ac_ext
4248 CC=$ac_save_CC
4249
4250 fi
4251 # AC_CACHE_VAL
4252 case "x$ac_cv_prog_cc_c89" in
4253 x)
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4255 $as_echo "none needed" >&6; } ;;
4256 xno)
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4258 $as_echo "unsupported" >&6; } ;;
4259 *)
4260 CC="$CC $ac_cv_prog_cc_c89"
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4262 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4263 esac
4264 if test "x$ac_cv_prog_cc_c89" != xno; then :
4265
4266 fi
4267
4268 ac_ext=c
4269 ac_cpp='$CPP $CPPFLAGS'
4270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4273
4274 ac_ext=c
4275 ac_cpp='$CPP $CPPFLAGS'
4276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4280 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4281 if ${am_cv_prog_cc_c_o+:} false; then :
4282 $as_echo_n "(cached) " >&6
4283 else
4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285 /* end confdefs.h. */
4286
4287 int
4288 main ()
4289 {
4290
4291 ;
4292 return 0;
4293 }
4294 _ACEOF
4295 # Make sure it works both with $CC and with simple cc.
4296 # Following AC_PROG_CC_C_O, we do the test twice because some
4297 # compilers refuse to overwrite an existing .o file with -o,
4298 # though they will create one.
4299 am_cv_prog_cc_c_o=yes
4300 for am_i in 1 2; do
4301 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4302 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4303 ac_status=$?
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); } \
4306 && test -f conftest2.$ac_objext; then
4307 : OK
4308 else
4309 am_cv_prog_cc_c_o=no
4310 break
4311 fi
4312 done
4313 rm -f core conftest*
4314 unset am_i
4315 fi
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4317 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4318 if test "$am_cv_prog_cc_c_o" != yes; then
4319 # Losing compiler, so override with the script.
4320 # FIXME: It is wrong to rewrite CC.
4321 # But if we don't then we get into trouble of one sort or another.
4322 # A longer-term fix would be to have automake use am__CC in this case,
4323 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4324 CC="$am_aux_dir/compile $CC"
4325 fi
4326 ac_ext=c
4327 ac_cpp='$CPP $CPPFLAGS'
4328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4331
4332
4333 depcc="$CC" am_compiler_list=
4334
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4336 $as_echo_n "checking dependency style of $depcc... " >&6; }
4337 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4338 $as_echo_n "(cached) " >&6
4339 else
4340 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4341 # We make a subdir and do the tests there. Otherwise we can end up
4342 # making bogus files that we don't know about and never remove. For
4343 # instance it was reported that on HP-UX the gcc test will end up
4344 # making a dummy file named 'D' -- because '-MD' means "put the output
4345 # in D".
4346 rm -rf conftest.dir
4347 mkdir conftest.dir
4348 # Copy depcomp to subdir because otherwise we won't find it if we're
4349 # using a relative directory.
4350 cp "$am_depcomp" conftest.dir
4351 cd conftest.dir
4352 # We will build objects and dependencies in a subdirectory because
4353 # it helps to detect inapplicable dependency modes. For instance
4354 # both Tru64's cc and ICC support -MD to output dependencies as a
4355 # side effect of compilation, but ICC will put the dependencies in
4356 # the current directory while Tru64 will put them in the object
4357 # directory.
4358 mkdir sub
4359
4360 am_cv_CC_dependencies_compiler_type=none
4361 if test "$am_compiler_list" = ""; then
4362 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4363 fi
4364 am__universal=false
4365 case " $depcc " in #(
4366 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4367 esac
4368
4369 for depmode in $am_compiler_list; do
4370 # Setup a source with many dependencies, because some compilers
4371 # like to wrap large dependency lists on column 80 (with \), and
4372 # we should not choose a depcomp mode which is confused by this.
4373 #
4374 # We need to recreate these files for each test, as the compiler may
4375 # overwrite some of them when testing with obscure command lines.
4376 # This happens at least with the AIX C compiler.
4377 : > sub/conftest.c
4378 for i in 1 2 3 4 5 6; do
4379 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4380 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4381 # Solaris 10 /bin/sh.
4382 echo '/* dummy */' > sub/conftst$i.h
4383 done
4384 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4385
4386 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4387 # mode. It turns out that the SunPro C++ compiler does not properly
4388 # handle '-M -o', and we need to detect this. Also, some Intel
4389 # versions had trouble with output in subdirs.
4390 am__obj=sub/conftest.${OBJEXT-o}
4391 am__minus_obj="-o $am__obj"
4392 case $depmode in
4393 gcc)
4394 # This depmode causes a compiler race in universal mode.
4395 test "$am__universal" = false || continue
4396 ;;
4397 nosideeffect)
4398 # After this tag, mechanisms are not by side-effect, so they'll
4399 # only be used when explicitly requested.
4400 if test "x$enable_dependency_tracking" = xyes; then
4401 continue
4402 else
4403 break
4404 fi
4405 ;;
4406 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4407 # This compiler won't grok '-c -o', but also, the minuso test has
4408 # not run yet. These depmodes are late enough in the game, and
4409 # so weak that their functioning should not be impacted.
4410 am__obj=conftest.${OBJEXT-o}
4411 am__minus_obj=
4412 ;;
4413 none) break ;;
4414 esac
4415 if depmode=$depmode \
4416 source=sub/conftest.c object=$am__obj \
4417 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4418 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4419 >/dev/null 2>conftest.err &&
4420 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4421 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4422 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4423 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4424 # icc doesn't choke on unknown options, it will just issue warnings
4425 # or remarks (even with -Werror). So we grep stderr for any message
4426 # that says an option was ignored or not supported.
4427 # When given -MP, icc 7.0 and 7.1 complain thusly:
4428 # icc: Command line warning: ignoring option '-M'; no argument required
4429 # The diagnosis changed in icc 8.0:
4430 # icc: Command line remark: option '-MP' not supported
4431 if (grep 'ignoring option' conftest.err ||
4432 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4433 am_cv_CC_dependencies_compiler_type=$depmode
4434 break
4435 fi
4436 fi
4437 done
4438
4439 cd ..
4440 rm -rf conftest.dir
4441 else
4442 am_cv_CC_dependencies_compiler_type=none
4443 fi
4444
4445 fi
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4447 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4448 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4449
4450 if
4451 test "x$enable_dependency_tracking" != xno \
4452 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4453 am__fastdepCC_TRUE=
4454 am__fastdepCC_FALSE='#'
4455 else
4456 am__fastdepCC_TRUE='#'
4457 am__fastdepCC_FALSE=
4458 fi
4459
4460
4461
4462 ac_ext=c
4463 ac_cpp='$CPP $CPPFLAGS'
4464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4468 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4469 # On Suns, sometimes $CPP names a directory.
4470 if test -n "$CPP" && test -d "$CPP"; then
4471 CPP=
4472 fi
4473 if test -z "$CPP"; then
4474 if ${ac_cv_prog_CPP+:} false; then :
4475 $as_echo_n "(cached) " >&6
4476 else
4477 # Double quotes because CPP needs to be expanded
4478 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4479 do
4480 ac_preproc_ok=false
4481 for ac_c_preproc_warn_flag in '' yes
4482 do
4483 # Use a header file that comes with gcc, so configuring glibc
4484 # with a fresh cross-compiler works.
4485 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4486 # <limits.h> exists even on freestanding compilers.
4487 # On the NeXT, cc -E runs the code through the compiler's parser,
4488 # not just through cpp. "Syntax error" is here to catch this case.
4489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4490 /* end confdefs.h. */
4491 #ifdef __STDC__
4492 # include <limits.h>
4493 #else
4494 # include <assert.h>
4495 #endif
4496 Syntax error
4497 _ACEOF
4498 if ac_fn_c_try_cpp "$LINENO"; then :
4499
4500 else
4501 # Broken: fails on valid input.
4502 continue
4503 fi
4504 rm -f conftest.err conftest.i conftest.$ac_ext
4505
4506 # OK, works on sane cases. Now check whether nonexistent headers
4507 # can be detected and how.
4508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h. */
4510 #include <ac_nonexistent.h>
4511 _ACEOF
4512 if ac_fn_c_try_cpp "$LINENO"; then :
4513 # Broken: success on invalid input.
4514 continue
4515 else
4516 # Passes both tests.
4517 ac_preproc_ok=:
4518 break
4519 fi
4520 rm -f conftest.err conftest.i conftest.$ac_ext
4521
4522 done
4523 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4524 rm -f conftest.i conftest.err conftest.$ac_ext
4525 if $ac_preproc_ok; then :
4526 break
4527 fi
4528
4529 done
4530 ac_cv_prog_CPP=$CPP
4531
4532 fi
4533 CPP=$ac_cv_prog_CPP
4534 else
4535 ac_cv_prog_CPP=$CPP
4536 fi
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4538 $as_echo "$CPP" >&6; }
4539 ac_preproc_ok=false
4540 for ac_c_preproc_warn_flag in '' yes
4541 do
4542 # Use a header file that comes with gcc, so configuring glibc
4543 # with a fresh cross-compiler works.
4544 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4545 # <limits.h> exists even on freestanding compilers.
4546 # On the NeXT, cc -E runs the code through the compiler's parser,
4547 # not just through cpp. "Syntax error" is here to catch this case.
4548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549 /* end confdefs.h. */
4550 #ifdef __STDC__
4551 # include <limits.h>
4552 #else
4553 # include <assert.h>
4554 #endif
4555 Syntax error
4556 _ACEOF
4557 if ac_fn_c_try_cpp "$LINENO"; then :
4558
4559 else
4560 # Broken: fails on valid input.
4561 continue
4562 fi
4563 rm -f conftest.err conftest.i conftest.$ac_ext
4564
4565 # OK, works on sane cases. Now check whether nonexistent headers
4566 # can be detected and how.
4567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4568 /* end confdefs.h. */
4569 #include <ac_nonexistent.h>
4570 _ACEOF
4571 if ac_fn_c_try_cpp "$LINENO"; then :
4572 # Broken: success on invalid input.
4573 continue
4574 else
4575 # Passes both tests.
4576 ac_preproc_ok=:
4577 break
4578 fi
4579 rm -f conftest.err conftest.i conftest.$ac_ext
4580
4581 done
4582 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4583 rm -f conftest.i conftest.err conftest.$ac_ext
4584 if $ac_preproc_ok; then :
4585
4586 else
4587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4589 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4590 See \`config.log' for more details" "$LINENO" 5; }
4591 fi
4592
4593 ac_ext=c
4594 ac_cpp='$CPP $CPPFLAGS'
4595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4598
4599
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4601 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4602 if ${ac_cv_path_GREP+:} false; then :
4603 $as_echo_n "(cached) " >&6
4604 else
4605 if test -z "$GREP"; then
4606 ac_path_GREP_found=false
4607 # Loop through the user's path and test for each of PROGNAME-LIST
4608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4610 do
4611 IFS=$as_save_IFS
4612 test -z "$as_dir" && as_dir=.
4613 for ac_prog in grep ggrep; do
4614 for ac_exec_ext in '' $ac_executable_extensions; do
4615 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4616 as_fn_executable_p "$ac_path_GREP" || continue
4617 # Check for GNU ac_path_GREP and select it if it is found.
4618 # Check for GNU $ac_path_GREP
4619 case `"$ac_path_GREP" --version 2>&1` in
4620 *GNU*)
4621 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4622 *)
4623 ac_count=0
4624 $as_echo_n 0123456789 >"conftest.in"
4625 while :
4626 do
4627 cat "conftest.in" "conftest.in" >"conftest.tmp"
4628 mv "conftest.tmp" "conftest.in"
4629 cp "conftest.in" "conftest.nl"
4630 $as_echo 'GREP' >> "conftest.nl"
4631 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4632 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4633 as_fn_arith $ac_count + 1 && ac_count=$as_val
4634 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4635 # Best one so far, save it but keep looking for a better one
4636 ac_cv_path_GREP="$ac_path_GREP"
4637 ac_path_GREP_max=$ac_count
4638 fi
4639 # 10*(2^10) chars as input seems more than enough
4640 test $ac_count -gt 10 && break
4641 done
4642 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4643 esac
4644
4645 $ac_path_GREP_found && break 3
4646 done
4647 done
4648 done
4649 IFS=$as_save_IFS
4650 if test -z "$ac_cv_path_GREP"; then
4651 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4652 fi
4653 else
4654 ac_cv_path_GREP=$GREP
4655 fi
4656
4657 fi
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4659 $as_echo "$ac_cv_path_GREP" >&6; }
4660 GREP="$ac_cv_path_GREP"
4661
4662
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4664 $as_echo_n "checking for egrep... " >&6; }
4665 if ${ac_cv_path_EGREP+:} false; then :
4666 $as_echo_n "(cached) " >&6
4667 else
4668 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4669 then ac_cv_path_EGREP="$GREP -E"
4670 else
4671 if test -z "$EGREP"; then
4672 ac_path_EGREP_found=false
4673 # Loop through the user's path and test for each of PROGNAME-LIST
4674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4676 do
4677 IFS=$as_save_IFS
4678 test -z "$as_dir" && as_dir=.
4679 for ac_prog in egrep; do
4680 for ac_exec_ext in '' $ac_executable_extensions; do
4681 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4682 as_fn_executable_p "$ac_path_EGREP" || continue
4683 # Check for GNU ac_path_EGREP and select it if it is found.
4684 # Check for GNU $ac_path_EGREP
4685 case `"$ac_path_EGREP" --version 2>&1` in
4686 *GNU*)
4687 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4688 *)
4689 ac_count=0
4690 $as_echo_n 0123456789 >"conftest.in"
4691 while :
4692 do
4693 cat "conftest.in" "conftest.in" >"conftest.tmp"
4694 mv "conftest.tmp" "conftest.in"
4695 cp "conftest.in" "conftest.nl"
4696 $as_echo 'EGREP' >> "conftest.nl"
4697 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4698 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4699 as_fn_arith $ac_count + 1 && ac_count=$as_val
4700 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4701 # Best one so far, save it but keep looking for a better one
4702 ac_cv_path_EGREP="$ac_path_EGREP"
4703 ac_path_EGREP_max=$ac_count
4704 fi
4705 # 10*(2^10) chars as input seems more than enough
4706 test $ac_count -gt 10 && break
4707 done
4708 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4709 esac
4710
4711 $ac_path_EGREP_found && break 3
4712 done
4713 done
4714 done
4715 IFS=$as_save_IFS
4716 if test -z "$ac_cv_path_EGREP"; then
4717 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4718 fi
4719 else
4720 ac_cv_path_EGREP=$EGREP
4721 fi
4722
4723 fi
4724 fi
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4726 $as_echo "$ac_cv_path_EGREP" >&6; }
4727 EGREP="$ac_cv_path_EGREP"
4728
4729
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4731 $as_echo_n "checking for ANSI C header files... " >&6; }
4732 if ${ac_cv_header_stdc+:} false; then :
4733 $as_echo_n "(cached) " >&6
4734 else
4735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4736 /* end confdefs.h. */
4737 #include <stdlib.h>
4738 #include <stdarg.h>
4739 #include <string.h>
4740 #include <float.h>
4741
4742 int
4743 main ()
4744 {
4745
4746 ;
4747 return 0;
4748 }
4749 _ACEOF
4750 if ac_fn_c_try_compile "$LINENO"; then :
4751 ac_cv_header_stdc=yes
4752 else
4753 ac_cv_header_stdc=no
4754 fi
4755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4756
4757 if test $ac_cv_header_stdc = yes; then
4758 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h. */
4761 #include <string.h>
4762
4763 _ACEOF
4764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4765 $EGREP "memchr" >/dev/null 2>&1; then :
4766
4767 else
4768 ac_cv_header_stdc=no
4769 fi
4770 rm -f conftest*
4771
4772 fi
4773
4774 if test $ac_cv_header_stdc = yes; then
4775 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777 /* end confdefs.h. */
4778 #include <stdlib.h>
4779
4780 _ACEOF
4781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4782 $EGREP "free" >/dev/null 2>&1; then :
4783
4784 else
4785 ac_cv_header_stdc=no
4786 fi
4787 rm -f conftest*
4788
4789 fi
4790
4791 if test $ac_cv_header_stdc = yes; then
4792 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4793 if test "$cross_compiling" = yes; then :
4794 :
4795 else
4796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4797 /* end confdefs.h. */
4798 #include <ctype.h>
4799 #include <stdlib.h>
4800 #if ((' ' & 0x0FF) == 0x020)
4801 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4802 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4803 #else
4804 # define ISLOWER(c) \
4805 (('a' <= (c) && (c) <= 'i') \
4806 || ('j' <= (c) && (c) <= 'r') \
4807 || ('s' <= (c) && (c) <= 'z'))
4808 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4809 #endif
4810
4811 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4812 int
4813 main ()
4814 {
4815 int i;
4816 for (i = 0; i < 256; i++)
4817 if (XOR (islower (i), ISLOWER (i))
4818 || toupper (i) != TOUPPER (i))
4819 return 2;
4820 return 0;
4821 }
4822 _ACEOF
4823 if ac_fn_c_try_run "$LINENO"; then :
4824
4825 else
4826 ac_cv_header_stdc=no
4827 fi
4828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4829 conftest.$ac_objext conftest.beam conftest.$ac_ext
4830 fi
4831
4832 fi
4833 fi
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4835 $as_echo "$ac_cv_header_stdc" >&6; }
4836 if test $ac_cv_header_stdc = yes; then
4837
4838 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4839
4840 fi
4841
4842 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4843 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4844 inttypes.h stdint.h unistd.h
4845 do :
4846 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4847 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4848 "
4849 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4850 cat >>confdefs.h <<_ACEOF
4851 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4852 _ACEOF
4853
4854 fi
4855
4856 done
4857
4858
4859
4860 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4861 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4862 MINIX=yes
4863 else
4864 MINIX=
4865 fi
4866
4867
4868 if test "$MINIX" = yes; then
4869
4870 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4871
4872
4873 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4874
4875
4876 $as_echo "#define _MINIX 1" >>confdefs.h
4877
4878 fi
4879
4880
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4882 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4883 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4884 $as_echo_n "(cached) " >&6
4885 else
4886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4887 /* end confdefs.h. */
4888
4889 # define __EXTENSIONS__ 1
4890 $ac_includes_default
4891 int
4892 main ()
4893 {
4894
4895 ;
4896 return 0;
4897 }
4898 _ACEOF
4899 if ac_fn_c_try_compile "$LINENO"; then :
4900 ac_cv_safe_to_define___extensions__=yes
4901 else
4902 ac_cv_safe_to_define___extensions__=no
4903 fi
4904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4905 fi
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4907 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4908 test $ac_cv_safe_to_define___extensions__ = yes &&
4909 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4910
4911 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4912
4913 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4914
4915 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4916
4917 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4918
4919
4920
4921 # Initialize libtool
4922
4923 case `pwd` in
4924 *\ * | *\ *)
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4926 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4927 esac
4928
4929
4930
4931 macro_version='2.4.2'
4932 macro_revision='1.3337'
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946 ltmain="$ac_aux_dir/ltmain.sh"
4947
4948 # Make sure we can run config.sub.
4949 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4950 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4951
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4953 $as_echo_n "checking build system type... " >&6; }
4954 if ${ac_cv_build+:} false; then :
4955 $as_echo_n "(cached) " >&6
4956 else
4957 ac_build_alias=$build_alias
4958 test "x$ac_build_alias" = x &&
4959 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4960 test "x$ac_build_alias" = x &&
4961 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4962 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4963 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4964
4965 fi
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4967 $as_echo "$ac_cv_build" >&6; }
4968 case $ac_cv_build in
4969 *-*-*) ;;
4970 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4971 esac
4972 build=$ac_cv_build
4973 ac_save_IFS=$IFS; IFS='-'
4974 set x $ac_cv_build
4975 shift
4976 build_cpu=$1
4977 build_vendor=$2
4978 shift; shift
4979 # Remember, the first character of IFS is used to create $*,
4980 # except with old shells:
4981 build_os=$*
4982 IFS=$ac_save_IFS
4983 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4984
4985
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4987 $as_echo_n "checking host system type... " >&6; }
4988 if ${ac_cv_host+:} false; then :
4989 $as_echo_n "(cached) " >&6
4990 else
4991 if test "x$host_alias" = x; then
4992 ac_cv_host=$ac_cv_build
4993 else
4994 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4995 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4996 fi
4997
4998 fi
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5000 $as_echo "$ac_cv_host" >&6; }
5001 case $ac_cv_host in
5002 *-*-*) ;;
5003 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5004 esac
5005 host=$ac_cv_host
5006 ac_save_IFS=$IFS; IFS='-'
5007 set x $ac_cv_host
5008 shift
5009 host_cpu=$1
5010 host_vendor=$2
5011 shift; shift
5012 # Remember, the first character of IFS is used to create $*,
5013 # except with old shells:
5014 host_os=$*
5015 IFS=$ac_save_IFS
5016 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5017
5018
5019 # Backslashify metacharacters that are still active within
5020 # double-quoted strings.
5021 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5022
5023 # Same as above, but do not quote variable references.
5024 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5025
5026 # Sed substitution to delay expansion of an escaped shell variable in a
5027 # double_quote_subst'ed string.
5028 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5029
5030 # Sed substitution to delay expansion of an escaped single quote.
5031 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5032
5033 # Sed substitution to avoid accidental globbing in evaled expressions
5034 no_glob_subst='s/\*/\\\*/g'
5035
5036 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5037 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5038 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5039
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5041 $as_echo_n "checking how to print strings... " >&6; }
5042 # Test print first, because it will be a builtin if present.
5043 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5044 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5045 ECHO='print -r --'
5046 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5047 ECHO='printf %s\n'
5048 else
5049 # Use this function as a fallback that always works.
5050 func_fallback_echo ()
5051 {
5052 eval 'cat <<_LTECHO_EOF
5053 $1
5054 _LTECHO_EOF'
5055 }
5056 ECHO='func_fallback_echo'
5057 fi
5058
5059 # func_echo_all arg...
5060 # Invoke $ECHO with all args, space-separated.
5061 func_echo_all ()
5062 {
5063 $ECHO ""
5064 }
5065
5066 case "$ECHO" in
5067 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5068 $as_echo "printf" >&6; } ;;
5069 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5070 $as_echo "print -r" >&6; } ;;
5071 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5072 $as_echo "cat" >&6; } ;;
5073 esac
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5089 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5090 if ${ac_cv_path_SED+:} false; then :
5091 $as_echo_n "(cached) " >&6
5092 else
5093 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5094 for ac_i in 1 2 3 4 5 6 7; do
5095 ac_script="$ac_script$as_nl$ac_script"
5096 done
5097 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5098 { ac_script=; unset ac_script;}
5099 if test -z "$SED"; then
5100 ac_path_SED_found=false
5101 # Loop through the user's path and test for each of PROGNAME-LIST
5102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5103 for as_dir in $PATH
5104 do
5105 IFS=$as_save_IFS
5106 test -z "$as_dir" && as_dir=.
5107 for ac_prog in sed gsed; do
5108 for ac_exec_ext in '' $ac_executable_extensions; do
5109 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5110 as_fn_executable_p "$ac_path_SED" || continue
5111 # Check for GNU ac_path_SED and select it if it is found.
5112 # Check for GNU $ac_path_SED
5113 case `"$ac_path_SED" --version 2>&1` in
5114 *GNU*)
5115 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5116 *)
5117 ac_count=0
5118 $as_echo_n 0123456789 >"conftest.in"
5119 while :
5120 do
5121 cat "conftest.in" "conftest.in" >"conftest.tmp"
5122 mv "conftest.tmp" "conftest.in"
5123 cp "conftest.in" "conftest.nl"
5124 $as_echo '' >> "conftest.nl"
5125 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5126 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5127 as_fn_arith $ac_count + 1 && ac_count=$as_val
5128 if test $ac_count -gt ${ac_path_SED_max-0}; then
5129 # Best one so far, save it but keep looking for a better one
5130 ac_cv_path_SED="$ac_path_SED"
5131 ac_path_SED_max=$ac_count
5132 fi
5133 # 10*(2^10) chars as input seems more than enough
5134 test $ac_count -gt 10 && break
5135 done
5136 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5137 esac
5138
5139 $ac_path_SED_found && break 3
5140 done
5141 done
5142 done
5143 IFS=$as_save_IFS
5144 if test -z "$ac_cv_path_SED"; then
5145 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5146 fi
5147 else
5148 ac_cv_path_SED=$SED
5149 fi
5150
5151 fi
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5153 $as_echo "$ac_cv_path_SED" >&6; }
5154 SED="$ac_cv_path_SED"
5155 rm -f conftest.sed
5156
5157 test -z "$SED" && SED=sed
5158 Xsed="$SED -e 1s/^X//"
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5171 $as_echo_n "checking for fgrep... " >&6; }
5172 if ${ac_cv_path_FGREP+:} false; then :
5173 $as_echo_n "(cached) " >&6
5174 else
5175 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5176 then ac_cv_path_FGREP="$GREP -F"
5177 else
5178 if test -z "$FGREP"; then
5179 ac_path_FGREP_found=false
5180 # Loop through the user's path and test for each of PROGNAME-LIST
5181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5183 do
5184 IFS=$as_save_IFS
5185 test -z "$as_dir" && as_dir=.
5186 for ac_prog in fgrep; do
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5189 as_fn_executable_p "$ac_path_FGREP" || continue
5190 # Check for GNU ac_path_FGREP and select it if it is found.
5191 # Check for GNU $ac_path_FGREP
5192 case `"$ac_path_FGREP" --version 2>&1` in
5193 *GNU*)
5194 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5195 *)
5196 ac_count=0
5197 $as_echo_n 0123456789 >"conftest.in"
5198 while :
5199 do
5200 cat "conftest.in" "conftest.in" >"conftest.tmp"
5201 mv "conftest.tmp" "conftest.in"
5202 cp "conftest.in" "conftest.nl"
5203 $as_echo 'FGREP' >> "conftest.nl"
5204 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5205 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5206 as_fn_arith $ac_count + 1 && ac_count=$as_val
5207 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5208 # Best one so far, save it but keep looking for a better one
5209 ac_cv_path_FGREP="$ac_path_FGREP"
5210 ac_path_FGREP_max=$ac_count
5211 fi
5212 # 10*(2^10) chars as input seems more than enough
5213 test $ac_count -gt 10 && break
5214 done
5215 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5216 esac
5217
5218 $ac_path_FGREP_found && break 3
5219 done
5220 done
5221 done
5222 IFS=$as_save_IFS
5223 if test -z "$ac_cv_path_FGREP"; then
5224 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5225 fi
5226 else
5227 ac_cv_path_FGREP=$FGREP
5228 fi
5229
5230 fi
5231 fi
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5233 $as_echo "$ac_cv_path_FGREP" >&6; }
5234 FGREP="$ac_cv_path_FGREP"
5235
5236
5237 test -z "$GREP" && GREP=grep
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257 # Check whether --with-gnu-ld was given.
5258 if test "${with_gnu_ld+set}" = set; then :
5259 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5260 else
5261 with_gnu_ld=no
5262 fi
5263
5264 ac_prog=ld
5265 if test "$GCC" = yes; then
5266 # Check if gcc -print-prog-name=ld gives a path.
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5268 $as_echo_n "checking for ld used by $CC... " >&6; }
5269 case $host in
5270 *-*-mingw*)
5271 # gcc leaves a trailing carriage return which upsets mingw
5272 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5273 *)
5274 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5275 esac
5276 case $ac_prog in
5277 # Accept absolute paths.
5278 [\\/]* | ?:[\\/]*)
5279 re_direlt='/[^/][^/]*/\.\./'
5280 # Canonicalize the pathname of ld
5281 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5282 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5283 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5284 done
5285 test -z "$LD" && LD="$ac_prog"
5286 ;;
5287 "")
5288 # If it fails, then pretend we aren't using GCC.
5289 ac_prog=ld
5290 ;;
5291 *)
5292 # If it is relative, then search for the first ld in PATH.
5293 with_gnu_ld=unknown
5294 ;;
5295 esac
5296 elif test "$with_gnu_ld" = yes; then
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5298 $as_echo_n "checking for GNU ld... " >&6; }
5299 else
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5301 $as_echo_n "checking for non-GNU ld... " >&6; }
5302 fi
5303 if ${lt_cv_path_LD+:} false; then :
5304 $as_echo_n "(cached) " >&6
5305 else
5306 if test -z "$LD"; then
5307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5308 for ac_dir in $PATH; do
5309 IFS="$lt_save_ifs"
5310 test -z "$ac_dir" && ac_dir=.
5311 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5312 lt_cv_path_LD="$ac_dir/$ac_prog"
5313 # Check to see if the program is GNU ld. I'd rather use --version,
5314 # but apparently some variants of GNU ld only accept -v.
5315 # Break only if it was the GNU/non-GNU ld that we prefer.
5316 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5317 *GNU* | *'with BFD'*)
5318 test "$with_gnu_ld" != no && break
5319 ;;
5320 *)
5321 test "$with_gnu_ld" != yes && break
5322 ;;
5323 esac
5324 fi
5325 done
5326 IFS="$lt_save_ifs"
5327 else
5328 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5329 fi
5330 fi
5331
5332 LD="$lt_cv_path_LD"
5333 if test -n "$LD"; then
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5335 $as_echo "$LD" >&6; }
5336 else
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5338 $as_echo "no" >&6; }
5339 fi
5340 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5342 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5343 if ${lt_cv_prog_gnu_ld+:} false; then :
5344 $as_echo_n "(cached) " >&6
5345 else
5346 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5347 case `$LD -v 2>&1 </dev/null` in
5348 *GNU* | *'with BFD'*)
5349 lt_cv_prog_gnu_ld=yes
5350 ;;
5351 *)
5352 lt_cv_prog_gnu_ld=no
5353 ;;
5354 esac
5355 fi
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5357 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5358 with_gnu_ld=$lt_cv_prog_gnu_ld
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5369 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5370 if ${lt_cv_path_NM+:} false; then :
5371 $as_echo_n "(cached) " >&6
5372 else
5373 if test -n "$NM"; then
5374 # Let the user override the test.
5375 lt_cv_path_NM="$NM"
5376 else
5377 lt_nm_to_check="${ac_tool_prefix}nm"
5378 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5379 lt_nm_to_check="$lt_nm_to_check nm"
5380 fi
5381 for lt_tmp_nm in $lt_nm_to_check; do
5382 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5383 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5384 IFS="$lt_save_ifs"
5385 test -z "$ac_dir" && ac_dir=.
5386 tmp_nm="$ac_dir/$lt_tmp_nm"
5387 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5388 # Check to see if the nm accepts a BSD-compat flag.
5389 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5390 # nm: unknown option "B" ignored
5391 # Tru64's nm complains that /dev/null is an invalid object file
5392 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5393 */dev/null* | *'Invalid file or object type'*)
5394 lt_cv_path_NM="$tmp_nm -B"
5395 break
5396 ;;
5397 *)
5398 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5399 */dev/null*)
5400 lt_cv_path_NM="$tmp_nm -p"
5401 break
5402 ;;
5403 *)
5404 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5405 continue # so that we can try to find one that supports BSD flags
5406 ;;
5407 esac
5408 ;;
5409 esac
5410 fi
5411 done
5412 IFS="$lt_save_ifs"
5413 done
5414 : ${lt_cv_path_NM=no}
5415 fi
5416 fi
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5418 $as_echo "$lt_cv_path_NM" >&6; }
5419 if test "$lt_cv_path_NM" != "no"; then
5420 NM="$lt_cv_path_NM"
5421 else
5422 # Didn't find any BSD compatible name lister, look for dumpbin.
5423 if test -n "$DUMPBIN"; then :
5424 # Let the user override the test.
5425 else
5426 if test -n "$ac_tool_prefix"; then
5427 for ac_prog in dumpbin "link -dump"
5428 do
5429 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5430 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5432 $as_echo_n "checking for $ac_word... " >&6; }
5433 if ${ac_cv_prog_DUMPBIN+:} false; then :
5434 $as_echo_n "(cached) " >&6
5435 else
5436 if test -n "$DUMPBIN"; then
5437 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5438 else
5439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5440 for as_dir in $PATH
5441 do
5442 IFS=$as_save_IFS
5443 test -z "$as_dir" && as_dir=.
5444 for ac_exec_ext in '' $ac_executable_extensions; do
5445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5446 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5448 break 2
5449 fi
5450 done
5451 done
5452 IFS=$as_save_IFS
5453
5454 fi
5455 fi
5456 DUMPBIN=$ac_cv_prog_DUMPBIN
5457 if test -n "$DUMPBIN"; then
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5459 $as_echo "$DUMPBIN" >&6; }
5460 else
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5462 $as_echo "no" >&6; }
5463 fi
5464
5465
5466 test -n "$DUMPBIN" && break
5467 done
5468 fi
5469 if test -z "$DUMPBIN"; then
5470 ac_ct_DUMPBIN=$DUMPBIN
5471 for ac_prog in dumpbin "link -dump"
5472 do
5473 # Extract the first word of "$ac_prog", so it can be a program name with args.
5474 set dummy $ac_prog; ac_word=$2
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5476 $as_echo_n "checking for $ac_word... " >&6; }
5477 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5478 $as_echo_n "(cached) " >&6
5479 else
5480 if test -n "$ac_ct_DUMPBIN"; then
5481 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5482 else
5483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484 for as_dir in $PATH
5485 do
5486 IFS=$as_save_IFS
5487 test -z "$as_dir" && as_dir=.
5488 for ac_exec_ext in '' $ac_executable_extensions; do
5489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5490 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5492 break 2
5493 fi
5494 done
5495 done
5496 IFS=$as_save_IFS
5497
5498 fi
5499 fi
5500 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5501 if test -n "$ac_ct_DUMPBIN"; then
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5503 $as_echo "$ac_ct_DUMPBIN" >&6; }
5504 else
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5506 $as_echo "no" >&6; }
5507 fi
5508
5509
5510 test -n "$ac_ct_DUMPBIN" && break
5511 done
5512
5513 if test "x$ac_ct_DUMPBIN" = x; then
5514 DUMPBIN=":"
5515 else
5516 case $cross_compiling:$ac_tool_warned in
5517 yes:)
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5519 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5520 ac_tool_warned=yes ;;
5521 esac
5522 DUMPBIN=$ac_ct_DUMPBIN
5523 fi
5524 fi
5525
5526 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5527 *COFF*)
5528 DUMPBIN="$DUMPBIN -symbols"
5529 ;;
5530 *)
5531 DUMPBIN=:
5532 ;;
5533 esac
5534 fi
5535
5536 if test "$DUMPBIN" != ":"; then
5537 NM="$DUMPBIN"
5538 fi
5539 fi
5540 test -z "$NM" && NM=nm
5541
5542
5543
5544
5545
5546
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5548 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5549 if ${lt_cv_nm_interface+:} false; then :
5550 $as_echo_n "(cached) " >&6
5551 else
5552 lt_cv_nm_interface="BSD nm"
5553 echo "int some_variable = 0;" > conftest.$ac_ext
5554 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5555 (eval "$ac_compile" 2>conftest.err)
5556 cat conftest.err >&5
5557 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5558 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5559 cat conftest.err >&5
5560 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5561 cat conftest.out >&5
5562 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5563 lt_cv_nm_interface="MS dumpbin"
5564 fi
5565 rm -f conftest*
5566 fi
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5568 $as_echo "$lt_cv_nm_interface" >&6; }
5569
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5571 $as_echo_n "checking whether ln -s works... " >&6; }
5572 LN_S=$as_ln_s
5573 if test "$LN_S" = "ln -s"; then
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5575 $as_echo "yes" >&6; }
5576 else
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5578 $as_echo "no, using $LN_S" >&6; }
5579 fi
5580
5581 # find the maximum length of command line arguments
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5583 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5584 if ${lt_cv_sys_max_cmd_len+:} false; then :
5585 $as_echo_n "(cached) " >&6
5586 else
5587 i=0
5588 teststring="ABCD"
5589
5590 case $build_os in
5591 msdosdjgpp*)
5592 # On DJGPP, this test can blow up pretty badly due to problems in libc
5593 # (any single argument exceeding 2000 bytes causes a buffer overrun
5594 # during glob expansion). Even if it were fixed, the result of this
5595 # check would be larger than it should be.
5596 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5597 ;;
5598
5599 gnu*)
5600 # Under GNU Hurd, this test is not required because there is
5601 # no limit to the length of command line arguments.
5602 # Libtool will interpret -1 as no limit whatsoever
5603 lt_cv_sys_max_cmd_len=-1;
5604 ;;
5605
5606 cygwin* | mingw* | cegcc*)
5607 # On Win9x/ME, this test blows up -- it succeeds, but takes
5608 # about 5 minutes as the teststring grows exponentially.
5609 # Worse, since 9x/ME are not pre-emptively multitasking,
5610 # you end up with a "frozen" computer, even though with patience
5611 # the test eventually succeeds (with a max line length of 256k).
5612 # Instead, let's just punt: use the minimum linelength reported by
5613 # all of the supported platforms: 8192 (on NT/2K/XP).
5614 lt_cv_sys_max_cmd_len=8192;
5615 ;;
5616
5617 mint*)
5618 # On MiNT this can take a long time and run out of memory.
5619 lt_cv_sys_max_cmd_len=8192;
5620 ;;
5621
5622 amigaos*)
5623 # On AmigaOS with pdksh, this test takes hours, literally.
5624 # So we just punt and use a minimum line length of 8192.
5625 lt_cv_sys_max_cmd_len=8192;
5626 ;;
5627
5628 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5629 # This has been around since 386BSD, at least. Likely further.
5630 if test -x /sbin/sysctl; then
5631 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5632 elif test -x /usr/sbin/sysctl; then
5633 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5634 else
5635 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5636 fi
5637 # And add a safety zone
5638 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5639 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5640 ;;
5641
5642 interix*)
5643 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5644 lt_cv_sys_max_cmd_len=196608
5645 ;;
5646
5647 os2*)
5648 # The test takes a long time on OS/2.
5649 lt_cv_sys_max_cmd_len=8192
5650 ;;
5651
5652 osf*)
5653 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5654 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5655 # nice to cause kernel panics so lets avoid the loop below.
5656 # First set a reasonable default.
5657 lt_cv_sys_max_cmd_len=16384
5658 #
5659 if test -x /sbin/sysconfig; then
5660 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5661 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5662 esac
5663 fi
5664 ;;
5665 sco3.2v5*)
5666 lt_cv_sys_max_cmd_len=102400
5667 ;;
5668 sysv5* | sco5v6* | sysv4.2uw2*)
5669 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5670 if test -n "$kargmax"; then
5671 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5672 else
5673 lt_cv_sys_max_cmd_len=32768
5674 fi
5675 ;;
5676 *)
5677 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5678 if test -n "$lt_cv_sys_max_cmd_len" && \
5679 test undefined != "$lt_cv_sys_max_cmd_len"; then
5680 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5681 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5682 else
5683 # Make teststring a little bigger before we do anything with it.
5684 # a 1K string should be a reasonable start.
5685 for i in 1 2 3 4 5 6 7 8 ; do
5686 teststring=$teststring$teststring
5687 done
5688 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5689 # If test is not a shell built-in, we'll probably end up computing a
5690 # maximum length that is only half of the actual maximum length, but
5691 # we can't tell.
5692 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5693 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5694 test $i != 17 # 1/2 MB should be enough
5695 do
5696 i=`expr $i + 1`
5697 teststring=$teststring$teststring
5698 done
5699 # Only check the string length outside the loop.
5700 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5701 teststring=
5702 # Add a significant safety factor because C++ compilers can tack on
5703 # massive amounts of additional arguments before passing them to the
5704 # linker. It appears as though 1/2 is a usable value.
5705 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5706 fi
5707 ;;
5708 esac
5709
5710 fi
5711
5712 if test -n $lt_cv_sys_max_cmd_len ; then
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5714 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5715 else
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5717 $as_echo "none" >&6; }
5718 fi
5719 max_cmd_len=$lt_cv_sys_max_cmd_len
5720
5721
5722
5723
5724
5725
5726 : ${CP="cp -f"}
5727 : ${MV="mv -f"}
5728 : ${RM="rm -f"}
5729
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5731 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5732 # Try some XSI features
5733 xsi_shell=no
5734 ( _lt_dummy="a/b/c"
5735 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5736 = c,a/b,b/c, \
5737 && eval 'test $(( 1 + 1 )) -eq 2 \
5738 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5739 && xsi_shell=yes
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5741 $as_echo "$xsi_shell" >&6; }
5742
5743
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5745 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5746 lt_shell_append=no
5747 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5748 >/dev/null 2>&1 \
5749 && lt_shell_append=yes
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5751 $as_echo "$lt_shell_append" >&6; }
5752
5753
5754 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5755 lt_unset=unset
5756 else
5757 lt_unset=false
5758 fi
5759
5760
5761
5762
5763
5764 # test EBCDIC or ASCII
5765 case `echo X|tr X '\101'` in
5766 A) # ASCII based system
5767 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5768 lt_SP2NL='tr \040 \012'
5769 lt_NL2SP='tr \015\012 \040\040'
5770 ;;
5771 *) # EBCDIC based system
5772 lt_SP2NL='tr \100 \n'
5773 lt_NL2SP='tr \r\n \100\100'
5774 ;;
5775 esac
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5786 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5787 if ${lt_cv_to_host_file_cmd+:} false; then :
5788 $as_echo_n "(cached) " >&6
5789 else
5790 case $host in
5791 *-*-mingw* )
5792 case $build in
5793 *-*-mingw* ) # actually msys
5794 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5795 ;;
5796 *-*-cygwin* )
5797 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5798 ;;
5799 * ) # otherwise, assume *nix
5800 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5801 ;;
5802 esac
5803 ;;
5804 *-*-cygwin* )
5805 case $build in
5806 *-*-mingw* ) # actually msys
5807 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5808 ;;
5809 *-*-cygwin* )
5810 lt_cv_to_host_file_cmd=func_convert_file_noop
5811 ;;
5812 * ) # otherwise, assume *nix
5813 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5814 ;;
5815 esac
5816 ;;
5817 * ) # unhandled hosts (and "normal" native builds)
5818 lt_cv_to_host_file_cmd=func_convert_file_noop
5819 ;;
5820 esac
5821
5822 fi
5823
5824 to_host_file_cmd=$lt_cv_to_host_file_cmd
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5826 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5827
5828
5829
5830
5831
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5833 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5834 if ${lt_cv_to_tool_file_cmd+:} false; then :
5835 $as_echo_n "(cached) " >&6
5836 else
5837 #assume ordinary cross tools, or native build.
5838 lt_cv_to_tool_file_cmd=func_convert_file_noop
5839 case $host in
5840 *-*-mingw* )
5841 case $build in
5842 *-*-mingw* ) # actually msys
5843 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5844 ;;
5845 esac
5846 ;;
5847 esac
5848
5849 fi
5850
5851 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5853 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5854
5855
5856
5857
5858
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5860 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5861 if ${lt_cv_ld_reload_flag+:} false; then :
5862 $as_echo_n "(cached) " >&6
5863 else
5864 lt_cv_ld_reload_flag='-r'
5865 fi
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5867 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5868 reload_flag=$lt_cv_ld_reload_flag
5869 case $reload_flag in
5870 "" | " "*) ;;
5871 *) reload_flag=" $reload_flag" ;;
5872 esac
5873 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5874 case $host_os in
5875 cygwin* | mingw* | pw32* | cegcc*)
5876 if test "$GCC" != yes; then
5877 reload_cmds=false
5878 fi
5879 ;;
5880 darwin*)
5881 if test "$GCC" = yes; then
5882 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5883 else
5884 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5885 fi
5886 ;;
5887 esac
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897 if test -n "$ac_tool_prefix"; then
5898 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5899 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5901 $as_echo_n "checking for $ac_word... " >&6; }
5902 if ${ac_cv_prog_OBJDUMP+:} false; then :
5903 $as_echo_n "(cached) " >&6
5904 else
5905 if test -n "$OBJDUMP"; then
5906 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5907 else
5908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5909 for as_dir in $PATH
5910 do
5911 IFS=$as_save_IFS
5912 test -z "$as_dir" && as_dir=.
5913 for ac_exec_ext in '' $ac_executable_extensions; do
5914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5915 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5917 break 2
5918 fi
5919 done
5920 done
5921 IFS=$as_save_IFS
5922
5923 fi
5924 fi
5925 OBJDUMP=$ac_cv_prog_OBJDUMP
5926 if test -n "$OBJDUMP"; then
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5928 $as_echo "$OBJDUMP" >&6; }
5929 else
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5931 $as_echo "no" >&6; }
5932 fi
5933
5934
5935 fi
5936 if test -z "$ac_cv_prog_OBJDUMP"; then
5937 ac_ct_OBJDUMP=$OBJDUMP
5938 # Extract the first word of "objdump", so it can be a program name with args.
5939 set dummy objdump; ac_word=$2
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5941 $as_echo_n "checking for $ac_word... " >&6; }
5942 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5943 $as_echo_n "(cached) " >&6
5944 else
5945 if test -n "$ac_ct_OBJDUMP"; then
5946 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5947 else
5948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5949 for as_dir in $PATH
5950 do
5951 IFS=$as_save_IFS
5952 test -z "$as_dir" && as_dir=.
5953 for ac_exec_ext in '' $ac_executable_extensions; do
5954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5955 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5957 break 2
5958 fi
5959 done
5960 done
5961 IFS=$as_save_IFS
5962
5963 fi
5964 fi
5965 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5966 if test -n "$ac_ct_OBJDUMP"; then
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5968 $as_echo "$ac_ct_OBJDUMP" >&6; }
5969 else
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5971 $as_echo "no" >&6; }
5972 fi
5973
5974 if test "x$ac_ct_OBJDUMP" = x; then
5975 OBJDUMP="false"
5976 else
5977 case $cross_compiling:$ac_tool_warned in
5978 yes:)
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5981 ac_tool_warned=yes ;;
5982 esac
5983 OBJDUMP=$ac_ct_OBJDUMP
5984 fi
5985 else
5986 OBJDUMP="$ac_cv_prog_OBJDUMP"
5987 fi
5988
5989 test -z "$OBJDUMP" && OBJDUMP=objdump
5990
5991
5992
5993
5994
5995
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5997 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5998 if ${lt_cv_deplibs_check_method+:} false; then :
5999 $as_echo_n "(cached) " >&6
6000 else
6001 lt_cv_file_magic_cmd='$MAGIC_CMD'
6002 lt_cv_file_magic_test_file=
6003 lt_cv_deplibs_check_method='unknown'
6004 # Need to set the preceding variable on all platforms that support
6005 # interlibrary dependencies.
6006 # 'none' -- dependencies not supported.
6007 # `unknown' -- same as none, but documents that we really don't know.
6008 # 'pass_all' -- all dependencies passed with no checks.
6009 # 'test_compile' -- check by making test program.
6010 # 'file_magic [[regex]]' -- check by looking for files in library path
6011 # which responds to the $file_magic_cmd with a given extended regex.
6012 # If you have `file' or equivalent on your system and you're not sure
6013 # whether `pass_all' will *always* work, you probably want this one.
6014
6015 case $host_os in
6016 aix[4-9]*)
6017 lt_cv_deplibs_check_method=pass_all
6018 ;;
6019
6020 beos*)
6021 lt_cv_deplibs_check_method=pass_all
6022 ;;
6023
6024 bsdi[45]*)
6025 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6026 lt_cv_file_magic_cmd='/usr/bin/file -L'
6027 lt_cv_file_magic_test_file=/shlib/libc.so
6028 ;;
6029
6030 cygwin*)
6031 # func_win32_libid is a shell function defined in ltmain.sh
6032 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6033 lt_cv_file_magic_cmd='func_win32_libid'
6034 ;;
6035
6036 mingw* | pw32*)
6037 # Base MSYS/MinGW do not provide the 'file' command needed by
6038 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6039 # unless we find 'file', for example because we are cross-compiling.
6040 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6041 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6042 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6043 lt_cv_file_magic_cmd='func_win32_libid'
6044 else
6045 # Keep this pattern in sync with the one in func_win32_libid.
6046 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6047 lt_cv_file_magic_cmd='$OBJDUMP -f'
6048 fi
6049 ;;
6050
6051 cegcc*)
6052 # use the weaker test based on 'objdump'. See mingw*.
6053 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6054 lt_cv_file_magic_cmd='$OBJDUMP -f'
6055 ;;
6056
6057 darwin* | rhapsody*)
6058 lt_cv_deplibs_check_method=pass_all
6059 ;;
6060
6061 freebsd* | dragonfly*)
6062 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6063 case $host_cpu in
6064 i*86 )
6065 # Not sure whether the presence of OpenBSD here was a mistake.
6066 # Let's accept both of them until this is cleared up.
6067 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6068 lt_cv_file_magic_cmd=/usr/bin/file
6069 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6070 ;;
6071 esac
6072 else
6073 lt_cv_deplibs_check_method=pass_all
6074 fi
6075 ;;
6076
6077 haiku*)
6078 lt_cv_deplibs_check_method=pass_all
6079 ;;
6080
6081 hpux10.20* | hpux11*)
6082 lt_cv_file_magic_cmd=/usr/bin/file
6083 case $host_cpu in
6084 ia64*)
6085 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6086 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6087 ;;
6088 hppa*64*)
6089 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]'
6090 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6091 ;;
6092 *)
6093 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6094 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6095 ;;
6096 esac
6097 ;;
6098
6099 interix[3-9]*)
6100 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6101 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6102 ;;
6103
6104 irix5* | irix6* | nonstopux*)
6105 case $LD in
6106 *-32|*"-32 ") libmagic=32-bit;;
6107 *-n32|*"-n32 ") libmagic=N32;;
6108 *-64|*"-64 ") libmagic=64-bit;;
6109 *) libmagic=never-match;;
6110 esac
6111 lt_cv_deplibs_check_method=pass_all
6112 ;;
6113
6114 # This must be glibc/ELF.
6115 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6116 lt_cv_deplibs_check_method=pass_all
6117 ;;
6118
6119 netbsd* | netbsdelf*-gnu)
6120 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6121 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6122 else
6123 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6124 fi
6125 ;;
6126
6127 newos6*)
6128 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6129 lt_cv_file_magic_cmd=/usr/bin/file
6130 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6131 ;;
6132
6133 *nto* | *qnx*)
6134 lt_cv_deplibs_check_method=pass_all
6135 ;;
6136
6137 openbsd*)
6138 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6139 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6140 else
6141 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6142 fi
6143 ;;
6144
6145 osf3* | osf4* | osf5*)
6146 lt_cv_deplibs_check_method=pass_all
6147 ;;
6148
6149 rdos*)
6150 lt_cv_deplibs_check_method=pass_all
6151 ;;
6152
6153 solaris*)
6154 lt_cv_deplibs_check_method=pass_all
6155 ;;
6156
6157 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6158 lt_cv_deplibs_check_method=pass_all
6159 ;;
6160
6161 sysv4 | sysv4.3*)
6162 case $host_vendor in
6163 motorola)
6164 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]'
6165 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6166 ;;
6167 ncr)
6168 lt_cv_deplibs_check_method=pass_all
6169 ;;
6170 sequent)
6171 lt_cv_file_magic_cmd='/bin/file'
6172 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6173 ;;
6174 sni)
6175 lt_cv_file_magic_cmd='/bin/file'
6176 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6177 lt_cv_file_magic_test_file=/lib/libc.so
6178 ;;
6179 siemens)
6180 lt_cv_deplibs_check_method=pass_all
6181 ;;
6182 pc)
6183 lt_cv_deplibs_check_method=pass_all
6184 ;;
6185 esac
6186 ;;
6187
6188 tpf*)
6189 lt_cv_deplibs_check_method=pass_all
6190 ;;
6191 esac
6192
6193 fi
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6195 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6196
6197 file_magic_glob=
6198 want_nocaseglob=no
6199 if test "$build" = "$host"; then
6200 case $host_os in
6201 mingw* | pw32*)
6202 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6203 want_nocaseglob=yes
6204 else
6205 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6206 fi
6207 ;;
6208 esac
6209 fi
6210
6211 file_magic_cmd=$lt_cv_file_magic_cmd
6212 deplibs_check_method=$lt_cv_deplibs_check_method
6213 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236 if test -n "$ac_tool_prefix"; then
6237 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6238 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6240 $as_echo_n "checking for $ac_word... " >&6; }
6241 if ${ac_cv_prog_DLLTOOL+:} false; then :
6242 $as_echo_n "(cached) " >&6
6243 else
6244 if test -n "$DLLTOOL"; then
6245 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6246 else
6247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248 for as_dir in $PATH
6249 do
6250 IFS=$as_save_IFS
6251 test -z "$as_dir" && as_dir=.
6252 for ac_exec_ext in '' $ac_executable_extensions; do
6253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6254 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6256 break 2
6257 fi
6258 done
6259 done
6260 IFS=$as_save_IFS
6261
6262 fi
6263 fi
6264 DLLTOOL=$ac_cv_prog_DLLTOOL
6265 if test -n "$DLLTOOL"; then
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6267 $as_echo "$DLLTOOL" >&6; }
6268 else
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6270 $as_echo "no" >&6; }
6271 fi
6272
6273
6274 fi
6275 if test -z "$ac_cv_prog_DLLTOOL"; then
6276 ac_ct_DLLTOOL=$DLLTOOL
6277 # Extract the first word of "dlltool", so it can be a program name with args.
6278 set dummy dlltool; ac_word=$2
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6280 $as_echo_n "checking for $ac_word... " >&6; }
6281 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6282 $as_echo_n "(cached) " >&6
6283 else
6284 if test -n "$ac_ct_DLLTOOL"; then
6285 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6286 else
6287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288 for as_dir in $PATH
6289 do
6290 IFS=$as_save_IFS
6291 test -z "$as_dir" && as_dir=.
6292 for ac_exec_ext in '' $ac_executable_extensions; do
6293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6294 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6296 break 2
6297 fi
6298 done
6299 done
6300 IFS=$as_save_IFS
6301
6302 fi
6303 fi
6304 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6305 if test -n "$ac_ct_DLLTOOL"; then
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6307 $as_echo "$ac_ct_DLLTOOL" >&6; }
6308 else
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6310 $as_echo "no" >&6; }
6311 fi
6312
6313 if test "x$ac_ct_DLLTOOL" = x; then
6314 DLLTOOL="false"
6315 else
6316 case $cross_compiling:$ac_tool_warned in
6317 yes:)
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6320 ac_tool_warned=yes ;;
6321 esac
6322 DLLTOOL=$ac_ct_DLLTOOL
6323 fi
6324 else
6325 DLLTOOL="$ac_cv_prog_DLLTOOL"
6326 fi
6327
6328 test -z "$DLLTOOL" && DLLTOOL=dlltool
6329
6330
6331
6332
6333
6334
6335
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6337 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6338 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6339 $as_echo_n "(cached) " >&6
6340 else
6341 lt_cv_sharedlib_from_linklib_cmd='unknown'
6342
6343 case $host_os in
6344 cygwin* | mingw* | pw32* | cegcc*)
6345 # two different shell functions defined in ltmain.sh
6346 # decide which to use based on capabilities of $DLLTOOL
6347 case `$DLLTOOL --help 2>&1` in
6348 *--identify-strict*)
6349 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6350 ;;
6351 *)
6352 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6353 ;;
6354 esac
6355 ;;
6356 *)
6357 # fallback: assume linklib IS sharedlib
6358 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6359 ;;
6360 esac
6361
6362 fi
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6364 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6365 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6366 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6367
6368
6369
6370
6371
6372
6373
6374 if test -n "$ac_tool_prefix"; then
6375 for ac_prog in ar
6376 do
6377 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6378 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6380 $as_echo_n "checking for $ac_word... " >&6; }
6381 if ${ac_cv_prog_AR+:} false; then :
6382 $as_echo_n "(cached) " >&6
6383 else
6384 if test -n "$AR"; then
6385 ac_cv_prog_AR="$AR" # Let the user override the test.
6386 else
6387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388 for as_dir in $PATH
6389 do
6390 IFS=$as_save_IFS
6391 test -z "$as_dir" && as_dir=.
6392 for ac_exec_ext in '' $ac_executable_extensions; do
6393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6394 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6396 break 2
6397 fi
6398 done
6399 done
6400 IFS=$as_save_IFS
6401
6402 fi
6403 fi
6404 AR=$ac_cv_prog_AR
6405 if test -n "$AR"; then
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6407 $as_echo "$AR" >&6; }
6408 else
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6410 $as_echo "no" >&6; }
6411 fi
6412
6413
6414 test -n "$AR" && break
6415 done
6416 fi
6417 if test -z "$AR"; then
6418 ac_ct_AR=$AR
6419 for ac_prog in ar
6420 do
6421 # Extract the first word of "$ac_prog", so it can be a program name with args.
6422 set dummy $ac_prog; ac_word=$2
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6424 $as_echo_n "checking for $ac_word... " >&6; }
6425 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6426 $as_echo_n "(cached) " >&6
6427 else
6428 if test -n "$ac_ct_AR"; then
6429 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6430 else
6431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432 for as_dir in $PATH
6433 do
6434 IFS=$as_save_IFS
6435 test -z "$as_dir" && as_dir=.
6436 for ac_exec_ext in '' $ac_executable_extensions; do
6437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6438 ac_cv_prog_ac_ct_AR="$ac_prog"
6439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6440 break 2
6441 fi
6442 done
6443 done
6444 IFS=$as_save_IFS
6445
6446 fi
6447 fi
6448 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6449 if test -n "$ac_ct_AR"; then
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6451 $as_echo "$ac_ct_AR" >&6; }
6452 else
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6454 $as_echo "no" >&6; }
6455 fi
6456
6457
6458 test -n "$ac_ct_AR" && break
6459 done
6460
6461 if test "x$ac_ct_AR" = x; then
6462 AR="false"
6463 else
6464 case $cross_compiling:$ac_tool_warned in
6465 yes:)
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6468 ac_tool_warned=yes ;;
6469 esac
6470 AR=$ac_ct_AR
6471 fi
6472 fi
6473
6474 : ${AR=ar}
6475 : ${AR_FLAGS=cru}
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6488 $as_echo_n "checking for archiver @FILE support... " >&6; }
6489 if ${lt_cv_ar_at_file+:} false; then :
6490 $as_echo_n "(cached) " >&6
6491 else
6492 lt_cv_ar_at_file=no
6493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6494 /* end confdefs.h. */
6495
6496 int
6497 main ()
6498 {
6499
6500 ;
6501 return 0;
6502 }
6503 _ACEOF
6504 if ac_fn_c_try_compile "$LINENO"; then :
6505 echo conftest.$ac_objext > conftest.lst
6506 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6507 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6508 (eval $lt_ar_try) 2>&5
6509 ac_status=$?
6510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6511 test $ac_status = 0; }
6512 if test "$ac_status" -eq 0; then
6513 # Ensure the archiver fails upon bogus file names.
6514 rm -f conftest.$ac_objext libconftest.a
6515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6516 (eval $lt_ar_try) 2>&5
6517 ac_status=$?
6518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6519 test $ac_status = 0; }
6520 if test "$ac_status" -ne 0; then
6521 lt_cv_ar_at_file=@
6522 fi
6523 fi
6524 rm -f conftest.* libconftest.a
6525
6526 fi
6527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6528
6529 fi
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6531 $as_echo "$lt_cv_ar_at_file" >&6; }
6532
6533 if test "x$lt_cv_ar_at_file" = xno; then
6534 archiver_list_spec=
6535 else
6536 archiver_list_spec=$lt_cv_ar_at_file
6537 fi
6538
6539
6540
6541
6542
6543
6544
6545 if test -n "$ac_tool_prefix"; then
6546 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6547 set dummy ${ac_tool_prefix}strip; ac_word=$2
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6549 $as_echo_n "checking for $ac_word... " >&6; }
6550 if ${ac_cv_prog_STRIP+:} false; then :
6551 $as_echo_n "(cached) " >&6
6552 else
6553 if test -n "$STRIP"; then
6554 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6555 else
6556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557 for as_dir in $PATH
6558 do
6559 IFS=$as_save_IFS
6560 test -z "$as_dir" && as_dir=.
6561 for ac_exec_ext in '' $ac_executable_extensions; do
6562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6563 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6565 break 2
6566 fi
6567 done
6568 done
6569 IFS=$as_save_IFS
6570
6571 fi
6572 fi
6573 STRIP=$ac_cv_prog_STRIP
6574 if test -n "$STRIP"; then
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6576 $as_echo "$STRIP" >&6; }
6577 else
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6579 $as_echo "no" >&6; }
6580 fi
6581
6582
6583 fi
6584 if test -z "$ac_cv_prog_STRIP"; then
6585 ac_ct_STRIP=$STRIP
6586 # Extract the first word of "strip", so it can be a program name with args.
6587 set dummy strip; ac_word=$2
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6589 $as_echo_n "checking for $ac_word... " >&6; }
6590 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6591 $as_echo_n "(cached) " >&6
6592 else
6593 if test -n "$ac_ct_STRIP"; then
6594 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6595 else
6596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597 for as_dir in $PATH
6598 do
6599 IFS=$as_save_IFS
6600 test -z "$as_dir" && as_dir=.
6601 for ac_exec_ext in '' $ac_executable_extensions; do
6602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6603 ac_cv_prog_ac_ct_STRIP="strip"
6604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6605 break 2
6606 fi
6607 done
6608 done
6609 IFS=$as_save_IFS
6610
6611 fi
6612 fi
6613 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6614 if test -n "$ac_ct_STRIP"; then
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6616 $as_echo "$ac_ct_STRIP" >&6; }
6617 else
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6619 $as_echo "no" >&6; }
6620 fi
6621
6622 if test "x$ac_ct_STRIP" = x; then
6623 STRIP=":"
6624 else
6625 case $cross_compiling:$ac_tool_warned in
6626 yes:)
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6629 ac_tool_warned=yes ;;
6630 esac
6631 STRIP=$ac_ct_STRIP
6632 fi
6633 else
6634 STRIP="$ac_cv_prog_STRIP"
6635 fi
6636
6637 test -z "$STRIP" && STRIP=:
6638
6639
6640
6641
6642
6643
6644 if test -n "$ac_tool_prefix"; then
6645 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6646 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6648 $as_echo_n "checking for $ac_word... " >&6; }
6649 if ${ac_cv_prog_RANLIB+:} false; then :
6650 $as_echo_n "(cached) " >&6
6651 else
6652 if test -n "$RANLIB"; then
6653 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6654 else
6655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6656 for as_dir in $PATH
6657 do
6658 IFS=$as_save_IFS
6659 test -z "$as_dir" && as_dir=.
6660 for ac_exec_ext in '' $ac_executable_extensions; do
6661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6662 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6664 break 2
6665 fi
6666 done
6667 done
6668 IFS=$as_save_IFS
6669
6670 fi
6671 fi
6672 RANLIB=$ac_cv_prog_RANLIB
6673 if test -n "$RANLIB"; then
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6675 $as_echo "$RANLIB" >&6; }
6676 else
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6678 $as_echo "no" >&6; }
6679 fi
6680
6681
6682 fi
6683 if test -z "$ac_cv_prog_RANLIB"; then
6684 ac_ct_RANLIB=$RANLIB
6685 # Extract the first word of "ranlib", so it can be a program name with args.
6686 set dummy ranlib; ac_word=$2
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6688 $as_echo_n "checking for $ac_word... " >&6; }
6689 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6690 $as_echo_n "(cached) " >&6
6691 else
6692 if test -n "$ac_ct_RANLIB"; then
6693 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6694 else
6695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6696 for as_dir in $PATH
6697 do
6698 IFS=$as_save_IFS
6699 test -z "$as_dir" && as_dir=.
6700 for ac_exec_ext in '' $ac_executable_extensions; do
6701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6702 ac_cv_prog_ac_ct_RANLIB="ranlib"
6703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6704 break 2
6705 fi
6706 done
6707 done
6708 IFS=$as_save_IFS
6709
6710 fi
6711 fi
6712 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6713 if test -n "$ac_ct_RANLIB"; then
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6715 $as_echo "$ac_ct_RANLIB" >&6; }
6716 else
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6718 $as_echo "no" >&6; }
6719 fi
6720
6721 if test "x$ac_ct_RANLIB" = x; then
6722 RANLIB=":"
6723 else
6724 case $cross_compiling:$ac_tool_warned in
6725 yes:)
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6727 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6728 ac_tool_warned=yes ;;
6729 esac
6730 RANLIB=$ac_ct_RANLIB
6731 fi
6732 else
6733 RANLIB="$ac_cv_prog_RANLIB"
6734 fi
6735
6736 test -z "$RANLIB" && RANLIB=:
6737
6738
6739
6740
6741
6742
6743 # Determine commands to create old-style static archives.
6744 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6745 old_postinstall_cmds='chmod 644 $oldlib'
6746 old_postuninstall_cmds=
6747
6748 if test -n "$RANLIB"; then
6749 case $host_os in
6750 openbsd*)
6751 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6752 ;;
6753 *)
6754 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6755 ;;
6756 esac
6757 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6758 fi
6759
6760 case $host_os in
6761 darwin*)
6762 lock_old_archive_extraction=yes ;;
6763 *)
6764 lock_old_archive_extraction=no ;;
6765 esac
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805 # If no C compiler was specified, use CC.
6806 LTCC=${LTCC-"$CC"}
6807
6808 # If no C compiler flags were specified, use CFLAGS.
6809 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6810
6811 # Allow CC to be a program name with arguments.
6812 compiler=$CC
6813
6814
6815 # Check for command to grab the raw symbol name followed by C symbol from nm.
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6817 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6818 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6819 $as_echo_n "(cached) " >&6
6820 else
6821
6822 # These are sane defaults that work on at least a few old systems.
6823 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6824
6825 # Character class describing NM global symbol codes.
6826 symcode='[BCDEGRST]'
6827
6828 # Regexp to match symbols that can be accessed directly from C.
6829 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6830
6831 # Define system-specific variables.
6832 case $host_os in
6833 aix*)
6834 symcode='[BCDT]'
6835 ;;
6836 cygwin* | mingw* | pw32* | cegcc*)
6837 symcode='[ABCDGISTW]'
6838 ;;
6839 hpux*)
6840 if test "$host_cpu" = ia64; then
6841 symcode='[ABCDEGRST]'
6842 fi
6843 ;;
6844 irix* | nonstopux*)
6845 symcode='[BCDEGRST]'
6846 ;;
6847 osf*)
6848 symcode='[BCDEGQRST]'
6849 ;;
6850 solaris*)
6851 symcode='[BDRT]'
6852 ;;
6853 sco3.2v5*)
6854 symcode='[DT]'
6855 ;;
6856 sysv4.2uw2*)
6857 symcode='[DT]'
6858 ;;
6859 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6860 symcode='[ABDT]'
6861 ;;
6862 sysv4)
6863 symcode='[DFNSTU]'
6864 ;;
6865 esac
6866
6867 # If we're using GNU nm, then use its standard symbol codes.
6868 case `$NM -V 2>&1` in
6869 *GNU* | *'with BFD'*)
6870 symcode='[ABCDGIRSTW]' ;;
6871 esac
6872
6873 # Transform an extracted symbol line into a proper C declaration.
6874 # Some systems (esp. on ia64) link data and code symbols differently,
6875 # so use this general approach.
6876 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6877
6878 # Transform an extracted symbol line into symbol name and symbol address
6879 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6880 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6881
6882 # Handle CRLF in mingw tool chain
6883 opt_cr=
6884 case $build_os in
6885 mingw*)
6886 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6887 ;;
6888 esac
6889
6890 # Try without a prefix underscore, then with it.
6891 for ac_symprfx in "" "_"; do
6892
6893 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6894 symxfrm="\\1 $ac_symprfx\\2 \\2"
6895
6896 # Write the raw and C identifiers.
6897 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6898 # Fake it for dumpbin and say T for any non-static function
6899 # and D for any global variable.
6900 # Also find C++ and __fastcall symbols from MSVC++,
6901 # which start with @ or ?.
6902 lt_cv_sys_global_symbol_pipe="$AWK '"\
6903 " {last_section=section; section=\$ 3};"\
6904 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6905 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6906 " \$ 0!~/External *\|/{next};"\
6907 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6908 " {if(hide[section]) next};"\
6909 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6910 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6911 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6912 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6913 " ' prfx=^$ac_symprfx"
6914 else
6915 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6916 fi
6917 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6918
6919 # Check to see that the pipe works correctly.
6920 pipe_works=no
6921
6922 rm -f conftest*
6923 cat > conftest.$ac_ext <<_LT_EOF
6924 #ifdef __cplusplus
6925 extern "C" {
6926 #endif
6927 char nm_test_var;
6928 void nm_test_func(void);
6929 void nm_test_func(void){}
6930 #ifdef __cplusplus
6931 }
6932 #endif
6933 int main(){nm_test_var='a';nm_test_func();return(0);}
6934 _LT_EOF
6935
6936 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6937 (eval $ac_compile) 2>&5
6938 ac_status=$?
6939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6940 test $ac_status = 0; }; then
6941 # Now try to grab the symbols.
6942 nlist=conftest.nm
6943 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6944 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6945 ac_status=$?
6946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6947 test $ac_status = 0; } && test -s "$nlist"; then
6948 # Try sorting and uniquifying the output.
6949 if sort "$nlist" | uniq > "$nlist"T; then
6950 mv -f "$nlist"T "$nlist"
6951 else
6952 rm -f "$nlist"T
6953 fi
6954
6955 # Make sure that we snagged all the symbols we need.
6956 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6957 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6958 cat <<_LT_EOF > conftest.$ac_ext
6959 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6960 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6961 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6962 relocations are performed -- see ld's documentation on pseudo-relocs. */
6963 # define LT_DLSYM_CONST
6964 #elif defined(__osf__)
6965 /* This system does not cope well with relocations in const data. */
6966 # define LT_DLSYM_CONST
6967 #else
6968 # define LT_DLSYM_CONST const
6969 #endif
6970
6971 #ifdef __cplusplus
6972 extern "C" {
6973 #endif
6974
6975 _LT_EOF
6976 # Now generate the symbol file.
6977 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6978
6979 cat <<_LT_EOF >> conftest.$ac_ext
6980
6981 /* The mapping between symbol names and symbols. */
6982 LT_DLSYM_CONST struct {
6983 const char *name;
6984 void *address;
6985 }
6986 lt__PROGRAM__LTX_preloaded_symbols[] =
6987 {
6988 { "@PROGRAM@", (void *) 0 },
6989 _LT_EOF
6990 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6991 cat <<\_LT_EOF >> conftest.$ac_ext
6992 {0, (void *) 0}
6993 };
6994
6995 /* This works around a problem in FreeBSD linker */
6996 #ifdef FREEBSD_WORKAROUND
6997 static const void *lt_preloaded_setup() {
6998 return lt__PROGRAM__LTX_preloaded_symbols;
6999 }
7000 #endif
7001
7002 #ifdef __cplusplus
7003 }
7004 #endif
7005 _LT_EOF
7006 # Now try linking the two files.
7007 mv conftest.$ac_objext conftstm.$ac_objext
7008 lt_globsym_save_LIBS=$LIBS
7009 lt_globsym_save_CFLAGS=$CFLAGS
7010 LIBS="conftstm.$ac_objext"
7011 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7012 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7013 (eval $ac_link) 2>&5
7014 ac_status=$?
7015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7016 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7017 pipe_works=yes
7018 fi
7019 LIBS=$lt_globsym_save_LIBS
7020 CFLAGS=$lt_globsym_save_CFLAGS
7021 else
7022 echo "cannot find nm_test_func in $nlist" >&5
7023 fi
7024 else
7025 echo "cannot find nm_test_var in $nlist" >&5
7026 fi
7027 else
7028 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7029 fi
7030 else
7031 echo "$progname: failed program was:" >&5
7032 cat conftest.$ac_ext >&5
7033 fi
7034 rm -rf conftest* conftst*
7035
7036 # Do not use the global_symbol_pipe unless it works.
7037 if test "$pipe_works" = yes; then
7038 break
7039 else
7040 lt_cv_sys_global_symbol_pipe=
7041 fi
7042 done
7043
7044 fi
7045
7046 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7047 lt_cv_sys_global_symbol_to_cdecl=
7048 fi
7049 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7051 $as_echo "failed" >&6; }
7052 else
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7054 $as_echo "ok" >&6; }
7055 fi
7056
7057 # Response file support.
7058 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7059 nm_file_list_spec='@'
7060 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7061 nm_file_list_spec='@'
7062 fi
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7091 $as_echo_n "checking for sysroot... " >&6; }
7092
7093 # Check whether --with-sysroot was given.
7094 if test "${with_sysroot+set}" = set; then :
7095 withval=$with_sysroot;
7096 else
7097 with_sysroot=no
7098 fi
7099
7100
7101 lt_sysroot=
7102 case ${with_sysroot} in #(
7103 yes)
7104 if test "$GCC" = yes; then
7105 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7106 fi
7107 ;; #(
7108 /*)
7109 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7110 ;; #(
7111 no|'')
7112 ;; #(
7113 *)
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7115 $as_echo "${with_sysroot}" >&6; }
7116 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7117 ;;
7118 esac
7119
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7121 $as_echo "${lt_sysroot:-no}" >&6; }
7122
7123
7124
7125
7126
7127 # Check whether --enable-libtool-lock was given.
7128 if test "${enable_libtool_lock+set}" = set; then :
7129 enableval=$enable_libtool_lock;
7130 fi
7131
7132 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7133
7134 # Some flags need to be propagated to the compiler or linker for good
7135 # libtool support.
7136 case $host in
7137 ia64-*-hpux*)
7138 # Find out which ABI we are using.
7139 echo 'int i;' > conftest.$ac_ext
7140 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7141 (eval $ac_compile) 2>&5
7142 ac_status=$?
7143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7144 test $ac_status = 0; }; then
7145 case `/usr/bin/file conftest.$ac_objext` in
7146 *ELF-32*)
7147 HPUX_IA64_MODE="32"
7148 ;;
7149 *ELF-64*)
7150 HPUX_IA64_MODE="64"
7151 ;;
7152 esac
7153 fi
7154 rm -rf conftest*
7155 ;;
7156 *-*-irix6*)
7157 # Find out which ABI we are using.
7158 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7159 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7160 (eval $ac_compile) 2>&5
7161 ac_status=$?
7162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7163 test $ac_status = 0; }; then
7164 if test "$lt_cv_prog_gnu_ld" = yes; then
7165 case `/usr/bin/file conftest.$ac_objext` in
7166 *32-bit*)
7167 LD="${LD-ld} -melf32bsmip"
7168 ;;
7169 *N32*)
7170 LD="${LD-ld} -melf32bmipn32"
7171 ;;
7172 *64-bit*)
7173 LD="${LD-ld} -melf64bmip"
7174 ;;
7175 esac
7176 else
7177 case `/usr/bin/file conftest.$ac_objext` in
7178 *32-bit*)
7179 LD="${LD-ld} -32"
7180 ;;
7181 *N32*)
7182 LD="${LD-ld} -n32"
7183 ;;
7184 *64-bit*)
7185 LD="${LD-ld} -64"
7186 ;;
7187 esac
7188 fi
7189 fi
7190 rm -rf conftest*
7191 ;;
7192
7193 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7194 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7195 # Find out which ABI we are using.
7196 echo 'int i;' > conftest.$ac_ext
7197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7198 (eval $ac_compile) 2>&5
7199 ac_status=$?
7200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7201 test $ac_status = 0; }; then
7202 case `/usr/bin/file conftest.o` in
7203 *32-bit*)
7204 case $host in
7205 x86_64-*kfreebsd*-gnu)
7206 LD="${LD-ld} -m elf_i386_fbsd"
7207 ;;
7208 x86_64-*linux*)
7209 case `/usr/bin/file conftest.o` in
7210 *x86-64*)
7211 LD="${LD-ld} -m elf32_x86_64"
7212 ;;
7213 *)
7214 LD="${LD-ld} -m elf_i386"
7215 ;;
7216 esac
7217 ;;
7218 powerpc64le-*)
7219 LD="${LD-ld} -m elf32lppclinux"
7220 ;;
7221 powerpc64-*)
7222 LD="${LD-ld} -m elf32ppclinux"
7223 ;;
7224 s390x-*linux*)
7225 LD="${LD-ld} -m elf_s390"
7226 ;;
7227 sparc64-*linux*)
7228 LD="${LD-ld} -m elf32_sparc"
7229 ;;
7230 esac
7231 ;;
7232 *64-bit*)
7233 case $host in
7234 x86_64-*kfreebsd*-gnu)
7235 LD="${LD-ld} -m elf_x86_64_fbsd"
7236 ;;
7237 x86_64-*linux*)
7238 LD="${LD-ld} -m elf_x86_64"
7239 ;;
7240 powerpcle-*)
7241 LD="${LD-ld} -m elf64lppc"
7242 ;;
7243 powerpc-*)
7244 LD="${LD-ld} -m elf64ppc"
7245 ;;
7246 s390*-*linux*|s390*-*tpf*)
7247 LD="${LD-ld} -m elf64_s390"
7248 ;;
7249 sparc*-*linux*)
7250 LD="${LD-ld} -m elf64_sparc"
7251 ;;
7252 esac
7253 ;;
7254 esac
7255 fi
7256 rm -rf conftest*
7257 ;;
7258
7259 *-*-sco3.2v5*)
7260 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7261 SAVE_CFLAGS="$CFLAGS"
7262 CFLAGS="$CFLAGS -belf"
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7264 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7265 if ${lt_cv_cc_needs_belf+:} false; then :
7266 $as_echo_n "(cached) " >&6
7267 else
7268 ac_ext=c
7269 ac_cpp='$CPP $CPPFLAGS'
7270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7273
7274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7275 /* end confdefs.h. */
7276
7277 int
7278 main ()
7279 {
7280
7281 ;
7282 return 0;
7283 }
7284 _ACEOF
7285 if ac_fn_c_try_link "$LINENO"; then :
7286 lt_cv_cc_needs_belf=yes
7287 else
7288 lt_cv_cc_needs_belf=no
7289 fi
7290 rm -f core conftest.err conftest.$ac_objext \
7291 conftest$ac_exeext conftest.$ac_ext
7292 ac_ext=c
7293 ac_cpp='$CPP $CPPFLAGS'
7294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7297
7298 fi
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7300 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7301 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7302 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7303 CFLAGS="$SAVE_CFLAGS"
7304 fi
7305 ;;
7306 *-*solaris*)
7307 # Find out which ABI we are using.
7308 echo 'int i;' > conftest.$ac_ext
7309 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7310 (eval $ac_compile) 2>&5
7311 ac_status=$?
7312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7313 test $ac_status = 0; }; then
7314 case `/usr/bin/file conftest.o` in
7315 *64-bit*)
7316 case $lt_cv_prog_gnu_ld in
7317 yes*)
7318 case $host in
7319 i?86-*-solaris*)
7320 LD="${LD-ld} -m elf_x86_64"
7321 ;;
7322 sparc*-*-solaris*)
7323 LD="${LD-ld} -m elf64_sparc"
7324 ;;
7325 esac
7326 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7327 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7328 LD="${LD-ld}_sol2"
7329 fi
7330 ;;
7331 *)
7332 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7333 LD="${LD-ld} -64"
7334 fi
7335 ;;
7336 esac
7337 ;;
7338 esac
7339 fi
7340 rm -rf conftest*
7341 ;;
7342 esac
7343
7344 need_locks="$enable_libtool_lock"
7345
7346 if test -n "$ac_tool_prefix"; then
7347 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7348 set dummy ${ac_tool_prefix}mt; ac_word=$2
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7350 $as_echo_n "checking for $ac_word... " >&6; }
7351 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7352 $as_echo_n "(cached) " >&6
7353 else
7354 if test -n "$MANIFEST_TOOL"; then
7355 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7356 else
7357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358 for as_dir in $PATH
7359 do
7360 IFS=$as_save_IFS
7361 test -z "$as_dir" && as_dir=.
7362 for ac_exec_ext in '' $ac_executable_extensions; do
7363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7364 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7366 break 2
7367 fi
7368 done
7369 done
7370 IFS=$as_save_IFS
7371
7372 fi
7373 fi
7374 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7375 if test -n "$MANIFEST_TOOL"; then
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7377 $as_echo "$MANIFEST_TOOL" >&6; }
7378 else
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7380 $as_echo "no" >&6; }
7381 fi
7382
7383
7384 fi
7385 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7386 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7387 # Extract the first word of "mt", so it can be a program name with args.
7388 set dummy mt; ac_word=$2
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7390 $as_echo_n "checking for $ac_word... " >&6; }
7391 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7392 $as_echo_n "(cached) " >&6
7393 else
7394 if test -n "$ac_ct_MANIFEST_TOOL"; then
7395 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7396 else
7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398 for as_dir in $PATH
7399 do
7400 IFS=$as_save_IFS
7401 test -z "$as_dir" && as_dir=.
7402 for ac_exec_ext in '' $ac_executable_extensions; do
7403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7404 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7406 break 2
7407 fi
7408 done
7409 done
7410 IFS=$as_save_IFS
7411
7412 fi
7413 fi
7414 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7415 if test -n "$ac_ct_MANIFEST_TOOL"; then
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7417 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7418 else
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7420 $as_echo "no" >&6; }
7421 fi
7422
7423 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7424 MANIFEST_TOOL=":"
7425 else
7426 case $cross_compiling:$ac_tool_warned in
7427 yes:)
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7430 ac_tool_warned=yes ;;
7431 esac
7432 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7433 fi
7434 else
7435 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7436 fi
7437
7438 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7440 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7441 if ${lt_cv_path_mainfest_tool+:} false; then :
7442 $as_echo_n "(cached) " >&6
7443 else
7444 lt_cv_path_mainfest_tool=no
7445 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7446 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7447 cat conftest.err >&5
7448 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7449 lt_cv_path_mainfest_tool=yes
7450 fi
7451 rm -f conftest*
7452 fi
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7454 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7455 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7456 MANIFEST_TOOL=:
7457 fi
7458
7459
7460
7461
7462
7463
7464 case $host_os in
7465 rhapsody* | darwin*)
7466 if test -n "$ac_tool_prefix"; then
7467 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7468 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7470 $as_echo_n "checking for $ac_word... " >&6; }
7471 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7472 $as_echo_n "(cached) " >&6
7473 else
7474 if test -n "$DSYMUTIL"; then
7475 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7476 else
7477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7478 for as_dir in $PATH
7479 do
7480 IFS=$as_save_IFS
7481 test -z "$as_dir" && as_dir=.
7482 for ac_exec_ext in '' $ac_executable_extensions; do
7483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7484 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7486 break 2
7487 fi
7488 done
7489 done
7490 IFS=$as_save_IFS
7491
7492 fi
7493 fi
7494 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7495 if test -n "$DSYMUTIL"; then
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7497 $as_echo "$DSYMUTIL" >&6; }
7498 else
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7500 $as_echo "no" >&6; }
7501 fi
7502
7503
7504 fi
7505 if test -z "$ac_cv_prog_DSYMUTIL"; then
7506 ac_ct_DSYMUTIL=$DSYMUTIL
7507 # Extract the first word of "dsymutil", so it can be a program name with args.
7508 set dummy dsymutil; ac_word=$2
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7510 $as_echo_n "checking for $ac_word... " >&6; }
7511 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7512 $as_echo_n "(cached) " >&6
7513 else
7514 if test -n "$ac_ct_DSYMUTIL"; then
7515 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7516 else
7517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7518 for as_dir in $PATH
7519 do
7520 IFS=$as_save_IFS
7521 test -z "$as_dir" && as_dir=.
7522 for ac_exec_ext in '' $ac_executable_extensions; do
7523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7524 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7526 break 2
7527 fi
7528 done
7529 done
7530 IFS=$as_save_IFS
7531
7532 fi
7533 fi
7534 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7535 if test -n "$ac_ct_DSYMUTIL"; then
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7537 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7538 else
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7540 $as_echo "no" >&6; }
7541 fi
7542
7543 if test "x$ac_ct_DSYMUTIL" = x; then
7544 DSYMUTIL=":"
7545 else
7546 case $cross_compiling:$ac_tool_warned in
7547 yes:)
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7550 ac_tool_warned=yes ;;
7551 esac
7552 DSYMUTIL=$ac_ct_DSYMUTIL
7553 fi
7554 else
7555 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7556 fi
7557
7558 if test -n "$ac_tool_prefix"; then
7559 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7560 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7562 $as_echo_n "checking for $ac_word... " >&6; }
7563 if ${ac_cv_prog_NMEDIT+:} false; then :
7564 $as_echo_n "(cached) " >&6
7565 else
7566 if test -n "$NMEDIT"; then
7567 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7568 else
7569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7570 for as_dir in $PATH
7571 do
7572 IFS=$as_save_IFS
7573 test -z "$as_dir" && as_dir=.
7574 for ac_exec_ext in '' $ac_executable_extensions; do
7575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7576 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7578 break 2
7579 fi
7580 done
7581 done
7582 IFS=$as_save_IFS
7583
7584 fi
7585 fi
7586 NMEDIT=$ac_cv_prog_NMEDIT
7587 if test -n "$NMEDIT"; then
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7589 $as_echo "$NMEDIT" >&6; }
7590 else
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7592 $as_echo "no" >&6; }
7593 fi
7594
7595
7596 fi
7597 if test -z "$ac_cv_prog_NMEDIT"; then
7598 ac_ct_NMEDIT=$NMEDIT
7599 # Extract the first word of "nmedit", so it can be a program name with args.
7600 set dummy nmedit; ac_word=$2
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7602 $as_echo_n "checking for $ac_word... " >&6; }
7603 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7604 $as_echo_n "(cached) " >&6
7605 else
7606 if test -n "$ac_ct_NMEDIT"; then
7607 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7608 else
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610 for as_dir in $PATH
7611 do
7612 IFS=$as_save_IFS
7613 test -z "$as_dir" && as_dir=.
7614 for ac_exec_ext in '' $ac_executable_extensions; do
7615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7616 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7618 break 2
7619 fi
7620 done
7621 done
7622 IFS=$as_save_IFS
7623
7624 fi
7625 fi
7626 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7627 if test -n "$ac_ct_NMEDIT"; then
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7629 $as_echo "$ac_ct_NMEDIT" >&6; }
7630 else
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7632 $as_echo "no" >&6; }
7633 fi
7634
7635 if test "x$ac_ct_NMEDIT" = x; then
7636 NMEDIT=":"
7637 else
7638 case $cross_compiling:$ac_tool_warned in
7639 yes:)
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7642 ac_tool_warned=yes ;;
7643 esac
7644 NMEDIT=$ac_ct_NMEDIT
7645 fi
7646 else
7647 NMEDIT="$ac_cv_prog_NMEDIT"
7648 fi
7649
7650 if test -n "$ac_tool_prefix"; then
7651 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7652 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7654 $as_echo_n "checking for $ac_word... " >&6; }
7655 if ${ac_cv_prog_LIPO+:} false; then :
7656 $as_echo_n "(cached) " >&6
7657 else
7658 if test -n "$LIPO"; then
7659 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7660 else
7661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7662 for as_dir in $PATH
7663 do
7664 IFS=$as_save_IFS
7665 test -z "$as_dir" && as_dir=.
7666 for ac_exec_ext in '' $ac_executable_extensions; do
7667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7668 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7670 break 2
7671 fi
7672 done
7673 done
7674 IFS=$as_save_IFS
7675
7676 fi
7677 fi
7678 LIPO=$ac_cv_prog_LIPO
7679 if test -n "$LIPO"; then
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7681 $as_echo "$LIPO" >&6; }
7682 else
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7684 $as_echo "no" >&6; }
7685 fi
7686
7687
7688 fi
7689 if test -z "$ac_cv_prog_LIPO"; then
7690 ac_ct_LIPO=$LIPO
7691 # Extract the first word of "lipo", so it can be a program name with args.
7692 set dummy lipo; ac_word=$2
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7694 $as_echo_n "checking for $ac_word... " >&6; }
7695 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7696 $as_echo_n "(cached) " >&6
7697 else
7698 if test -n "$ac_ct_LIPO"; then
7699 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7700 else
7701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7702 for as_dir in $PATH
7703 do
7704 IFS=$as_save_IFS
7705 test -z "$as_dir" && as_dir=.
7706 for ac_exec_ext in '' $ac_executable_extensions; do
7707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7708 ac_cv_prog_ac_ct_LIPO="lipo"
7709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7710 break 2
7711 fi
7712 done
7713 done
7714 IFS=$as_save_IFS
7715
7716 fi
7717 fi
7718 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7719 if test -n "$ac_ct_LIPO"; then
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7721 $as_echo "$ac_ct_LIPO" >&6; }
7722 else
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7724 $as_echo "no" >&6; }
7725 fi
7726
7727 if test "x$ac_ct_LIPO" = x; then
7728 LIPO=":"
7729 else
7730 case $cross_compiling:$ac_tool_warned in
7731 yes:)
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7733 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7734 ac_tool_warned=yes ;;
7735 esac
7736 LIPO=$ac_ct_LIPO
7737 fi
7738 else
7739 LIPO="$ac_cv_prog_LIPO"
7740 fi
7741
7742 if test -n "$ac_tool_prefix"; then
7743 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7744 set dummy ${ac_tool_prefix}otool; ac_word=$2
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7746 $as_echo_n "checking for $ac_word... " >&6; }
7747 if ${ac_cv_prog_OTOOL+:} false; then :
7748 $as_echo_n "(cached) " >&6
7749 else
7750 if test -n "$OTOOL"; then
7751 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7752 else
7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754 for as_dir in $PATH
7755 do
7756 IFS=$as_save_IFS
7757 test -z "$as_dir" && as_dir=.
7758 for ac_exec_ext in '' $ac_executable_extensions; do
7759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7760 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7762 break 2
7763 fi
7764 done
7765 done
7766 IFS=$as_save_IFS
7767
7768 fi
7769 fi
7770 OTOOL=$ac_cv_prog_OTOOL
7771 if test -n "$OTOOL"; then
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7773 $as_echo "$OTOOL" >&6; }
7774 else
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7776 $as_echo "no" >&6; }
7777 fi
7778
7779
7780 fi
7781 if test -z "$ac_cv_prog_OTOOL"; then
7782 ac_ct_OTOOL=$OTOOL
7783 # Extract the first word of "otool", so it can be a program name with args.
7784 set dummy otool; ac_word=$2
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7786 $as_echo_n "checking for $ac_word... " >&6; }
7787 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7788 $as_echo_n "(cached) " >&6
7789 else
7790 if test -n "$ac_ct_OTOOL"; then
7791 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7792 else
7793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794 for as_dir in $PATH
7795 do
7796 IFS=$as_save_IFS
7797 test -z "$as_dir" && as_dir=.
7798 for ac_exec_ext in '' $ac_executable_extensions; do
7799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7800 ac_cv_prog_ac_ct_OTOOL="otool"
7801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7802 break 2
7803 fi
7804 done
7805 done
7806 IFS=$as_save_IFS
7807
7808 fi
7809 fi
7810 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7811 if test -n "$ac_ct_OTOOL"; then
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7813 $as_echo "$ac_ct_OTOOL" >&6; }
7814 else
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7816 $as_echo "no" >&6; }
7817 fi
7818
7819 if test "x$ac_ct_OTOOL" = x; then
7820 OTOOL=":"
7821 else
7822 case $cross_compiling:$ac_tool_warned in
7823 yes:)
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7826 ac_tool_warned=yes ;;
7827 esac
7828 OTOOL=$ac_ct_OTOOL
7829 fi
7830 else
7831 OTOOL="$ac_cv_prog_OTOOL"
7832 fi
7833
7834 if test -n "$ac_tool_prefix"; then
7835 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7836 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7838 $as_echo_n "checking for $ac_word... " >&6; }
7839 if ${ac_cv_prog_OTOOL64+:} false; then :
7840 $as_echo_n "(cached) " >&6
7841 else
7842 if test -n "$OTOOL64"; then
7843 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7844 else
7845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846 for as_dir in $PATH
7847 do
7848 IFS=$as_save_IFS
7849 test -z "$as_dir" && as_dir=.
7850 for ac_exec_ext in '' $ac_executable_extensions; do
7851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7852 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7854 break 2
7855 fi
7856 done
7857 done
7858 IFS=$as_save_IFS
7859
7860 fi
7861 fi
7862 OTOOL64=$ac_cv_prog_OTOOL64
7863 if test -n "$OTOOL64"; then
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7865 $as_echo "$OTOOL64" >&6; }
7866 else
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7868 $as_echo "no" >&6; }
7869 fi
7870
7871
7872 fi
7873 if test -z "$ac_cv_prog_OTOOL64"; then
7874 ac_ct_OTOOL64=$OTOOL64
7875 # Extract the first word of "otool64", so it can be a program name with args.
7876 set dummy otool64; ac_word=$2
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7878 $as_echo_n "checking for $ac_word... " >&6; }
7879 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7880 $as_echo_n "(cached) " >&6
7881 else
7882 if test -n "$ac_ct_OTOOL64"; then
7883 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7884 else
7885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7886 for as_dir in $PATH
7887 do
7888 IFS=$as_save_IFS
7889 test -z "$as_dir" && as_dir=.
7890 for ac_exec_ext in '' $ac_executable_extensions; do
7891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7892 ac_cv_prog_ac_ct_OTOOL64="otool64"
7893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7894 break 2
7895 fi
7896 done
7897 done
7898 IFS=$as_save_IFS
7899
7900 fi
7901 fi
7902 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7903 if test -n "$ac_ct_OTOOL64"; then
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7905 $as_echo "$ac_ct_OTOOL64" >&6; }
7906 else
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908 $as_echo "no" >&6; }
7909 fi
7910
7911 if test "x$ac_ct_OTOOL64" = x; then
7912 OTOOL64=":"
7913 else
7914 case $cross_compiling:$ac_tool_warned in
7915 yes:)
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7917 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7918 ac_tool_warned=yes ;;
7919 esac
7920 OTOOL64=$ac_ct_OTOOL64
7921 fi
7922 else
7923 OTOOL64="$ac_cv_prog_OTOOL64"
7924 fi
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7953 $as_echo_n "checking for -single_module linker flag... " >&6; }
7954 if ${lt_cv_apple_cc_single_mod+:} false; then :
7955 $as_echo_n "(cached) " >&6
7956 else
7957 lt_cv_apple_cc_single_mod=no
7958 if test -z "${LT_MULTI_MODULE}"; then
7959 # By default we will add the -single_module flag. You can override
7960 # by either setting the environment variable LT_MULTI_MODULE
7961 # non-empty at configure time, or by adding -multi_module to the
7962 # link flags.
7963 rm -rf libconftest.dylib*
7964 echo "int foo(void){return 1;}" > conftest.c
7965 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7966 -dynamiclib -Wl,-single_module conftest.c" >&5
7967 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7968 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7969 _lt_result=$?
7970 # If there is a non-empty error log, and "single_module"
7971 # appears in it, assume the flag caused a linker warning
7972 if test -s conftest.err && $GREP single_module conftest.err; then
7973 cat conftest.err >&5
7974 # Otherwise, if the output was created with a 0 exit code from
7975 # the compiler, it worked.
7976 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7977 lt_cv_apple_cc_single_mod=yes
7978 else
7979 cat conftest.err >&5
7980 fi
7981 rm -rf libconftest.dylib*
7982 rm -f conftest.*
7983 fi
7984 fi
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7986 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7987
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7989 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7990 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7991 $as_echo_n "(cached) " >&6
7992 else
7993 lt_cv_ld_exported_symbols_list=no
7994 save_LDFLAGS=$LDFLAGS
7995 echo "_main" > conftest.sym
7996 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7998 /* end confdefs.h. */
7999
8000 int
8001 main ()
8002 {
8003
8004 ;
8005 return 0;
8006 }
8007 _ACEOF
8008 if ac_fn_c_try_link "$LINENO"; then :
8009 lt_cv_ld_exported_symbols_list=yes
8010 else
8011 lt_cv_ld_exported_symbols_list=no
8012 fi
8013 rm -f core conftest.err conftest.$ac_objext \
8014 conftest$ac_exeext conftest.$ac_ext
8015 LDFLAGS="$save_LDFLAGS"
8016
8017 fi
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8019 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8020
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8022 $as_echo_n "checking for -force_load linker flag... " >&6; }
8023 if ${lt_cv_ld_force_load+:} false; then :
8024 $as_echo_n "(cached) " >&6
8025 else
8026 lt_cv_ld_force_load=no
8027 cat > conftest.c << _LT_EOF
8028 int forced_loaded() { return 2;}
8029 _LT_EOF
8030 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8031 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8032 echo "$AR cru libconftest.a conftest.o" >&5
8033 $AR cru libconftest.a conftest.o 2>&5
8034 echo "$RANLIB libconftest.a" >&5
8035 $RANLIB libconftest.a 2>&5
8036 cat > conftest.c << _LT_EOF
8037 int main() { return 0;}
8038 _LT_EOF
8039 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8040 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8041 _lt_result=$?
8042 if test -s conftest.err && $GREP force_load conftest.err; then
8043 cat conftest.err >&5
8044 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8045 lt_cv_ld_force_load=yes
8046 else
8047 cat conftest.err >&5
8048 fi
8049 rm -f conftest.err libconftest.a conftest conftest.c
8050 rm -rf conftest.dSYM
8051
8052 fi
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8054 $as_echo "$lt_cv_ld_force_load" >&6; }
8055 case $host_os in
8056 rhapsody* | darwin1.[012])
8057 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8058 darwin1.*)
8059 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8060 darwin*) # darwin 5.x on
8061 # if running on 10.5 or later, the deployment target defaults
8062 # to the OS version, if on x86, and 10.4, the deployment
8063 # target defaults to 10.4. Don't you love it?
8064 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8065 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8066 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8067 10.[012]*)
8068 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8069 10.*)
8070 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8071 esac
8072 ;;
8073 esac
8074 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8075 _lt_dar_single_mod='$single_module'
8076 fi
8077 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8078 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8079 else
8080 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8081 fi
8082 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8083 _lt_dsymutil='~$DSYMUTIL $lib || :'
8084 else
8085 _lt_dsymutil=
8086 fi
8087 ;;
8088 esac
8089
8090 for ac_header in dlfcn.h
8091 do :
8092 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8093 "
8094 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8095 cat >>confdefs.h <<_ACEOF
8096 #define HAVE_DLFCN_H 1
8097 _ACEOF
8098
8099 fi
8100
8101 done
8102
8103
8104
8105
8106
8107 # Set options
8108 enable_win32_dll=yes
8109
8110 case $host in
8111 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8112 if test -n "$ac_tool_prefix"; then
8113 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8114 set dummy ${ac_tool_prefix}as; ac_word=$2
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8116 $as_echo_n "checking for $ac_word... " >&6; }
8117 if ${ac_cv_prog_AS+:} false; then :
8118 $as_echo_n "(cached) " >&6
8119 else
8120 if test -n "$AS"; then
8121 ac_cv_prog_AS="$AS" # Let the user override the test.
8122 else
8123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8124 for as_dir in $PATH
8125 do
8126 IFS=$as_save_IFS
8127 test -z "$as_dir" && as_dir=.
8128 for ac_exec_ext in '' $ac_executable_extensions; do
8129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8130 ac_cv_prog_AS="${ac_tool_prefix}as"
8131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8132 break 2
8133 fi
8134 done
8135 done
8136 IFS=$as_save_IFS
8137
8138 fi
8139 fi
8140 AS=$ac_cv_prog_AS
8141 if test -n "$AS"; then
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8143 $as_echo "$AS" >&6; }
8144 else
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8146 $as_echo "no" >&6; }
8147 fi
8148
8149
8150 fi
8151 if test -z "$ac_cv_prog_AS"; then
8152 ac_ct_AS=$AS
8153 # Extract the first word of "as", so it can be a program name with args.
8154 set dummy as; ac_word=$2
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8156 $as_echo_n "checking for $ac_word... " >&6; }
8157 if ${ac_cv_prog_ac_ct_AS+:} false; then :
8158 $as_echo_n "(cached) " >&6
8159 else
8160 if test -n "$ac_ct_AS"; then
8161 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8162 else
8163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8164 for as_dir in $PATH
8165 do
8166 IFS=$as_save_IFS
8167 test -z "$as_dir" && as_dir=.
8168 for ac_exec_ext in '' $ac_executable_extensions; do
8169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8170 ac_cv_prog_ac_ct_AS="as"
8171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8172 break 2
8173 fi
8174 done
8175 done
8176 IFS=$as_save_IFS
8177
8178 fi
8179 fi
8180 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8181 if test -n "$ac_ct_AS"; then
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8183 $as_echo "$ac_ct_AS" >&6; }
8184 else
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8186 $as_echo "no" >&6; }
8187 fi
8188
8189 if test "x$ac_ct_AS" = x; then
8190 AS="false"
8191 else
8192 case $cross_compiling:$ac_tool_warned in
8193 yes:)
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8196 ac_tool_warned=yes ;;
8197 esac
8198 AS=$ac_ct_AS
8199 fi
8200 else
8201 AS="$ac_cv_prog_AS"
8202 fi
8203
8204 if test -n "$ac_tool_prefix"; then
8205 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8206 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8208 $as_echo_n "checking for $ac_word... " >&6; }
8209 if ${ac_cv_prog_DLLTOOL+:} false; then :
8210 $as_echo_n "(cached) " >&6
8211 else
8212 if test -n "$DLLTOOL"; then
8213 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8214 else
8215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8216 for as_dir in $PATH
8217 do
8218 IFS=$as_save_IFS
8219 test -z "$as_dir" && as_dir=.
8220 for ac_exec_ext in '' $ac_executable_extensions; do
8221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8222 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8224 break 2
8225 fi
8226 done
8227 done
8228 IFS=$as_save_IFS
8229
8230 fi
8231 fi
8232 DLLTOOL=$ac_cv_prog_DLLTOOL
8233 if test -n "$DLLTOOL"; then
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8235 $as_echo "$DLLTOOL" >&6; }
8236 else
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8238 $as_echo "no" >&6; }
8239 fi
8240
8241
8242 fi
8243 if test -z "$ac_cv_prog_DLLTOOL"; then
8244 ac_ct_DLLTOOL=$DLLTOOL
8245 # Extract the first word of "dlltool", so it can be a program name with args.
8246 set dummy dlltool; ac_word=$2
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8248 $as_echo_n "checking for $ac_word... " >&6; }
8249 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8250 $as_echo_n "(cached) " >&6
8251 else
8252 if test -n "$ac_ct_DLLTOOL"; then
8253 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8254 else
8255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8256 for as_dir in $PATH
8257 do
8258 IFS=$as_save_IFS
8259 test -z "$as_dir" && as_dir=.
8260 for ac_exec_ext in '' $ac_executable_extensions; do
8261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8262 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8264 break 2
8265 fi
8266 done
8267 done
8268 IFS=$as_save_IFS
8269
8270 fi
8271 fi
8272 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8273 if test -n "$ac_ct_DLLTOOL"; then
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8275 $as_echo "$ac_ct_DLLTOOL" >&6; }
8276 else
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8278 $as_echo "no" >&6; }
8279 fi
8280
8281 if test "x$ac_ct_DLLTOOL" = x; then
8282 DLLTOOL="false"
8283 else
8284 case $cross_compiling:$ac_tool_warned in
8285 yes:)
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8287 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8288 ac_tool_warned=yes ;;
8289 esac
8290 DLLTOOL=$ac_ct_DLLTOOL
8291 fi
8292 else
8293 DLLTOOL="$ac_cv_prog_DLLTOOL"
8294 fi
8295
8296 if test -n "$ac_tool_prefix"; then
8297 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8298 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8300 $as_echo_n "checking for $ac_word... " >&6; }
8301 if ${ac_cv_prog_OBJDUMP+:} false; then :
8302 $as_echo_n "(cached) " >&6
8303 else
8304 if test -n "$OBJDUMP"; then
8305 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8306 else
8307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8308 for as_dir in $PATH
8309 do
8310 IFS=$as_save_IFS
8311 test -z "$as_dir" && as_dir=.
8312 for ac_exec_ext in '' $ac_executable_extensions; do
8313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8314 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8316 break 2
8317 fi
8318 done
8319 done
8320 IFS=$as_save_IFS
8321
8322 fi
8323 fi
8324 OBJDUMP=$ac_cv_prog_OBJDUMP
8325 if test -n "$OBJDUMP"; then
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8327 $as_echo "$OBJDUMP" >&6; }
8328 else
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8330 $as_echo "no" >&6; }
8331 fi
8332
8333
8334 fi
8335 if test -z "$ac_cv_prog_OBJDUMP"; then
8336 ac_ct_OBJDUMP=$OBJDUMP
8337 # Extract the first word of "objdump", so it can be a program name with args.
8338 set dummy objdump; ac_word=$2
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8340 $as_echo_n "checking for $ac_word... " >&6; }
8341 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8342 $as_echo_n "(cached) " >&6
8343 else
8344 if test -n "$ac_ct_OBJDUMP"; then
8345 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8346 else
8347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8348 for as_dir in $PATH
8349 do
8350 IFS=$as_save_IFS
8351 test -z "$as_dir" && as_dir=.
8352 for ac_exec_ext in '' $ac_executable_extensions; do
8353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8354 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8356 break 2
8357 fi
8358 done
8359 done
8360 IFS=$as_save_IFS
8361
8362 fi
8363 fi
8364 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8365 if test -n "$ac_ct_OBJDUMP"; then
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8367 $as_echo "$ac_ct_OBJDUMP" >&6; }
8368 else
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8370 $as_echo "no" >&6; }
8371 fi
8372
8373 if test "x$ac_ct_OBJDUMP" = x; then
8374 OBJDUMP="false"
8375 else
8376 case $cross_compiling:$ac_tool_warned in
8377 yes:)
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8379 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8380 ac_tool_warned=yes ;;
8381 esac
8382 OBJDUMP=$ac_ct_OBJDUMP
8383 fi
8384 else
8385 OBJDUMP="$ac_cv_prog_OBJDUMP"
8386 fi
8387
8388 ;;
8389 esac
8390
8391 test -z "$AS" && AS=as
8392
8393
8394
8395
8396
8397 test -z "$DLLTOOL" && DLLTOOL=dlltool
8398
8399
8400
8401
8402
8403 test -z "$OBJDUMP" && OBJDUMP=objdump
8404
8405
8406
8407
8408
8409
8410
8411 enable_dlopen=no
8412
8413
8414
8415 # Check whether --enable-shared was given.
8416 if test "${enable_shared+set}" = set; then :
8417 enableval=$enable_shared; p=${PACKAGE-default}
8418 case $enableval in
8419 yes) enable_shared=yes ;;
8420 no) enable_shared=no ;;
8421 *)
8422 enable_shared=no
8423 # Look at the argument we got. We use all the common list separators.
8424 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8425 for pkg in $enableval; do
8426 IFS="$lt_save_ifs"
8427 if test "X$pkg" = "X$p"; then
8428 enable_shared=yes
8429 fi
8430 done
8431 IFS="$lt_save_ifs"
8432 ;;
8433 esac
8434 else
8435 enable_shared=yes
8436 fi
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446 # Check whether --enable-static was given.
8447 if test "${enable_static+set}" = set; then :
8448 enableval=$enable_static; p=${PACKAGE-default}
8449 case $enableval in
8450 yes) enable_static=yes ;;
8451 no) enable_static=no ;;
8452 *)
8453 enable_static=no
8454 # Look at the argument we got. We use all the common list separators.
8455 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8456 for pkg in $enableval; do
8457 IFS="$lt_save_ifs"
8458 if test "X$pkg" = "X$p"; then
8459 enable_static=yes
8460 fi
8461 done
8462 IFS="$lt_save_ifs"
8463 ;;
8464 esac
8465 else
8466 enable_static=yes
8467 fi
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478 # Check whether --with-pic was given.
8479 if test "${with_pic+set}" = set; then :
8480 withval=$with_pic; lt_p=${PACKAGE-default}
8481 case $withval in
8482 yes|no) pic_mode=$withval ;;
8483 *)
8484 pic_mode=default
8485 # Look at the argument we got. We use all the common list separators.
8486 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8487 for lt_pkg in $withval; do
8488 IFS="$lt_save_ifs"
8489 if test "X$lt_pkg" = "X$lt_p"; then
8490 pic_mode=yes
8491 fi
8492 done
8493 IFS="$lt_save_ifs"
8494 ;;
8495 esac
8496 else
8497 pic_mode=default
8498 fi
8499
8500
8501 test -z "$pic_mode" && pic_mode=default
8502
8503
8504
8505
8506
8507
8508
8509 # Check whether --enable-fast-install was given.
8510 if test "${enable_fast_install+set}" = set; then :
8511 enableval=$enable_fast_install; p=${PACKAGE-default}
8512 case $enableval in
8513 yes) enable_fast_install=yes ;;
8514 no) enable_fast_install=no ;;
8515 *)
8516 enable_fast_install=no
8517 # Look at the argument we got. We use all the common list separators.
8518 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8519 for pkg in $enableval; do
8520 IFS="$lt_save_ifs"
8521 if test "X$pkg" = "X$p"; then
8522 enable_fast_install=yes
8523 fi
8524 done
8525 IFS="$lt_save_ifs"
8526 ;;
8527 esac
8528 else
8529 enable_fast_install=yes
8530 fi
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542 # This can be used to rebuild libtool when needed
8543 LIBTOOL_DEPS="$ltmain"
8544
8545 # Always use our own libtool.
8546 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577 test -z "$LN_S" && LN_S="ln -s"
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592 if test -n "${ZSH_VERSION+set}" ; then
8593 setopt NO_GLOB_SUBST
8594 fi
8595
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8597 $as_echo_n "checking for objdir... " >&6; }
8598 if ${lt_cv_objdir+:} false; then :
8599 $as_echo_n "(cached) " >&6
8600 else
8601 rm -f .libs 2>/dev/null
8602 mkdir .libs 2>/dev/null
8603 if test -d .libs; then
8604 lt_cv_objdir=.libs
8605 else
8606 # MS-DOS does not allow filenames that begin with a dot.
8607 lt_cv_objdir=_libs
8608 fi
8609 rmdir .libs 2>/dev/null
8610 fi
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8612 $as_echo "$lt_cv_objdir" >&6; }
8613 objdir=$lt_cv_objdir
8614
8615
8616
8617
8618
8619 cat >>confdefs.h <<_ACEOF
8620 #define LT_OBJDIR "$lt_cv_objdir/"
8621 _ACEOF
8622
8623
8624
8625
8626 case $host_os in
8627 aix3*)
8628 # AIX sometimes has problems with the GCC collect2 program. For some
8629 # reason, if we set the COLLECT_NAMES environment variable, the problems
8630 # vanish in a puff of smoke.
8631 if test "X${COLLECT_NAMES+set}" != Xset; then
8632 COLLECT_NAMES=
8633 export COLLECT_NAMES
8634 fi
8635 ;;
8636 esac
8637
8638 # Global variables:
8639 ofile=libtool
8640 can_build_shared=yes
8641
8642 # All known linkers require a `.a' archive for static linking (except MSVC,
8643 # which needs '.lib').
8644 libext=a
8645
8646 with_gnu_ld="$lt_cv_prog_gnu_ld"
8647
8648 old_CC="$CC"
8649 old_CFLAGS="$CFLAGS"
8650
8651 # Set sane defaults for various variables
8652 test -z "$CC" && CC=cc
8653 test -z "$LTCC" && LTCC=$CC
8654 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8655 test -z "$LD" && LD=ld
8656 test -z "$ac_objext" && ac_objext=o
8657
8658 for cc_temp in $compiler""; do
8659 case $cc_temp in
8660 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8661 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8662 \-*) ;;
8663 *) break;;
8664 esac
8665 done
8666 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8667
8668
8669 # Only perform the check for file, if the check method requires it
8670 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8671 case $deplibs_check_method in
8672 file_magic*)
8673 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8675 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8676 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8677 $as_echo_n "(cached) " >&6
8678 else
8679 case $MAGIC_CMD in
8680 [\\/*] | ?:[\\/]*)
8681 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8682 ;;
8683 *)
8684 lt_save_MAGIC_CMD="$MAGIC_CMD"
8685 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8686 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8687 for ac_dir in $ac_dummy; do
8688 IFS="$lt_save_ifs"
8689 test -z "$ac_dir" && ac_dir=.
8690 if test -f $ac_dir/${ac_tool_prefix}file; then
8691 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8692 if test -n "$file_magic_test_file"; then
8693 case $deplibs_check_method in
8694 "file_magic "*)
8695 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8696 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8697 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8698 $EGREP "$file_magic_regex" > /dev/null; then
8699 :
8700 else
8701 cat <<_LT_EOF 1>&2
8702
8703 *** Warning: the command libtool uses to detect shared libraries,
8704 *** $file_magic_cmd, produces output that libtool cannot recognize.
8705 *** The result is that libtool may fail to recognize shared libraries
8706 *** as such. This will affect the creation of libtool libraries that
8707 *** depend on shared libraries, but programs linked with such libtool
8708 *** libraries will work regardless of this problem. Nevertheless, you
8709 *** may want to report the problem to your system manager and/or to
8710 *** bug-libtool@gnu.org
8711
8712 _LT_EOF
8713 fi ;;
8714 esac
8715 fi
8716 break
8717 fi
8718 done
8719 IFS="$lt_save_ifs"
8720 MAGIC_CMD="$lt_save_MAGIC_CMD"
8721 ;;
8722 esac
8723 fi
8724
8725 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8726 if test -n "$MAGIC_CMD"; then
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8728 $as_echo "$MAGIC_CMD" >&6; }
8729 else
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8731 $as_echo "no" >&6; }
8732 fi
8733
8734
8735
8736
8737
8738 if test -z "$lt_cv_path_MAGIC_CMD"; then
8739 if test -n "$ac_tool_prefix"; then
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8741 $as_echo_n "checking for file... " >&6; }
8742 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8743 $as_echo_n "(cached) " >&6
8744 else
8745 case $MAGIC_CMD in
8746 [\\/*] | ?:[\\/]*)
8747 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8748 ;;
8749 *)
8750 lt_save_MAGIC_CMD="$MAGIC_CMD"
8751 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8752 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8753 for ac_dir in $ac_dummy; do
8754 IFS="$lt_save_ifs"
8755 test -z "$ac_dir" && ac_dir=.
8756 if test -f $ac_dir/file; then
8757 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8758 if test -n "$file_magic_test_file"; then
8759 case $deplibs_check_method in
8760 "file_magic "*)
8761 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8762 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8763 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8764 $EGREP "$file_magic_regex" > /dev/null; then
8765 :
8766 else
8767 cat <<_LT_EOF 1>&2
8768
8769 *** Warning: the command libtool uses to detect shared libraries,
8770 *** $file_magic_cmd, produces output that libtool cannot recognize.
8771 *** The result is that libtool may fail to recognize shared libraries
8772 *** as such. This will affect the creation of libtool libraries that
8773 *** depend on shared libraries, but programs linked with such libtool
8774 *** libraries will work regardless of this problem. Nevertheless, you
8775 *** may want to report the problem to your system manager and/or to
8776 *** bug-libtool@gnu.org
8777
8778 _LT_EOF
8779 fi ;;
8780 esac
8781 fi
8782 break
8783 fi
8784 done
8785 IFS="$lt_save_ifs"
8786 MAGIC_CMD="$lt_save_MAGIC_CMD"
8787 ;;
8788 esac
8789 fi
8790
8791 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8792 if test -n "$MAGIC_CMD"; then
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8794 $as_echo "$MAGIC_CMD" >&6; }
8795 else
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8797 $as_echo "no" >&6; }
8798 fi
8799
8800
8801 else
8802 MAGIC_CMD=:
8803 fi
8804 fi
8805
8806 fi
8807 ;;
8808 esac
8809
8810 # Use C for the default configuration in the libtool script
8811
8812 lt_save_CC="$CC"
8813 ac_ext=c
8814 ac_cpp='$CPP $CPPFLAGS'
8815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8818
8819
8820 # Source file extension for C test sources.
8821 ac_ext=c
8822
8823 # Object file extension for compiled C test sources.
8824 objext=o
8825 objext=$objext
8826
8827 # Code to be used in simple compile tests
8828 lt_simple_compile_test_code="int some_variable = 0;"
8829
8830 # Code to be used in simple link tests
8831 lt_simple_link_test_code='int main(){return(0);}'
8832
8833
8834
8835
8836
8837
8838
8839 # If no C compiler was specified, use CC.
8840 LTCC=${LTCC-"$CC"}
8841
8842 # If no C compiler flags were specified, use CFLAGS.
8843 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8844
8845 # Allow CC to be a program name with arguments.
8846 compiler=$CC
8847
8848 # Save the default compiler, since it gets overwritten when the other
8849 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8850 compiler_DEFAULT=$CC
8851
8852 # save warnings/boilerplate of simple test code
8853 ac_outfile=conftest.$ac_objext
8854 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8855 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8856 _lt_compiler_boilerplate=`cat conftest.err`
8857 $RM conftest*
8858
8859 ac_outfile=conftest.$ac_objext
8860 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8861 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8862 _lt_linker_boilerplate=`cat conftest.err`
8863 $RM -r conftest*
8864
8865
8866 ## CAVEAT EMPTOR:
8867 ## There is no encapsulation within the following macros, do not change
8868 ## the running order or otherwise move them around unless you know exactly
8869 ## what you are doing...
8870 if test -n "$compiler"; then
8871
8872 lt_prog_compiler_no_builtin_flag=
8873
8874 if test "$GCC" = yes; then
8875 case $cc_basename in
8876 nvcc*)
8877 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8878 *)
8879 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8880 esac
8881
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8883 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8884 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8885 $as_echo_n "(cached) " >&6
8886 else
8887 lt_cv_prog_compiler_rtti_exceptions=no
8888 ac_outfile=conftest.$ac_objext
8889 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8890 lt_compiler_flag="-fno-rtti -fno-exceptions"
8891 # Insert the option either (1) after the last *FLAGS variable, or
8892 # (2) before a word containing "conftest.", or (3) at the end.
8893 # Note that $ac_compile itself does not contain backslashes and begins
8894 # with a dollar sign (not a hyphen), so the echo should work correctly.
8895 # The option is referenced via a variable to avoid confusing sed.
8896 lt_compile=`echo "$ac_compile" | $SED \
8897 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8898 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8899 -e 's:$: $lt_compiler_flag:'`
8900 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8901 (eval "$lt_compile" 2>conftest.err)
8902 ac_status=$?
8903 cat conftest.err >&5
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 if (exit $ac_status) && test -s "$ac_outfile"; then
8906 # The compiler can only warn and ignore the option if not recognized
8907 # So say no if there are warnings other than the usual output.
8908 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8909 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8910 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8911 lt_cv_prog_compiler_rtti_exceptions=yes
8912 fi
8913 fi
8914 $RM conftest*
8915
8916 fi
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8918 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8919
8920 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8921 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8922 else
8923 :
8924 fi
8925
8926 fi
8927
8928
8929
8930
8931
8932
8933 lt_prog_compiler_wl=
8934 lt_prog_compiler_pic=
8935 lt_prog_compiler_static=
8936
8937
8938 if test "$GCC" = yes; then
8939 lt_prog_compiler_wl='-Wl,'
8940 lt_prog_compiler_static='-static'
8941
8942 case $host_os in
8943 aix*)
8944 # All AIX code is PIC.
8945 if test "$host_cpu" = ia64; then
8946 # AIX 5 now supports IA64 processor
8947 lt_prog_compiler_static='-Bstatic'
8948 fi
8949 ;;
8950
8951 amigaos*)
8952 case $host_cpu in
8953 powerpc)
8954 # see comment about AmigaOS4 .so support
8955 lt_prog_compiler_pic='-fPIC'
8956 ;;
8957 m68k)
8958 # FIXME: we need at least 68020 code to build shared libraries, but
8959 # adding the `-m68020' flag to GCC prevents building anything better,
8960 # like `-m68040'.
8961 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8962 ;;
8963 esac
8964 ;;
8965
8966 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8967 # PIC is the default for these OSes.
8968 ;;
8969
8970 mingw* | cygwin* | pw32* | os2* | cegcc*)
8971 # This hack is so that the source file can tell whether it is being
8972 # built for inclusion in a dll (and should export symbols for example).
8973 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8974 # (--disable-auto-import) libraries
8975 lt_prog_compiler_pic='-DDLL_EXPORT'
8976 ;;
8977
8978 darwin* | rhapsody*)
8979 # PIC is the default on this platform
8980 # Common symbols not allowed in MH_DYLIB files
8981 lt_prog_compiler_pic='-fno-common'
8982 ;;
8983
8984 haiku*)
8985 # PIC is the default for Haiku.
8986 # The "-static" flag exists, but is broken.
8987 lt_prog_compiler_static=
8988 ;;
8989
8990 hpux*)
8991 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8992 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8993 # sets the default TLS model and affects inlining.
8994 case $host_cpu in
8995 hppa*64*)
8996 # +Z the default
8997 ;;
8998 *)
8999 lt_prog_compiler_pic='-fPIC'
9000 ;;
9001 esac
9002 ;;
9003
9004 interix[3-9]*)
9005 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9006 # Instead, we relocate shared libraries at runtime.
9007 ;;
9008
9009 msdosdjgpp*)
9010 # Just because we use GCC doesn't mean we suddenly get shared libraries
9011 # on systems that don't support them.
9012 lt_prog_compiler_can_build_shared=no
9013 enable_shared=no
9014 ;;
9015
9016 *nto* | *qnx*)
9017 # QNX uses GNU C++, but need to define -shared option too, otherwise
9018 # it will coredump.
9019 lt_prog_compiler_pic='-fPIC -shared'
9020 ;;
9021
9022 sysv4*MP*)
9023 if test -d /usr/nec; then
9024 lt_prog_compiler_pic=-Kconform_pic
9025 fi
9026 ;;
9027
9028 *)
9029 lt_prog_compiler_pic='-fPIC'
9030 ;;
9031 esac
9032
9033 case $cc_basename in
9034 nvcc*) # Cuda Compiler Driver 2.2
9035 lt_prog_compiler_wl='-Xlinker '
9036 if test -n "$lt_prog_compiler_pic"; then
9037 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9038 fi
9039 ;;
9040 esac
9041 else
9042 # PORTME Check for flag to pass linker flags through the system compiler.
9043 case $host_os in
9044 aix*)
9045 lt_prog_compiler_wl='-Wl,'
9046 if test "$host_cpu" = ia64; then
9047 # AIX 5 now supports IA64 processor
9048 lt_prog_compiler_static='-Bstatic'
9049 else
9050 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9051 fi
9052 ;;
9053
9054 mingw* | cygwin* | pw32* | os2* | cegcc*)
9055 # This hack is so that the source file can tell whether it is being
9056 # built for inclusion in a dll (and should export symbols for example).
9057 lt_prog_compiler_pic='-DDLL_EXPORT'
9058 ;;
9059
9060 hpux9* | hpux10* | hpux11*)
9061 lt_prog_compiler_wl='-Wl,'
9062 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9063 # not for PA HP-UX.
9064 case $host_cpu in
9065 hppa*64*|ia64*)
9066 # +Z the default
9067 ;;
9068 *)
9069 lt_prog_compiler_pic='+Z'
9070 ;;
9071 esac
9072 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9073 lt_prog_compiler_static='${wl}-a ${wl}archive'
9074 ;;
9075
9076 irix5* | irix6* | nonstopux*)
9077 lt_prog_compiler_wl='-Wl,'
9078 # PIC (with -KPIC) is the default.
9079 lt_prog_compiler_static='-non_shared'
9080 ;;
9081
9082 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9083 case $cc_basename in
9084 # old Intel for x86_64 which still supported -KPIC.
9085 ecc*)
9086 lt_prog_compiler_wl='-Wl,'
9087 lt_prog_compiler_pic='-KPIC'
9088 lt_prog_compiler_static='-static'
9089 ;;
9090 # icc used to be incompatible with GCC.
9091 # ICC 10 doesn't accept -KPIC any more.
9092 icc* | ifort*)
9093 lt_prog_compiler_wl='-Wl,'
9094 lt_prog_compiler_pic='-fPIC'
9095 lt_prog_compiler_static='-static'
9096 ;;
9097 # Lahey Fortran 8.1.
9098 lf95*)
9099 lt_prog_compiler_wl='-Wl,'
9100 lt_prog_compiler_pic='--shared'
9101 lt_prog_compiler_static='--static'
9102 ;;
9103 nagfor*)
9104 # NAG Fortran compiler
9105 lt_prog_compiler_wl='-Wl,-Wl,,'
9106 lt_prog_compiler_pic='-PIC'
9107 lt_prog_compiler_static='-Bstatic'
9108 ;;
9109 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9110 # Portland Group compilers (*not* the Pentium gcc compiler,
9111 # which looks to be a dead project)
9112 lt_prog_compiler_wl='-Wl,'
9113 lt_prog_compiler_pic='-fpic'
9114 lt_prog_compiler_static='-Bstatic'
9115 ;;
9116 ccc*)
9117 lt_prog_compiler_wl='-Wl,'
9118 # All Alpha code is PIC.
9119 lt_prog_compiler_static='-non_shared'
9120 ;;
9121 xl* | bgxl* | bgf* | mpixl*)
9122 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9123 lt_prog_compiler_wl='-Wl,'
9124 lt_prog_compiler_pic='-qpic'
9125 lt_prog_compiler_static='-qstaticlink'
9126 ;;
9127 *)
9128 case `$CC -V 2>&1 | sed 5q` in
9129 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9130 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9131 lt_prog_compiler_pic='-KPIC'
9132 lt_prog_compiler_static='-Bstatic'
9133 lt_prog_compiler_wl=''
9134 ;;
9135 *Sun\ F* | *Sun*Fortran*)
9136 lt_prog_compiler_pic='-KPIC'
9137 lt_prog_compiler_static='-Bstatic'
9138 lt_prog_compiler_wl='-Qoption ld '
9139 ;;
9140 *Sun\ C*)
9141 # Sun C 5.9
9142 lt_prog_compiler_pic='-KPIC'
9143 lt_prog_compiler_static='-Bstatic'
9144 lt_prog_compiler_wl='-Wl,'
9145 ;;
9146 *Intel*\ [CF]*Compiler*)
9147 lt_prog_compiler_wl='-Wl,'
9148 lt_prog_compiler_pic='-fPIC'
9149 lt_prog_compiler_static='-static'
9150 ;;
9151 *Portland\ Group*)
9152 lt_prog_compiler_wl='-Wl,'
9153 lt_prog_compiler_pic='-fpic'
9154 lt_prog_compiler_static='-Bstatic'
9155 ;;
9156 esac
9157 ;;
9158 esac
9159 ;;
9160
9161 newsos6)
9162 lt_prog_compiler_pic='-KPIC'
9163 lt_prog_compiler_static='-Bstatic'
9164 ;;
9165
9166 *nto* | *qnx*)
9167 # QNX uses GNU C++, but need to define -shared option too, otherwise
9168 # it will coredump.
9169 lt_prog_compiler_pic='-fPIC -shared'
9170 ;;
9171
9172 osf3* | osf4* | osf5*)
9173 lt_prog_compiler_wl='-Wl,'
9174 # All OSF/1 code is PIC.
9175 lt_prog_compiler_static='-non_shared'
9176 ;;
9177
9178 rdos*)
9179 lt_prog_compiler_static='-non_shared'
9180 ;;
9181
9182 solaris*)
9183 lt_prog_compiler_pic='-KPIC'
9184 lt_prog_compiler_static='-Bstatic'
9185 case $cc_basename in
9186 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9187 lt_prog_compiler_wl='-Qoption ld ';;
9188 *)
9189 lt_prog_compiler_wl='-Wl,';;
9190 esac
9191 ;;
9192
9193 sunos4*)
9194 lt_prog_compiler_wl='-Qoption ld '
9195 lt_prog_compiler_pic='-PIC'
9196 lt_prog_compiler_static='-Bstatic'
9197 ;;
9198
9199 sysv4 | sysv4.2uw2* | sysv4.3*)
9200 lt_prog_compiler_wl='-Wl,'
9201 lt_prog_compiler_pic='-KPIC'
9202 lt_prog_compiler_static='-Bstatic'
9203 ;;
9204
9205 sysv4*MP*)
9206 if test -d /usr/nec ;then
9207 lt_prog_compiler_pic='-Kconform_pic'
9208 lt_prog_compiler_static='-Bstatic'
9209 fi
9210 ;;
9211
9212 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9213 lt_prog_compiler_wl='-Wl,'
9214 lt_prog_compiler_pic='-KPIC'
9215 lt_prog_compiler_static='-Bstatic'
9216 ;;
9217
9218 unicos*)
9219 lt_prog_compiler_wl='-Wl,'
9220 lt_prog_compiler_can_build_shared=no
9221 ;;
9222
9223 uts4*)
9224 lt_prog_compiler_pic='-pic'
9225 lt_prog_compiler_static='-Bstatic'
9226 ;;
9227
9228 *)
9229 lt_prog_compiler_can_build_shared=no
9230 ;;
9231 esac
9232 fi
9233
9234 case $host_os in
9235 # For platforms which do not support PIC, -DPIC is meaningless:
9236 *djgpp*)
9237 lt_prog_compiler_pic=
9238 ;;
9239 *)
9240 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9241 ;;
9242 esac
9243
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9245 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9246 if ${lt_cv_prog_compiler_pic+:} false; then :
9247 $as_echo_n "(cached) " >&6
9248 else
9249 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9250 fi
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9252 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9253 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9254
9255 #
9256 # Check to make sure the PIC flag actually works.
9257 #
9258 if test -n "$lt_prog_compiler_pic"; then
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9260 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9261 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9262 $as_echo_n "(cached) " >&6
9263 else
9264 lt_cv_prog_compiler_pic_works=no
9265 ac_outfile=conftest.$ac_objext
9266 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9267 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9268 # Insert the option either (1) after the last *FLAGS variable, or
9269 # (2) before a word containing "conftest.", or (3) at the end.
9270 # Note that $ac_compile itself does not contain backslashes and begins
9271 # with a dollar sign (not a hyphen), so the echo should work correctly.
9272 # The option is referenced via a variable to avoid confusing sed.
9273 lt_compile=`echo "$ac_compile" | $SED \
9274 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9275 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9276 -e 's:$: $lt_compiler_flag:'`
9277 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9278 (eval "$lt_compile" 2>conftest.err)
9279 ac_status=$?
9280 cat conftest.err >&5
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 if (exit $ac_status) && test -s "$ac_outfile"; then
9283 # The compiler can only warn and ignore the option if not recognized
9284 # So say no if there are warnings other than the usual output.
9285 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9286 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9287 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9288 lt_cv_prog_compiler_pic_works=yes
9289 fi
9290 fi
9291 $RM conftest*
9292
9293 fi
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9295 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9296
9297 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9298 case $lt_prog_compiler_pic in
9299 "" | " "*) ;;
9300 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9301 esac
9302 else
9303 lt_prog_compiler_pic=
9304 lt_prog_compiler_can_build_shared=no
9305 fi
9306
9307 fi
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319 #
9320 # Check to make sure the static flag actually works.
9321 #
9322 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9324 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9325 if ${lt_cv_prog_compiler_static_works+:} false; then :
9326 $as_echo_n "(cached) " >&6
9327 else
9328 lt_cv_prog_compiler_static_works=no
9329 save_LDFLAGS="$LDFLAGS"
9330 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9331 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9332 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9333 # The linker can only warn and ignore the option if not recognized
9334 # So say no if there are warnings
9335 if test -s conftest.err; then
9336 # Append any errors to the config.log.
9337 cat conftest.err 1>&5
9338 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9339 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9340 if diff conftest.exp conftest.er2 >/dev/null; then
9341 lt_cv_prog_compiler_static_works=yes
9342 fi
9343 else
9344 lt_cv_prog_compiler_static_works=yes
9345 fi
9346 fi
9347 $RM -r conftest*
9348 LDFLAGS="$save_LDFLAGS"
9349
9350 fi
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9352 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9353
9354 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9355 :
9356 else
9357 lt_prog_compiler_static=
9358 fi
9359
9360
9361
9362
9363
9364
9365
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9367 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9368 if ${lt_cv_prog_compiler_c_o+:} false; then :
9369 $as_echo_n "(cached) " >&6
9370 else
9371 lt_cv_prog_compiler_c_o=no
9372 $RM -r conftest 2>/dev/null
9373 mkdir conftest
9374 cd conftest
9375 mkdir out
9376 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9377
9378 lt_compiler_flag="-o out/conftest2.$ac_objext"
9379 # Insert the option either (1) after the last *FLAGS variable, or
9380 # (2) before a word containing "conftest.", or (3) at the end.
9381 # Note that $ac_compile itself does not contain backslashes and begins
9382 # with a dollar sign (not a hyphen), so the echo should work correctly.
9383 lt_compile=`echo "$ac_compile" | $SED \
9384 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9385 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9386 -e 's:$: $lt_compiler_flag:'`
9387 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9388 (eval "$lt_compile" 2>out/conftest.err)
9389 ac_status=$?
9390 cat out/conftest.err >&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9393 then
9394 # The compiler can only warn and ignore the option if not recognized
9395 # So say no if there are warnings
9396 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9397 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9398 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9399 lt_cv_prog_compiler_c_o=yes
9400 fi
9401 fi
9402 chmod u+w . 2>&5
9403 $RM conftest*
9404 # SGI C++ compiler will create directory out/ii_files/ for
9405 # template instantiation
9406 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9407 $RM out/* && rmdir out
9408 cd ..
9409 $RM -r conftest
9410 $RM conftest*
9411
9412 fi
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9414 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9415
9416
9417
9418
9419
9420
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9422 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9423 if ${lt_cv_prog_compiler_c_o+:} false; then :
9424 $as_echo_n "(cached) " >&6
9425 else
9426 lt_cv_prog_compiler_c_o=no
9427 $RM -r conftest 2>/dev/null
9428 mkdir conftest
9429 cd conftest
9430 mkdir out
9431 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9432
9433 lt_compiler_flag="-o out/conftest2.$ac_objext"
9434 # Insert the option either (1) after the last *FLAGS variable, or
9435 # (2) before a word containing "conftest.", or (3) at the end.
9436 # Note that $ac_compile itself does not contain backslashes and begins
9437 # with a dollar sign (not a hyphen), so the echo should work correctly.
9438 lt_compile=`echo "$ac_compile" | $SED \
9439 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9440 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9441 -e 's:$: $lt_compiler_flag:'`
9442 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9443 (eval "$lt_compile" 2>out/conftest.err)
9444 ac_status=$?
9445 cat out/conftest.err >&5
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9448 then
9449 # The compiler can only warn and ignore the option if not recognized
9450 # So say no if there are warnings
9451 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9452 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9453 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9454 lt_cv_prog_compiler_c_o=yes
9455 fi
9456 fi
9457 chmod u+w . 2>&5
9458 $RM conftest*
9459 # SGI C++ compiler will create directory out/ii_files/ for
9460 # template instantiation
9461 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9462 $RM out/* && rmdir out
9463 cd ..
9464 $RM -r conftest
9465 $RM conftest*
9466
9467 fi
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9469 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9470
9471
9472
9473
9474 hard_links="nottested"
9475 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9476 # do not overwrite the value of need_locks provided by the user
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9478 $as_echo_n "checking if we can lock with hard links... " >&6; }
9479 hard_links=yes
9480 $RM conftest*
9481 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9482 touch conftest.a
9483 ln conftest.a conftest.b 2>&5 || hard_links=no
9484 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9486 $as_echo "$hard_links" >&6; }
9487 if test "$hard_links" = no; then
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9489 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9490 need_locks=warn
9491 fi
9492 else
9493 need_locks=no
9494 fi
9495
9496
9497
9498
9499
9500
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9502 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9503
9504 runpath_var=
9505 allow_undefined_flag=
9506 always_export_symbols=no
9507 archive_cmds=
9508 archive_expsym_cmds=
9509 compiler_needs_object=no
9510 enable_shared_with_static_runtimes=no
9511 export_dynamic_flag_spec=
9512 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9513 hardcode_automatic=no
9514 hardcode_direct=no
9515 hardcode_direct_absolute=no
9516 hardcode_libdir_flag_spec=
9517 hardcode_libdir_separator=
9518 hardcode_minus_L=no
9519 hardcode_shlibpath_var=unsupported
9520 inherit_rpath=no
9521 link_all_deplibs=unknown
9522 module_cmds=
9523 module_expsym_cmds=
9524 old_archive_from_new_cmds=
9525 old_archive_from_expsyms_cmds=
9526 thread_safe_flag_spec=
9527 whole_archive_flag_spec=
9528 # include_expsyms should be a list of space-separated symbols to be *always*
9529 # included in the symbol list
9530 include_expsyms=
9531 # exclude_expsyms can be an extended regexp of symbols to exclude
9532 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9533 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9534 # as well as any symbol that contains `d'.
9535 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9536 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9537 # platforms (ab)use it in PIC code, but their linkers get confused if
9538 # the symbol is explicitly referenced. Since portable code cannot
9539 # rely on this symbol name, it's probably fine to never include it in
9540 # preloaded symbol tables.
9541 # Exclude shared library initialization/finalization symbols.
9542 extract_expsyms_cmds=
9543
9544 case $host_os in
9545 cygwin* | mingw* | pw32* | cegcc*)
9546 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9547 # When not using gcc, we currently assume that we are using
9548 # Microsoft Visual C++.
9549 if test "$GCC" != yes; then
9550 with_gnu_ld=no
9551 fi
9552 ;;
9553 interix*)
9554 # we just hope/assume this is gcc and not c89 (= MSVC++)
9555 with_gnu_ld=yes
9556 ;;
9557 openbsd*)
9558 with_gnu_ld=no
9559 ;;
9560 linux* | k*bsd*-gnu | gnu*)
9561 link_all_deplibs=no
9562 ;;
9563 esac
9564
9565 ld_shlibs=yes
9566
9567 # On some targets, GNU ld is compatible enough with the native linker
9568 # that we're better off using the native interface for both.
9569 lt_use_gnu_ld_interface=no
9570 if test "$with_gnu_ld" = yes; then
9571 case $host_os in
9572 aix*)
9573 # The AIX port of GNU ld has always aspired to compatibility
9574 # with the native linker. However, as the warning in the GNU ld
9575 # block says, versions before 2.19.5* couldn't really create working
9576 # shared libraries, regardless of the interface used.
9577 case `$LD -v 2>&1` in
9578 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9579 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9580 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9581 *)
9582 lt_use_gnu_ld_interface=yes
9583 ;;
9584 esac
9585 ;;
9586 *)
9587 lt_use_gnu_ld_interface=yes
9588 ;;
9589 esac
9590 fi
9591
9592 if test "$lt_use_gnu_ld_interface" = yes; then
9593 # If archive_cmds runs LD, not CC, wlarc should be empty
9594 wlarc='${wl}'
9595
9596 # Set some defaults for GNU ld with shared library support. These
9597 # are reset later if shared libraries are not supported. Putting them
9598 # here allows them to be overridden if necessary.
9599 runpath_var=LD_RUN_PATH
9600 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9601 export_dynamic_flag_spec='${wl}--export-dynamic'
9602 # ancient GNU ld didn't support --whole-archive et. al.
9603 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9604 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9605 else
9606 whole_archive_flag_spec=
9607 fi
9608 supports_anon_versioning=no
9609 case `$LD -v 2>&1` in
9610 *GNU\ gold*) supports_anon_versioning=yes ;;
9611 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9612 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9613 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9614 *\ 2.11.*) ;; # other 2.11 versions
9615 *) supports_anon_versioning=yes ;;
9616 esac
9617
9618 # See if GNU ld supports shared libraries.
9619 case $host_os in
9620 aix[3-9]*)
9621 # On AIX/PPC, the GNU linker is very broken
9622 if test "$host_cpu" != ia64; then
9623 ld_shlibs=no
9624 cat <<_LT_EOF 1>&2
9625
9626 *** Warning: the GNU linker, at least up to release 2.19, is reported
9627 *** to be unable to reliably create shared libraries on AIX.
9628 *** Therefore, libtool is disabling shared libraries support. If you
9629 *** really care for shared libraries, you may want to install binutils
9630 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9631 *** You will then need to restart the configuration process.
9632
9633 _LT_EOF
9634 fi
9635 ;;
9636
9637 amigaos*)
9638 case $host_cpu in
9639 powerpc)
9640 # see comment about AmigaOS4 .so support
9641 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9642 archive_expsym_cmds=''
9643 ;;
9644 m68k)
9645 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)'
9646 hardcode_libdir_flag_spec='-L$libdir'
9647 hardcode_minus_L=yes
9648 ;;
9649 esac
9650 ;;
9651
9652 beos*)
9653 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9654 allow_undefined_flag=unsupported
9655 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9656 # support --undefined. This deserves some investigation. FIXME
9657 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9658 else
9659 ld_shlibs=no
9660 fi
9661 ;;
9662
9663 cygwin* | mingw* | pw32* | cegcc*)
9664 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9665 # as there is no search path for DLLs.
9666 hardcode_libdir_flag_spec='-L$libdir'
9667 export_dynamic_flag_spec='${wl}--export-all-symbols'
9668 allow_undefined_flag=unsupported
9669 always_export_symbols=no
9670 enable_shared_with_static_runtimes=yes
9671 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'
9672 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9673
9674 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9675 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9676 # If the export-symbols file already is a .def file (1st line
9677 # is EXPORTS), use it as is; otherwise, prepend...
9678 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9679 cp $export_symbols $output_objdir/$soname.def;
9680 else
9681 echo EXPORTS > $output_objdir/$soname.def;
9682 cat $export_symbols >> $output_objdir/$soname.def;
9683 fi~
9684 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9685 else
9686 ld_shlibs=no
9687 fi
9688 ;;
9689
9690 haiku*)
9691 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9692 link_all_deplibs=yes
9693 ;;
9694
9695 interix[3-9]*)
9696 hardcode_direct=no
9697 hardcode_shlibpath_var=no
9698 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9699 export_dynamic_flag_spec='${wl}-E'
9700 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9701 # Instead, shared libraries are loaded at an image base (0x10000000 by
9702 # default) and relocated if they conflict, which is a slow very memory
9703 # consuming and fragmenting process. To avoid this, we pick a random,
9704 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9705 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9706 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9707 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'
9708 ;;
9709
9710 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9711 tmp_diet=no
9712 if test "$host_os" = linux-dietlibc; then
9713 case $cc_basename in
9714 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9715 esac
9716 fi
9717 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9718 && test "$tmp_diet" = no
9719 then
9720 tmp_addflag=' $pic_flag'
9721 tmp_sharedflag='-shared'
9722 case $cc_basename,$host_cpu in
9723 pgcc*) # Portland Group C compiler
9724 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'
9725 tmp_addflag=' $pic_flag'
9726 ;;
9727 pgf77* | pgf90* | pgf95* | pgfortran*)
9728 # Portland Group f77 and f90 compilers
9729 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'
9730 tmp_addflag=' $pic_flag -Mnomain' ;;
9731 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9732 tmp_addflag=' -i_dynamic' ;;
9733 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9734 tmp_addflag=' -i_dynamic -nofor_main' ;;
9735 ifc* | ifort*) # Intel Fortran compiler
9736 tmp_addflag=' -nofor_main' ;;
9737 lf95*) # Lahey Fortran 8.1
9738 whole_archive_flag_spec=
9739 tmp_sharedflag='--shared' ;;
9740 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9741 tmp_sharedflag='-qmkshrobj'
9742 tmp_addflag= ;;
9743 nvcc*) # Cuda Compiler Driver 2.2
9744 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'
9745 compiler_needs_object=yes
9746 ;;
9747 esac
9748 case `$CC -V 2>&1 | sed 5q` in
9749 *Sun\ C*) # Sun C 5.9
9750 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'
9751 compiler_needs_object=yes
9752 tmp_sharedflag='-G' ;;
9753 *Sun\ F*) # Sun Fortran 8.3
9754 tmp_sharedflag='-G' ;;
9755 esac
9756 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9757
9758 if test "x$supports_anon_versioning" = xyes; then
9759 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9760 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9761 echo "local: *; };" >> $output_objdir/$libname.ver~
9762 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9763 fi
9764
9765 case $cc_basename in
9766 xlf* | bgf* | bgxlf* | mpixlf*)
9767 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9768 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9769 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9770 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9771 if test "x$supports_anon_versioning" = xyes; then
9772 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9773 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9774 echo "local: *; };" >> $output_objdir/$libname.ver~
9775 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9776 fi
9777 ;;
9778 esac
9779 else
9780 ld_shlibs=no
9781 fi
9782 ;;
9783
9784 netbsd* | netbsdelf*-gnu)
9785 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9786 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9787 wlarc=
9788 else
9789 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9790 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9791 fi
9792 ;;
9793
9794 solaris*)
9795 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9796 ld_shlibs=no
9797 cat <<_LT_EOF 1>&2
9798
9799 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9800 *** create shared libraries on Solaris systems. Therefore, libtool
9801 *** is disabling shared libraries support. We urge you to upgrade GNU
9802 *** binutils to release 2.9.1 or newer. Another option is to modify
9803 *** your PATH or compiler configuration so that the native linker is
9804 *** used, and then restart.
9805
9806 _LT_EOF
9807 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9808 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9809 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9810 else
9811 ld_shlibs=no
9812 fi
9813 ;;
9814
9815 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9816 case `$LD -v 2>&1` in
9817 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9818 ld_shlibs=no
9819 cat <<_LT_EOF 1>&2
9820
9821 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9822 *** reliably create shared libraries on SCO systems. Therefore, libtool
9823 *** is disabling shared libraries support. We urge you to upgrade GNU
9824 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9825 *** your PATH or compiler configuration so that the native linker is
9826 *** used, and then restart.
9827
9828 _LT_EOF
9829 ;;
9830 *)
9831 # For security reasons, it is highly recommended that you always
9832 # use absolute paths for naming shared libraries, and exclude the
9833 # DT_RUNPATH tag from executables and libraries. But doing so
9834 # requires that you compile everything twice, which is a pain.
9835 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9836 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9837 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9838 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9839 else
9840 ld_shlibs=no
9841 fi
9842 ;;
9843 esac
9844 ;;
9845
9846 sunos4*)
9847 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9848 wlarc=
9849 hardcode_direct=yes
9850 hardcode_shlibpath_var=no
9851 ;;
9852
9853 *)
9854 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9855 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9856 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9857 else
9858 ld_shlibs=no
9859 fi
9860 ;;
9861 esac
9862
9863 if test "$ld_shlibs" = no; then
9864 runpath_var=
9865 hardcode_libdir_flag_spec=
9866 export_dynamic_flag_spec=
9867 whole_archive_flag_spec=
9868 fi
9869 else
9870 # PORTME fill in a description of your system's linker (not GNU ld)
9871 case $host_os in
9872 aix3*)
9873 allow_undefined_flag=unsupported
9874 always_export_symbols=yes
9875 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'
9876 # Note: this linker hardcodes the directories in LIBPATH if there
9877 # are no directories specified by -L.
9878 hardcode_minus_L=yes
9879 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9880 # Neither direct hardcoding nor static linking is supported with a
9881 # broken collect2.
9882 hardcode_direct=unsupported
9883 fi
9884 ;;
9885
9886 aix[4-9]*)
9887 if test "$host_cpu" = ia64; then
9888 # On IA64, the linker does run time linking by default, so we don't
9889 # have to do anything special.
9890 aix_use_runtimelinking=no
9891 exp_sym_flag='-Bexport'
9892 no_entry_flag=""
9893 else
9894 # If we're using GNU nm, then we don't want the "-C" option.
9895 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9896 # Also, AIX nm treats weak defined symbols like other global
9897 # defined symbols, whereas GNU nm marks them as "W".
9898 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9899 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9900 else
9901 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9902 fi
9903 aix_use_runtimelinking=no
9904
9905 # Test if we are trying to use run time linking or normal
9906 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9907 # need to do runtime linking.
9908 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9909 for ld_flag in $LDFLAGS; do
9910 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9911 aix_use_runtimelinking=yes
9912 break
9913 fi
9914 done
9915 ;;
9916 esac
9917
9918 exp_sym_flag='-bexport'
9919 no_entry_flag='-bnoentry'
9920 fi
9921
9922 # When large executables or shared objects are built, AIX ld can
9923 # have problems creating the table of contents. If linking a library
9924 # or program results in "error TOC overflow" add -mminimal-toc to
9925 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9926 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9927
9928 archive_cmds=''
9929 hardcode_direct=yes
9930 hardcode_direct_absolute=yes
9931 hardcode_libdir_separator=':'
9932 link_all_deplibs=yes
9933 file_list_spec='${wl}-f,'
9934
9935 if test "$GCC" = yes; then
9936 case $host_os in aix4.[012]|aix4.[012].*)
9937 # We only want to do this on AIX 4.2 and lower, the check
9938 # below for broken collect2 doesn't work under 4.3+
9939 collect2name=`${CC} -print-prog-name=collect2`
9940 if test -f "$collect2name" &&
9941 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9942 then
9943 # We have reworked collect2
9944 :
9945 else
9946 # We have old collect2
9947 hardcode_direct=unsupported
9948 # It fails to find uninstalled libraries when the uninstalled
9949 # path is not listed in the libpath. Setting hardcode_minus_L
9950 # to unsupported forces relinking
9951 hardcode_minus_L=yes
9952 hardcode_libdir_flag_spec='-L$libdir'
9953 hardcode_libdir_separator=
9954 fi
9955 ;;
9956 esac
9957 shared_flag='-shared'
9958 if test "$aix_use_runtimelinking" = yes; then
9959 shared_flag="$shared_flag "'${wl}-G'
9960 fi
9961 link_all_deplibs=no
9962 else
9963 # not using gcc
9964 if test "$host_cpu" = ia64; then
9965 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9966 # chokes on -Wl,-G. The following line is correct:
9967 shared_flag='-G'
9968 else
9969 if test "$aix_use_runtimelinking" = yes; then
9970 shared_flag='${wl}-G'
9971 else
9972 shared_flag='${wl}-bM:SRE'
9973 fi
9974 fi
9975 fi
9976
9977 export_dynamic_flag_spec='${wl}-bexpall'
9978 # It seems that -bexpall does not export symbols beginning with
9979 # underscore (_), so it is better to generate a list of symbols to export.
9980 always_export_symbols=yes
9981 if test "$aix_use_runtimelinking" = yes; then
9982 # Warning - without using the other runtime loading flags (-brtl),
9983 # -berok will link without error, but may produce a broken library.
9984 allow_undefined_flag='-berok'
9985 # Determine the default libpath from the value encoded in an
9986 # empty executable.
9987 if test "${lt_cv_aix_libpath+set}" = set; then
9988 aix_libpath=$lt_cv_aix_libpath
9989 else
9990 if ${lt_cv_aix_libpath_+:} false; then :
9991 $as_echo_n "(cached) " >&6
9992 else
9993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9994 /* end confdefs.h. */
9995
9996 int
9997 main ()
9998 {
9999
10000 ;
10001 return 0;
10002 }
10003 _ACEOF
10004 if ac_fn_c_try_link "$LINENO"; then :
10005
10006 lt_aix_libpath_sed='
10007 /Import File Strings/,/^$/ {
10008 /^0/ {
10009 s/^0 *\([^ ]*\) *$/\1/
10010 p
10011 }
10012 }'
10013 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10014 # Check for a 64-bit object if we didn't find anything.
10015 if test -z "$lt_cv_aix_libpath_"; then
10016 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10017 fi
10018 fi
10019 rm -f core conftest.err conftest.$ac_objext \
10020 conftest$ac_exeext conftest.$ac_ext
10021 if test -z "$lt_cv_aix_libpath_"; then
10022 lt_cv_aix_libpath_="/usr/lib:/lib"
10023 fi
10024
10025 fi
10026
10027 aix_libpath=$lt_cv_aix_libpath_
10028 fi
10029
10030 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10031 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10032 else
10033 if test "$host_cpu" = ia64; then
10034 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10035 allow_undefined_flag="-z nodefs"
10036 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"
10037 else
10038 # Determine the default libpath from the value encoded in an
10039 # empty executable.
10040 if test "${lt_cv_aix_libpath+set}" = set; then
10041 aix_libpath=$lt_cv_aix_libpath
10042 else
10043 if ${lt_cv_aix_libpath_+:} false; then :
10044 $as_echo_n "(cached) " >&6
10045 else
10046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10047 /* end confdefs.h. */
10048
10049 int
10050 main ()
10051 {
10052
10053 ;
10054 return 0;
10055 }
10056 _ACEOF
10057 if ac_fn_c_try_link "$LINENO"; then :
10058
10059 lt_aix_libpath_sed='
10060 /Import File Strings/,/^$/ {
10061 /^0/ {
10062 s/^0 *\([^ ]*\) *$/\1/
10063 p
10064 }
10065 }'
10066 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10067 # Check for a 64-bit object if we didn't find anything.
10068 if test -z "$lt_cv_aix_libpath_"; then
10069 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10070 fi
10071 fi
10072 rm -f core conftest.err conftest.$ac_objext \
10073 conftest$ac_exeext conftest.$ac_ext
10074 if test -z "$lt_cv_aix_libpath_"; then
10075 lt_cv_aix_libpath_="/usr/lib:/lib"
10076 fi
10077
10078 fi
10079
10080 aix_libpath=$lt_cv_aix_libpath_
10081 fi
10082
10083 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10084 # Warning - without using the other run time loading flags,
10085 # -berok will link without error, but may produce a broken library.
10086 no_undefined_flag=' ${wl}-bernotok'
10087 allow_undefined_flag=' ${wl}-berok'
10088 if test "$with_gnu_ld" = yes; then
10089 # We only use this code for GNU lds that support --whole-archive.
10090 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10091 else
10092 # Exported symbols can be pulled into shared objects from archives
10093 whole_archive_flag_spec='$convenience'
10094 fi
10095 archive_cmds_need_lc=yes
10096 # This is similar to how AIX traditionally builds its shared libraries.
10097 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10098 fi
10099 fi
10100 ;;
10101
10102 amigaos*)
10103 case $host_cpu in
10104 powerpc)
10105 # see comment about AmigaOS4 .so support
10106 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10107 archive_expsym_cmds=''
10108 ;;
10109 m68k)
10110 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)'
10111 hardcode_libdir_flag_spec='-L$libdir'
10112 hardcode_minus_L=yes
10113 ;;
10114 esac
10115 ;;
10116
10117 bsdi[45]*)
10118 export_dynamic_flag_spec=-rdynamic
10119 ;;
10120
10121 cygwin* | mingw* | pw32* | cegcc*)
10122 # When not using gcc, we currently assume that we are using
10123 # Microsoft Visual C++.
10124 # hardcode_libdir_flag_spec is actually meaningless, as there is
10125 # no search path for DLLs.
10126 case $cc_basename in
10127 cl*)
10128 # Native MSVC
10129 hardcode_libdir_flag_spec=' '
10130 allow_undefined_flag=unsupported
10131 always_export_symbols=yes
10132 file_list_spec='@'
10133 # Tell ltmain to make .lib files, not .a files.
10134 libext=lib
10135 # Tell ltmain to make .dll files, not .so files.
10136 shrext_cmds=".dll"
10137 # FIXME: Setting linknames here is a bad hack.
10138 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10139 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10140 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10141 else
10142 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10143 fi~
10144 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10145 linknames='
10146 # The linker will not automatically build a static lib if we build a DLL.
10147 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10148 enable_shared_with_static_runtimes=yes
10149 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10150 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10151 # Don't use ranlib
10152 old_postinstall_cmds='chmod 644 $oldlib'
10153 postlink_cmds='lt_outputfile="@OUTPUT@"~
10154 lt_tool_outputfile="@TOOL_OUTPUT@"~
10155 case $lt_outputfile in
10156 *.exe|*.EXE) ;;
10157 *)
10158 lt_outputfile="$lt_outputfile.exe"
10159 lt_tool_outputfile="$lt_tool_outputfile.exe"
10160 ;;
10161 esac~
10162 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10163 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10164 $RM "$lt_outputfile.manifest";
10165 fi'
10166 ;;
10167 *)
10168 # Assume MSVC wrapper
10169 hardcode_libdir_flag_spec=' '
10170 allow_undefined_flag=unsupported
10171 # Tell ltmain to make .lib files, not .a files.
10172 libext=lib
10173 # Tell ltmain to make .dll files, not .so files.
10174 shrext_cmds=".dll"
10175 # FIXME: Setting linknames here is a bad hack.
10176 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10177 # The linker will automatically build a .lib file if we build a DLL.
10178 old_archive_from_new_cmds='true'
10179 # FIXME: Should let the user specify the lib program.
10180 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10181 enable_shared_with_static_runtimes=yes
10182 ;;
10183 esac
10184 ;;
10185
10186 darwin* | rhapsody*)
10187
10188
10189 archive_cmds_need_lc=no
10190 hardcode_direct=no
10191 hardcode_automatic=yes
10192 hardcode_shlibpath_var=unsupported
10193 if test "$lt_cv_ld_force_load" = "yes"; then
10194 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\"`'
10195
10196 else
10197 whole_archive_flag_spec=''
10198 fi
10199 link_all_deplibs=yes
10200 allow_undefined_flag="$_lt_dar_allow_undefined"
10201 case $cc_basename in
10202 ifort*) _lt_dar_can_shared=yes ;;
10203 *) _lt_dar_can_shared=$GCC ;;
10204 esac
10205 if test "$_lt_dar_can_shared" = "yes"; then
10206 output_verbose_link_cmd=func_echo_all
10207 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10208 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10209 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}"
10210 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}"
10211
10212 else
10213 ld_shlibs=no
10214 fi
10215
10216 ;;
10217
10218 dgux*)
10219 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10220 hardcode_libdir_flag_spec='-L$libdir'
10221 hardcode_shlibpath_var=no
10222 ;;
10223
10224 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10225 # support. Future versions do this automatically, but an explicit c++rt0.o
10226 # does not break anything, and helps significantly (at the cost of a little
10227 # extra space).
10228 freebsd2.2*)
10229 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10230 hardcode_libdir_flag_spec='-R$libdir'
10231 hardcode_direct=yes
10232 hardcode_shlibpath_var=no
10233 ;;
10234
10235 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10236 freebsd2.*)
10237 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10238 hardcode_direct=yes
10239 hardcode_minus_L=yes
10240 hardcode_shlibpath_var=no
10241 ;;
10242
10243 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10244 freebsd* | dragonfly*)
10245 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10246 hardcode_libdir_flag_spec='-R$libdir'
10247 hardcode_direct=yes
10248 hardcode_shlibpath_var=no
10249 ;;
10250
10251 hpux9*)
10252 if test "$GCC" = yes; then
10253 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10254 else
10255 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10256 fi
10257 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10258 hardcode_libdir_separator=:
10259 hardcode_direct=yes
10260
10261 # hardcode_minus_L: Not really in the search PATH,
10262 # but as the default location of the library.
10263 hardcode_minus_L=yes
10264 export_dynamic_flag_spec='${wl}-E'
10265 ;;
10266
10267 hpux10*)
10268 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10269 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10270 else
10271 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10272 fi
10273 if test "$with_gnu_ld" = no; then
10274 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10275 hardcode_libdir_separator=:
10276 hardcode_direct=yes
10277 hardcode_direct_absolute=yes
10278 export_dynamic_flag_spec='${wl}-E'
10279 # hardcode_minus_L: Not really in the search PATH,
10280 # but as the default location of the library.
10281 hardcode_minus_L=yes
10282 fi
10283 ;;
10284
10285 hpux11*)
10286 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10287 case $host_cpu in
10288 hppa*64*)
10289 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10290 ;;
10291 ia64*)
10292 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10293 ;;
10294 *)
10295 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10296 ;;
10297 esac
10298 else
10299 case $host_cpu in
10300 hppa*64*)
10301 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10302 ;;
10303 ia64*)
10304 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10305 ;;
10306 *)
10307
10308 # Older versions of the 11.00 compiler do not understand -b yet
10309 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10311 $as_echo_n "checking if $CC understands -b... " >&6; }
10312 if ${lt_cv_prog_compiler__b+:} false; then :
10313 $as_echo_n "(cached) " >&6
10314 else
10315 lt_cv_prog_compiler__b=no
10316 save_LDFLAGS="$LDFLAGS"
10317 LDFLAGS="$LDFLAGS -b"
10318 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10319 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10320 # The linker can only warn and ignore the option if not recognized
10321 # So say no if there are warnings
10322 if test -s conftest.err; then
10323 # Append any errors to the config.log.
10324 cat conftest.err 1>&5
10325 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10326 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10327 if diff conftest.exp conftest.er2 >/dev/null; then
10328 lt_cv_prog_compiler__b=yes
10329 fi
10330 else
10331 lt_cv_prog_compiler__b=yes
10332 fi
10333 fi
10334 $RM -r conftest*
10335 LDFLAGS="$save_LDFLAGS"
10336
10337 fi
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10339 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10340
10341 if test x"$lt_cv_prog_compiler__b" = xyes; then
10342 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10343 else
10344 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10345 fi
10346
10347 ;;
10348 esac
10349 fi
10350 if test "$with_gnu_ld" = no; then
10351 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10352 hardcode_libdir_separator=:
10353
10354 case $host_cpu in
10355 hppa*64*|ia64*)
10356 hardcode_direct=no
10357 hardcode_shlibpath_var=no
10358 ;;
10359 *)
10360 hardcode_direct=yes
10361 hardcode_direct_absolute=yes
10362 export_dynamic_flag_spec='${wl}-E'
10363
10364 # hardcode_minus_L: Not really in the search PATH,
10365 # but as the default location of the library.
10366 hardcode_minus_L=yes
10367 ;;
10368 esac
10369 fi
10370 ;;
10371
10372 irix5* | irix6* | nonstopux*)
10373 if test "$GCC" = yes; then
10374 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'
10375 # Try to use the -exported_symbol ld option, if it does not
10376 # work, assume that -exports_file does not work either and
10377 # implicitly export all symbols.
10378 # This should be the same for all languages, so no per-tag cache variable.
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10380 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10381 if ${lt_cv_irix_exported_symbol+:} false; then :
10382 $as_echo_n "(cached) " >&6
10383 else
10384 save_LDFLAGS="$LDFLAGS"
10385 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10387 /* end confdefs.h. */
10388 int foo (void) { return 0; }
10389 _ACEOF
10390 if ac_fn_c_try_link "$LINENO"; then :
10391 lt_cv_irix_exported_symbol=yes
10392 else
10393 lt_cv_irix_exported_symbol=no
10394 fi
10395 rm -f core conftest.err conftest.$ac_objext \
10396 conftest$ac_exeext conftest.$ac_ext
10397 LDFLAGS="$save_LDFLAGS"
10398 fi
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10400 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10401 if test "$lt_cv_irix_exported_symbol" = yes; then
10402 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'
10403 fi
10404 else
10405 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'
10406 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'
10407 fi
10408 archive_cmds_need_lc='no'
10409 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10410 hardcode_libdir_separator=:
10411 inherit_rpath=yes
10412 link_all_deplibs=yes
10413 ;;
10414
10415 netbsd* | netbsdelf*-gnu)
10416 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10417 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10418 else
10419 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10420 fi
10421 hardcode_libdir_flag_spec='-R$libdir'
10422 hardcode_direct=yes
10423 hardcode_shlibpath_var=no
10424 ;;
10425
10426 newsos6)
10427 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10428 hardcode_direct=yes
10429 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10430 hardcode_libdir_separator=:
10431 hardcode_shlibpath_var=no
10432 ;;
10433
10434 *nto* | *qnx*)
10435 ;;
10436
10437 openbsd*)
10438 if test -f /usr/libexec/ld.so; then
10439 hardcode_direct=yes
10440 hardcode_shlibpath_var=no
10441 hardcode_direct_absolute=yes
10442 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10443 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10444 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10445 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10446 export_dynamic_flag_spec='${wl}-E'
10447 else
10448 case $host_os in
10449 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10450 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10451 hardcode_libdir_flag_spec='-R$libdir'
10452 ;;
10453 *)
10454 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10455 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10456 ;;
10457 esac
10458 fi
10459 else
10460 ld_shlibs=no
10461 fi
10462 ;;
10463
10464 os2*)
10465 hardcode_libdir_flag_spec='-L$libdir'
10466 hardcode_minus_L=yes
10467 allow_undefined_flag=unsupported
10468 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10469 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10470 ;;
10471
10472 osf3*)
10473 if test "$GCC" = yes; then
10474 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10475 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'
10476 else
10477 allow_undefined_flag=' -expect_unresolved \*'
10478 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'
10479 fi
10480 archive_cmds_need_lc='no'
10481 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10482 hardcode_libdir_separator=:
10483 ;;
10484
10485 osf4* | osf5*) # as osf3* with the addition of -msym flag
10486 if test "$GCC" = yes; then
10487 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10488 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'
10489 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10490 else
10491 allow_undefined_flag=' -expect_unresolved \*'
10492 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'
10493 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~
10494 $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'
10495
10496 # Both c and cxx compiler support -rpath directly
10497 hardcode_libdir_flag_spec='-rpath $libdir'
10498 fi
10499 archive_cmds_need_lc='no'
10500 hardcode_libdir_separator=:
10501 ;;
10502
10503 solaris*)
10504 no_undefined_flag=' -z defs'
10505 if test "$GCC" = yes; then
10506 wlarc='${wl}'
10507 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10508 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10509 $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'
10510 else
10511 case `$CC -V 2>&1` in
10512 *"Compilers 5.0"*)
10513 wlarc=''
10514 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10515 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10516 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10517 ;;
10518 *)
10519 wlarc='${wl}'
10520 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10521 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10522 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10523 ;;
10524 esac
10525 fi
10526 hardcode_libdir_flag_spec='-R$libdir'
10527 hardcode_shlibpath_var=no
10528 case $host_os in
10529 solaris2.[0-5] | solaris2.[0-5].*) ;;
10530 *)
10531 # The compiler driver will combine and reorder linker options,
10532 # but understands `-z linker_flag'. GCC discards it without `$wl',
10533 # but is careful enough not to reorder.
10534 # Supported since Solaris 2.6 (maybe 2.5.1?)
10535 if test "$GCC" = yes; then
10536 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10537 else
10538 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10539 fi
10540 ;;
10541 esac
10542 link_all_deplibs=yes
10543 ;;
10544
10545 sunos4*)
10546 if test "x$host_vendor" = xsequent; then
10547 # Use $CC to link under sequent, because it throws in some extra .o
10548 # files that make .init and .fini sections work.
10549 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10550 else
10551 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10552 fi
10553 hardcode_libdir_flag_spec='-L$libdir'
10554 hardcode_direct=yes
10555 hardcode_minus_L=yes
10556 hardcode_shlibpath_var=no
10557 ;;
10558
10559 sysv4)
10560 case $host_vendor in
10561 sni)
10562 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10563 hardcode_direct=yes # is this really true???
10564 ;;
10565 siemens)
10566 ## LD is ld it makes a PLAMLIB
10567 ## CC just makes a GrossModule.
10568 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10569 reload_cmds='$CC -r -o $output$reload_objs'
10570 hardcode_direct=no
10571 ;;
10572 motorola)
10573 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10574 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10575 ;;
10576 esac
10577 runpath_var='LD_RUN_PATH'
10578 hardcode_shlibpath_var=no
10579 ;;
10580
10581 sysv4.3*)
10582 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10583 hardcode_shlibpath_var=no
10584 export_dynamic_flag_spec='-Bexport'
10585 ;;
10586
10587 sysv4*MP*)
10588 if test -d /usr/nec; then
10589 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10590 hardcode_shlibpath_var=no
10591 runpath_var=LD_RUN_PATH
10592 hardcode_runpath_var=yes
10593 ld_shlibs=yes
10594 fi
10595 ;;
10596
10597 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10598 no_undefined_flag='${wl}-z,text'
10599 archive_cmds_need_lc=no
10600 hardcode_shlibpath_var=no
10601 runpath_var='LD_RUN_PATH'
10602
10603 if test "$GCC" = yes; then
10604 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10605 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10606 else
10607 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10608 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10609 fi
10610 ;;
10611
10612 sysv5* | sco3.2v5* | sco5v6*)
10613 # Note: We can NOT use -z defs as we might desire, because we do not
10614 # link with -lc, and that would cause any symbols used from libc to
10615 # always be unresolved, which means just about no library would
10616 # ever link correctly. If we're not using GNU ld we use -z text
10617 # though, which does catch some bad symbols but isn't as heavy-handed
10618 # as -z defs.
10619 no_undefined_flag='${wl}-z,text'
10620 allow_undefined_flag='${wl}-z,nodefs'
10621 archive_cmds_need_lc=no
10622 hardcode_shlibpath_var=no
10623 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10624 hardcode_libdir_separator=':'
10625 link_all_deplibs=yes
10626 export_dynamic_flag_spec='${wl}-Bexport'
10627 runpath_var='LD_RUN_PATH'
10628
10629 if test "$GCC" = yes; then
10630 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10631 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10632 else
10633 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10634 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10635 fi
10636 ;;
10637
10638 uts4*)
10639 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10640 hardcode_libdir_flag_spec='-L$libdir'
10641 hardcode_shlibpath_var=no
10642 ;;
10643
10644 *)
10645 ld_shlibs=no
10646 ;;
10647 esac
10648
10649 if test x$host_vendor = xsni; then
10650 case $host in
10651 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10652 export_dynamic_flag_spec='${wl}-Blargedynsym'
10653 ;;
10654 esac
10655 fi
10656 fi
10657
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10659 $as_echo "$ld_shlibs" >&6; }
10660 test "$ld_shlibs" = no && can_build_shared=no
10661
10662 with_gnu_ld=$with_gnu_ld
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678 #
10679 # Do we need to explicitly link libc?
10680 #
10681 case "x$archive_cmds_need_lc" in
10682 x|xyes)
10683 # Assume -lc should be added
10684 archive_cmds_need_lc=yes
10685
10686 if test "$enable_shared" = yes && test "$GCC" = yes; then
10687 case $archive_cmds in
10688 *'~'*)
10689 # FIXME: we may have to deal with multi-command sequences.
10690 ;;
10691 '$CC '*)
10692 # Test whether the compiler implicitly links with -lc since on some
10693 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10694 # to ld, don't add -lc before -lgcc.
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10696 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10697 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10698 $as_echo_n "(cached) " >&6
10699 else
10700 $RM conftest*
10701 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10702
10703 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10704 (eval $ac_compile) 2>&5
10705 ac_status=$?
10706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10707 test $ac_status = 0; } 2>conftest.err; then
10708 soname=conftest
10709 lib=conftest
10710 libobjs=conftest.$ac_objext
10711 deplibs=
10712 wl=$lt_prog_compiler_wl
10713 pic_flag=$lt_prog_compiler_pic
10714 compiler_flags=-v
10715 linker_flags=-v
10716 verstring=
10717 output_objdir=.
10718 libname=conftest
10719 lt_save_allow_undefined_flag=$allow_undefined_flag
10720 allow_undefined_flag=
10721 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10722 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10723 ac_status=$?
10724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10725 test $ac_status = 0; }
10726 then
10727 lt_cv_archive_cmds_need_lc=no
10728 else
10729 lt_cv_archive_cmds_need_lc=yes
10730 fi
10731 allow_undefined_flag=$lt_save_allow_undefined_flag
10732 else
10733 cat conftest.err 1>&5
10734 fi
10735 $RM conftest*
10736
10737 fi
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10739 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10740 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10741 ;;
10742 esac
10743 fi
10744 ;;
10745 esac
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
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10899 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10900
10901 if test "$GCC" = yes; then
10902 case $host_os in
10903 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10904 *) lt_awk_arg="/^libraries:/" ;;
10905 esac
10906 case $host_os in
10907 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10908 *) lt_sed_strip_eq="s,=/,/,g" ;;
10909 esac
10910 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10911 case $lt_search_path_spec in
10912 *\;*)
10913 # if the path contains ";" then we assume it to be the separator
10914 # otherwise default to the standard path separator (i.e. ":") - it is
10915 # assumed that no part of a normal pathname contains ";" but that should
10916 # okay in the real world where ";" in dirpaths is itself problematic.
10917 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10918 ;;
10919 *)
10920 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10921 ;;
10922 esac
10923 # Ok, now we have the path, separated by spaces, we can step through it
10924 # and add multilib dir if necessary.
10925 lt_tmp_lt_search_path_spec=
10926 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10927 for lt_sys_path in $lt_search_path_spec; do
10928 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10929 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10930 else
10931 test -d "$lt_sys_path" && \
10932 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10933 fi
10934 done
10935 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10936 BEGIN {RS=" "; FS="/|\n";} {
10937 lt_foo="";
10938 lt_count=0;
10939 for (lt_i = NF; lt_i > 0; lt_i--) {
10940 if ($lt_i != "" && $lt_i != ".") {
10941 if ($lt_i == "..") {
10942 lt_count++;
10943 } else {
10944 if (lt_count == 0) {
10945 lt_foo="/" $lt_i lt_foo;
10946 } else {
10947 lt_count--;
10948 }
10949 }
10950 }
10951 }
10952 if (lt_foo != "") { lt_freq[lt_foo]++; }
10953 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10954 }'`
10955 # AWK program above erroneously prepends '/' to C:/dos/paths
10956 # for these hosts.
10957 case $host_os in
10958 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10959 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10960 esac
10961 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10962 else
10963 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10964 fi
10965 library_names_spec=
10966 libname_spec='lib$name'
10967 soname_spec=
10968 shrext_cmds=".so"
10969 postinstall_cmds=
10970 postuninstall_cmds=
10971 finish_cmds=
10972 finish_eval=
10973 shlibpath_var=
10974 shlibpath_overrides_runpath=unknown
10975 version_type=none
10976 dynamic_linker="$host_os ld.so"
10977 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10978 need_lib_prefix=unknown
10979 hardcode_into_libs=no
10980
10981 # when you set need_version to no, make sure it does not cause -set_version
10982 # flags to be left without arguments
10983 need_version=unknown
10984
10985 case $host_os in
10986 aix3*)
10987 version_type=linux # correct to gnu/linux during the next big refactor
10988 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10989 shlibpath_var=LIBPATH
10990
10991 # AIX 3 has no versioning support, so we append a major version to the name.
10992 soname_spec='${libname}${release}${shared_ext}$major'
10993 ;;
10994
10995 aix[4-9]*)
10996 version_type=linux # correct to gnu/linux during the next big refactor
10997 need_lib_prefix=no
10998 need_version=no
10999 hardcode_into_libs=yes
11000 if test "$host_cpu" = ia64; then
11001 # AIX 5 supports IA64
11002 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11003 shlibpath_var=LD_LIBRARY_PATH
11004 else
11005 # With GCC up to 2.95.x, collect2 would create an import file
11006 # for dependence libraries. The import file would start with
11007 # the line `#! .'. This would cause the generated library to
11008 # depend on `.', always an invalid library. This was fixed in
11009 # development snapshots of GCC prior to 3.0.
11010 case $host_os in
11011 aix4 | aix4.[01] | aix4.[01].*)
11012 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11013 echo ' yes '
11014 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11015 :
11016 else
11017 can_build_shared=no
11018 fi
11019 ;;
11020 esac
11021 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11022 # soname into executable. Probably we can add versioning support to
11023 # collect2, so additional links can be useful in future.
11024 if test "$aix_use_runtimelinking" = yes; then
11025 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11026 # instead of lib<name>.a to let people know that these are not
11027 # typical AIX shared libraries.
11028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11029 else
11030 # We preserve .a as extension for shared libraries through AIX4.2
11031 # and later when we are not doing run time linking.
11032 library_names_spec='${libname}${release}.a $libname.a'
11033 soname_spec='${libname}${release}${shared_ext}$major'
11034 fi
11035 shlibpath_var=LIBPATH
11036 fi
11037 ;;
11038
11039 amigaos*)
11040 case $host_cpu in
11041 powerpc)
11042 # Since July 2007 AmigaOS4 officially supports .so libraries.
11043 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11045 ;;
11046 m68k)
11047 library_names_spec='$libname.ixlibrary $libname.a'
11048 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11049 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
11050 ;;
11051 esac
11052 ;;
11053
11054 beos*)
11055 library_names_spec='${libname}${shared_ext}'
11056 dynamic_linker="$host_os ld.so"
11057 shlibpath_var=LIBRARY_PATH
11058 ;;
11059
11060 bsdi[45]*)
11061 version_type=linux # correct to gnu/linux during the next big refactor
11062 need_version=no
11063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11064 soname_spec='${libname}${release}${shared_ext}$major'
11065 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11066 shlibpath_var=LD_LIBRARY_PATH
11067 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11068 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11069 # the default ld.so.conf also contains /usr/contrib/lib and
11070 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11071 # libtool to hard-code these into programs
11072 ;;
11073
11074 cygwin* | mingw* | pw32* | cegcc*)
11075 version_type=windows
11076 shrext_cmds=".dll"
11077 need_version=no
11078 need_lib_prefix=no
11079
11080 case $GCC,$cc_basename in
11081 yes,*)
11082 # gcc
11083 library_names_spec='$libname.dll.a'
11084 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11085 postinstall_cmds='base_file=`basename \${file}`~
11086 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11087 dldir=$destdir/`dirname \$dlpath`~
11088 test -d \$dldir || mkdir -p \$dldir~
11089 $install_prog $dir/$dlname \$dldir/$dlname~
11090 chmod a+x \$dldir/$dlname~
11091 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11092 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11093 fi'
11094 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11095 dlpath=$dir/\$dldll~
11096 $RM \$dlpath'
11097 shlibpath_overrides_runpath=yes
11098
11099 case $host_os in
11100 cygwin*)
11101 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11102 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11103
11104 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11105 ;;
11106 mingw* | cegcc*)
11107 # MinGW DLLs use traditional 'lib' prefix
11108 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11109 ;;
11110 pw32*)
11111 # pw32 DLLs use 'pw' prefix rather than 'lib'
11112 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11113 ;;
11114 esac
11115 dynamic_linker='Win32 ld.exe'
11116 ;;
11117
11118 *,cl*)
11119 # Native MSVC
11120 libname_spec='$name'
11121 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11122 library_names_spec='${libname}.dll.lib'
11123
11124 case $build_os in
11125 mingw*)
11126 sys_lib_search_path_spec=
11127 lt_save_ifs=$IFS
11128 IFS=';'
11129 for lt_path in $LIB
11130 do
11131 IFS=$lt_save_ifs
11132 # Let DOS variable expansion print the short 8.3 style file name.
11133 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11134 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11135 done
11136 IFS=$lt_save_ifs
11137 # Convert to MSYS style.
11138 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11139 ;;
11140 cygwin*)
11141 # Convert to unix form, then to dos form, then back to unix form
11142 # but this time dos style (no spaces!) so that the unix form looks
11143 # like /cygdrive/c/PROGRA~1:/cygdr...
11144 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11145 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11146 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11147 ;;
11148 *)
11149 sys_lib_search_path_spec="$LIB"
11150 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11151 # It is most probably a Windows format PATH.
11152 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11153 else
11154 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11155 fi
11156 # FIXME: find the short name or the path components, as spaces are
11157 # common. (e.g. "Program Files" -> "PROGRA~1")
11158 ;;
11159 esac
11160
11161 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11162 postinstall_cmds='base_file=`basename \${file}`~
11163 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11164 dldir=$destdir/`dirname \$dlpath`~
11165 test -d \$dldir || mkdir -p \$dldir~
11166 $install_prog $dir/$dlname \$dldir/$dlname'
11167 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11168 dlpath=$dir/\$dldll~
11169 $RM \$dlpath'
11170 shlibpath_overrides_runpath=yes
11171 dynamic_linker='Win32 link.exe'
11172 ;;
11173
11174 *)
11175 # Assume MSVC wrapper
11176 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11177 dynamic_linker='Win32 ld.exe'
11178 ;;
11179 esac
11180 # FIXME: first we should search . and the directory the executable is in
11181 shlibpath_var=PATH
11182 ;;
11183
11184 darwin* | rhapsody*)
11185 dynamic_linker="$host_os dyld"
11186 version_type=darwin
11187 need_lib_prefix=no
11188 need_version=no
11189 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11190 soname_spec='${libname}${release}${major}$shared_ext'
11191 shlibpath_overrides_runpath=yes
11192 shlibpath_var=DYLD_LIBRARY_PATH
11193 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11194
11195 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11196 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11197 ;;
11198
11199 dgux*)
11200 version_type=linux # correct to gnu/linux during the next big refactor
11201 need_lib_prefix=no
11202 need_version=no
11203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11204 soname_spec='${libname}${release}${shared_ext}$major'
11205 shlibpath_var=LD_LIBRARY_PATH
11206 ;;
11207
11208 freebsd* | dragonfly*)
11209 # DragonFly does not have aout. When/if they implement a new
11210 # versioning mechanism, adjust this.
11211 if test -x /usr/bin/objformat; then
11212 objformat=`/usr/bin/objformat`
11213 else
11214 case $host_os in
11215 freebsd[23].*) objformat=aout ;;
11216 *) objformat=elf ;;
11217 esac
11218 fi
11219 version_type=freebsd-$objformat
11220 case $version_type in
11221 freebsd-elf*)
11222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11223 need_version=no
11224 need_lib_prefix=no
11225 ;;
11226 freebsd-*)
11227 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11228 need_version=yes
11229 ;;
11230 esac
11231 shlibpath_var=LD_LIBRARY_PATH
11232 case $host_os in
11233 freebsd2.*)
11234 shlibpath_overrides_runpath=yes
11235 ;;
11236 freebsd3.[01]* | freebsdelf3.[01]*)
11237 shlibpath_overrides_runpath=yes
11238 hardcode_into_libs=yes
11239 ;;
11240 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11241 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11242 shlibpath_overrides_runpath=no
11243 hardcode_into_libs=yes
11244 ;;
11245 *) # from 4.6 on, and DragonFly
11246 shlibpath_overrides_runpath=yes
11247 hardcode_into_libs=yes
11248 ;;
11249 esac
11250 ;;
11251
11252 haiku*)
11253 version_type=linux # correct to gnu/linux during the next big refactor
11254 need_lib_prefix=no
11255 need_version=no
11256 dynamic_linker="$host_os runtime_loader"
11257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11258 soname_spec='${libname}${release}${shared_ext}$major'
11259 shlibpath_var=LIBRARY_PATH
11260 shlibpath_overrides_runpath=yes
11261 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11262 hardcode_into_libs=yes
11263 ;;
11264
11265 hpux9* | hpux10* | hpux11*)
11266 # Give a soname corresponding to the major version so that dld.sl refuses to
11267 # link against other versions.
11268 version_type=sunos
11269 need_lib_prefix=no
11270 need_version=no
11271 case $host_cpu in
11272 ia64*)
11273 shrext_cmds='.so'
11274 hardcode_into_libs=yes
11275 dynamic_linker="$host_os dld.so"
11276 shlibpath_var=LD_LIBRARY_PATH
11277 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11279 soname_spec='${libname}${release}${shared_ext}$major'
11280 if test "X$HPUX_IA64_MODE" = X32; then
11281 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11282 else
11283 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11284 fi
11285 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11286 ;;
11287 hppa*64*)
11288 shrext_cmds='.sl'
11289 hardcode_into_libs=yes
11290 dynamic_linker="$host_os dld.sl"
11291 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11292 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11294 soname_spec='${libname}${release}${shared_ext}$major'
11295 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11296 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11297 ;;
11298 *)
11299 shrext_cmds='.sl'
11300 dynamic_linker="$host_os dld.sl"
11301 shlibpath_var=SHLIB_PATH
11302 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11304 soname_spec='${libname}${release}${shared_ext}$major'
11305 ;;
11306 esac
11307 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11308 postinstall_cmds='chmod 555 $lib'
11309 # or fails outright, so override atomically:
11310 install_override_mode=555
11311 ;;
11312
11313 interix[3-9]*)
11314 version_type=linux # correct to gnu/linux during the next big refactor
11315 need_lib_prefix=no
11316 need_version=no
11317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11318 soname_spec='${libname}${release}${shared_ext}$major'
11319 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11320 shlibpath_var=LD_LIBRARY_PATH
11321 shlibpath_overrides_runpath=no
11322 hardcode_into_libs=yes
11323 ;;
11324
11325 irix5* | irix6* | nonstopux*)
11326 case $host_os in
11327 nonstopux*) version_type=nonstopux ;;
11328 *)
11329 if test "$lt_cv_prog_gnu_ld" = yes; then
11330 version_type=linux # correct to gnu/linux during the next big refactor
11331 else
11332 version_type=irix
11333 fi ;;
11334 esac
11335 need_lib_prefix=no
11336 need_version=no
11337 soname_spec='${libname}${release}${shared_ext}$major'
11338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11339 case $host_os in
11340 irix5* | nonstopux*)
11341 libsuff= shlibsuff=
11342 ;;
11343 *)
11344 case $LD in # libtool.m4 will add one of these switches to LD
11345 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11346 libsuff= shlibsuff= libmagic=32-bit;;
11347 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11348 libsuff=32 shlibsuff=N32 libmagic=N32;;
11349 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11350 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11351 *) libsuff= shlibsuff= libmagic=never-match;;
11352 esac
11353 ;;
11354 esac
11355 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11356 shlibpath_overrides_runpath=no
11357 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11358 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11359 hardcode_into_libs=yes
11360 ;;
11361
11362 # No shared lib support for Linux oldld, aout, or coff.
11363 linux*oldld* | linux*aout* | linux*coff*)
11364 dynamic_linker=no
11365 ;;
11366
11367 # This must be glibc/ELF.
11368 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11369 version_type=linux # correct to gnu/linux during the next big refactor
11370 need_lib_prefix=no
11371 need_version=no
11372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11373 soname_spec='${libname}${release}${shared_ext}$major'
11374 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11375 shlibpath_var=LD_LIBRARY_PATH
11376 shlibpath_overrides_runpath=no
11377
11378 # Some binutils ld are patched to set DT_RUNPATH
11379 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11380 $as_echo_n "(cached) " >&6
11381 else
11382 lt_cv_shlibpath_overrides_runpath=no
11383 save_LDFLAGS=$LDFLAGS
11384 save_libdir=$libdir
11385 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11386 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11388 /* end confdefs.h. */
11389
11390 int
11391 main ()
11392 {
11393
11394 ;
11395 return 0;
11396 }
11397 _ACEOF
11398 if ac_fn_c_try_link "$LINENO"; then :
11399 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11400 lt_cv_shlibpath_overrides_runpath=yes
11401 fi
11402 fi
11403 rm -f core conftest.err conftest.$ac_objext \
11404 conftest$ac_exeext conftest.$ac_ext
11405 LDFLAGS=$save_LDFLAGS
11406 libdir=$save_libdir
11407
11408 fi
11409
11410 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11411
11412 # This implies no fast_install, which is unacceptable.
11413 # Some rework will be needed to allow for fast_install
11414 # before this can be enabled.
11415 hardcode_into_libs=yes
11416
11417 # Append ld.so.conf contents to the search path
11418 if test -f /etc/ld.so.conf; then
11419 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' ' '`
11420 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11421 fi
11422
11423 # We used to test for /lib/ld.so.1 and disable shared libraries on
11424 # powerpc, because MkLinux only supported shared libraries with the
11425 # GNU dynamic linker. Since this was broken with cross compilers,
11426 # most powerpc-linux boxes support dynamic linking these days and
11427 # people can always --disable-shared, the test was removed, and we
11428 # assume the GNU/Linux dynamic linker is in use.
11429 dynamic_linker='GNU/Linux ld.so'
11430 ;;
11431
11432 netbsdelf*-gnu)
11433 version_type=linux
11434 need_lib_prefix=no
11435 need_version=no
11436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11437 soname_spec='${libname}${release}${shared_ext}$major'
11438 shlibpath_var=LD_LIBRARY_PATH
11439 shlibpath_overrides_runpath=no
11440 hardcode_into_libs=yes
11441 dynamic_linker='NetBSD ld.elf_so'
11442 ;;
11443
11444 netbsd*)
11445 version_type=sunos
11446 need_lib_prefix=no
11447 need_version=no
11448 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11450 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11451 dynamic_linker='NetBSD (a.out) ld.so'
11452 else
11453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11454 soname_spec='${libname}${release}${shared_ext}$major'
11455 dynamic_linker='NetBSD ld.elf_so'
11456 fi
11457 shlibpath_var=LD_LIBRARY_PATH
11458 shlibpath_overrides_runpath=yes
11459 hardcode_into_libs=yes
11460 ;;
11461
11462 newsos6)
11463 version_type=linux # correct to gnu/linux during the next big refactor
11464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11465 shlibpath_var=LD_LIBRARY_PATH
11466 shlibpath_overrides_runpath=yes
11467 ;;
11468
11469 *nto* | *qnx*)
11470 version_type=qnx
11471 need_lib_prefix=no
11472 need_version=no
11473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11474 soname_spec='${libname}${release}${shared_ext}$major'
11475 shlibpath_var=LD_LIBRARY_PATH
11476 shlibpath_overrides_runpath=no
11477 hardcode_into_libs=yes
11478 dynamic_linker='ldqnx.so'
11479 ;;
11480
11481 openbsd*)
11482 version_type=sunos
11483 sys_lib_dlsearch_path_spec="/usr/lib"
11484 need_lib_prefix=no
11485 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11486 case $host_os in
11487 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11488 *) need_version=no ;;
11489 esac
11490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11491 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11492 shlibpath_var=LD_LIBRARY_PATH
11493 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11494 case $host_os in
11495 openbsd2.[89] | openbsd2.[89].*)
11496 shlibpath_overrides_runpath=no
11497 ;;
11498 *)
11499 shlibpath_overrides_runpath=yes
11500 ;;
11501 esac
11502 else
11503 shlibpath_overrides_runpath=yes
11504 fi
11505 ;;
11506
11507 os2*)
11508 libname_spec='$name'
11509 shrext_cmds=".dll"
11510 need_lib_prefix=no
11511 library_names_spec='$libname${shared_ext} $libname.a'
11512 dynamic_linker='OS/2 ld.exe'
11513 shlibpath_var=LIBPATH
11514 ;;
11515
11516 osf3* | osf4* | osf5*)
11517 version_type=osf
11518 need_lib_prefix=no
11519 need_version=no
11520 soname_spec='${libname}${release}${shared_ext}$major'
11521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11522 shlibpath_var=LD_LIBRARY_PATH
11523 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11524 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11525 ;;
11526
11527 rdos*)
11528 dynamic_linker=no
11529 ;;
11530
11531 solaris*)
11532 version_type=linux # correct to gnu/linux during the next big refactor
11533 need_lib_prefix=no
11534 need_version=no
11535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11536 soname_spec='${libname}${release}${shared_ext}$major'
11537 shlibpath_var=LD_LIBRARY_PATH
11538 shlibpath_overrides_runpath=yes
11539 hardcode_into_libs=yes
11540 # ldd complains unless libraries are executable
11541 postinstall_cmds='chmod +x $lib'
11542 ;;
11543
11544 sunos4*)
11545 version_type=sunos
11546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11547 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11548 shlibpath_var=LD_LIBRARY_PATH
11549 shlibpath_overrides_runpath=yes
11550 if test "$with_gnu_ld" = yes; then
11551 need_lib_prefix=no
11552 fi
11553 need_version=yes
11554 ;;
11555
11556 sysv4 | sysv4.3*)
11557 version_type=linux # correct to gnu/linux during the next big refactor
11558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11559 soname_spec='${libname}${release}${shared_ext}$major'
11560 shlibpath_var=LD_LIBRARY_PATH
11561 case $host_vendor in
11562 sni)
11563 shlibpath_overrides_runpath=no
11564 need_lib_prefix=no
11565 runpath_var=LD_RUN_PATH
11566 ;;
11567 siemens)
11568 need_lib_prefix=no
11569 ;;
11570 motorola)
11571 need_lib_prefix=no
11572 need_version=no
11573 shlibpath_overrides_runpath=no
11574 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11575 ;;
11576 esac
11577 ;;
11578
11579 sysv4*MP*)
11580 if test -d /usr/nec ;then
11581 version_type=linux # correct to gnu/linux during the next big refactor
11582 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11583 soname_spec='$libname${shared_ext}.$major'
11584 shlibpath_var=LD_LIBRARY_PATH
11585 fi
11586 ;;
11587
11588 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11589 version_type=freebsd-elf
11590 need_lib_prefix=no
11591 need_version=no
11592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11593 soname_spec='${libname}${release}${shared_ext}$major'
11594 shlibpath_var=LD_LIBRARY_PATH
11595 shlibpath_overrides_runpath=yes
11596 hardcode_into_libs=yes
11597 if test "$with_gnu_ld" = yes; then
11598 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11599 else
11600 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11601 case $host_os in
11602 sco3.2v5*)
11603 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11604 ;;
11605 esac
11606 fi
11607 sys_lib_dlsearch_path_spec='/usr/lib'
11608 ;;
11609
11610 tpf*)
11611 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11612 version_type=linux # correct to gnu/linux during the next big refactor
11613 need_lib_prefix=no
11614 need_version=no
11615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11616 shlibpath_var=LD_LIBRARY_PATH
11617 shlibpath_overrides_runpath=no
11618 hardcode_into_libs=yes
11619 ;;
11620
11621 uts4*)
11622 version_type=linux # correct to gnu/linux during the next big refactor
11623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11624 soname_spec='${libname}${release}${shared_ext}$major'
11625 shlibpath_var=LD_LIBRARY_PATH
11626 ;;
11627
11628 *)
11629 dynamic_linker=no
11630 ;;
11631 esac
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11633 $as_echo "$dynamic_linker" >&6; }
11634 test "$dynamic_linker" = no && can_build_shared=no
11635
11636 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11637 if test "$GCC" = yes; then
11638 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11639 fi
11640
11641 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11642 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11643 fi
11644 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11645 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11646 fi
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
11734
11735
11736
11737
11738
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11740 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11741 hardcode_action=
11742 if test -n "$hardcode_libdir_flag_spec" ||
11743 test -n "$runpath_var" ||
11744 test "X$hardcode_automatic" = "Xyes" ; then
11745
11746 # We can hardcode non-existent directories.
11747 if test "$hardcode_direct" != no &&
11748 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11749 # have to relink, otherwise we might link with an installed library
11750 # when we should be linking with a yet-to-be-installed one
11751 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11752 test "$hardcode_minus_L" != no; then
11753 # Linking always hardcodes the temporary library directory.
11754 hardcode_action=relink
11755 else
11756 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11757 hardcode_action=immediate
11758 fi
11759 else
11760 # We cannot hardcode anything, or else we can only hardcode existing
11761 # directories.
11762 hardcode_action=unsupported
11763 fi
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11765 $as_echo "$hardcode_action" >&6; }
11766
11767 if test "$hardcode_action" = relink ||
11768 test "$inherit_rpath" = yes; then
11769 # Fast installation is not supported
11770 enable_fast_install=no
11771 elif test "$shlibpath_overrides_runpath" = yes ||
11772 test "$enable_shared" = no; then
11773 # Fast installation is not necessary
11774 enable_fast_install=needless
11775 fi
11776
11777
11778
11779
11780
11781
11782 if test "x$enable_dlopen" != xyes; then
11783 enable_dlopen=unknown
11784 enable_dlopen_self=unknown
11785 enable_dlopen_self_static=unknown
11786 else
11787 lt_cv_dlopen=no
11788 lt_cv_dlopen_libs=
11789
11790 case $host_os in
11791 beos*)
11792 lt_cv_dlopen="load_add_on"
11793 lt_cv_dlopen_libs=
11794 lt_cv_dlopen_self=yes
11795 ;;
11796
11797 mingw* | pw32* | cegcc*)
11798 lt_cv_dlopen="LoadLibrary"
11799 lt_cv_dlopen_libs=
11800 ;;
11801
11802 cygwin*)
11803 lt_cv_dlopen="dlopen"
11804 lt_cv_dlopen_libs=
11805 ;;
11806
11807 darwin*)
11808 # if libdl is installed we need to link against it
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11810 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11811 if ${ac_cv_lib_dl_dlopen+:} false; then :
11812 $as_echo_n "(cached) " >&6
11813 else
11814 ac_check_lib_save_LIBS=$LIBS
11815 LIBS="-ldl $LIBS"
11816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11817 /* end confdefs.h. */
11818
11819 /* Override any GCC internal prototype to avoid an error.
11820 Use char because int might match the return type of a GCC
11821 builtin and then its argument prototype would still apply. */
11822 #ifdef __cplusplus
11823 extern "C"
11824 #endif
11825 char dlopen ();
11826 int
11827 main ()
11828 {
11829 return dlopen ();
11830 ;
11831 return 0;
11832 }
11833 _ACEOF
11834 if ac_fn_c_try_link "$LINENO"; then :
11835 ac_cv_lib_dl_dlopen=yes
11836 else
11837 ac_cv_lib_dl_dlopen=no
11838 fi
11839 rm -f core conftest.err conftest.$ac_objext \
11840 conftest$ac_exeext conftest.$ac_ext
11841 LIBS=$ac_check_lib_save_LIBS
11842 fi
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11844 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11845 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11846 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11847 else
11848
11849 lt_cv_dlopen="dyld"
11850 lt_cv_dlopen_libs=
11851 lt_cv_dlopen_self=yes
11852
11853 fi
11854
11855 ;;
11856
11857 *)
11858 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11859 if test "x$ac_cv_func_shl_load" = xyes; then :
11860 lt_cv_dlopen="shl_load"
11861 else
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11863 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11864 if ${ac_cv_lib_dld_shl_load+:} false; then :
11865 $as_echo_n "(cached) " >&6
11866 else
11867 ac_check_lib_save_LIBS=$LIBS
11868 LIBS="-ldld $LIBS"
11869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11870 /* end confdefs.h. */
11871
11872 /* Override any GCC internal prototype to avoid an error.
11873 Use char because int might match the return type of a GCC
11874 builtin and then its argument prototype would still apply. */
11875 #ifdef __cplusplus
11876 extern "C"
11877 #endif
11878 char shl_load ();
11879 int
11880 main ()
11881 {
11882 return shl_load ();
11883 ;
11884 return 0;
11885 }
11886 _ACEOF
11887 if ac_fn_c_try_link "$LINENO"; then :
11888 ac_cv_lib_dld_shl_load=yes
11889 else
11890 ac_cv_lib_dld_shl_load=no
11891 fi
11892 rm -f core conftest.err conftest.$ac_objext \
11893 conftest$ac_exeext conftest.$ac_ext
11894 LIBS=$ac_check_lib_save_LIBS
11895 fi
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11897 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11898 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11899 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11900 else
11901 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11902 if test "x$ac_cv_func_dlopen" = xyes; then :
11903 lt_cv_dlopen="dlopen"
11904 else
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11906 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11907 if ${ac_cv_lib_dl_dlopen+:} false; then :
11908 $as_echo_n "(cached) " >&6
11909 else
11910 ac_check_lib_save_LIBS=$LIBS
11911 LIBS="-ldl $LIBS"
11912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11913 /* end confdefs.h. */
11914
11915 /* Override any GCC internal prototype to avoid an error.
11916 Use char because int might match the return type of a GCC
11917 builtin and then its argument prototype would still apply. */
11918 #ifdef __cplusplus
11919 extern "C"
11920 #endif
11921 char dlopen ();
11922 int
11923 main ()
11924 {
11925 return dlopen ();
11926 ;
11927 return 0;
11928 }
11929 _ACEOF
11930 if ac_fn_c_try_link "$LINENO"; then :
11931 ac_cv_lib_dl_dlopen=yes
11932 else
11933 ac_cv_lib_dl_dlopen=no
11934 fi
11935 rm -f core conftest.err conftest.$ac_objext \
11936 conftest$ac_exeext conftest.$ac_ext
11937 LIBS=$ac_check_lib_save_LIBS
11938 fi
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11940 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11941 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11942 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11943 else
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11945 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11946 if ${ac_cv_lib_svld_dlopen+:} false; then :
11947 $as_echo_n "(cached) " >&6
11948 else
11949 ac_check_lib_save_LIBS=$LIBS
11950 LIBS="-lsvld $LIBS"
11951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11952 /* end confdefs.h. */
11953
11954 /* Override any GCC internal prototype to avoid an error.
11955 Use char because int might match the return type of a GCC
11956 builtin and then its argument prototype would still apply. */
11957 #ifdef __cplusplus
11958 extern "C"
11959 #endif
11960 char dlopen ();
11961 int
11962 main ()
11963 {
11964 return dlopen ();
11965 ;
11966 return 0;
11967 }
11968 _ACEOF
11969 if ac_fn_c_try_link "$LINENO"; then :
11970 ac_cv_lib_svld_dlopen=yes
11971 else
11972 ac_cv_lib_svld_dlopen=no
11973 fi
11974 rm -f core conftest.err conftest.$ac_objext \
11975 conftest$ac_exeext conftest.$ac_ext
11976 LIBS=$ac_check_lib_save_LIBS
11977 fi
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11979 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11980 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11981 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11982 else
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11984 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11985 if ${ac_cv_lib_dld_dld_link+:} false; then :
11986 $as_echo_n "(cached) " >&6
11987 else
11988 ac_check_lib_save_LIBS=$LIBS
11989 LIBS="-ldld $LIBS"
11990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11991 /* end confdefs.h. */
11992
11993 /* Override any GCC internal prototype to avoid an error.
11994 Use char because int might match the return type of a GCC
11995 builtin and then its argument prototype would still apply. */
11996 #ifdef __cplusplus
11997 extern "C"
11998 #endif
11999 char dld_link ();
12000 int
12001 main ()
12002 {
12003 return dld_link ();
12004 ;
12005 return 0;
12006 }
12007 _ACEOF
12008 if ac_fn_c_try_link "$LINENO"; then :
12009 ac_cv_lib_dld_dld_link=yes
12010 else
12011 ac_cv_lib_dld_dld_link=no
12012 fi
12013 rm -f core conftest.err conftest.$ac_objext \
12014 conftest$ac_exeext conftest.$ac_ext
12015 LIBS=$ac_check_lib_save_LIBS
12016 fi
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12018 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12019 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12020 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12021 fi
12022
12023
12024 fi
12025
12026
12027 fi
12028
12029
12030 fi
12031
12032
12033 fi
12034
12035
12036 fi
12037
12038 ;;
12039 esac
12040
12041 if test "x$lt_cv_dlopen" != xno; then
12042 enable_dlopen=yes
12043 else
12044 enable_dlopen=no
12045 fi
12046
12047 case $lt_cv_dlopen in
12048 dlopen)
12049 save_CPPFLAGS="$CPPFLAGS"
12050 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12051
12052 save_LDFLAGS="$LDFLAGS"
12053 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12054
12055 save_LIBS="$LIBS"
12056 LIBS="$lt_cv_dlopen_libs $LIBS"
12057
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12059 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12060 if ${lt_cv_dlopen_self+:} false; then :
12061 $as_echo_n "(cached) " >&6
12062 else
12063 if test "$cross_compiling" = yes; then :
12064 lt_cv_dlopen_self=cross
12065 else
12066 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12067 lt_status=$lt_dlunknown
12068 cat > conftest.$ac_ext <<_LT_EOF
12069 #line $LINENO "configure"
12070 #include "confdefs.h"
12071
12072 #if HAVE_DLFCN_H
12073 #include <dlfcn.h>
12074 #endif
12075
12076 #include <stdio.h>
12077
12078 #ifdef RTLD_GLOBAL
12079 # define LT_DLGLOBAL RTLD_GLOBAL
12080 #else
12081 # ifdef DL_GLOBAL
12082 # define LT_DLGLOBAL DL_GLOBAL
12083 # else
12084 # define LT_DLGLOBAL 0
12085 # endif
12086 #endif
12087
12088 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12089 find out it does not work in some platform. */
12090 #ifndef LT_DLLAZY_OR_NOW
12091 # ifdef RTLD_LAZY
12092 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12093 # else
12094 # ifdef DL_LAZY
12095 # define LT_DLLAZY_OR_NOW DL_LAZY
12096 # else
12097 # ifdef RTLD_NOW
12098 # define LT_DLLAZY_OR_NOW RTLD_NOW
12099 # else
12100 # ifdef DL_NOW
12101 # define LT_DLLAZY_OR_NOW DL_NOW
12102 # else
12103 # define LT_DLLAZY_OR_NOW 0
12104 # endif
12105 # endif
12106 # endif
12107 # endif
12108 #endif
12109
12110 /* When -fvisbility=hidden is used, assume the code has been annotated
12111 correspondingly for the symbols needed. */
12112 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12113 int fnord () __attribute__((visibility("default")));
12114 #endif
12115
12116 int fnord () { return 42; }
12117 int main ()
12118 {
12119 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12120 int status = $lt_dlunknown;
12121
12122 if (self)
12123 {
12124 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12125 else
12126 {
12127 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12128 else puts (dlerror ());
12129 }
12130 /* dlclose (self); */
12131 }
12132 else
12133 puts (dlerror ());
12134
12135 return status;
12136 }
12137 _LT_EOF
12138 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12139 (eval $ac_link) 2>&5
12140 ac_status=$?
12141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12142 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12143 (./conftest; exit; ) >&5 2>/dev/null
12144 lt_status=$?
12145 case x$lt_status in
12146 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12147 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12148 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12149 esac
12150 else :
12151 # compilation failed
12152 lt_cv_dlopen_self=no
12153 fi
12154 fi
12155 rm -fr conftest*
12156
12157
12158 fi
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12160 $as_echo "$lt_cv_dlopen_self" >&6; }
12161
12162 if test "x$lt_cv_dlopen_self" = xyes; then
12163 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12165 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12166 if ${lt_cv_dlopen_self_static+:} false; then :
12167 $as_echo_n "(cached) " >&6
12168 else
12169 if test "$cross_compiling" = yes; then :
12170 lt_cv_dlopen_self_static=cross
12171 else
12172 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12173 lt_status=$lt_dlunknown
12174 cat > conftest.$ac_ext <<_LT_EOF
12175 #line $LINENO "configure"
12176 #include "confdefs.h"
12177
12178 #if HAVE_DLFCN_H
12179 #include <dlfcn.h>
12180 #endif
12181
12182 #include <stdio.h>
12183
12184 #ifdef RTLD_GLOBAL
12185 # define LT_DLGLOBAL RTLD_GLOBAL
12186 #else
12187 # ifdef DL_GLOBAL
12188 # define LT_DLGLOBAL DL_GLOBAL
12189 # else
12190 # define LT_DLGLOBAL 0
12191 # endif
12192 #endif
12193
12194 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12195 find out it does not work in some platform. */
12196 #ifndef LT_DLLAZY_OR_NOW
12197 # ifdef RTLD_LAZY
12198 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12199 # else
12200 # ifdef DL_LAZY
12201 # define LT_DLLAZY_OR_NOW DL_LAZY
12202 # else
12203 # ifdef RTLD_NOW
12204 # define LT_DLLAZY_OR_NOW RTLD_NOW
12205 # else
12206 # ifdef DL_NOW
12207 # define LT_DLLAZY_OR_NOW DL_NOW
12208 # else
12209 # define LT_DLLAZY_OR_NOW 0
12210 # endif
12211 # endif
12212 # endif
12213 # endif
12214 #endif
12215
12216 /* When -fvisbility=hidden is used, assume the code has been annotated
12217 correspondingly for the symbols needed. */
12218 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12219 int fnord () __attribute__((visibility("default")));
12220 #endif
12221
12222 int fnord () { return 42; }
12223 int main ()
12224 {
12225 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12226 int status = $lt_dlunknown;
12227
12228 if (self)
12229 {
12230 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12231 else
12232 {
12233 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12234 else puts (dlerror ());
12235 }
12236 /* dlclose (self); */
12237 }
12238 else
12239 puts (dlerror ());
12240
12241 return status;
12242 }
12243 _LT_EOF
12244 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12245 (eval $ac_link) 2>&5
12246 ac_status=$?
12247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12248 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12249 (./conftest; exit; ) >&5 2>/dev/null
12250 lt_status=$?
12251 case x$lt_status in
12252 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12253 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12254 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12255 esac
12256 else :
12257 # compilation failed
12258 lt_cv_dlopen_self_static=no
12259 fi
12260 fi
12261 rm -fr conftest*
12262
12263
12264 fi
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12266 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12267 fi
12268
12269 CPPFLAGS="$save_CPPFLAGS"
12270 LDFLAGS="$save_LDFLAGS"
12271 LIBS="$save_LIBS"
12272 ;;
12273 esac
12274
12275 case $lt_cv_dlopen_self in
12276 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12277 *) enable_dlopen_self=unknown ;;
12278 esac
12279
12280 case $lt_cv_dlopen_self_static in
12281 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12282 *) enable_dlopen_self_static=unknown ;;
12283 esac
12284 fi
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302 striplib=
12303 old_striplib=
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12305 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12306 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12307 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12308 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12310 $as_echo "yes" >&6; }
12311 else
12312 # FIXME - insert some real tests, host_os isn't really good enough
12313 case $host_os in
12314 darwin*)
12315 if test -n "$STRIP" ; then
12316 striplib="$STRIP -x"
12317 old_striplib="$STRIP -S"
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12319 $as_echo "yes" >&6; }
12320 else
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12322 $as_echo "no" >&6; }
12323 fi
12324 ;;
12325 *)
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12327 $as_echo "no" >&6; }
12328 ;;
12329 esac
12330 fi
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343 # Report which library types will actually be built
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12345 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12347 $as_echo "$can_build_shared" >&6; }
12348
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12350 $as_echo_n "checking whether to build shared libraries... " >&6; }
12351 test "$can_build_shared" = "no" && enable_shared=no
12352
12353 # On AIX, shared libraries and static libraries use the same namespace, and
12354 # are all built from PIC.
12355 case $host_os in
12356 aix3*)
12357 test "$enable_shared" = yes && enable_static=no
12358 if test -n "$RANLIB"; then
12359 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12360 postinstall_cmds='$RANLIB $lib'
12361 fi
12362 ;;
12363
12364 aix[4-9]*)
12365 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12366 test "$enable_shared" = yes && enable_static=no
12367 fi
12368 ;;
12369 esac
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12371 $as_echo "$enable_shared" >&6; }
12372
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12374 $as_echo_n "checking whether to build static libraries... " >&6; }
12375 # Make sure either enable_shared or enable_static is yes.
12376 test "$enable_shared" = yes || enable_static=yes
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12378 $as_echo "$enable_static" >&6; }
12379
12380
12381
12382
12383 fi
12384 ac_ext=c
12385 ac_cpp='$CPP $CPPFLAGS'
12386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12389
12390 CC="$lt_save_CC"
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406 ac_config_commands="$ac_config_commands libtool"
12407
12408
12409
12410
12411 # Only expand once:
12412
12413
12414
12415 # Require xorg-macros minimum of 1.18 - Initial version
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
12428 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12429 if ${ac_cv_prog_cc_c99+:} false; then :
12430 $as_echo_n "(cached) " >&6
12431 else
12432 ac_cv_prog_cc_c99=no
12433 ac_save_CC=$CC
12434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12435 /* end confdefs.h. */
12436 #include <stdarg.h>
12437 #include <stdbool.h>
12438 #include <stdlib.h>
12439 #include <wchar.h>
12440 #include <stdio.h>
12441
12442 // Check varargs macros. These examples are taken from C99 6.10.3.5.
12443 #define debug(...) fprintf (stderr, __VA_ARGS__)
12444 #define showlist(...) puts (#__VA_ARGS__)
12445 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12446 static void
12447 test_varargs_macros (void)
12448 {
12449 int x = 1234;
12450 int y = 5678;
12451 debug ("Flag");
12452 debug ("X = %d\n", x);
12453 showlist (The first, second, and third items.);
12454 report (x>y, "x is %d but y is %d", x, y);
12455 }
12456
12457 // Check long long types.
12458 #define BIG64 18446744073709551615ull
12459 #define BIG32 4294967295ul
12460 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12461 #if !BIG_OK
12462 your preprocessor is broken;
12463 #endif
12464 #if BIG_OK
12465 #else
12466 your preprocessor is broken;
12467 #endif
12468 static long long int bignum = -9223372036854775807LL;
12469 static unsigned long long int ubignum = BIG64;
12470
12471 struct incomplete_array
12472 {
12473 int datasize;
12474 double data[];
12475 };
12476
12477 struct named_init {
12478 int number;
12479 const wchar_t *name;
12480 double average;
12481 };
12482
12483 typedef const char *ccp;
12484
12485 static inline int
12486 test_restrict (ccp restrict text)
12487 {
12488 // See if C++-style comments work.
12489 // Iterate through items via the restricted pointer.
12490 // Also check for declarations in for loops.
12491 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12492 continue;
12493 return 0;
12494 }
12495
12496 // Check varargs and va_copy.
12497 static void
12498 test_varargs (const char *format, ...)
12499 {
12500 va_list args;
12501 va_start (args, format);
12502 va_list args_copy;
12503 va_copy (args_copy, args);
12504
12505 const char *str;
12506 int number;
12507 float fnumber;
12508
12509 while (*format)
12510 {
12511 switch (*format++)
12512 {
12513 case 's': // string
12514 str = va_arg (args_copy, const char *);
12515 break;
12516 case 'd': // int
12517 number = va_arg (args_copy, int);
12518 break;
12519 case 'f': // float
12520 fnumber = va_arg (args_copy, double);
12521 break;
12522 default:
12523 break;
12524 }
12525 }
12526 va_end (args_copy);
12527 va_end (args);
12528 }
12529
12530 int
12531 main ()
12532 {
12533
12534 // Check bool.
12535 _Bool success = false;
12536
12537 // Check restrict.
12538 if (test_restrict ("String literal") == 0)
12539 success = true;
12540 char *restrict newvar = "Another string";
12541
12542 // Check varargs.
12543 test_varargs ("s, d' f .", "string", 65, 34.234);
12544 test_varargs_macros ();
12545
12546 // Check flexible array members.
12547 struct incomplete_array *ia =
12548 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12549 ia->datasize = 10;
12550 for (int i = 0; i < ia->datasize; ++i)
12551 ia->data[i] = i * 1.234;
12552
12553 // Check named initializers.
12554 struct named_init ni = {
12555 .number = 34,
12556 .name = L"Test wide string",
12557 .average = 543.34343,
12558 };
12559
12560 ni.number = 58;
12561
12562 int dynamic_array[ni.number];
12563 dynamic_array[ni.number - 1] = 543;
12564
12565 // work around unused variable warnings
12566 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12567 || dynamic_array[ni.number - 1] != 543);
12568
12569 ;
12570 return 0;
12571 }
12572 _ACEOF
12573 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12574 do
12575 CC="$ac_save_CC $ac_arg"
12576 if ac_fn_c_try_compile "$LINENO"; then :
12577 ac_cv_prog_cc_c99=$ac_arg
12578 fi
12579 rm -f core conftest.err conftest.$ac_objext
12580 test "x$ac_cv_prog_cc_c99" != "xno" && break
12581 done
12582 rm -f conftest.$ac_ext
12583 CC=$ac_save_CC
12584
12585 fi
12586 # AC_CACHE_VAL
12587 case "x$ac_cv_prog_cc_c99" in
12588 x)
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12590 $as_echo "none needed" >&6; } ;;
12591 xno)
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12593 $as_echo "unsupported" >&6; } ;;
12594 *)
12595 CC="$CC $ac_cv_prog_cc_c99"
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12597 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12598 esac
12599 if test "x$ac_cv_prog_cc_c99" != xno; then :
12600
12601 fi
12602
12603
12604
12605
12606
12607
12608 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12609 if test "x$ac_cv_have_decl___clang__" = xyes; then :
12610 CLANGCC="yes"
12611 else
12612 CLANGCC="no"
12613 fi
12614
12615 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12616 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12617 INTELCC="yes"
12618 else
12619 INTELCC="no"
12620 fi
12621
12622 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12623 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12624 SUNCC="yes"
12625 else
12626 SUNCC="no"
12627 fi
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12638 if test -n "$ac_tool_prefix"; then
12639 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12640 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12642 $as_echo_n "checking for $ac_word... " >&6; }
12643 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12644 $as_echo_n "(cached) " >&6
12645 else
12646 case $PKG_CONFIG in
12647 [\\/]* | ?:[\\/]*)
12648 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12649 ;;
12650 *)
12651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12652 for as_dir in $PATH
12653 do
12654 IFS=$as_save_IFS
12655 test -z "$as_dir" && as_dir=.
12656 for ac_exec_ext in '' $ac_executable_extensions; do
12657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12658 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12660 break 2
12661 fi
12662 done
12663 done
12664 IFS=$as_save_IFS
12665
12666 ;;
12667 esac
12668 fi
12669 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12670 if test -n "$PKG_CONFIG"; then
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12672 $as_echo "$PKG_CONFIG" >&6; }
12673 else
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12675 $as_echo "no" >&6; }
12676 fi
12677
12678
12679 fi
12680 if test -z "$ac_cv_path_PKG_CONFIG"; then
12681 ac_pt_PKG_CONFIG=$PKG_CONFIG
12682 # Extract the first word of "pkg-config", so it can be a program name with args.
12683 set dummy pkg-config; ac_word=$2
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12685 $as_echo_n "checking for $ac_word... " >&6; }
12686 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12687 $as_echo_n "(cached) " >&6
12688 else
12689 case $ac_pt_PKG_CONFIG in
12690 [\\/]* | ?:[\\/]*)
12691 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12692 ;;
12693 *)
12694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12695 for as_dir in $PATH
12696 do
12697 IFS=$as_save_IFS
12698 test -z "$as_dir" && as_dir=.
12699 for ac_exec_ext in '' $ac_executable_extensions; do
12700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12701 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12703 break 2
12704 fi
12705 done
12706 done
12707 IFS=$as_save_IFS
12708
12709 ;;
12710 esac
12711 fi
12712 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12713 if test -n "$ac_pt_PKG_CONFIG"; then
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12715 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12716 else
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12718 $as_echo "no" >&6; }
12719 fi
12720
12721 if test "x$ac_pt_PKG_CONFIG" = x; then
12722 PKG_CONFIG=""
12723 else
12724 case $cross_compiling:$ac_tool_warned in
12725 yes:)
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12727 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12728 ac_tool_warned=yes ;;
12729 esac
12730 PKG_CONFIG=$ac_pt_PKG_CONFIG
12731 fi
12732 else
12733 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12734 fi
12735
12736 fi
12737 if test -n "$PKG_CONFIG"; then
12738 _pkg_min_version=0.9.0
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12740 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12741 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12743 $as_echo "yes" >&6; }
12744 else
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12746 $as_echo "no" >&6; }
12747 PKG_CONFIG=""
12748 fi
12749 fi
12750
12751
12752
12753
12754
12755 # Check whether --enable-selective-werror was given.
12756 if test "${enable_selective_werror+set}" = set; then :
12757 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12758 else
12759 SELECTIVE_WERROR=yes
12760 fi
12761
12762
12763
12764
12765
12766 # -v is too short to test reliably with XORG_TESTSET_CFLAG
12767 if test "x$SUNCC" = "xyes"; then
12768 BASE_CFLAGS="-v"
12769 else
12770 BASE_CFLAGS=""
12771 fi
12772
12773 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787 xorg_testset_save_CFLAGS="$CFLAGS"
12788
12789 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12790 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12792 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12793 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12794 $as_echo_n "(cached) " >&6
12795 else
12796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12797 /* end confdefs.h. */
12798 int i;
12799 _ACEOF
12800 if ac_fn_c_try_compile "$LINENO"; then :
12801 xorg_cv_cc_flag_unknown_warning_option=yes
12802 else
12803 xorg_cv_cc_flag_unknown_warning_option=no
12804 fi
12805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12806 fi
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12808 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12809 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12810 CFLAGS="$xorg_testset_save_CFLAGS"
12811 fi
12812
12813 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12815 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12816 fi
12817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12819 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12820 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12821 $as_echo_n "(cached) " >&6
12822 else
12823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12824 /* end confdefs.h. */
12825 int i;
12826 _ACEOF
12827 if ac_fn_c_try_compile "$LINENO"; then :
12828 xorg_cv_cc_flag_unused_command_line_argument=yes
12829 else
12830 xorg_cv_cc_flag_unused_command_line_argument=no
12831 fi
12832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12833 fi
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12835 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12836 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12837 CFLAGS="$xorg_testset_save_CFLAGS"
12838 fi
12839
12840 found="no"
12841
12842 if test $found = "no" ; then
12843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12844 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12845 fi
12846
12847 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12849 fi
12850
12851 CFLAGS="$CFLAGS -Wall"
12852
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12854 $as_echo_n "checking if $CC supports -Wall... " >&6; }
12855 cacheid=xorg_cv_cc_flag__Wall
12856 if eval \${$cacheid+:} false; then :
12857 $as_echo_n "(cached) " >&6
12858 else
12859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12860 /* end confdefs.h. */
12861 int i;
12862 int
12863 main ()
12864 {
12865
12866 ;
12867 return 0;
12868 }
12869 _ACEOF
12870 if ac_fn_c_try_link "$LINENO"; then :
12871 eval $cacheid=yes
12872 else
12873 eval $cacheid=no
12874 fi
12875 rm -f core conftest.err conftest.$ac_objext \
12876 conftest$ac_exeext conftest.$ac_ext
12877 fi
12878
12879
12880 CFLAGS="$xorg_testset_save_CFLAGS"
12881
12882 eval supported=\$$cacheid
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12884 $as_echo "$supported" >&6; }
12885 if test "$supported" = "yes" ; then
12886 BASE_CFLAGS="$BASE_CFLAGS -Wall"
12887 found="yes"
12888 fi
12889 fi
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905 xorg_testset_save_CFLAGS="$CFLAGS"
12906
12907 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12908 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12910 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12911 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12912 $as_echo_n "(cached) " >&6
12913 else
12914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12915 /* end confdefs.h. */
12916 int i;
12917 _ACEOF
12918 if ac_fn_c_try_compile "$LINENO"; then :
12919 xorg_cv_cc_flag_unknown_warning_option=yes
12920 else
12921 xorg_cv_cc_flag_unknown_warning_option=no
12922 fi
12923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12924 fi
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12926 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12927 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12928 CFLAGS="$xorg_testset_save_CFLAGS"
12929 fi
12930
12931 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12933 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12934 fi
12935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12937 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12938 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12939 $as_echo_n "(cached) " >&6
12940 else
12941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12942 /* end confdefs.h. */
12943 int i;
12944 _ACEOF
12945 if ac_fn_c_try_compile "$LINENO"; then :
12946 xorg_cv_cc_flag_unused_command_line_argument=yes
12947 else
12948 xorg_cv_cc_flag_unused_command_line_argument=no
12949 fi
12950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12951 fi
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12953 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12954 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12955 CFLAGS="$xorg_testset_save_CFLAGS"
12956 fi
12957
12958 found="no"
12959
12960 if test $found = "no" ; then
12961 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12962 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12963 fi
12964
12965 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12966 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12967 fi
12968
12969 CFLAGS="$CFLAGS -Wpointer-arith"
12970
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12972 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12973 cacheid=xorg_cv_cc_flag__Wpointer_arith
12974 if eval \${$cacheid+:} false; then :
12975 $as_echo_n "(cached) " >&6
12976 else
12977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12978 /* end confdefs.h. */
12979 int i;
12980 int
12981 main ()
12982 {
12983
12984 ;
12985 return 0;
12986 }
12987 _ACEOF
12988 if ac_fn_c_try_link "$LINENO"; then :
12989 eval $cacheid=yes
12990 else
12991 eval $cacheid=no
12992 fi
12993 rm -f core conftest.err conftest.$ac_objext \
12994 conftest$ac_exeext conftest.$ac_ext
12995 fi
12996
12997
12998 CFLAGS="$xorg_testset_save_CFLAGS"
12999
13000 eval supported=\$$cacheid
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13002 $as_echo "$supported" >&6; }
13003 if test "$supported" = "yes" ; then
13004 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13005 found="yes"
13006 fi
13007 fi
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023 xorg_testset_save_CFLAGS="$CFLAGS"
13024
13025 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13026 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13028 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13029 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13030 $as_echo_n "(cached) " >&6
13031 else
13032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13033 /* end confdefs.h. */
13034 int i;
13035 _ACEOF
13036 if ac_fn_c_try_compile "$LINENO"; then :
13037 xorg_cv_cc_flag_unknown_warning_option=yes
13038 else
13039 xorg_cv_cc_flag_unknown_warning_option=no
13040 fi
13041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13042 fi
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13044 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13045 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13046 CFLAGS="$xorg_testset_save_CFLAGS"
13047 fi
13048
13049 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13052 fi
13053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13055 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13056 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13057 $as_echo_n "(cached) " >&6
13058 else
13059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13060 /* end confdefs.h. */
13061 int i;
13062 _ACEOF
13063 if ac_fn_c_try_compile "$LINENO"; then :
13064 xorg_cv_cc_flag_unused_command_line_argument=yes
13065 else
13066 xorg_cv_cc_flag_unused_command_line_argument=no
13067 fi
13068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13069 fi
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13071 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13072 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13073 CFLAGS="$xorg_testset_save_CFLAGS"
13074 fi
13075
13076 found="no"
13077
13078 if test $found = "no" ; then
13079 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13080 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13081 fi
13082
13083 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13085 fi
13086
13087 CFLAGS="$CFLAGS -Wmissing-declarations"
13088
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13090 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
13091 cacheid=xorg_cv_cc_flag__Wmissing_declarations
13092 if eval \${$cacheid+:} false; then :
13093 $as_echo_n "(cached) " >&6
13094 else
13095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13096 /* end confdefs.h. */
13097 int i;
13098 int
13099 main ()
13100 {
13101
13102 ;
13103 return 0;
13104 }
13105 _ACEOF
13106 if ac_fn_c_try_link "$LINENO"; then :
13107 eval $cacheid=yes
13108 else
13109 eval $cacheid=no
13110 fi
13111 rm -f core conftest.err conftest.$ac_objext \
13112 conftest$ac_exeext conftest.$ac_ext
13113 fi
13114
13115
13116 CFLAGS="$xorg_testset_save_CFLAGS"
13117
13118 eval supported=\$$cacheid
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13120 $as_echo "$supported" >&6; }
13121 if test "$supported" = "yes" ; then
13122 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13123 found="yes"
13124 fi
13125 fi
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141 xorg_testset_save_CFLAGS="$CFLAGS"
13142
13143 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13144 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13146 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13147 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13148 $as_echo_n "(cached) " >&6
13149 else
13150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13151 /* end confdefs.h. */
13152 int i;
13153 _ACEOF
13154 if ac_fn_c_try_compile "$LINENO"; then :
13155 xorg_cv_cc_flag_unknown_warning_option=yes
13156 else
13157 xorg_cv_cc_flag_unknown_warning_option=no
13158 fi
13159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13160 fi
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13162 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13163 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13164 CFLAGS="$xorg_testset_save_CFLAGS"
13165 fi
13166
13167 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13169 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13170 fi
13171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13173 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13174 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13175 $as_echo_n "(cached) " >&6
13176 else
13177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13178 /* end confdefs.h. */
13179 int i;
13180 _ACEOF
13181 if ac_fn_c_try_compile "$LINENO"; then :
13182 xorg_cv_cc_flag_unused_command_line_argument=yes
13183 else
13184 xorg_cv_cc_flag_unused_command_line_argument=no
13185 fi
13186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13187 fi
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13189 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13190 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13191 CFLAGS="$xorg_testset_save_CFLAGS"
13192 fi
13193
13194 found="no"
13195
13196 if test $found = "no" ; then
13197 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13198 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13199 fi
13200
13201 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13203 fi
13204
13205 CFLAGS="$CFLAGS -Wformat=2"
13206
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13208 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
13209 cacheid=xorg_cv_cc_flag__Wformat_2
13210 if eval \${$cacheid+:} false; then :
13211 $as_echo_n "(cached) " >&6
13212 else
13213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13214 /* end confdefs.h. */
13215 int i;
13216 int
13217 main ()
13218 {
13219
13220 ;
13221 return 0;
13222 }
13223 _ACEOF
13224 if ac_fn_c_try_link "$LINENO"; then :
13225 eval $cacheid=yes
13226 else
13227 eval $cacheid=no
13228 fi
13229 rm -f core conftest.err conftest.$ac_objext \
13230 conftest$ac_exeext conftest.$ac_ext
13231 fi
13232
13233
13234 CFLAGS="$xorg_testset_save_CFLAGS"
13235
13236 eval supported=\$$cacheid
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13238 $as_echo "$supported" >&6; }
13239 if test "$supported" = "yes" ; then
13240 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13241 found="yes"
13242 fi
13243 fi
13244
13245 if test $found = "no" ; then
13246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13247 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13248 fi
13249
13250 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13252 fi
13253
13254 CFLAGS="$CFLAGS -Wformat"
13255
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13257 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
13258 cacheid=xorg_cv_cc_flag__Wformat
13259 if eval \${$cacheid+:} false; then :
13260 $as_echo_n "(cached) " >&6
13261 else
13262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13263 /* end confdefs.h. */
13264 int i;
13265 int
13266 main ()
13267 {
13268
13269 ;
13270 return 0;
13271 }
13272 _ACEOF
13273 if ac_fn_c_try_link "$LINENO"; then :
13274 eval $cacheid=yes
13275 else
13276 eval $cacheid=no
13277 fi
13278 rm -f core conftest.err conftest.$ac_objext \
13279 conftest$ac_exeext conftest.$ac_ext
13280 fi
13281
13282
13283 CFLAGS="$xorg_testset_save_CFLAGS"
13284
13285 eval supported=\$$cacheid
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13287 $as_echo "$supported" >&6; }
13288 if test "$supported" = "yes" ; then
13289 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13290 found="yes"
13291 fi
13292 fi
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310 xorg_testset_save_CFLAGS="$CFLAGS"
13311
13312 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13313 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13315 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13316 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13317 $as_echo_n "(cached) " >&6
13318 else
13319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13320 /* end confdefs.h. */
13321 int i;
13322 _ACEOF
13323 if ac_fn_c_try_compile "$LINENO"; then :
13324 xorg_cv_cc_flag_unknown_warning_option=yes
13325 else
13326 xorg_cv_cc_flag_unknown_warning_option=no
13327 fi
13328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13329 fi
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13331 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13332 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13333 CFLAGS="$xorg_testset_save_CFLAGS"
13334 fi
13335
13336 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13338 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13339 fi
13340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13342 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13343 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13344 $as_echo_n "(cached) " >&6
13345 else
13346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13347 /* end confdefs.h. */
13348 int i;
13349 _ACEOF
13350 if ac_fn_c_try_compile "$LINENO"; then :
13351 xorg_cv_cc_flag_unused_command_line_argument=yes
13352 else
13353 xorg_cv_cc_flag_unused_command_line_argument=no
13354 fi
13355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13356 fi
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13358 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13359 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13360 CFLAGS="$xorg_testset_save_CFLAGS"
13361 fi
13362
13363 found="no"
13364
13365 if test $found = "no" ; then
13366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13367 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13368 fi
13369
13370 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13372 fi
13373
13374 CFLAGS="$CFLAGS -Wstrict-prototypes"
13375
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13377 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
13378 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13379 if eval \${$cacheid+:} false; then :
13380 $as_echo_n "(cached) " >&6
13381 else
13382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13383 /* end confdefs.h. */
13384 int i;
13385 int
13386 main ()
13387 {
13388
13389 ;
13390 return 0;
13391 }
13392 _ACEOF
13393 if ac_fn_c_try_link "$LINENO"; then :
13394 eval $cacheid=yes
13395 else
13396 eval $cacheid=no
13397 fi
13398 rm -f core conftest.err conftest.$ac_objext \
13399 conftest$ac_exeext conftest.$ac_ext
13400 fi
13401
13402
13403 CFLAGS="$xorg_testset_save_CFLAGS"
13404
13405 eval supported=\$$cacheid
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13407 $as_echo "$supported" >&6; }
13408 if test "$supported" = "yes" ; then
13409 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13410 found="yes"
13411 fi
13412 fi
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428 xorg_testset_save_CFLAGS="$CFLAGS"
13429
13430 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13431 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13433 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13434 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13435 $as_echo_n "(cached) " >&6
13436 else
13437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13438 /* end confdefs.h. */
13439 int i;
13440 _ACEOF
13441 if ac_fn_c_try_compile "$LINENO"; then :
13442 xorg_cv_cc_flag_unknown_warning_option=yes
13443 else
13444 xorg_cv_cc_flag_unknown_warning_option=no
13445 fi
13446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13447 fi
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13449 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13450 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13451 CFLAGS="$xorg_testset_save_CFLAGS"
13452 fi
13453
13454 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13455 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13456 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13457 fi
13458 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13460 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13461 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13462 $as_echo_n "(cached) " >&6
13463 else
13464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13465 /* end confdefs.h. */
13466 int i;
13467 _ACEOF
13468 if ac_fn_c_try_compile "$LINENO"; then :
13469 xorg_cv_cc_flag_unused_command_line_argument=yes
13470 else
13471 xorg_cv_cc_flag_unused_command_line_argument=no
13472 fi
13473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13474 fi
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13476 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13477 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13478 CFLAGS="$xorg_testset_save_CFLAGS"
13479 fi
13480
13481 found="no"
13482
13483 if test $found = "no" ; then
13484 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13485 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13486 fi
13487
13488 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13490 fi
13491
13492 CFLAGS="$CFLAGS -Wmissing-prototypes"
13493
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13495 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
13496 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13497 if eval \${$cacheid+:} false; then :
13498 $as_echo_n "(cached) " >&6
13499 else
13500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13501 /* end confdefs.h. */
13502 int i;
13503 int
13504 main ()
13505 {
13506
13507 ;
13508 return 0;
13509 }
13510 _ACEOF
13511 if ac_fn_c_try_link "$LINENO"; then :
13512 eval $cacheid=yes
13513 else
13514 eval $cacheid=no
13515 fi
13516 rm -f core conftest.err conftest.$ac_objext \
13517 conftest$ac_exeext conftest.$ac_ext
13518 fi
13519
13520
13521 CFLAGS="$xorg_testset_save_CFLAGS"
13522
13523 eval supported=\$$cacheid
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13525 $as_echo "$supported" >&6; }
13526 if test "$supported" = "yes" ; then
13527 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13528 found="yes"
13529 fi
13530 fi
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546 xorg_testset_save_CFLAGS="$CFLAGS"
13547
13548 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13549 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13551 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13552 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13553 $as_echo_n "(cached) " >&6
13554 else
13555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13556 /* end confdefs.h. */
13557 int i;
13558 _ACEOF
13559 if ac_fn_c_try_compile "$LINENO"; then :
13560 xorg_cv_cc_flag_unknown_warning_option=yes
13561 else
13562 xorg_cv_cc_flag_unknown_warning_option=no
13563 fi
13564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13565 fi
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13567 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13568 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13569 CFLAGS="$xorg_testset_save_CFLAGS"
13570 fi
13571
13572 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13574 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13575 fi
13576 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13578 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13579 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13580 $as_echo_n "(cached) " >&6
13581 else
13582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13583 /* end confdefs.h. */
13584 int i;
13585 _ACEOF
13586 if ac_fn_c_try_compile "$LINENO"; then :
13587 xorg_cv_cc_flag_unused_command_line_argument=yes
13588 else
13589 xorg_cv_cc_flag_unused_command_line_argument=no
13590 fi
13591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13592 fi
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13594 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13595 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13596 CFLAGS="$xorg_testset_save_CFLAGS"
13597 fi
13598
13599 found="no"
13600
13601 if test $found = "no" ; then
13602 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13603 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13604 fi
13605
13606 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13608 fi
13609
13610 CFLAGS="$CFLAGS -Wnested-externs"
13611
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13613 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13614 cacheid=xorg_cv_cc_flag__Wnested_externs
13615 if eval \${$cacheid+:} false; then :
13616 $as_echo_n "(cached) " >&6
13617 else
13618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13619 /* end confdefs.h. */
13620 int i;
13621 int
13622 main ()
13623 {
13624
13625 ;
13626 return 0;
13627 }
13628 _ACEOF
13629 if ac_fn_c_try_link "$LINENO"; then :
13630 eval $cacheid=yes
13631 else
13632 eval $cacheid=no
13633 fi
13634 rm -f core conftest.err conftest.$ac_objext \
13635 conftest$ac_exeext conftest.$ac_ext
13636 fi
13637
13638
13639 CFLAGS="$xorg_testset_save_CFLAGS"
13640
13641 eval supported=\$$cacheid
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13643 $as_echo "$supported" >&6; }
13644 if test "$supported" = "yes" ; then
13645 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13646 found="yes"
13647 fi
13648 fi
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664 xorg_testset_save_CFLAGS="$CFLAGS"
13665
13666 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13667 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13669 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13670 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13671 $as_echo_n "(cached) " >&6
13672 else
13673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13674 /* end confdefs.h. */
13675 int i;
13676 _ACEOF
13677 if ac_fn_c_try_compile "$LINENO"; then :
13678 xorg_cv_cc_flag_unknown_warning_option=yes
13679 else
13680 xorg_cv_cc_flag_unknown_warning_option=no
13681 fi
13682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13683 fi
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13685 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13686 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13687 CFLAGS="$xorg_testset_save_CFLAGS"
13688 fi
13689
13690 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13692 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13693 fi
13694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13696 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13697 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13698 $as_echo_n "(cached) " >&6
13699 else
13700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13701 /* end confdefs.h. */
13702 int i;
13703 _ACEOF
13704 if ac_fn_c_try_compile "$LINENO"; then :
13705 xorg_cv_cc_flag_unused_command_line_argument=yes
13706 else
13707 xorg_cv_cc_flag_unused_command_line_argument=no
13708 fi
13709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13710 fi
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13712 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13713 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13714 CFLAGS="$xorg_testset_save_CFLAGS"
13715 fi
13716
13717 found="no"
13718
13719 if test $found = "no" ; then
13720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13721 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13722 fi
13723
13724 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13726 fi
13727
13728 CFLAGS="$CFLAGS -Wbad-function-cast"
13729
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13731 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13732 cacheid=xorg_cv_cc_flag__Wbad_function_cast
13733 if eval \${$cacheid+:} false; then :
13734 $as_echo_n "(cached) " >&6
13735 else
13736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13737 /* end confdefs.h. */
13738 int i;
13739 int
13740 main ()
13741 {
13742
13743 ;
13744 return 0;
13745 }
13746 _ACEOF
13747 if ac_fn_c_try_link "$LINENO"; then :
13748 eval $cacheid=yes
13749 else
13750 eval $cacheid=no
13751 fi
13752 rm -f core conftest.err conftest.$ac_objext \
13753 conftest$ac_exeext conftest.$ac_ext
13754 fi
13755
13756
13757 CFLAGS="$xorg_testset_save_CFLAGS"
13758
13759 eval supported=\$$cacheid
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13761 $as_echo "$supported" >&6; }
13762 if test "$supported" = "yes" ; then
13763 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13764 found="yes"
13765 fi
13766 fi
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782 xorg_testset_save_CFLAGS="$CFLAGS"
13783
13784 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13785 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13787 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13788 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13789 $as_echo_n "(cached) " >&6
13790 else
13791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13792 /* end confdefs.h. */
13793 int i;
13794 _ACEOF
13795 if ac_fn_c_try_compile "$LINENO"; then :
13796 xorg_cv_cc_flag_unknown_warning_option=yes
13797 else
13798 xorg_cv_cc_flag_unknown_warning_option=no
13799 fi
13800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13801 fi
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13803 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13804 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13805 CFLAGS="$xorg_testset_save_CFLAGS"
13806 fi
13807
13808 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13810 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13811 fi
13812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13814 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13815 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13816 $as_echo_n "(cached) " >&6
13817 else
13818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13819 /* end confdefs.h. */
13820 int i;
13821 _ACEOF
13822 if ac_fn_c_try_compile "$LINENO"; then :
13823 xorg_cv_cc_flag_unused_command_line_argument=yes
13824 else
13825 xorg_cv_cc_flag_unused_command_line_argument=no
13826 fi
13827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13828 fi
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13830 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13831 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13832 CFLAGS="$xorg_testset_save_CFLAGS"
13833 fi
13834
13835 found="no"
13836
13837 if test $found = "no" ; then
13838 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13839 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13840 fi
13841
13842 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13844 fi
13845
13846 CFLAGS="$CFLAGS -Wold-style-definition"
13847
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13849 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13850 cacheid=xorg_cv_cc_flag__Wold_style_definition
13851 if eval \${$cacheid+:} false; then :
13852 $as_echo_n "(cached) " >&6
13853 else
13854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13855 /* end confdefs.h. */
13856 int i;
13857 int
13858 main ()
13859 {
13860
13861 ;
13862 return 0;
13863 }
13864 _ACEOF
13865 if ac_fn_c_try_link "$LINENO"; then :
13866 eval $cacheid=yes
13867 else
13868 eval $cacheid=no
13869 fi
13870 rm -f core conftest.err conftest.$ac_objext \
13871 conftest$ac_exeext conftest.$ac_ext
13872 fi
13873
13874
13875 CFLAGS="$xorg_testset_save_CFLAGS"
13876
13877 eval supported=\$$cacheid
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13879 $as_echo "$supported" >&6; }
13880 if test "$supported" = "yes" ; then
13881 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13882 found="yes"
13883 fi
13884 fi
13885
13886 if test $found = "no" ; then
13887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13888 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13889 fi
13890
13891 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13893 fi
13894
13895 CFLAGS="$CFLAGS -fd"
13896
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13898 $as_echo_n "checking if $CC supports -fd... " >&6; }
13899 cacheid=xorg_cv_cc_flag__fd
13900 if eval \${$cacheid+:} false; then :
13901 $as_echo_n "(cached) " >&6
13902 else
13903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13904 /* end confdefs.h. */
13905 int i;
13906 int
13907 main ()
13908 {
13909
13910 ;
13911 return 0;
13912 }
13913 _ACEOF
13914 if ac_fn_c_try_link "$LINENO"; then :
13915 eval $cacheid=yes
13916 else
13917 eval $cacheid=no
13918 fi
13919 rm -f core conftest.err conftest.$ac_objext \
13920 conftest$ac_exeext conftest.$ac_ext
13921 fi
13922
13923
13924 CFLAGS="$xorg_testset_save_CFLAGS"
13925
13926 eval supported=\$$cacheid
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13928 $as_echo "$supported" >&6; }
13929 if test "$supported" = "yes" ; then
13930 BASE_CFLAGS="$BASE_CFLAGS -fd"
13931 found="yes"
13932 fi
13933 fi
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949 xorg_testset_save_CFLAGS="$CFLAGS"
13950
13951 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13952 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13954 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13955 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13956 $as_echo_n "(cached) " >&6
13957 else
13958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13959 /* end confdefs.h. */
13960 int i;
13961 _ACEOF
13962 if ac_fn_c_try_compile "$LINENO"; then :
13963 xorg_cv_cc_flag_unknown_warning_option=yes
13964 else
13965 xorg_cv_cc_flag_unknown_warning_option=no
13966 fi
13967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13968 fi
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13970 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13971 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13972 CFLAGS="$xorg_testset_save_CFLAGS"
13973 fi
13974
13975 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13977 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13978 fi
13979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13981 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13982 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13983 $as_echo_n "(cached) " >&6
13984 else
13985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13986 /* end confdefs.h. */
13987 int i;
13988 _ACEOF
13989 if ac_fn_c_try_compile "$LINENO"; then :
13990 xorg_cv_cc_flag_unused_command_line_argument=yes
13991 else
13992 xorg_cv_cc_flag_unused_command_line_argument=no
13993 fi
13994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13995 fi
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13997 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13998 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13999 CFLAGS="$xorg_testset_save_CFLAGS"
14000 fi
14001
14002 found="no"
14003
14004 if test $found = "no" ; then
14005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14006 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14007 fi
14008
14009 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14011 fi
14012
14013 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14014
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14016 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14017 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14018 if eval \${$cacheid+:} false; then :
14019 $as_echo_n "(cached) " >&6
14020 else
14021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14022 /* end confdefs.h. */
14023 int i;
14024 int
14025 main ()
14026 {
14027
14028 ;
14029 return 0;
14030 }
14031 _ACEOF
14032 if ac_fn_c_try_link "$LINENO"; then :
14033 eval $cacheid=yes
14034 else
14035 eval $cacheid=no
14036 fi
14037 rm -f core conftest.err conftest.$ac_objext \
14038 conftest$ac_exeext conftest.$ac_ext
14039 fi
14040
14041
14042 CFLAGS="$xorg_testset_save_CFLAGS"
14043
14044 eval supported=\$$cacheid
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14046 $as_echo "$supported" >&6; }
14047 if test "$supported" = "yes" ; then
14048 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14049 found="yes"
14050 fi
14051 fi
14052
14053
14054
14055
14056
14057 # This chunk adds additional warnings that could catch undesired effects.
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071 xorg_testset_save_CFLAGS="$CFLAGS"
14072
14073 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14074 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14076 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14077 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14078 $as_echo_n "(cached) " >&6
14079 else
14080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14081 /* end confdefs.h. */
14082 int i;
14083 _ACEOF
14084 if ac_fn_c_try_compile "$LINENO"; then :
14085 xorg_cv_cc_flag_unknown_warning_option=yes
14086 else
14087 xorg_cv_cc_flag_unknown_warning_option=no
14088 fi
14089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14090 fi
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14092 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14093 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14094 CFLAGS="$xorg_testset_save_CFLAGS"
14095 fi
14096
14097 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14099 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14100 fi
14101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14103 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14104 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14105 $as_echo_n "(cached) " >&6
14106 else
14107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14108 /* end confdefs.h. */
14109 int i;
14110 _ACEOF
14111 if ac_fn_c_try_compile "$LINENO"; then :
14112 xorg_cv_cc_flag_unused_command_line_argument=yes
14113 else
14114 xorg_cv_cc_flag_unused_command_line_argument=no
14115 fi
14116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14117 fi
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14119 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14120 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14121 CFLAGS="$xorg_testset_save_CFLAGS"
14122 fi
14123
14124 found="no"
14125
14126 if test $found = "no" ; then
14127 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14128 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14129 fi
14130
14131 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14133 fi
14134
14135 CFLAGS="$CFLAGS -Wunused"
14136
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14138 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
14139 cacheid=xorg_cv_cc_flag__Wunused
14140 if eval \${$cacheid+:} false; then :
14141 $as_echo_n "(cached) " >&6
14142 else
14143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14144 /* end confdefs.h. */
14145 int i;
14146 int
14147 main ()
14148 {
14149
14150 ;
14151 return 0;
14152 }
14153 _ACEOF
14154 if ac_fn_c_try_link "$LINENO"; then :
14155 eval $cacheid=yes
14156 else
14157 eval $cacheid=no
14158 fi
14159 rm -f core conftest.err conftest.$ac_objext \
14160 conftest$ac_exeext conftest.$ac_ext
14161 fi
14162
14163
14164 CFLAGS="$xorg_testset_save_CFLAGS"
14165
14166 eval supported=\$$cacheid
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14168 $as_echo "$supported" >&6; }
14169 if test "$supported" = "yes" ; then
14170 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14171 found="yes"
14172 fi
14173 fi
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189 xorg_testset_save_CFLAGS="$CFLAGS"
14190
14191 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14192 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14194 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14195 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14196 $as_echo_n "(cached) " >&6
14197 else
14198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14199 /* end confdefs.h. */
14200 int i;
14201 _ACEOF
14202 if ac_fn_c_try_compile "$LINENO"; then :
14203 xorg_cv_cc_flag_unknown_warning_option=yes
14204 else
14205 xorg_cv_cc_flag_unknown_warning_option=no
14206 fi
14207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14208 fi
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14210 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14211 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14212 CFLAGS="$xorg_testset_save_CFLAGS"
14213 fi
14214
14215 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14217 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14218 fi
14219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14221 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14222 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14223 $as_echo_n "(cached) " >&6
14224 else
14225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14226 /* end confdefs.h. */
14227 int i;
14228 _ACEOF
14229 if ac_fn_c_try_compile "$LINENO"; then :
14230 xorg_cv_cc_flag_unused_command_line_argument=yes
14231 else
14232 xorg_cv_cc_flag_unused_command_line_argument=no
14233 fi
14234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14235 fi
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14237 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14238 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14239 CFLAGS="$xorg_testset_save_CFLAGS"
14240 fi
14241
14242 found="no"
14243
14244 if test $found = "no" ; then
14245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14247 fi
14248
14249 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14251 fi
14252
14253 CFLAGS="$CFLAGS -Wuninitialized"
14254
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14256 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
14257 cacheid=xorg_cv_cc_flag__Wuninitialized
14258 if eval \${$cacheid+:} false; then :
14259 $as_echo_n "(cached) " >&6
14260 else
14261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14262 /* end confdefs.h. */
14263 int i;
14264 int
14265 main ()
14266 {
14267
14268 ;
14269 return 0;
14270 }
14271 _ACEOF
14272 if ac_fn_c_try_link "$LINENO"; then :
14273 eval $cacheid=yes
14274 else
14275 eval $cacheid=no
14276 fi
14277 rm -f core conftest.err conftest.$ac_objext \
14278 conftest$ac_exeext conftest.$ac_ext
14279 fi
14280
14281
14282 CFLAGS="$xorg_testset_save_CFLAGS"
14283
14284 eval supported=\$$cacheid
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14286 $as_echo "$supported" >&6; }
14287 if test "$supported" = "yes" ; then
14288 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14289 found="yes"
14290 fi
14291 fi
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307 xorg_testset_save_CFLAGS="$CFLAGS"
14308
14309 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14310 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14312 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14313 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14314 $as_echo_n "(cached) " >&6
14315 else
14316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14317 /* end confdefs.h. */
14318 int i;
14319 _ACEOF
14320 if ac_fn_c_try_compile "$LINENO"; then :
14321 xorg_cv_cc_flag_unknown_warning_option=yes
14322 else
14323 xorg_cv_cc_flag_unknown_warning_option=no
14324 fi
14325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14326 fi
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14328 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14329 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14330 CFLAGS="$xorg_testset_save_CFLAGS"
14331 fi
14332
14333 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14335 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14336 fi
14337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14339 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14340 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14341 $as_echo_n "(cached) " >&6
14342 else
14343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14344 /* end confdefs.h. */
14345 int i;
14346 _ACEOF
14347 if ac_fn_c_try_compile "$LINENO"; then :
14348 xorg_cv_cc_flag_unused_command_line_argument=yes
14349 else
14350 xorg_cv_cc_flag_unused_command_line_argument=no
14351 fi
14352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14353 fi
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14355 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14356 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14357 CFLAGS="$xorg_testset_save_CFLAGS"
14358 fi
14359
14360 found="no"
14361
14362 if test $found = "no" ; then
14363 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14364 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14365 fi
14366
14367 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14369 fi
14370
14371 CFLAGS="$CFLAGS -Wshadow"
14372
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14374 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
14375 cacheid=xorg_cv_cc_flag__Wshadow
14376 if eval \${$cacheid+:} false; then :
14377 $as_echo_n "(cached) " >&6
14378 else
14379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14380 /* end confdefs.h. */
14381 int i;
14382 int
14383 main ()
14384 {
14385
14386 ;
14387 return 0;
14388 }
14389 _ACEOF
14390 if ac_fn_c_try_link "$LINENO"; then :
14391 eval $cacheid=yes
14392 else
14393 eval $cacheid=no
14394 fi
14395 rm -f core conftest.err conftest.$ac_objext \
14396 conftest$ac_exeext conftest.$ac_ext
14397 fi
14398
14399
14400 CFLAGS="$xorg_testset_save_CFLAGS"
14401
14402 eval supported=\$$cacheid
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14404 $as_echo "$supported" >&6; }
14405 if test "$supported" = "yes" ; then
14406 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14407 found="yes"
14408 fi
14409 fi
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425 xorg_testset_save_CFLAGS="$CFLAGS"
14426
14427 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14428 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14430 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14431 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14432 $as_echo_n "(cached) " >&6
14433 else
14434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14435 /* end confdefs.h. */
14436 int i;
14437 _ACEOF
14438 if ac_fn_c_try_compile "$LINENO"; then :
14439 xorg_cv_cc_flag_unknown_warning_option=yes
14440 else
14441 xorg_cv_cc_flag_unknown_warning_option=no
14442 fi
14443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14444 fi
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14446 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14447 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14448 CFLAGS="$xorg_testset_save_CFLAGS"
14449 fi
14450
14451 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14452 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14453 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14454 fi
14455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14457 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14458 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14459 $as_echo_n "(cached) " >&6
14460 else
14461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14462 /* end confdefs.h. */
14463 int i;
14464 _ACEOF
14465 if ac_fn_c_try_compile "$LINENO"; then :
14466 xorg_cv_cc_flag_unused_command_line_argument=yes
14467 else
14468 xorg_cv_cc_flag_unused_command_line_argument=no
14469 fi
14470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14471 fi
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14473 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14474 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14475 CFLAGS="$xorg_testset_save_CFLAGS"
14476 fi
14477
14478 found="no"
14479
14480 if test $found = "no" ; then
14481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14482 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14483 fi
14484
14485 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14487 fi
14488
14489 CFLAGS="$CFLAGS -Wmissing-noreturn"
14490
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14492 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
14493 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14494 if eval \${$cacheid+:} false; then :
14495 $as_echo_n "(cached) " >&6
14496 else
14497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14498 /* end confdefs.h. */
14499 int i;
14500 int
14501 main ()
14502 {
14503
14504 ;
14505 return 0;
14506 }
14507 _ACEOF
14508 if ac_fn_c_try_link "$LINENO"; then :
14509 eval $cacheid=yes
14510 else
14511 eval $cacheid=no
14512 fi
14513 rm -f core conftest.err conftest.$ac_objext \
14514 conftest$ac_exeext conftest.$ac_ext
14515 fi
14516
14517
14518 CFLAGS="$xorg_testset_save_CFLAGS"
14519
14520 eval supported=\$$cacheid
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14522 $as_echo "$supported" >&6; }
14523 if test "$supported" = "yes" ; then
14524 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14525 found="yes"
14526 fi
14527 fi
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543 xorg_testset_save_CFLAGS="$CFLAGS"
14544
14545 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14546 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14548 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14549 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14550 $as_echo_n "(cached) " >&6
14551 else
14552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14553 /* end confdefs.h. */
14554 int i;
14555 _ACEOF
14556 if ac_fn_c_try_compile "$LINENO"; then :
14557 xorg_cv_cc_flag_unknown_warning_option=yes
14558 else
14559 xorg_cv_cc_flag_unknown_warning_option=no
14560 fi
14561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14562 fi
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14564 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14565 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14566 CFLAGS="$xorg_testset_save_CFLAGS"
14567 fi
14568
14569 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14570 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14571 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14572 fi
14573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14575 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14576 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14577 $as_echo_n "(cached) " >&6
14578 else
14579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14580 /* end confdefs.h. */
14581 int i;
14582 _ACEOF
14583 if ac_fn_c_try_compile "$LINENO"; then :
14584 xorg_cv_cc_flag_unused_command_line_argument=yes
14585 else
14586 xorg_cv_cc_flag_unused_command_line_argument=no
14587 fi
14588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14589 fi
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14591 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14592 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14593 CFLAGS="$xorg_testset_save_CFLAGS"
14594 fi
14595
14596 found="no"
14597
14598 if test $found = "no" ; then
14599 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14600 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14601 fi
14602
14603 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14605 fi
14606
14607 CFLAGS="$CFLAGS -Wmissing-format-attribute"
14608
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14610 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14611 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14612 if eval \${$cacheid+:} false; then :
14613 $as_echo_n "(cached) " >&6
14614 else
14615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14616 /* end confdefs.h. */
14617 int i;
14618 int
14619 main ()
14620 {
14621
14622 ;
14623 return 0;
14624 }
14625 _ACEOF
14626 if ac_fn_c_try_link "$LINENO"; then :
14627 eval $cacheid=yes
14628 else
14629 eval $cacheid=no
14630 fi
14631 rm -f core conftest.err conftest.$ac_objext \
14632 conftest$ac_exeext conftest.$ac_ext
14633 fi
14634
14635
14636 CFLAGS="$xorg_testset_save_CFLAGS"
14637
14638 eval supported=\$$cacheid
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14640 $as_echo "$supported" >&6; }
14641 if test "$supported" = "yes" ; then
14642 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14643 found="yes"
14644 fi
14645 fi
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661 xorg_testset_save_CFLAGS="$CFLAGS"
14662
14663 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14664 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14666 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14667 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14668 $as_echo_n "(cached) " >&6
14669 else
14670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14671 /* end confdefs.h. */
14672 int i;
14673 _ACEOF
14674 if ac_fn_c_try_compile "$LINENO"; then :
14675 xorg_cv_cc_flag_unknown_warning_option=yes
14676 else
14677 xorg_cv_cc_flag_unknown_warning_option=no
14678 fi
14679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14680 fi
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14682 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14683 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14684 CFLAGS="$xorg_testset_save_CFLAGS"
14685 fi
14686
14687 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14688 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14689 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14690 fi
14691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14693 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14694 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14695 $as_echo_n "(cached) " >&6
14696 else
14697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14698 /* end confdefs.h. */
14699 int i;
14700 _ACEOF
14701 if ac_fn_c_try_compile "$LINENO"; then :
14702 xorg_cv_cc_flag_unused_command_line_argument=yes
14703 else
14704 xorg_cv_cc_flag_unused_command_line_argument=no
14705 fi
14706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14707 fi
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14709 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14710 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14711 CFLAGS="$xorg_testset_save_CFLAGS"
14712 fi
14713
14714 found="no"
14715
14716 if test $found = "no" ; then
14717 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14718 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14719 fi
14720
14721 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14722 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14723 fi
14724
14725 CFLAGS="$CFLAGS -Wredundant-decls"
14726
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14728 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14729 cacheid=xorg_cv_cc_flag__Wredundant_decls
14730 if eval \${$cacheid+:} false; then :
14731 $as_echo_n "(cached) " >&6
14732 else
14733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14734 /* end confdefs.h. */
14735 int i;
14736 int
14737 main ()
14738 {
14739
14740 ;
14741 return 0;
14742 }
14743 _ACEOF
14744 if ac_fn_c_try_link "$LINENO"; then :
14745 eval $cacheid=yes
14746 else
14747 eval $cacheid=no
14748 fi
14749 rm -f core conftest.err conftest.$ac_objext \
14750 conftest$ac_exeext conftest.$ac_ext
14751 fi
14752
14753
14754 CFLAGS="$xorg_testset_save_CFLAGS"
14755
14756 eval supported=\$$cacheid
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14758 $as_echo "$supported" >&6; }
14759 if test "$supported" = "yes" ; then
14760 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14761 found="yes"
14762 fi
14763 fi
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779 xorg_testset_save_CFLAGS="$CFLAGS"
14780
14781 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14782 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14784 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14785 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14786 $as_echo_n "(cached) " >&6
14787 else
14788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14789 /* end confdefs.h. */
14790 int i;
14791 _ACEOF
14792 if ac_fn_c_try_compile "$LINENO"; then :
14793 xorg_cv_cc_flag_unknown_warning_option=yes
14794 else
14795 xorg_cv_cc_flag_unknown_warning_option=no
14796 fi
14797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14798 fi
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14800 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14801 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14802 CFLAGS="$xorg_testset_save_CFLAGS"
14803 fi
14804
14805 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14807 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14808 fi
14809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14811 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14812 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14813 $as_echo_n "(cached) " >&6
14814 else
14815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14816 /* end confdefs.h. */
14817 int i;
14818 _ACEOF
14819 if ac_fn_c_try_compile "$LINENO"; then :
14820 xorg_cv_cc_flag_unused_command_line_argument=yes
14821 else
14822 xorg_cv_cc_flag_unused_command_line_argument=no
14823 fi
14824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14825 fi
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14827 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14828 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14829 CFLAGS="$xorg_testset_save_CFLAGS"
14830 fi
14831
14832 found="no"
14833
14834 if test $found = "no" ; then
14835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14836 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14837 fi
14838
14839 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14841 fi
14842
14843 CFLAGS="$CFLAGS -Wlogical-op"
14844
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14846 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14847 cacheid=xorg_cv_cc_flag__Wlogical_op
14848 if eval \${$cacheid+:} false; then :
14849 $as_echo_n "(cached) " >&6
14850 else
14851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14852 /* end confdefs.h. */
14853 int i;
14854 int
14855 main ()
14856 {
14857
14858 ;
14859 return 0;
14860 }
14861 _ACEOF
14862 if ac_fn_c_try_link "$LINENO"; then :
14863 eval $cacheid=yes
14864 else
14865 eval $cacheid=no
14866 fi
14867 rm -f core conftest.err conftest.$ac_objext \
14868 conftest$ac_exeext conftest.$ac_ext
14869 fi
14870
14871
14872 CFLAGS="$xorg_testset_save_CFLAGS"
14873
14874 eval supported=\$$cacheid
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14876 $as_echo "$supported" >&6; }
14877 if test "$supported" = "yes" ; then
14878 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14879 found="yes"
14880 fi
14881 fi
14882
14883
14884
14885 # These are currently disabled because they are noisy. They will be enabled
14886 # in the future once the codebase is sufficiently modernized to silence
14887 # them. For now, I don't want them to drown out the other warnings.
14888 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14889 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14890 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14891
14892 # Turn some warnings into errors, so we don't accidently get successful builds
14893 # when there are problems that should be fixed.
14894
14895 if test "x$SELECTIVE_WERROR" = "xyes" ; then
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909 xorg_testset_save_CFLAGS="$CFLAGS"
14910
14911 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14912 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14914 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14915 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14916 $as_echo_n "(cached) " >&6
14917 else
14918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14919 /* end confdefs.h. */
14920 int i;
14921 _ACEOF
14922 if ac_fn_c_try_compile "$LINENO"; then :
14923 xorg_cv_cc_flag_unknown_warning_option=yes
14924 else
14925 xorg_cv_cc_flag_unknown_warning_option=no
14926 fi
14927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14928 fi
14929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14930 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14931 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14932 CFLAGS="$xorg_testset_save_CFLAGS"
14933 fi
14934
14935 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14936 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14937 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14938 fi
14939 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14941 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14942 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14943 $as_echo_n "(cached) " >&6
14944 else
14945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14946 /* end confdefs.h. */
14947 int i;
14948 _ACEOF
14949 if ac_fn_c_try_compile "$LINENO"; then :
14950 xorg_cv_cc_flag_unused_command_line_argument=yes
14951 else
14952 xorg_cv_cc_flag_unused_command_line_argument=no
14953 fi
14954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14955 fi
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14957 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14958 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14959 CFLAGS="$xorg_testset_save_CFLAGS"
14960 fi
14961
14962 found="no"
14963
14964 if test $found = "no" ; then
14965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14966 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14967 fi
14968
14969 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14971 fi
14972
14973 CFLAGS="$CFLAGS -Werror=implicit"
14974
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14976 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14977 cacheid=xorg_cv_cc_flag__Werror_implicit
14978 if eval \${$cacheid+:} false; then :
14979 $as_echo_n "(cached) " >&6
14980 else
14981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14982 /* end confdefs.h. */
14983 int i;
14984 int
14985 main ()
14986 {
14987
14988 ;
14989 return 0;
14990 }
14991 _ACEOF
14992 if ac_fn_c_try_link "$LINENO"; then :
14993 eval $cacheid=yes
14994 else
14995 eval $cacheid=no
14996 fi
14997 rm -f core conftest.err conftest.$ac_objext \
14998 conftest$ac_exeext conftest.$ac_ext
14999 fi
15000
15001
15002 CFLAGS="$xorg_testset_save_CFLAGS"
15003
15004 eval supported=\$$cacheid
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15006 $as_echo "$supported" >&6; }
15007 if test "$supported" = "yes" ; then
15008 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15009 found="yes"
15010 fi
15011 fi
15012
15013 if test $found = "no" ; then
15014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15016 fi
15017
15018 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15020 fi
15021
15022 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15023
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
15025 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15026 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15027 if eval \${$cacheid+:} false; then :
15028 $as_echo_n "(cached) " >&6
15029 else
15030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15031 /* end confdefs.h. */
15032 int i;
15033 int
15034 main ()
15035 {
15036
15037 ;
15038 return 0;
15039 }
15040 _ACEOF
15041 if ac_fn_c_try_link "$LINENO"; then :
15042 eval $cacheid=yes
15043 else
15044 eval $cacheid=no
15045 fi
15046 rm -f core conftest.err conftest.$ac_objext \
15047 conftest$ac_exeext conftest.$ac_ext
15048 fi
15049
15050
15051 CFLAGS="$xorg_testset_save_CFLAGS"
15052
15053 eval supported=\$$cacheid
15054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15055 $as_echo "$supported" >&6; }
15056 if test "$supported" = "yes" ; then
15057 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15058 found="yes"
15059 fi
15060 fi
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076 xorg_testset_save_CFLAGS="$CFLAGS"
15077
15078 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15081 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15082 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15083 $as_echo_n "(cached) " >&6
15084 else
15085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15086 /* end confdefs.h. */
15087 int i;
15088 _ACEOF
15089 if ac_fn_c_try_compile "$LINENO"; then :
15090 xorg_cv_cc_flag_unknown_warning_option=yes
15091 else
15092 xorg_cv_cc_flag_unknown_warning_option=no
15093 fi
15094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15095 fi
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15097 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15098 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15099 CFLAGS="$xorg_testset_save_CFLAGS"
15100 fi
15101
15102 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15105 fi
15106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15108 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15109 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15110 $as_echo_n "(cached) " >&6
15111 else
15112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15113 /* end confdefs.h. */
15114 int i;
15115 _ACEOF
15116 if ac_fn_c_try_compile "$LINENO"; then :
15117 xorg_cv_cc_flag_unused_command_line_argument=yes
15118 else
15119 xorg_cv_cc_flag_unused_command_line_argument=no
15120 fi
15121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15122 fi
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15124 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15125 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15126 CFLAGS="$xorg_testset_save_CFLAGS"
15127 fi
15128
15129 found="no"
15130
15131 if test $found = "no" ; then
15132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15133 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15134 fi
15135
15136 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15138 fi
15139
15140 CFLAGS="$CFLAGS -Werror=nonnull"
15141
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15143 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
15144 cacheid=xorg_cv_cc_flag__Werror_nonnull
15145 if eval \${$cacheid+:} false; then :
15146 $as_echo_n "(cached) " >&6
15147 else
15148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15149 /* end confdefs.h. */
15150 int i;
15151 int
15152 main ()
15153 {
15154
15155 ;
15156 return 0;
15157 }
15158 _ACEOF
15159 if ac_fn_c_try_link "$LINENO"; then :
15160 eval $cacheid=yes
15161 else
15162 eval $cacheid=no
15163 fi
15164 rm -f core conftest.err conftest.$ac_objext \
15165 conftest$ac_exeext conftest.$ac_ext
15166 fi
15167
15168
15169 CFLAGS="$xorg_testset_save_CFLAGS"
15170
15171 eval supported=\$$cacheid
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15173 $as_echo "$supported" >&6; }
15174 if test "$supported" = "yes" ; then
15175 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15176 found="yes"
15177 fi
15178 fi
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194 xorg_testset_save_CFLAGS="$CFLAGS"
15195
15196 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15199 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15200 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15201 $as_echo_n "(cached) " >&6
15202 else
15203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15204 /* end confdefs.h. */
15205 int i;
15206 _ACEOF
15207 if ac_fn_c_try_compile "$LINENO"; then :
15208 xorg_cv_cc_flag_unknown_warning_option=yes
15209 else
15210 xorg_cv_cc_flag_unknown_warning_option=no
15211 fi
15212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15213 fi
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15215 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15216 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15217 CFLAGS="$xorg_testset_save_CFLAGS"
15218 fi
15219
15220 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15222 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15223 fi
15224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15226 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15227 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15228 $as_echo_n "(cached) " >&6
15229 else
15230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15231 /* end confdefs.h. */
15232 int i;
15233 _ACEOF
15234 if ac_fn_c_try_compile "$LINENO"; then :
15235 xorg_cv_cc_flag_unused_command_line_argument=yes
15236 else
15237 xorg_cv_cc_flag_unused_command_line_argument=no
15238 fi
15239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15240 fi
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15242 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15243 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15244 CFLAGS="$xorg_testset_save_CFLAGS"
15245 fi
15246
15247 found="no"
15248
15249 if test $found = "no" ; then
15250 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15251 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15252 fi
15253
15254 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15255 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15256 fi
15257
15258 CFLAGS="$CFLAGS -Werror=init-self"
15259
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15261 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
15262 cacheid=xorg_cv_cc_flag__Werror_init_self
15263 if eval \${$cacheid+:} false; then :
15264 $as_echo_n "(cached) " >&6
15265 else
15266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15267 /* end confdefs.h. */
15268 int i;
15269 int
15270 main ()
15271 {
15272
15273 ;
15274 return 0;
15275 }
15276 _ACEOF
15277 if ac_fn_c_try_link "$LINENO"; then :
15278 eval $cacheid=yes
15279 else
15280 eval $cacheid=no
15281 fi
15282 rm -f core conftest.err conftest.$ac_objext \
15283 conftest$ac_exeext conftest.$ac_ext
15284 fi
15285
15286
15287 CFLAGS="$xorg_testset_save_CFLAGS"
15288
15289 eval supported=\$$cacheid
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15291 $as_echo "$supported" >&6; }
15292 if test "$supported" = "yes" ; then
15293 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15294 found="yes"
15295 fi
15296 fi
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312 xorg_testset_save_CFLAGS="$CFLAGS"
15313
15314 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15315 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15317 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15318 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15319 $as_echo_n "(cached) " >&6
15320 else
15321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15322 /* end confdefs.h. */
15323 int i;
15324 _ACEOF
15325 if ac_fn_c_try_compile "$LINENO"; then :
15326 xorg_cv_cc_flag_unknown_warning_option=yes
15327 else
15328 xorg_cv_cc_flag_unknown_warning_option=no
15329 fi
15330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15331 fi
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15333 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15334 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15335 CFLAGS="$xorg_testset_save_CFLAGS"
15336 fi
15337
15338 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15339 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15340 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15341 fi
15342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15344 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15345 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15346 $as_echo_n "(cached) " >&6
15347 else
15348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15349 /* end confdefs.h. */
15350 int i;
15351 _ACEOF
15352 if ac_fn_c_try_compile "$LINENO"; then :
15353 xorg_cv_cc_flag_unused_command_line_argument=yes
15354 else
15355 xorg_cv_cc_flag_unused_command_line_argument=no
15356 fi
15357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15358 fi
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15360 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15361 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15362 CFLAGS="$xorg_testset_save_CFLAGS"
15363 fi
15364
15365 found="no"
15366
15367 if test $found = "no" ; then
15368 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15369 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15370 fi
15371
15372 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15374 fi
15375
15376 CFLAGS="$CFLAGS -Werror=main"
15377
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15379 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
15380 cacheid=xorg_cv_cc_flag__Werror_main
15381 if eval \${$cacheid+:} false; then :
15382 $as_echo_n "(cached) " >&6
15383 else
15384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15385 /* end confdefs.h. */
15386 int i;
15387 int
15388 main ()
15389 {
15390
15391 ;
15392 return 0;
15393 }
15394 _ACEOF
15395 if ac_fn_c_try_link "$LINENO"; then :
15396 eval $cacheid=yes
15397 else
15398 eval $cacheid=no
15399 fi
15400 rm -f core conftest.err conftest.$ac_objext \
15401 conftest$ac_exeext conftest.$ac_ext
15402 fi
15403
15404
15405 CFLAGS="$xorg_testset_save_CFLAGS"
15406
15407 eval supported=\$$cacheid
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15409 $as_echo "$supported" >&6; }
15410 if test "$supported" = "yes" ; then
15411 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15412 found="yes"
15413 fi
15414 fi
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430 xorg_testset_save_CFLAGS="$CFLAGS"
15431
15432 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15433 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15435 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15436 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15437 $as_echo_n "(cached) " >&6
15438 else
15439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15440 /* end confdefs.h. */
15441 int i;
15442 _ACEOF
15443 if ac_fn_c_try_compile "$LINENO"; then :
15444 xorg_cv_cc_flag_unknown_warning_option=yes
15445 else
15446 xorg_cv_cc_flag_unknown_warning_option=no
15447 fi
15448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15449 fi
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15451 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15452 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15453 CFLAGS="$xorg_testset_save_CFLAGS"
15454 fi
15455
15456 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15458 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15459 fi
15460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15462 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15463 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15464 $as_echo_n "(cached) " >&6
15465 else
15466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15467 /* end confdefs.h. */
15468 int i;
15469 _ACEOF
15470 if ac_fn_c_try_compile "$LINENO"; then :
15471 xorg_cv_cc_flag_unused_command_line_argument=yes
15472 else
15473 xorg_cv_cc_flag_unused_command_line_argument=no
15474 fi
15475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15476 fi
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15478 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15479 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15480 CFLAGS="$xorg_testset_save_CFLAGS"
15481 fi
15482
15483 found="no"
15484
15485 if test $found = "no" ; then
15486 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15487 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15488 fi
15489
15490 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15492 fi
15493
15494 CFLAGS="$CFLAGS -Werror=missing-braces"
15495
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15497 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
15498 cacheid=xorg_cv_cc_flag__Werror_missing_braces
15499 if eval \${$cacheid+:} false; then :
15500 $as_echo_n "(cached) " >&6
15501 else
15502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15503 /* end confdefs.h. */
15504 int i;
15505 int
15506 main ()
15507 {
15508
15509 ;
15510 return 0;
15511 }
15512 _ACEOF
15513 if ac_fn_c_try_link "$LINENO"; then :
15514 eval $cacheid=yes
15515 else
15516 eval $cacheid=no
15517 fi
15518 rm -f core conftest.err conftest.$ac_objext \
15519 conftest$ac_exeext conftest.$ac_ext
15520 fi
15521
15522
15523 CFLAGS="$xorg_testset_save_CFLAGS"
15524
15525 eval supported=\$$cacheid
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15527 $as_echo "$supported" >&6; }
15528 if test "$supported" = "yes" ; then
15529 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15530 found="yes"
15531 fi
15532 fi
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548 xorg_testset_save_CFLAGS="$CFLAGS"
15549
15550 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15551 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15553 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15554 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15555 $as_echo_n "(cached) " >&6
15556 else
15557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15558 /* end confdefs.h. */
15559 int i;
15560 _ACEOF
15561 if ac_fn_c_try_compile "$LINENO"; then :
15562 xorg_cv_cc_flag_unknown_warning_option=yes
15563 else
15564 xorg_cv_cc_flag_unknown_warning_option=no
15565 fi
15566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15567 fi
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15569 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15570 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15571 CFLAGS="$xorg_testset_save_CFLAGS"
15572 fi
15573
15574 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15575 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15576 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15577 fi
15578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15580 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15581 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15582 $as_echo_n "(cached) " >&6
15583 else
15584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15585 /* end confdefs.h. */
15586 int i;
15587 _ACEOF
15588 if ac_fn_c_try_compile "$LINENO"; then :
15589 xorg_cv_cc_flag_unused_command_line_argument=yes
15590 else
15591 xorg_cv_cc_flag_unused_command_line_argument=no
15592 fi
15593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15594 fi
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15596 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15597 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15598 CFLAGS="$xorg_testset_save_CFLAGS"
15599 fi
15600
15601 found="no"
15602
15603 if test $found = "no" ; then
15604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15606 fi
15607
15608 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15610 fi
15611
15612 CFLAGS="$CFLAGS -Werror=sequence-point"
15613
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15615 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15616 cacheid=xorg_cv_cc_flag__Werror_sequence_point
15617 if eval \${$cacheid+:} false; then :
15618 $as_echo_n "(cached) " >&6
15619 else
15620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15621 /* end confdefs.h. */
15622 int i;
15623 int
15624 main ()
15625 {
15626
15627 ;
15628 return 0;
15629 }
15630 _ACEOF
15631 if ac_fn_c_try_link "$LINENO"; then :
15632 eval $cacheid=yes
15633 else
15634 eval $cacheid=no
15635 fi
15636 rm -f core conftest.err conftest.$ac_objext \
15637 conftest$ac_exeext conftest.$ac_ext
15638 fi
15639
15640
15641 CFLAGS="$xorg_testset_save_CFLAGS"
15642
15643 eval supported=\$$cacheid
15644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15645 $as_echo "$supported" >&6; }
15646 if test "$supported" = "yes" ; then
15647 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15648 found="yes"
15649 fi
15650 fi
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666 xorg_testset_save_CFLAGS="$CFLAGS"
15667
15668 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15669 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15671 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15672 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15673 $as_echo_n "(cached) " >&6
15674 else
15675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15676 /* end confdefs.h. */
15677 int i;
15678 _ACEOF
15679 if ac_fn_c_try_compile "$LINENO"; then :
15680 xorg_cv_cc_flag_unknown_warning_option=yes
15681 else
15682 xorg_cv_cc_flag_unknown_warning_option=no
15683 fi
15684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15685 fi
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15687 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15688 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15689 CFLAGS="$xorg_testset_save_CFLAGS"
15690 fi
15691
15692 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15694 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15695 fi
15696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15698 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15699 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15700 $as_echo_n "(cached) " >&6
15701 else
15702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15703 /* end confdefs.h. */
15704 int i;
15705 _ACEOF
15706 if ac_fn_c_try_compile "$LINENO"; then :
15707 xorg_cv_cc_flag_unused_command_line_argument=yes
15708 else
15709 xorg_cv_cc_flag_unused_command_line_argument=no
15710 fi
15711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15712 fi
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15714 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15715 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15716 CFLAGS="$xorg_testset_save_CFLAGS"
15717 fi
15718
15719 found="no"
15720
15721 if test $found = "no" ; then
15722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15724 fi
15725
15726 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15728 fi
15729
15730 CFLAGS="$CFLAGS -Werror=return-type"
15731
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15733 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15734 cacheid=xorg_cv_cc_flag__Werror_return_type
15735 if eval \${$cacheid+:} false; then :
15736 $as_echo_n "(cached) " >&6
15737 else
15738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15739 /* end confdefs.h. */
15740 int i;
15741 int
15742 main ()
15743 {
15744
15745 ;
15746 return 0;
15747 }
15748 _ACEOF
15749 if ac_fn_c_try_link "$LINENO"; then :
15750 eval $cacheid=yes
15751 else
15752 eval $cacheid=no
15753 fi
15754 rm -f core conftest.err conftest.$ac_objext \
15755 conftest$ac_exeext conftest.$ac_ext
15756 fi
15757
15758
15759 CFLAGS="$xorg_testset_save_CFLAGS"
15760
15761 eval supported=\$$cacheid
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15763 $as_echo "$supported" >&6; }
15764 if test "$supported" = "yes" ; then
15765 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15766 found="yes"
15767 fi
15768 fi
15769
15770 if test $found = "no" ; then
15771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15772 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15773 fi
15774
15775 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15777 fi
15778
15779 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15780
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15782 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15783 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
15784 if eval \${$cacheid+:} false; then :
15785 $as_echo_n "(cached) " >&6
15786 else
15787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15788 /* end confdefs.h. */
15789 int i;
15790 int
15791 main ()
15792 {
15793
15794 ;
15795 return 0;
15796 }
15797 _ACEOF
15798 if ac_fn_c_try_link "$LINENO"; then :
15799 eval $cacheid=yes
15800 else
15801 eval $cacheid=no
15802 fi
15803 rm -f core conftest.err conftest.$ac_objext \
15804 conftest$ac_exeext conftest.$ac_ext
15805 fi
15806
15807
15808 CFLAGS="$xorg_testset_save_CFLAGS"
15809
15810 eval supported=\$$cacheid
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15812 $as_echo "$supported" >&6; }
15813 if test "$supported" = "yes" ; then
15814 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15815 found="yes"
15816 fi
15817 fi
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833 xorg_testset_save_CFLAGS="$CFLAGS"
15834
15835 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15836 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15838 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15839 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15840 $as_echo_n "(cached) " >&6
15841 else
15842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15843 /* end confdefs.h. */
15844 int i;
15845 _ACEOF
15846 if ac_fn_c_try_compile "$LINENO"; then :
15847 xorg_cv_cc_flag_unknown_warning_option=yes
15848 else
15849 xorg_cv_cc_flag_unknown_warning_option=no
15850 fi
15851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15852 fi
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15854 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15855 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15856 CFLAGS="$xorg_testset_save_CFLAGS"
15857 fi
15858
15859 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15861 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15862 fi
15863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15865 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15866 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15867 $as_echo_n "(cached) " >&6
15868 else
15869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15870 /* end confdefs.h. */
15871 int i;
15872 _ACEOF
15873 if ac_fn_c_try_compile "$LINENO"; then :
15874 xorg_cv_cc_flag_unused_command_line_argument=yes
15875 else
15876 xorg_cv_cc_flag_unused_command_line_argument=no
15877 fi
15878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15879 fi
15880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15881 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15882 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15883 CFLAGS="$xorg_testset_save_CFLAGS"
15884 fi
15885
15886 found="no"
15887
15888 if test $found = "no" ; then
15889 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15890 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15891 fi
15892
15893 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15895 fi
15896
15897 CFLAGS="$CFLAGS -Werror=trigraphs"
15898
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15900 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15901 cacheid=xorg_cv_cc_flag__Werror_trigraphs
15902 if eval \${$cacheid+:} false; then :
15903 $as_echo_n "(cached) " >&6
15904 else
15905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15906 /* end confdefs.h. */
15907 int i;
15908 int
15909 main ()
15910 {
15911
15912 ;
15913 return 0;
15914 }
15915 _ACEOF
15916 if ac_fn_c_try_link "$LINENO"; then :
15917 eval $cacheid=yes
15918 else
15919 eval $cacheid=no
15920 fi
15921 rm -f core conftest.err conftest.$ac_objext \
15922 conftest$ac_exeext conftest.$ac_ext
15923 fi
15924
15925
15926 CFLAGS="$xorg_testset_save_CFLAGS"
15927
15928 eval supported=\$$cacheid
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15930 $as_echo "$supported" >&6; }
15931 if test "$supported" = "yes" ; then
15932 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15933 found="yes"
15934 fi
15935 fi
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951 xorg_testset_save_CFLAGS="$CFLAGS"
15952
15953 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15954 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15956 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15957 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15958 $as_echo_n "(cached) " >&6
15959 else
15960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15961 /* end confdefs.h. */
15962 int i;
15963 _ACEOF
15964 if ac_fn_c_try_compile "$LINENO"; then :
15965 xorg_cv_cc_flag_unknown_warning_option=yes
15966 else
15967 xorg_cv_cc_flag_unknown_warning_option=no
15968 fi
15969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15970 fi
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15972 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15973 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15974 CFLAGS="$xorg_testset_save_CFLAGS"
15975 fi
15976
15977 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15979 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15980 fi
15981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15983 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15984 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15985 $as_echo_n "(cached) " >&6
15986 else
15987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15988 /* end confdefs.h. */
15989 int i;
15990 _ACEOF
15991 if ac_fn_c_try_compile "$LINENO"; then :
15992 xorg_cv_cc_flag_unused_command_line_argument=yes
15993 else
15994 xorg_cv_cc_flag_unused_command_line_argument=no
15995 fi
15996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15997 fi
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15999 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16000 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16001 CFLAGS="$xorg_testset_save_CFLAGS"
16002 fi
16003
16004 found="no"
16005
16006 if test $found = "no" ; then
16007 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16008 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16009 fi
16010
16011 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16013 fi
16014
16015 CFLAGS="$CFLAGS -Werror=array-bounds"
16016
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16018 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
16019 cacheid=xorg_cv_cc_flag__Werror_array_bounds
16020 if eval \${$cacheid+:} false; then :
16021 $as_echo_n "(cached) " >&6
16022 else
16023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16024 /* end confdefs.h. */
16025 int i;
16026 int
16027 main ()
16028 {
16029
16030 ;
16031 return 0;
16032 }
16033 _ACEOF
16034 if ac_fn_c_try_link "$LINENO"; then :
16035 eval $cacheid=yes
16036 else
16037 eval $cacheid=no
16038 fi
16039 rm -f core conftest.err conftest.$ac_objext \
16040 conftest$ac_exeext conftest.$ac_ext
16041 fi
16042
16043
16044 CFLAGS="$xorg_testset_save_CFLAGS"
16045
16046 eval supported=\$$cacheid
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16048 $as_echo "$supported" >&6; }
16049 if test "$supported" = "yes" ; then
16050 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16051 found="yes"
16052 fi
16053 fi
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069 xorg_testset_save_CFLAGS="$CFLAGS"
16070
16071 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16072 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16074 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16075 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16076 $as_echo_n "(cached) " >&6
16077 else
16078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16079 /* end confdefs.h. */
16080 int i;
16081 _ACEOF
16082 if ac_fn_c_try_compile "$LINENO"; then :
16083 xorg_cv_cc_flag_unknown_warning_option=yes
16084 else
16085 xorg_cv_cc_flag_unknown_warning_option=no
16086 fi
16087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16088 fi
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16090 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16091 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16092 CFLAGS="$xorg_testset_save_CFLAGS"
16093 fi
16094
16095 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16097 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16098 fi
16099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16101 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16102 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16103 $as_echo_n "(cached) " >&6
16104 else
16105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16106 /* end confdefs.h. */
16107 int i;
16108 _ACEOF
16109 if ac_fn_c_try_compile "$LINENO"; then :
16110 xorg_cv_cc_flag_unused_command_line_argument=yes
16111 else
16112 xorg_cv_cc_flag_unused_command_line_argument=no
16113 fi
16114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16115 fi
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16117 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16118 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16119 CFLAGS="$xorg_testset_save_CFLAGS"
16120 fi
16121
16122 found="no"
16123
16124 if test $found = "no" ; then
16125 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16126 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16127 fi
16128
16129 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16131 fi
16132
16133 CFLAGS="$CFLAGS -Werror=write-strings"
16134
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16136 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
16137 cacheid=xorg_cv_cc_flag__Werror_write_strings
16138 if eval \${$cacheid+:} false; then :
16139 $as_echo_n "(cached) " >&6
16140 else
16141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16142 /* end confdefs.h. */
16143 int i;
16144 int
16145 main ()
16146 {
16147
16148 ;
16149 return 0;
16150 }
16151 _ACEOF
16152 if ac_fn_c_try_link "$LINENO"; then :
16153 eval $cacheid=yes
16154 else
16155 eval $cacheid=no
16156 fi
16157 rm -f core conftest.err conftest.$ac_objext \
16158 conftest$ac_exeext conftest.$ac_ext
16159 fi
16160
16161
16162 CFLAGS="$xorg_testset_save_CFLAGS"
16163
16164 eval supported=\$$cacheid
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16166 $as_echo "$supported" >&6; }
16167 if test "$supported" = "yes" ; then
16168 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16169 found="yes"
16170 fi
16171 fi
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187 xorg_testset_save_CFLAGS="$CFLAGS"
16188
16189 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16190 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16192 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16193 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16194 $as_echo_n "(cached) " >&6
16195 else
16196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16197 /* end confdefs.h. */
16198 int i;
16199 _ACEOF
16200 if ac_fn_c_try_compile "$LINENO"; then :
16201 xorg_cv_cc_flag_unknown_warning_option=yes
16202 else
16203 xorg_cv_cc_flag_unknown_warning_option=no
16204 fi
16205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16206 fi
16207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16208 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16209 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16210 CFLAGS="$xorg_testset_save_CFLAGS"
16211 fi
16212
16213 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16216 fi
16217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16219 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16220 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16221 $as_echo_n "(cached) " >&6
16222 else
16223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16224 /* end confdefs.h. */
16225 int i;
16226 _ACEOF
16227 if ac_fn_c_try_compile "$LINENO"; then :
16228 xorg_cv_cc_flag_unused_command_line_argument=yes
16229 else
16230 xorg_cv_cc_flag_unused_command_line_argument=no
16231 fi
16232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16233 fi
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16235 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16236 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16237 CFLAGS="$xorg_testset_save_CFLAGS"
16238 fi
16239
16240 found="no"
16241
16242 if test $found = "no" ; then
16243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16245 fi
16246
16247 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16249 fi
16250
16251 CFLAGS="$CFLAGS -Werror=address"
16252
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16254 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
16255 cacheid=xorg_cv_cc_flag__Werror_address
16256 if eval \${$cacheid+:} false; then :
16257 $as_echo_n "(cached) " >&6
16258 else
16259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16260 /* end confdefs.h. */
16261 int i;
16262 int
16263 main ()
16264 {
16265
16266 ;
16267 return 0;
16268 }
16269 _ACEOF
16270 if ac_fn_c_try_link "$LINENO"; then :
16271 eval $cacheid=yes
16272 else
16273 eval $cacheid=no
16274 fi
16275 rm -f core conftest.err conftest.$ac_objext \
16276 conftest$ac_exeext conftest.$ac_ext
16277 fi
16278
16279
16280 CFLAGS="$xorg_testset_save_CFLAGS"
16281
16282 eval supported=\$$cacheid
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16284 $as_echo "$supported" >&6; }
16285 if test "$supported" = "yes" ; then
16286 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16287 found="yes"
16288 fi
16289 fi
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305 xorg_testset_save_CFLAGS="$CFLAGS"
16306
16307 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16308 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16310 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16311 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16312 $as_echo_n "(cached) " >&6
16313 else
16314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16315 /* end confdefs.h. */
16316 int i;
16317 _ACEOF
16318 if ac_fn_c_try_compile "$LINENO"; then :
16319 xorg_cv_cc_flag_unknown_warning_option=yes
16320 else
16321 xorg_cv_cc_flag_unknown_warning_option=no
16322 fi
16323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16324 fi
16325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16326 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16327 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16328 CFLAGS="$xorg_testset_save_CFLAGS"
16329 fi
16330
16331 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16332 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16333 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16334 fi
16335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16337 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16338 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16339 $as_echo_n "(cached) " >&6
16340 else
16341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16342 /* end confdefs.h. */
16343 int i;
16344 _ACEOF
16345 if ac_fn_c_try_compile "$LINENO"; then :
16346 xorg_cv_cc_flag_unused_command_line_argument=yes
16347 else
16348 xorg_cv_cc_flag_unused_command_line_argument=no
16349 fi
16350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16351 fi
16352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16353 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16354 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16355 CFLAGS="$xorg_testset_save_CFLAGS"
16356 fi
16357
16358 found="no"
16359
16360 if test $found = "no" ; then
16361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16362 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16363 fi
16364
16365 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16367 fi
16368
16369 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16370
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16372 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16373 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16374 if eval \${$cacheid+:} false; then :
16375 $as_echo_n "(cached) " >&6
16376 else
16377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16378 /* end confdefs.h. */
16379 int i;
16380 int
16381 main ()
16382 {
16383
16384 ;
16385 return 0;
16386 }
16387 _ACEOF
16388 if ac_fn_c_try_link "$LINENO"; then :
16389 eval $cacheid=yes
16390 else
16391 eval $cacheid=no
16392 fi
16393 rm -f core conftest.err conftest.$ac_objext \
16394 conftest$ac_exeext conftest.$ac_ext
16395 fi
16396
16397
16398 CFLAGS="$xorg_testset_save_CFLAGS"
16399
16400 eval supported=\$$cacheid
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16402 $as_echo "$supported" >&6; }
16403 if test "$supported" = "yes" ; then
16404 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16405 found="yes"
16406 fi
16407 fi
16408
16409 if test $found = "no" ; then
16410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16411 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16412 fi
16413
16414 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16416 fi
16417
16418 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16419
16420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16421 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16422 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16423 if eval \${$cacheid+:} false; then :
16424 $as_echo_n "(cached) " >&6
16425 else
16426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16427 /* end confdefs.h. */
16428 int i;
16429 int
16430 main ()
16431 {
16432
16433 ;
16434 return 0;
16435 }
16436 _ACEOF
16437 if ac_fn_c_try_link "$LINENO"; then :
16438 eval $cacheid=yes
16439 else
16440 eval $cacheid=no
16441 fi
16442 rm -f core conftest.err conftest.$ac_objext \
16443 conftest$ac_exeext conftest.$ac_ext
16444 fi
16445
16446
16447 CFLAGS="$xorg_testset_save_CFLAGS"
16448
16449 eval supported=\$$cacheid
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16451 $as_echo "$supported" >&6; }
16452 if test "$supported" = "yes" ; then
16453 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16454 found="yes"
16455 fi
16456 fi
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472 xorg_testset_save_CFLAGS="$CFLAGS"
16473
16474 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16475 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16477 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16478 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16479 $as_echo_n "(cached) " >&6
16480 else
16481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16482 /* end confdefs.h. */
16483 int i;
16484 _ACEOF
16485 if ac_fn_c_try_compile "$LINENO"; then :
16486 xorg_cv_cc_flag_unknown_warning_option=yes
16487 else
16488 xorg_cv_cc_flag_unknown_warning_option=no
16489 fi
16490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16491 fi
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16493 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16494 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16495 CFLAGS="$xorg_testset_save_CFLAGS"
16496 fi
16497
16498 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16500 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16501 fi
16502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16504 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16505 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16506 $as_echo_n "(cached) " >&6
16507 else
16508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16509 /* end confdefs.h. */
16510 int i;
16511 _ACEOF
16512 if ac_fn_c_try_compile "$LINENO"; then :
16513 xorg_cv_cc_flag_unused_command_line_argument=yes
16514 else
16515 xorg_cv_cc_flag_unused_command_line_argument=no
16516 fi
16517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16518 fi
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16520 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16521 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16522 CFLAGS="$xorg_testset_save_CFLAGS"
16523 fi
16524
16525 found="no"
16526
16527 if test $found = "no" ; then
16528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16529 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16530 fi
16531
16532 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16534 fi
16535
16536 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16537
16538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16539 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16540 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16541 if eval \${$cacheid+:} false; then :
16542 $as_echo_n "(cached) " >&6
16543 else
16544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16545 /* end confdefs.h. */
16546 int i;
16547 int
16548 main ()
16549 {
16550
16551 ;
16552 return 0;
16553 }
16554 _ACEOF
16555 if ac_fn_c_try_link "$LINENO"; then :
16556 eval $cacheid=yes
16557 else
16558 eval $cacheid=no
16559 fi
16560 rm -f core conftest.err conftest.$ac_objext \
16561 conftest$ac_exeext conftest.$ac_ext
16562 fi
16563
16564
16565 CFLAGS="$xorg_testset_save_CFLAGS"
16566
16567 eval supported=\$$cacheid
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16569 $as_echo "$supported" >&6; }
16570 if test "$supported" = "yes" ; then
16571 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16572 found="yes"
16573 fi
16574 fi
16575
16576 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16577 else
16578 { $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
16579 $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;}
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593 xorg_testset_save_CFLAGS="$CFLAGS"
16594
16595 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16596 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16598 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16599 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16600 $as_echo_n "(cached) " >&6
16601 else
16602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16603 /* end confdefs.h. */
16604 int i;
16605 _ACEOF
16606 if ac_fn_c_try_compile "$LINENO"; then :
16607 xorg_cv_cc_flag_unknown_warning_option=yes
16608 else
16609 xorg_cv_cc_flag_unknown_warning_option=no
16610 fi
16611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16612 fi
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16614 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16615 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16616 CFLAGS="$xorg_testset_save_CFLAGS"
16617 fi
16618
16619 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16620 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16621 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16622 fi
16623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16625 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16626 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16627 $as_echo_n "(cached) " >&6
16628 else
16629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16630 /* end confdefs.h. */
16631 int i;
16632 _ACEOF
16633 if ac_fn_c_try_compile "$LINENO"; then :
16634 xorg_cv_cc_flag_unused_command_line_argument=yes
16635 else
16636 xorg_cv_cc_flag_unused_command_line_argument=no
16637 fi
16638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16639 fi
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16641 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16642 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16643 CFLAGS="$xorg_testset_save_CFLAGS"
16644 fi
16645
16646 found="no"
16647
16648 if test $found = "no" ; then
16649 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16650 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16651 fi
16652
16653 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16654 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16655 fi
16656
16657 CFLAGS="$CFLAGS -Wimplicit"
16658
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16660 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16661 cacheid=xorg_cv_cc_flag__Wimplicit
16662 if eval \${$cacheid+:} false; then :
16663 $as_echo_n "(cached) " >&6
16664 else
16665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16666 /* end confdefs.h. */
16667 int i;
16668 int
16669 main ()
16670 {
16671
16672 ;
16673 return 0;
16674 }
16675 _ACEOF
16676 if ac_fn_c_try_link "$LINENO"; then :
16677 eval $cacheid=yes
16678 else
16679 eval $cacheid=no
16680 fi
16681 rm -f core conftest.err conftest.$ac_objext \
16682 conftest$ac_exeext conftest.$ac_ext
16683 fi
16684
16685
16686 CFLAGS="$xorg_testset_save_CFLAGS"
16687
16688 eval supported=\$$cacheid
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16690 $as_echo "$supported" >&6; }
16691 if test "$supported" = "yes" ; then
16692 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16693 found="yes"
16694 fi
16695 fi
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711 xorg_testset_save_CFLAGS="$CFLAGS"
16712
16713 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16714 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16716 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16717 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16718 $as_echo_n "(cached) " >&6
16719 else
16720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16721 /* end confdefs.h. */
16722 int i;
16723 _ACEOF
16724 if ac_fn_c_try_compile "$LINENO"; then :
16725 xorg_cv_cc_flag_unknown_warning_option=yes
16726 else
16727 xorg_cv_cc_flag_unknown_warning_option=no
16728 fi
16729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16730 fi
16731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16732 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16733 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16734 CFLAGS="$xorg_testset_save_CFLAGS"
16735 fi
16736
16737 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16738 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16739 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16740 fi
16741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16743 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16744 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16745 $as_echo_n "(cached) " >&6
16746 else
16747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16748 /* end confdefs.h. */
16749 int i;
16750 _ACEOF
16751 if ac_fn_c_try_compile "$LINENO"; then :
16752 xorg_cv_cc_flag_unused_command_line_argument=yes
16753 else
16754 xorg_cv_cc_flag_unused_command_line_argument=no
16755 fi
16756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16757 fi
16758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16759 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16760 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16761 CFLAGS="$xorg_testset_save_CFLAGS"
16762 fi
16763
16764 found="no"
16765
16766 if test $found = "no" ; then
16767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16768 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16769 fi
16770
16771 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16773 fi
16774
16775 CFLAGS="$CFLAGS -Wnonnull"
16776
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16778 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16779 cacheid=xorg_cv_cc_flag__Wnonnull
16780 if eval \${$cacheid+:} false; then :
16781 $as_echo_n "(cached) " >&6
16782 else
16783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16784 /* end confdefs.h. */
16785 int i;
16786 int
16787 main ()
16788 {
16789
16790 ;
16791 return 0;
16792 }
16793 _ACEOF
16794 if ac_fn_c_try_link "$LINENO"; then :
16795 eval $cacheid=yes
16796 else
16797 eval $cacheid=no
16798 fi
16799 rm -f core conftest.err conftest.$ac_objext \
16800 conftest$ac_exeext conftest.$ac_ext
16801 fi
16802
16803
16804 CFLAGS="$xorg_testset_save_CFLAGS"
16805
16806 eval supported=\$$cacheid
16807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16808 $as_echo "$supported" >&6; }
16809 if test "$supported" = "yes" ; then
16810 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16811 found="yes"
16812 fi
16813 fi
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829 xorg_testset_save_CFLAGS="$CFLAGS"
16830
16831 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16834 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16835 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16836 $as_echo_n "(cached) " >&6
16837 else
16838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16839 /* end confdefs.h. */
16840 int i;
16841 _ACEOF
16842 if ac_fn_c_try_compile "$LINENO"; then :
16843 xorg_cv_cc_flag_unknown_warning_option=yes
16844 else
16845 xorg_cv_cc_flag_unknown_warning_option=no
16846 fi
16847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16848 fi
16849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16850 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16851 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16852 CFLAGS="$xorg_testset_save_CFLAGS"
16853 fi
16854
16855 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16857 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16858 fi
16859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16861 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16862 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16863 $as_echo_n "(cached) " >&6
16864 else
16865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16866 /* end confdefs.h. */
16867 int i;
16868 _ACEOF
16869 if ac_fn_c_try_compile "$LINENO"; then :
16870 xorg_cv_cc_flag_unused_command_line_argument=yes
16871 else
16872 xorg_cv_cc_flag_unused_command_line_argument=no
16873 fi
16874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16875 fi
16876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16877 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16878 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16879 CFLAGS="$xorg_testset_save_CFLAGS"
16880 fi
16881
16882 found="no"
16883
16884 if test $found = "no" ; then
16885 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16886 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16887 fi
16888
16889 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16891 fi
16892
16893 CFLAGS="$CFLAGS -Winit-self"
16894
16895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16896 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16897 cacheid=xorg_cv_cc_flag__Winit_self
16898 if eval \${$cacheid+:} false; then :
16899 $as_echo_n "(cached) " >&6
16900 else
16901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16902 /* end confdefs.h. */
16903 int i;
16904 int
16905 main ()
16906 {
16907
16908 ;
16909 return 0;
16910 }
16911 _ACEOF
16912 if ac_fn_c_try_link "$LINENO"; then :
16913 eval $cacheid=yes
16914 else
16915 eval $cacheid=no
16916 fi
16917 rm -f core conftest.err conftest.$ac_objext \
16918 conftest$ac_exeext conftest.$ac_ext
16919 fi
16920
16921
16922 CFLAGS="$xorg_testset_save_CFLAGS"
16923
16924 eval supported=\$$cacheid
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16926 $as_echo "$supported" >&6; }
16927 if test "$supported" = "yes" ; then
16928 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16929 found="yes"
16930 fi
16931 fi
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947 xorg_testset_save_CFLAGS="$CFLAGS"
16948
16949 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16952 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16953 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16954 $as_echo_n "(cached) " >&6
16955 else
16956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16957 /* end confdefs.h. */
16958 int i;
16959 _ACEOF
16960 if ac_fn_c_try_compile "$LINENO"; then :
16961 xorg_cv_cc_flag_unknown_warning_option=yes
16962 else
16963 xorg_cv_cc_flag_unknown_warning_option=no
16964 fi
16965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16966 fi
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16968 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16969 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16970 CFLAGS="$xorg_testset_save_CFLAGS"
16971 fi
16972
16973 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16975 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16976 fi
16977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16979 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16980 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16981 $as_echo_n "(cached) " >&6
16982 else
16983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16984 /* end confdefs.h. */
16985 int i;
16986 _ACEOF
16987 if ac_fn_c_try_compile "$LINENO"; then :
16988 xorg_cv_cc_flag_unused_command_line_argument=yes
16989 else
16990 xorg_cv_cc_flag_unused_command_line_argument=no
16991 fi
16992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16993 fi
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16995 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16996 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16997 CFLAGS="$xorg_testset_save_CFLAGS"
16998 fi
16999
17000 found="no"
17001
17002 if test $found = "no" ; then
17003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17004 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17005 fi
17006
17007 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17009 fi
17010
17011 CFLAGS="$CFLAGS -Wmain"
17012
17013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17014 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
17015 cacheid=xorg_cv_cc_flag__Wmain
17016 if eval \${$cacheid+:} false; then :
17017 $as_echo_n "(cached) " >&6
17018 else
17019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17020 /* end confdefs.h. */
17021 int i;
17022 int
17023 main ()
17024 {
17025
17026 ;
17027 return 0;
17028 }
17029 _ACEOF
17030 if ac_fn_c_try_link "$LINENO"; then :
17031 eval $cacheid=yes
17032 else
17033 eval $cacheid=no
17034 fi
17035 rm -f core conftest.err conftest.$ac_objext \
17036 conftest$ac_exeext conftest.$ac_ext
17037 fi
17038
17039
17040 CFLAGS="$xorg_testset_save_CFLAGS"
17041
17042 eval supported=\$$cacheid
17043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17044 $as_echo "$supported" >&6; }
17045 if test "$supported" = "yes" ; then
17046 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17047 found="yes"
17048 fi
17049 fi
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065 xorg_testset_save_CFLAGS="$CFLAGS"
17066
17067 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17068 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17070 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17071 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17072 $as_echo_n "(cached) " >&6
17073 else
17074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17075 /* end confdefs.h. */
17076 int i;
17077 _ACEOF
17078 if ac_fn_c_try_compile "$LINENO"; then :
17079 xorg_cv_cc_flag_unknown_warning_option=yes
17080 else
17081 xorg_cv_cc_flag_unknown_warning_option=no
17082 fi
17083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17084 fi
17085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17086 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17087 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17088 CFLAGS="$xorg_testset_save_CFLAGS"
17089 fi
17090
17091 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17093 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17094 fi
17095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17097 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17098 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17099 $as_echo_n "(cached) " >&6
17100 else
17101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17102 /* end confdefs.h. */
17103 int i;
17104 _ACEOF
17105 if ac_fn_c_try_compile "$LINENO"; then :
17106 xorg_cv_cc_flag_unused_command_line_argument=yes
17107 else
17108 xorg_cv_cc_flag_unused_command_line_argument=no
17109 fi
17110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17111 fi
17112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17113 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17114 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17115 CFLAGS="$xorg_testset_save_CFLAGS"
17116 fi
17117
17118 found="no"
17119
17120 if test $found = "no" ; then
17121 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17122 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17123 fi
17124
17125 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17127 fi
17128
17129 CFLAGS="$CFLAGS -Wmissing-braces"
17130
17131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17132 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
17133 cacheid=xorg_cv_cc_flag__Wmissing_braces
17134 if eval \${$cacheid+:} false; then :
17135 $as_echo_n "(cached) " >&6
17136 else
17137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17138 /* end confdefs.h. */
17139 int i;
17140 int
17141 main ()
17142 {
17143
17144 ;
17145 return 0;
17146 }
17147 _ACEOF
17148 if ac_fn_c_try_link "$LINENO"; then :
17149 eval $cacheid=yes
17150 else
17151 eval $cacheid=no
17152 fi
17153 rm -f core conftest.err conftest.$ac_objext \
17154 conftest$ac_exeext conftest.$ac_ext
17155 fi
17156
17157
17158 CFLAGS="$xorg_testset_save_CFLAGS"
17159
17160 eval supported=\$$cacheid
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17162 $as_echo "$supported" >&6; }
17163 if test "$supported" = "yes" ; then
17164 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17165 found="yes"
17166 fi
17167 fi
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183 xorg_testset_save_CFLAGS="$CFLAGS"
17184
17185 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17186 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17188 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17189 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17190 $as_echo_n "(cached) " >&6
17191 else
17192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17193 /* end confdefs.h. */
17194 int i;
17195 _ACEOF
17196 if ac_fn_c_try_compile "$LINENO"; then :
17197 xorg_cv_cc_flag_unknown_warning_option=yes
17198 else
17199 xorg_cv_cc_flag_unknown_warning_option=no
17200 fi
17201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17202 fi
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17204 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17205 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17206 CFLAGS="$xorg_testset_save_CFLAGS"
17207 fi
17208
17209 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17212 fi
17213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17215 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17216 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17217 $as_echo_n "(cached) " >&6
17218 else
17219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17220 /* end confdefs.h. */
17221 int i;
17222 _ACEOF
17223 if ac_fn_c_try_compile "$LINENO"; then :
17224 xorg_cv_cc_flag_unused_command_line_argument=yes
17225 else
17226 xorg_cv_cc_flag_unused_command_line_argument=no
17227 fi
17228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17229 fi
17230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17231 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17232 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17233 CFLAGS="$xorg_testset_save_CFLAGS"
17234 fi
17235
17236 found="no"
17237
17238 if test $found = "no" ; then
17239 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17240 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17241 fi
17242
17243 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17245 fi
17246
17247 CFLAGS="$CFLAGS -Wsequence-point"
17248
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17250 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
17251 cacheid=xorg_cv_cc_flag__Wsequence_point
17252 if eval \${$cacheid+:} false; then :
17253 $as_echo_n "(cached) " >&6
17254 else
17255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17256 /* end confdefs.h. */
17257 int i;
17258 int
17259 main ()
17260 {
17261
17262 ;
17263 return 0;
17264 }
17265 _ACEOF
17266 if ac_fn_c_try_link "$LINENO"; then :
17267 eval $cacheid=yes
17268 else
17269 eval $cacheid=no
17270 fi
17271 rm -f core conftest.err conftest.$ac_objext \
17272 conftest$ac_exeext conftest.$ac_ext
17273 fi
17274
17275
17276 CFLAGS="$xorg_testset_save_CFLAGS"
17277
17278 eval supported=\$$cacheid
17279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17280 $as_echo "$supported" >&6; }
17281 if test "$supported" = "yes" ; then
17282 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17283 found="yes"
17284 fi
17285 fi
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301 xorg_testset_save_CFLAGS="$CFLAGS"
17302
17303 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17304 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17306 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17307 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17308 $as_echo_n "(cached) " >&6
17309 else
17310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17311 /* end confdefs.h. */
17312 int i;
17313 _ACEOF
17314 if ac_fn_c_try_compile "$LINENO"; then :
17315 xorg_cv_cc_flag_unknown_warning_option=yes
17316 else
17317 xorg_cv_cc_flag_unknown_warning_option=no
17318 fi
17319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17320 fi
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17322 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17323 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17324 CFLAGS="$xorg_testset_save_CFLAGS"
17325 fi
17326
17327 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17328 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17329 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17330 fi
17331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17333 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17334 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17335 $as_echo_n "(cached) " >&6
17336 else
17337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17338 /* end confdefs.h. */
17339 int i;
17340 _ACEOF
17341 if ac_fn_c_try_compile "$LINENO"; then :
17342 xorg_cv_cc_flag_unused_command_line_argument=yes
17343 else
17344 xorg_cv_cc_flag_unused_command_line_argument=no
17345 fi
17346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17347 fi
17348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17349 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17350 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17351 CFLAGS="$xorg_testset_save_CFLAGS"
17352 fi
17353
17354 found="no"
17355
17356 if test $found = "no" ; then
17357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17358 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17359 fi
17360
17361 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17363 fi
17364
17365 CFLAGS="$CFLAGS -Wreturn-type"
17366
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17368 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
17369 cacheid=xorg_cv_cc_flag__Wreturn_type
17370 if eval \${$cacheid+:} false; then :
17371 $as_echo_n "(cached) " >&6
17372 else
17373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17374 /* end confdefs.h. */
17375 int i;
17376 int
17377 main ()
17378 {
17379
17380 ;
17381 return 0;
17382 }
17383 _ACEOF
17384 if ac_fn_c_try_link "$LINENO"; then :
17385 eval $cacheid=yes
17386 else
17387 eval $cacheid=no
17388 fi
17389 rm -f core conftest.err conftest.$ac_objext \
17390 conftest$ac_exeext conftest.$ac_ext
17391 fi
17392
17393
17394 CFLAGS="$xorg_testset_save_CFLAGS"
17395
17396 eval supported=\$$cacheid
17397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17398 $as_echo "$supported" >&6; }
17399 if test "$supported" = "yes" ; then
17400 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17401 found="yes"
17402 fi
17403 fi
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419 xorg_testset_save_CFLAGS="$CFLAGS"
17420
17421 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17422 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17424 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17425 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17426 $as_echo_n "(cached) " >&6
17427 else
17428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17429 /* end confdefs.h. */
17430 int i;
17431 _ACEOF
17432 if ac_fn_c_try_compile "$LINENO"; then :
17433 xorg_cv_cc_flag_unknown_warning_option=yes
17434 else
17435 xorg_cv_cc_flag_unknown_warning_option=no
17436 fi
17437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17438 fi
17439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17440 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17441 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17442 CFLAGS="$xorg_testset_save_CFLAGS"
17443 fi
17444
17445 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17446 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17447 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17448 fi
17449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17451 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17452 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17453 $as_echo_n "(cached) " >&6
17454 else
17455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17456 /* end confdefs.h. */
17457 int i;
17458 _ACEOF
17459 if ac_fn_c_try_compile "$LINENO"; then :
17460 xorg_cv_cc_flag_unused_command_line_argument=yes
17461 else
17462 xorg_cv_cc_flag_unused_command_line_argument=no
17463 fi
17464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17465 fi
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17467 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17468 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17469 CFLAGS="$xorg_testset_save_CFLAGS"
17470 fi
17471
17472 found="no"
17473
17474 if test $found = "no" ; then
17475 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17476 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17477 fi
17478
17479 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17481 fi
17482
17483 CFLAGS="$CFLAGS -Wtrigraphs"
17484
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17486 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
17487 cacheid=xorg_cv_cc_flag__Wtrigraphs
17488 if eval \${$cacheid+:} false; then :
17489 $as_echo_n "(cached) " >&6
17490 else
17491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17492 /* end confdefs.h. */
17493 int i;
17494 int
17495 main ()
17496 {
17497
17498 ;
17499 return 0;
17500 }
17501 _ACEOF
17502 if ac_fn_c_try_link "$LINENO"; then :
17503 eval $cacheid=yes
17504 else
17505 eval $cacheid=no
17506 fi
17507 rm -f core conftest.err conftest.$ac_objext \
17508 conftest$ac_exeext conftest.$ac_ext
17509 fi
17510
17511
17512 CFLAGS="$xorg_testset_save_CFLAGS"
17513
17514 eval supported=\$$cacheid
17515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17516 $as_echo "$supported" >&6; }
17517 if test "$supported" = "yes" ; then
17518 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17519 found="yes"
17520 fi
17521 fi
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537 xorg_testset_save_CFLAGS="$CFLAGS"
17538
17539 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17540 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17542 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17543 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17544 $as_echo_n "(cached) " >&6
17545 else
17546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17547 /* end confdefs.h. */
17548 int i;
17549 _ACEOF
17550 if ac_fn_c_try_compile "$LINENO"; then :
17551 xorg_cv_cc_flag_unknown_warning_option=yes
17552 else
17553 xorg_cv_cc_flag_unknown_warning_option=no
17554 fi
17555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17556 fi
17557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17558 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17559 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17560 CFLAGS="$xorg_testset_save_CFLAGS"
17561 fi
17562
17563 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17564 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17565 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17566 fi
17567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17569 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17570 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17571 $as_echo_n "(cached) " >&6
17572 else
17573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17574 /* end confdefs.h. */
17575 int i;
17576 _ACEOF
17577 if ac_fn_c_try_compile "$LINENO"; then :
17578 xorg_cv_cc_flag_unused_command_line_argument=yes
17579 else
17580 xorg_cv_cc_flag_unused_command_line_argument=no
17581 fi
17582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17583 fi
17584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17585 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17586 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17587 CFLAGS="$xorg_testset_save_CFLAGS"
17588 fi
17589
17590 found="no"
17591
17592 if test $found = "no" ; then
17593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17594 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17595 fi
17596
17597 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17599 fi
17600
17601 CFLAGS="$CFLAGS -Warray-bounds"
17602
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17604 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17605 cacheid=xorg_cv_cc_flag__Warray_bounds
17606 if eval \${$cacheid+:} false; then :
17607 $as_echo_n "(cached) " >&6
17608 else
17609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17610 /* end confdefs.h. */
17611 int i;
17612 int
17613 main ()
17614 {
17615
17616 ;
17617 return 0;
17618 }
17619 _ACEOF
17620 if ac_fn_c_try_link "$LINENO"; then :
17621 eval $cacheid=yes
17622 else
17623 eval $cacheid=no
17624 fi
17625 rm -f core conftest.err conftest.$ac_objext \
17626 conftest$ac_exeext conftest.$ac_ext
17627 fi
17628
17629
17630 CFLAGS="$xorg_testset_save_CFLAGS"
17631
17632 eval supported=\$$cacheid
17633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17634 $as_echo "$supported" >&6; }
17635 if test "$supported" = "yes" ; then
17636 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17637 found="yes"
17638 fi
17639 fi
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655 xorg_testset_save_CFLAGS="$CFLAGS"
17656
17657 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17658 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17660 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17661 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17662 $as_echo_n "(cached) " >&6
17663 else
17664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17665 /* end confdefs.h. */
17666 int i;
17667 _ACEOF
17668 if ac_fn_c_try_compile "$LINENO"; then :
17669 xorg_cv_cc_flag_unknown_warning_option=yes
17670 else
17671 xorg_cv_cc_flag_unknown_warning_option=no
17672 fi
17673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17674 fi
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17676 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17677 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17678 CFLAGS="$xorg_testset_save_CFLAGS"
17679 fi
17680
17681 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17682 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17683 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17684 fi
17685 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17687 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17688 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17689 $as_echo_n "(cached) " >&6
17690 else
17691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17692 /* end confdefs.h. */
17693 int i;
17694 _ACEOF
17695 if ac_fn_c_try_compile "$LINENO"; then :
17696 xorg_cv_cc_flag_unused_command_line_argument=yes
17697 else
17698 xorg_cv_cc_flag_unused_command_line_argument=no
17699 fi
17700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17701 fi
17702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17703 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17704 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17705 CFLAGS="$xorg_testset_save_CFLAGS"
17706 fi
17707
17708 found="no"
17709
17710 if test $found = "no" ; then
17711 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17712 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17713 fi
17714
17715 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17717 fi
17718
17719 CFLAGS="$CFLAGS -Wwrite-strings"
17720
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17722 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17723 cacheid=xorg_cv_cc_flag__Wwrite_strings
17724 if eval \${$cacheid+:} false; then :
17725 $as_echo_n "(cached) " >&6
17726 else
17727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17728 /* end confdefs.h. */
17729 int i;
17730 int
17731 main ()
17732 {
17733
17734 ;
17735 return 0;
17736 }
17737 _ACEOF
17738 if ac_fn_c_try_link "$LINENO"; then :
17739 eval $cacheid=yes
17740 else
17741 eval $cacheid=no
17742 fi
17743 rm -f core conftest.err conftest.$ac_objext \
17744 conftest$ac_exeext conftest.$ac_ext
17745 fi
17746
17747
17748 CFLAGS="$xorg_testset_save_CFLAGS"
17749
17750 eval supported=\$$cacheid
17751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17752 $as_echo "$supported" >&6; }
17753 if test "$supported" = "yes" ; then
17754 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17755 found="yes"
17756 fi
17757 fi
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773 xorg_testset_save_CFLAGS="$CFLAGS"
17774
17775 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17776 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17778 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17779 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17780 $as_echo_n "(cached) " >&6
17781 else
17782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17783 /* end confdefs.h. */
17784 int i;
17785 _ACEOF
17786 if ac_fn_c_try_compile "$LINENO"; then :
17787 xorg_cv_cc_flag_unknown_warning_option=yes
17788 else
17789 xorg_cv_cc_flag_unknown_warning_option=no
17790 fi
17791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17792 fi
17793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17794 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17795 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17796 CFLAGS="$xorg_testset_save_CFLAGS"
17797 fi
17798
17799 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17801 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17802 fi
17803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17805 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17806 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17807 $as_echo_n "(cached) " >&6
17808 else
17809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17810 /* end confdefs.h. */
17811 int i;
17812 _ACEOF
17813 if ac_fn_c_try_compile "$LINENO"; then :
17814 xorg_cv_cc_flag_unused_command_line_argument=yes
17815 else
17816 xorg_cv_cc_flag_unused_command_line_argument=no
17817 fi
17818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17819 fi
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17821 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17822 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17823 CFLAGS="$xorg_testset_save_CFLAGS"
17824 fi
17825
17826 found="no"
17827
17828 if test $found = "no" ; then
17829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17830 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17831 fi
17832
17833 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17835 fi
17836
17837 CFLAGS="$CFLAGS -Waddress"
17838
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17840 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
17841 cacheid=xorg_cv_cc_flag__Waddress
17842 if eval \${$cacheid+:} false; then :
17843 $as_echo_n "(cached) " >&6
17844 else
17845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17846 /* end confdefs.h. */
17847 int i;
17848 int
17849 main ()
17850 {
17851
17852 ;
17853 return 0;
17854 }
17855 _ACEOF
17856 if ac_fn_c_try_link "$LINENO"; then :
17857 eval $cacheid=yes
17858 else
17859 eval $cacheid=no
17860 fi
17861 rm -f core conftest.err conftest.$ac_objext \
17862 conftest$ac_exeext conftest.$ac_ext
17863 fi
17864
17865
17866 CFLAGS="$xorg_testset_save_CFLAGS"
17867
17868 eval supported=\$$cacheid
17869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17870 $as_echo "$supported" >&6; }
17871 if test "$supported" = "yes" ; then
17872 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17873 found="yes"
17874 fi
17875 fi
17876
17877
17878
17879
17880
17881
17882
17883
17884
17885
17886
17887
17888
17889
17890
17891 xorg_testset_save_CFLAGS="$CFLAGS"
17892
17893 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17896 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17897 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17898 $as_echo_n "(cached) " >&6
17899 else
17900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17901 /* end confdefs.h. */
17902 int i;
17903 _ACEOF
17904 if ac_fn_c_try_compile "$LINENO"; then :
17905 xorg_cv_cc_flag_unknown_warning_option=yes
17906 else
17907 xorg_cv_cc_flag_unknown_warning_option=no
17908 fi
17909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17910 fi
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17912 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17913 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17914 CFLAGS="$xorg_testset_save_CFLAGS"
17915 fi
17916
17917 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17918 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17919 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17920 fi
17921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17923 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17924 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17925 $as_echo_n "(cached) " >&6
17926 else
17927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17928 /* end confdefs.h. */
17929 int i;
17930 _ACEOF
17931 if ac_fn_c_try_compile "$LINENO"; then :
17932 xorg_cv_cc_flag_unused_command_line_argument=yes
17933 else
17934 xorg_cv_cc_flag_unused_command_line_argument=no
17935 fi
17936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17937 fi
17938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17939 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17940 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17941 CFLAGS="$xorg_testset_save_CFLAGS"
17942 fi
17943
17944 found="no"
17945
17946 if test $found = "no" ; then
17947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17948 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17949 fi
17950
17951 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17953 fi
17954
17955 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17956
17957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17958 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17959 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17960 if eval \${$cacheid+:} false; then :
17961 $as_echo_n "(cached) " >&6
17962 else
17963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17964 /* end confdefs.h. */
17965 int i;
17966 int
17967 main ()
17968 {
17969
17970 ;
17971 return 0;
17972 }
17973 _ACEOF
17974 if ac_fn_c_try_link "$LINENO"; then :
17975 eval $cacheid=yes
17976 else
17977 eval $cacheid=no
17978 fi
17979 rm -f core conftest.err conftest.$ac_objext \
17980 conftest$ac_exeext conftest.$ac_ext
17981 fi
17982
17983
17984 CFLAGS="$xorg_testset_save_CFLAGS"
17985
17986 eval supported=\$$cacheid
17987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17988 $as_echo "$supported" >&6; }
17989 if test "$supported" = "yes" ; then
17990 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17991 found="yes"
17992 fi
17993 fi
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009 xorg_testset_save_CFLAGS="$CFLAGS"
18010
18011 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18012 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18014 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18015 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18016 $as_echo_n "(cached) " >&6
18017 else
18018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18019 /* end confdefs.h. */
18020 int i;
18021 _ACEOF
18022 if ac_fn_c_try_compile "$LINENO"; then :
18023 xorg_cv_cc_flag_unknown_warning_option=yes
18024 else
18025 xorg_cv_cc_flag_unknown_warning_option=no
18026 fi
18027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18028 fi
18029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18030 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18031 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18032 CFLAGS="$xorg_testset_save_CFLAGS"
18033 fi
18034
18035 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18037 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18038 fi
18039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18041 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18042 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18043 $as_echo_n "(cached) " >&6
18044 else
18045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18046 /* end confdefs.h. */
18047 int i;
18048 _ACEOF
18049 if ac_fn_c_try_compile "$LINENO"; then :
18050 xorg_cv_cc_flag_unused_command_line_argument=yes
18051 else
18052 xorg_cv_cc_flag_unused_command_line_argument=no
18053 fi
18054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18055 fi
18056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18057 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18058 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18059 CFLAGS="$xorg_testset_save_CFLAGS"
18060 fi
18061
18062 found="no"
18063
18064 if test $found = "no" ; then
18065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18066 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18067 fi
18068
18069 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18071 fi
18072
18073 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18074
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18076 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18077 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18078 if eval \${$cacheid+:} false; then :
18079 $as_echo_n "(cached) " >&6
18080 else
18081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18082 /* end confdefs.h. */
18083 int i;
18084 int
18085 main ()
18086 {
18087
18088 ;
18089 return 0;
18090 }
18091 _ACEOF
18092 if ac_fn_c_try_link "$LINENO"; then :
18093 eval $cacheid=yes
18094 else
18095 eval $cacheid=no
18096 fi
18097 rm -f core conftest.err conftest.$ac_objext \
18098 conftest$ac_exeext conftest.$ac_ext
18099 fi
18100
18101
18102 CFLAGS="$xorg_testset_save_CFLAGS"
18103
18104 eval supported=\$$cacheid
18105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18106 $as_echo "$supported" >&6; }
18107 if test "$supported" = "yes" ; then
18108 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18109 found="yes"
18110 fi
18111 fi
18112
18113
18114 fi
18115
18116
18117
18118
18119
18120
18121
18122 CWARNFLAGS="$BASE_CFLAGS"
18123 if test "x$GCC" = xyes ; then
18124 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18125 fi
18126
18127
18128
18129
18130
18131
18132
18133
18134 # Check whether --enable-strict-compilation was given.
18135 if test "${enable_strict_compilation+set}" = set; then :
18136 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18137 else
18138 STRICT_COMPILE=no
18139 fi
18140
18141
18142
18143
18144
18145
18146 STRICT_CFLAGS=""
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160 xorg_testset_save_CFLAGS="$CFLAGS"
18161
18162 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18163 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18165 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18166 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18167 $as_echo_n "(cached) " >&6
18168 else
18169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18170 /* end confdefs.h. */
18171 int i;
18172 _ACEOF
18173 if ac_fn_c_try_compile "$LINENO"; then :
18174 xorg_cv_cc_flag_unknown_warning_option=yes
18175 else
18176 xorg_cv_cc_flag_unknown_warning_option=no
18177 fi
18178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18179 fi
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18181 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18182 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18183 CFLAGS="$xorg_testset_save_CFLAGS"
18184 fi
18185
18186 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18188 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18189 fi
18190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18192 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18193 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18194 $as_echo_n "(cached) " >&6
18195 else
18196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18197 /* end confdefs.h. */
18198 int i;
18199 _ACEOF
18200 if ac_fn_c_try_compile "$LINENO"; then :
18201 xorg_cv_cc_flag_unused_command_line_argument=yes
18202 else
18203 xorg_cv_cc_flag_unused_command_line_argument=no
18204 fi
18205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18206 fi
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18208 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18209 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18210 CFLAGS="$xorg_testset_save_CFLAGS"
18211 fi
18212
18213 found="no"
18214
18215 if test $found = "no" ; then
18216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18217 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18218 fi
18219
18220 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18222 fi
18223
18224 CFLAGS="$CFLAGS -pedantic"
18225
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18227 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
18228 cacheid=xorg_cv_cc_flag__pedantic
18229 if eval \${$cacheid+:} false; then :
18230 $as_echo_n "(cached) " >&6
18231 else
18232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18233 /* end confdefs.h. */
18234 int i;
18235 int
18236 main ()
18237 {
18238
18239 ;
18240 return 0;
18241 }
18242 _ACEOF
18243 if ac_fn_c_try_link "$LINENO"; then :
18244 eval $cacheid=yes
18245 else
18246 eval $cacheid=no
18247 fi
18248 rm -f core conftest.err conftest.$ac_objext \
18249 conftest$ac_exeext conftest.$ac_ext
18250 fi
18251
18252
18253 CFLAGS="$xorg_testset_save_CFLAGS"
18254
18255 eval supported=\$$cacheid
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18257 $as_echo "$supported" >&6; }
18258 if test "$supported" = "yes" ; then
18259 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18260 found="yes"
18261 fi
18262 fi
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278 xorg_testset_save_CFLAGS="$CFLAGS"
18279
18280 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18281 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18283 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18284 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18285 $as_echo_n "(cached) " >&6
18286 else
18287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18288 /* end confdefs.h. */
18289 int i;
18290 _ACEOF
18291 if ac_fn_c_try_compile "$LINENO"; then :
18292 xorg_cv_cc_flag_unknown_warning_option=yes
18293 else
18294 xorg_cv_cc_flag_unknown_warning_option=no
18295 fi
18296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18297 fi
18298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18299 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18300 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18301 CFLAGS="$xorg_testset_save_CFLAGS"
18302 fi
18303
18304 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18305 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18306 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18307 fi
18308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18310 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18311 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18312 $as_echo_n "(cached) " >&6
18313 else
18314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18315 /* end confdefs.h. */
18316 int i;
18317 _ACEOF
18318 if ac_fn_c_try_compile "$LINENO"; then :
18319 xorg_cv_cc_flag_unused_command_line_argument=yes
18320 else
18321 xorg_cv_cc_flag_unused_command_line_argument=no
18322 fi
18323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18324 fi
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18326 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18327 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18328 CFLAGS="$xorg_testset_save_CFLAGS"
18329 fi
18330
18331 found="no"
18332
18333 if test $found = "no" ; then
18334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18335 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18336 fi
18337
18338 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18340 fi
18341
18342 CFLAGS="$CFLAGS -Werror"
18343
18344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18345 $as_echo_n "checking if $CC supports -Werror... " >&6; }
18346 cacheid=xorg_cv_cc_flag__Werror
18347 if eval \${$cacheid+:} false; then :
18348 $as_echo_n "(cached) " >&6
18349 else
18350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18351 /* end confdefs.h. */
18352 int i;
18353 int
18354 main ()
18355 {
18356
18357 ;
18358 return 0;
18359 }
18360 _ACEOF
18361 if ac_fn_c_try_link "$LINENO"; then :
18362 eval $cacheid=yes
18363 else
18364 eval $cacheid=no
18365 fi
18366 rm -f core conftest.err conftest.$ac_objext \
18367 conftest$ac_exeext conftest.$ac_ext
18368 fi
18369
18370
18371 CFLAGS="$xorg_testset_save_CFLAGS"
18372
18373 eval supported=\$$cacheid
18374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18375 $as_echo "$supported" >&6; }
18376 if test "$supported" = "yes" ; then
18377 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18378 found="yes"
18379 fi
18380 fi
18381
18382 if test $found = "no" ; then
18383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18384 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18385 fi
18386
18387 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18389 fi
18390
18391 CFLAGS="$CFLAGS -errwarn"
18392
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18394 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
18395 cacheid=xorg_cv_cc_flag__errwarn
18396 if eval \${$cacheid+:} false; then :
18397 $as_echo_n "(cached) " >&6
18398 else
18399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18400 /* end confdefs.h. */
18401 int i;
18402 int
18403 main ()
18404 {
18405
18406 ;
18407 return 0;
18408 }
18409 _ACEOF
18410 if ac_fn_c_try_link "$LINENO"; then :
18411 eval $cacheid=yes
18412 else
18413 eval $cacheid=no
18414 fi
18415 rm -f core conftest.err conftest.$ac_objext \
18416 conftest$ac_exeext conftest.$ac_ext
18417 fi
18418
18419
18420 CFLAGS="$xorg_testset_save_CFLAGS"
18421
18422 eval supported=\$$cacheid
18423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18424 $as_echo "$supported" >&6; }
18425 if test "$supported" = "yes" ; then
18426 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18427 found="yes"
18428 fi
18429 fi
18430
18431
18432
18433 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18434 # activate it with -Werror, so we add it here explicitly.
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445
18446
18447
18448 xorg_testset_save_CFLAGS="$CFLAGS"
18449
18450 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18451 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18453 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18454 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18455 $as_echo_n "(cached) " >&6
18456 else
18457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18458 /* end confdefs.h. */
18459 int i;
18460 _ACEOF
18461 if ac_fn_c_try_compile "$LINENO"; then :
18462 xorg_cv_cc_flag_unknown_warning_option=yes
18463 else
18464 xorg_cv_cc_flag_unknown_warning_option=no
18465 fi
18466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18467 fi
18468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18469 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18470 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18471 CFLAGS="$xorg_testset_save_CFLAGS"
18472 fi
18473
18474 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18475 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18476 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18477 fi
18478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18480 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18481 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18482 $as_echo_n "(cached) " >&6
18483 else
18484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18485 /* end confdefs.h. */
18486 int i;
18487 _ACEOF
18488 if ac_fn_c_try_compile "$LINENO"; then :
18489 xorg_cv_cc_flag_unused_command_line_argument=yes
18490 else
18491 xorg_cv_cc_flag_unused_command_line_argument=no
18492 fi
18493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18494 fi
18495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18496 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18497 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18498 CFLAGS="$xorg_testset_save_CFLAGS"
18499 fi
18500
18501 found="no"
18502
18503 if test $found = "no" ; then
18504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18505 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18506 fi
18507
18508 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18510 fi
18511
18512 CFLAGS="$CFLAGS -Werror=attributes"
18513
18514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18515 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
18516 cacheid=xorg_cv_cc_flag__Werror_attributes
18517 if eval \${$cacheid+:} false; then :
18518 $as_echo_n "(cached) " >&6
18519 else
18520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18521 /* end confdefs.h. */
18522 int i;
18523 int
18524 main ()
18525 {
18526
18527 ;
18528 return 0;
18529 }
18530 _ACEOF
18531 if ac_fn_c_try_link "$LINENO"; then :
18532 eval $cacheid=yes
18533 else
18534 eval $cacheid=no
18535 fi
18536 rm -f core conftest.err conftest.$ac_objext \
18537 conftest$ac_exeext conftest.$ac_ext
18538 fi
18539
18540
18541 CFLAGS="$xorg_testset_save_CFLAGS"
18542
18543 eval supported=\$$cacheid
18544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18545 $as_echo "$supported" >&6; }
18546 if test "$supported" = "yes" ; then
18547 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18548 found="yes"
18549 fi
18550 fi
18551
18552
18553
18554 if test "x$STRICT_COMPILE" = "xyes"; then
18555 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18556 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18557 fi
18558
18559
18560
18561
18562
18563
18564 cat >>confdefs.h <<_ACEOF
18565 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18566 _ACEOF
18567
18568 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18569 if test "x$PVM" = "x"; then
18570 PVM="0"
18571 fi
18572
18573 cat >>confdefs.h <<_ACEOF
18574 #define PACKAGE_VERSION_MINOR $PVM
18575 _ACEOF
18576
18577 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18578 if test "x$PVP" = "x"; then
18579 PVP="0"
18580 fi
18581
18582 cat >>confdefs.h <<_ACEOF
18583 #define PACKAGE_VERSION_PATCHLEVEL $PVP
18584 _ACEOF
18585
18586
18587
18588 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
18589 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
18590 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
18591 echo 'git directory not found: installing possibly empty changelog.' >&2)"
18592
18593
18594
18595
18596 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
18597 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
18598 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18599 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
18600 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
18601
18602
18603
18604
18605
18606
18607 if test x$APP_MAN_SUFFIX = x ; then
18608 APP_MAN_SUFFIX=1
18609 fi
18610 if test x$APP_MAN_DIR = x ; then
18611 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18612 fi
18613
18614 if test x$LIB_MAN_SUFFIX = x ; then
18615 LIB_MAN_SUFFIX=3
18616 fi
18617 if test x$LIB_MAN_DIR = x ; then
18618 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18619 fi
18620
18621 if test x$FILE_MAN_SUFFIX = x ; then
18622 case $host_os in
18623 solaris*) FILE_MAN_SUFFIX=4 ;;
18624 *) FILE_MAN_SUFFIX=5 ;;
18625 esac
18626 fi
18627 if test x$FILE_MAN_DIR = x ; then
18628 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18629 fi
18630
18631 if test x$MISC_MAN_SUFFIX = x ; then
18632 case $host_os in
18633 solaris*) MISC_MAN_SUFFIX=5 ;;
18634 *) MISC_MAN_SUFFIX=7 ;;
18635 esac
18636 fi
18637 if test x$MISC_MAN_DIR = x ; then
18638 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18639 fi
18640
18641 if test x$DRIVER_MAN_SUFFIX = x ; then
18642 case $host_os in
18643 solaris*) DRIVER_MAN_SUFFIX=7 ;;
18644 *) DRIVER_MAN_SUFFIX=4 ;;
18645 esac
18646 fi
18647 if test x$DRIVER_MAN_DIR = x ; then
18648 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18649 fi
18650
18651 if test x$ADMIN_MAN_SUFFIX = x ; then
18652 case $host_os in
18653 solaris*) ADMIN_MAN_SUFFIX=1m ;;
18654 *) ADMIN_MAN_SUFFIX=8 ;;
18655 esac
18656 fi
18657 if test x$ADMIN_MAN_DIR = x ; then
18658 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18659 fi
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675 XORG_MAN_PAGE="X Version 11"
18676
18677 MAN_SUBSTS="\
18678 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18679 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18680 -e 's|__xservername__|Xorg|g' \
18681 -e 's|__xconfigfile__|xorg.conf|g' \
18682 -e 's|__projectroot__|\$(prefix)|g' \
18683 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
18684 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18685 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18686 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18687 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18688 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18689 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18690
18691
18692
18693 # Check whether --enable-silent-rules was given.
18694 if test "${enable_silent_rules+set}" = set; then :
18695 enableval=$enable_silent_rules;
18696 fi
18697
18698 case $enable_silent_rules in # (((
18699 yes) AM_DEFAULT_VERBOSITY=0;;
18700 no) AM_DEFAULT_VERBOSITY=1;;
18701 *) AM_DEFAULT_VERBOSITY=0;;
18702 esac
18703 am_make=${MAKE-make}
18704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18705 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18706 if ${am_cv_make_support_nested_variables+:} false; then :
18707 $as_echo_n "(cached) " >&6
18708 else
18709 if $as_echo 'TRUE=$(BAR$(V))
18710 BAR0=false
18711 BAR1=true
18712 V=1
18713 am__doit:
18714 @$(TRUE)
18715 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18716 am_cv_make_support_nested_variables=yes
18717 else
18718 am_cv_make_support_nested_variables=no
18719 fi
18720 fi
18721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18722 $as_echo "$am_cv_make_support_nested_variables" >&6; }
18723 if test $am_cv_make_support_nested_variables = yes; then
18724 AM_V='$(V)'
18725 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18726 else
18727 AM_V=$AM_DEFAULT_VERBOSITY
18728 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18729 fi
18730 AM_BACKSLASH='\'
18731
18732
18733
18734
18735 # Check whether --enable-devel-docs was given.
18736 if test "${enable_devel_docs+set}" = set; then :
18737 enableval=$enable_devel_docs; build_devel_docs=$enableval
18738 else
18739 build_devel_docs=yes
18740 fi
18741
18742
18743 if test x$build_devel_docs = xyes; then
18744 ENABLE_DEVEL_DOCS_TRUE=
18745 ENABLE_DEVEL_DOCS_FALSE='#'
18746 else
18747 ENABLE_DEVEL_DOCS_TRUE='#'
18748 ENABLE_DEVEL_DOCS_FALSE=
18749 fi
18750
18751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5
18752 $as_echo_n "checking whether to build developer documentation... " >&6; }
18753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5
18754 $as_echo "$build_devel_docs" >&6; }
18755
18756
18757
18758
18759
18760
18761 # Check whether --with-doxygen was given.
18762 if test "${with_doxygen+set}" = set; then :
18763 withval=$with_doxygen; use_doxygen=$withval
18764 else
18765 use_doxygen=auto
18766 fi
18767
18768
18769
18770 if test "x$use_doxygen" = x"auto"; then
18771 # Extract the first word of "doxygen", so it can be a program name with args.
18772 set dummy doxygen; ac_word=$2
18773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18774 $as_echo_n "checking for $ac_word... " >&6; }
18775 if ${ac_cv_path_DOXYGEN+:} false; then :
18776 $as_echo_n "(cached) " >&6
18777 else
18778 case $DOXYGEN in
18779 [\\/]* | ?:[\\/]*)
18780 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
18781 ;;
18782 *)
18783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18784 for as_dir in $PATH
18785 do
18786 IFS=$as_save_IFS
18787 test -z "$as_dir" && as_dir=.
18788 for ac_exec_ext in '' $ac_executable_extensions; do
18789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18790 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
18791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18792 break 2
18793 fi
18794 done
18795 done
18796 IFS=$as_save_IFS
18797
18798 ;;
18799 esac
18800 fi
18801 DOXYGEN=$ac_cv_path_DOXYGEN
18802 if test -n "$DOXYGEN"; then
18803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
18804 $as_echo "$DOXYGEN" >&6; }
18805 else
18806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18807 $as_echo "no" >&6; }
18808 fi
18809
18810
18811 if test "x$DOXYGEN" = "x"; then
18812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - documentation targets will be skipped" >&5
18813 $as_echo "$as_me: WARNING: doxygen not found - documentation targets will be skipped" >&2;}
18814 have_doxygen=no
18815 else
18816 have_doxygen=yes
18817 fi
18818 elif test "x$use_doxygen" = x"yes" ; then
18819 # Extract the first word of "doxygen", so it can be a program name with args.
18820 set dummy doxygen; ac_word=$2
18821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18822 $as_echo_n "checking for $ac_word... " >&6; }
18823 if ${ac_cv_path_DOXYGEN+:} false; then :
18824 $as_echo_n "(cached) " >&6
18825 else
18826 case $DOXYGEN in
18827 [\\/]* | ?:[\\/]*)
18828 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
18829 ;;
18830 *)
18831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18832 for as_dir in $PATH
18833 do
18834 IFS=$as_save_IFS
18835 test -z "$as_dir" && as_dir=.
18836 for ac_exec_ext in '' $ac_executable_extensions; do
18837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18838 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
18839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18840 break 2
18841 fi
18842 done
18843 done
18844 IFS=$as_save_IFS
18845
18846 ;;
18847 esac
18848 fi
18849 DOXYGEN=$ac_cv_path_DOXYGEN
18850 if test -n "$DOXYGEN"; then
18851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
18852 $as_echo "$DOXYGEN" >&6; }
18853 else
18854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18855 $as_echo "no" >&6; }
18856 fi
18857
18858
18859 if test "x$DOXYGEN" = "x"; then
18860 as_fn_error $? "--with-doxygen=yes specified but doxygen not found in PATH" "$LINENO" 5
18861 fi
18862 have_doxygen=yes
18863 elif test "x$use_doxygen" = x"no" ; then
18864 if test "x$DOXYGEN" != "x"; then
18865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&5
18866 $as_echo "$as_me: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&2;}
18867 fi
18868 have_doxygen=no
18869 else
18870 as_fn_error $? "--with-doxygen expects 'yes' or 'no'" "$LINENO" 5
18871 fi
18872
18873
18874 HAVE_DOT=no
18875 if test "x$have_doxygen" = "xyes"; then
18876 # Extract the first word of "dot", so it can be a program name with args.
18877 set dummy dot; ac_word=$2
18878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18879 $as_echo_n "checking for $ac_word... " >&6; }
18880 if ${ac_cv_path_DOT+:} false; then :
18881 $as_echo_n "(cached) " >&6
18882 else
18883 case $DOT in
18884 [\\/]* | ?:[\\/]*)
18885 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18886 ;;
18887 *)
18888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18889 for as_dir in $PATH
18890 do
18891 IFS=$as_save_IFS
18892 test -z "$as_dir" && as_dir=.
18893 for ac_exec_ext in '' $ac_executable_extensions; do
18894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18895 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18897 break 2
18898 fi
18899 done
18900 done
18901 IFS=$as_save_IFS
18902
18903 ;;
18904 esac
18905 fi
18906 DOT=$ac_cv_path_DOT
18907 if test -n "$DOT"; then
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
18909 $as_echo "$DOT" >&6; }
18910 else
18911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18912 $as_echo "no" >&6; }
18913 fi
18914
18915
18916 if test "x$DOT" != "x"; then
18917 HAVE_DOT=yes
18918 fi
18919 fi
18920
18921
18922 if test "$HAVE_DOT" = "yes"; then
18923 HAVE_DOT_TRUE=
18924 HAVE_DOT_FALSE='#'
18925 else
18926 HAVE_DOT_TRUE='#'
18927 HAVE_DOT_FALSE=
18928 fi
18929
18930 if test "$have_doxygen" = yes; then
18931 HAVE_DOXYGEN_TRUE=
18932 HAVE_DOXYGEN_FALSE='#'
18933 else
18934 HAVE_DOXYGEN_TRUE='#'
18935 HAVE_DOXYGEN_FALSE=
18936 fi
18937
18938
18939
18940 # The dot drawing tool is checked by XORG_WITH_DOXYGEN, needed for xcb manual
18941 if test x"$HAVE_DOT" = xno; then
18942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - doxygen targets will be skipped" >&5
18943 $as_echo "$as_me: WARNING: dot not found - doxygen targets will be skipped" >&2;}
18944 fi
18945
18946
18947 pkg_failed=no
18948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
18949 $as_echo_n "checking for CHECK... " >&6; }
18950
18951 if test -n "$CHECK_CFLAGS"; then
18952 pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
18953 elif test -n "$PKG_CONFIG"; then
18954 if test -n "$PKG_CONFIG" && \
18955 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
18956 ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
18957 ac_status=$?
18958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18959 test $ac_status = 0; }; then
18960 pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null`
18961 test "x$?" != "x0" && pkg_failed=yes
18962 else
18963 pkg_failed=yes
18964 fi
18965 else
18966 pkg_failed=untried
18967 fi
18968 if test -n "$CHECK_LIBS"; then
18969 pkg_cv_CHECK_LIBS="$CHECK_LIBS"
18970 elif test -n "$PKG_CONFIG"; then
18971 if test -n "$PKG_CONFIG" && \
18972 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
18973 ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
18974 ac_status=$?
18975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18976 test $ac_status = 0; }; then
18977 pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null`
18978 test "x$?" != "x0" && pkg_failed=yes
18979 else
18980 pkg_failed=yes
18981 fi
18982 else
18983 pkg_failed=untried
18984 fi
18985
18986
18987
18988 if test $pkg_failed = yes; then
18989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18990 $as_echo "no" >&6; }
18991
18992 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18993 _pkg_short_errors_supported=yes
18994 else
18995 _pkg_short_errors_supported=no
18996 fi
18997 if test $_pkg_short_errors_supported = yes; then
18998 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
18999 else
19000 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
19001 fi
19002 # Put the nasty error message in config.log where it belongs
19003 echo "$CHECK_PKG_ERRORS" >&5
19004
19005 HAVE_CHECK=no
19006 elif test $pkg_failed = untried; then
19007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19008 $as_echo "no" >&6; }
19009 HAVE_CHECK=no
19010 else
19011 CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
19012 CHECK_LIBS=$pkg_cv_CHECK_LIBS
19013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19014 $as_echo "yes" >&6; }
19015 HAVE_CHECK=yes
19016 fi
19017 if test x$HAVE_CHECK = xyes; then
19018 HAVE_CHECK_TRUE=
19019 HAVE_CHECK_FALSE='#'
19020 else
19021 HAVE_CHECK_TRUE='#'
19022 HAVE_CHECK_FALSE=
19023 fi
19024
19025
19026 XSLTPROC=no
19027 HTML_CHECK_RESULT=no
19028 if test x"$HAVE_CHECK" = xyes; then
19029 # Extract the first word of "xsltproc", so it can be a program name with args.
19030 set dummy xsltproc; 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_XSLTPROC+:} false; then :
19034 $as_echo_n "(cached) " >&6
19035 else
19036 case $XSLTPROC in
19037 [\\/]* | ?:[\\/]*)
19038 ac_cv_path_XSLTPROC="$XSLTPROC" # 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_XSLTPROC="$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 test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="no"
19057 ;;
19058 esac
19059 fi
19060 XSLTPROC=$ac_cv_path_XSLTPROC
19061 if test -n "$XSLTPROC"; then
19062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19063 $as_echo "$XSLTPROC" >&6; }
19064 else
19065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19066 $as_echo "no" >&6; }
19067 fi
19068
19069
19070 if test x"$XSLTPROC" != xno; then
19071 HTML_CHECK_RESULT=yes
19072 fi
19073 fi
19074
19075
19076 # Checks for pkg-config packages
19077
19078 pkg_failed=no
19079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCBPROTO" >&5
19080 $as_echo_n "checking for XCBPROTO... " >&6; }
19081
19082 if test -n "$XCBPROTO_CFLAGS"; then
19083 pkg_cv_XCBPROTO_CFLAGS="$XCBPROTO_CFLAGS"
19084 elif test -n "$PKG_CONFIG"; then
19085 if test -n "$PKG_CONFIG" && \
19086 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-proto >= 1.11\""; } >&5
19087 ($PKG_CONFIG --exists --print-errors "xcb-proto >= 1.11") 2>&5
19088 ac_status=$?
19089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19090 test $ac_status = 0; }; then
19091 pkg_cv_XCBPROTO_CFLAGS=`$PKG_CONFIG --cflags "xcb-proto >= 1.11" 2>/dev/null`
19092 test "x$?" != "x0" && pkg_failed=yes
19093 else
19094 pkg_failed=yes
19095 fi
19096 else
19097 pkg_failed=untried
19098 fi
19099 if test -n "$XCBPROTO_LIBS"; then
19100 pkg_cv_XCBPROTO_LIBS="$XCBPROTO_LIBS"
19101 elif test -n "$PKG_CONFIG"; then
19102 if test -n "$PKG_CONFIG" && \
19103 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-proto >= 1.11\""; } >&5
19104 ($PKG_CONFIG --exists --print-errors "xcb-proto >= 1.11") 2>&5
19105 ac_status=$?
19106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19107 test $ac_status = 0; }; then
19108 pkg_cv_XCBPROTO_LIBS=`$PKG_CONFIG --libs "xcb-proto >= 1.11" 2>/dev/null`
19109 test "x$?" != "x0" && pkg_failed=yes
19110 else
19111 pkg_failed=yes
19112 fi
19113 else
19114 pkg_failed=untried
19115 fi
19116
19117
19118
19119 if test $pkg_failed = yes; then
19120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19121 $as_echo "no" >&6; }
19122
19123 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19124 _pkg_short_errors_supported=yes
19125 else
19126 _pkg_short_errors_supported=no
19127 fi
19128 if test $_pkg_short_errors_supported = yes; then
19129 XCBPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb-proto >= 1.11" 2>&1`
19130 else
19131 XCBPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb-proto >= 1.11" 2>&1`
19132 fi
19133 # Put the nasty error message in config.log where it belongs
19134 echo "$XCBPROTO_PKG_ERRORS" >&5
19135
19136 as_fn_error $? "Package requirements (xcb-proto >= 1.11) were not met:
19137
19138 $XCBPROTO_PKG_ERRORS
19139
19140 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19141 installed software in a non-standard prefix.
19142
19143 Alternatively, you may set the environment variables XCBPROTO_CFLAGS
19144 and XCBPROTO_LIBS to avoid the need to call pkg-config.
19145 See the pkg-config man page for more details." "$LINENO" 5
19146 elif test $pkg_failed = untried; then
19147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19148 $as_echo "no" >&6; }
19149 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19151 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19152 is in your PATH or set the PKG_CONFIG environment variable to the full
19153 path to pkg-config.
19154
19155 Alternatively, you may set the environment variables XCBPROTO_CFLAGS
19156 and XCBPROTO_LIBS to avoid the need to call pkg-config.
19157 See the pkg-config man page for more details.
19158
19159 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19160 See \`config.log' for more details" "$LINENO" 5; }
19161 else
19162 XCBPROTO_CFLAGS=$pkg_cv_XCBPROTO_CFLAGS
19163 XCBPROTO_LIBS=$pkg_cv_XCBPROTO_LIBS
19164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19165 $as_echo "yes" >&6; }
19166
19167 fi
19168 NEEDED="pthread-stubs xau >= 0.99.2"
19169
19170 pkg_failed=no
19171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NEEDED" >&5
19172 $as_echo_n "checking for NEEDED... " >&6; }
19173
19174 if test -n "$NEEDED_CFLAGS"; then
19175 pkg_cv_NEEDED_CFLAGS="$NEEDED_CFLAGS"
19176 elif test -n "$PKG_CONFIG"; then
19177 if test -n "$PKG_CONFIG" && \
19178 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$NEEDED\""; } >&5
19179 ($PKG_CONFIG --exists --print-errors "$NEEDED") 2>&5
19180 ac_status=$?
19181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19182 test $ac_status = 0; }; then
19183 pkg_cv_NEEDED_CFLAGS=`$PKG_CONFIG --cflags "$NEEDED" 2>/dev/null`
19184 test "x$?" != "x0" && pkg_failed=yes
19185 else
19186 pkg_failed=yes
19187 fi
19188 else
19189 pkg_failed=untried
19190 fi
19191 if test -n "$NEEDED_LIBS"; then
19192 pkg_cv_NEEDED_LIBS="$NEEDED_LIBS"
19193 elif test -n "$PKG_CONFIG"; then
19194 if test -n "$PKG_CONFIG" && \
19195 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$NEEDED\""; } >&5
19196 ($PKG_CONFIG --exists --print-errors "$NEEDED") 2>&5
19197 ac_status=$?
19198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19199 test $ac_status = 0; }; then
19200 pkg_cv_NEEDED_LIBS=`$PKG_CONFIG --libs "$NEEDED" 2>/dev/null`
19201 test "x$?" != "x0" && pkg_failed=yes
19202 else
19203 pkg_failed=yes
19204 fi
19205 else
19206 pkg_failed=untried
19207 fi
19208
19209
19210
19211 if test $pkg_failed = yes; then
19212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19213 $as_echo "no" >&6; }
19214
19215 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19216 _pkg_short_errors_supported=yes
19217 else
19218 _pkg_short_errors_supported=no
19219 fi
19220 if test $_pkg_short_errors_supported = yes; then
19221 NEEDED_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$NEEDED" 2>&1`
19222 else
19223 NEEDED_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$NEEDED" 2>&1`
19224 fi
19225 # Put the nasty error message in config.log where it belongs
19226 echo "$NEEDED_PKG_ERRORS" >&5
19227
19228 as_fn_error $? "Package requirements ($NEEDED) were not met:
19229
19230 $NEEDED_PKG_ERRORS
19231
19232 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19233 installed software in a non-standard prefix.
19234
19235 Alternatively, you may set the environment variables NEEDED_CFLAGS
19236 and NEEDED_LIBS to avoid the need to call pkg-config.
19237 See the pkg-config man page for more details." "$LINENO" 5
19238 elif test $pkg_failed = untried; then
19239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19240 $as_echo "no" >&6; }
19241 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19243 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19244 is in your PATH or set the PKG_CONFIG environment variable to the full
19245 path to pkg-config.
19246
19247 Alternatively, you may set the environment variables NEEDED_CFLAGS
19248 and NEEDED_LIBS to avoid the need to call pkg-config.
19249 See the pkg-config man page for more details.
19250
19251 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19252 See \`config.log' for more details" "$LINENO" 5; }
19253 else
19254 NEEDED_CFLAGS=$pkg_cv_NEEDED_CFLAGS
19255 NEEDED_LIBS=$pkg_cv_NEEDED_LIBS
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19257 $as_echo "yes" >&6; }
19258
19259 fi
19260
19261 have_xdmcp="no"
19262
19263 pkg_failed=no
19264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDMCP" >&5
19265 $as_echo_n "checking for XDMCP... " >&6; }
19266
19267 if test -n "$XDMCP_CFLAGS"; then
19268 pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS"
19269 elif test -n "$PKG_CONFIG"; then
19270 if test -n "$PKG_CONFIG" && \
19271 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
19272 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
19273 ac_status=$?
19274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19275 test $ac_status = 0; }; then
19276 pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null`
19277 test "x$?" != "x0" && pkg_failed=yes
19278 else
19279 pkg_failed=yes
19280 fi
19281 else
19282 pkg_failed=untried
19283 fi
19284 if test -n "$XDMCP_LIBS"; then
19285 pkg_cv_XDMCP_LIBS="$XDMCP_LIBS"
19286 elif test -n "$PKG_CONFIG"; then
19287 if test -n "$PKG_CONFIG" && \
19288 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
19289 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
19290 ac_status=$?
19291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19292 test $ac_status = 0; }; then
19293 pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null`
19294 test "x$?" != "x0" && pkg_failed=yes
19295 else
19296 pkg_failed=yes
19297 fi
19298 else
19299 pkg_failed=untried
19300 fi
19301
19302
19303
19304 if test $pkg_failed = yes; then
19305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19306 $as_echo "no" >&6; }
19307
19308 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19309 _pkg_short_errors_supported=yes
19310 else
19311 _pkg_short_errors_supported=no
19312 fi
19313 if test $_pkg_short_errors_supported = yes; then
19314 XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xdmcp" 2>&1`
19315 else
19316 XDMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xdmcp" 2>&1`
19317 fi
19318 # Put the nasty error message in config.log where it belongs
19319 echo "$XDMCP_PKG_ERRORS" >&5
19320
19321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19322 $as_echo "no" >&6; }
19323 elif test $pkg_failed = untried; then
19324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19325 $as_echo "no" >&6; }
19326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19327 $as_echo "no" >&6; }
19328 else
19329 XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS
19330 XDMCP_LIBS=$pkg_cv_XDMCP_LIBS
19331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19332 $as_echo "yes" >&6; }
19333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XdmcpWrap in -lXdmcp" >&5
19334 $as_echo_n "checking for XdmcpWrap in -lXdmcp... " >&6; }
19335 if ${ac_cv_lib_Xdmcp_XdmcpWrap+:} false; then :
19336 $as_echo_n "(cached) " >&6
19337 else
19338 ac_check_lib_save_LIBS=$LIBS
19339 LIBS="-lXdmcp $XDMCP_LIBS $LIBS"
19340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19341 /* end confdefs.h. */
19342
19343 /* Override any GCC internal prototype to avoid an error.
19344 Use char because int might match the return type of a GCC
19345 builtin and then its argument prototype would still apply. */
19346 #ifdef __cplusplus
19347 extern "C"
19348 #endif
19349 char XdmcpWrap ();
19350 int
19351 main ()
19352 {
19353 return XdmcpWrap ();
19354 ;
19355 return 0;
19356 }
19357 _ACEOF
19358 if ac_fn_c_try_link "$LINENO"; then :
19359 ac_cv_lib_Xdmcp_XdmcpWrap=yes
19360 else
19361 ac_cv_lib_Xdmcp_XdmcpWrap=no
19362 fi
19363 rm -f core conftest.err conftest.$ac_objext \
19364 conftest$ac_exeext conftest.$ac_ext
19365 LIBS=$ac_check_lib_save_LIBS
19366 fi
19367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5
19368 $as_echo "$ac_cv_lib_Xdmcp_XdmcpWrap" >&6; }
19369 if test "x$ac_cv_lib_Xdmcp_XdmcpWrap" = xyes; then :
19370
19371
19372 $as_echo "#define HASXDMAUTH 1" >>confdefs.h
19373
19374 NEEDED="$NEEDED xdmcp"
19375 have_xdmcp="yes"
19376
19377 else
19378
19379 XDMCP_CFLAGS=
19380 XDMCP_LIBS=
19381
19382 fi
19383
19384 fi
19385
19386
19387
19388 # Find the xcb-proto protocol descriptions
19389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCBPROTO_XCBINCLUDEDIR" >&5
19390 $as_echo_n "checking XCBPROTO_XCBINCLUDEDIR... " >&6; }
19391 XCBPROTO_XCBINCLUDEDIR=`$PKG_CONFIG --variable=xcbincludedir xcb-proto`
19392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCBPROTO_XCBINCLUDEDIR" >&5
19393 $as_echo "$XCBPROTO_XCBINCLUDEDIR" >&6; }
19394
19395
19396 # Find the xcb-proto version
19397 XCBPROTO_VERSION=`$PKG_CONFIG --modversion xcb-proto`
19398
19399
19400 # Find the xcbgen Python package
19401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCBPROTO_XCBPYTHONDIR" >&5
19402 $as_echo_n "checking XCBPROTO_XCBPYTHONDIR... " >&6; }
19403 XCBPROTO_XCBPYTHONDIR=`$PKG_CONFIG --variable=pythondir xcb-proto`
19404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCBPROTO_XCBPYTHONDIR" >&5
19405 $as_echo "$XCBPROTO_XCBPYTHONDIR" >&6; }
19406
19407
19408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19409 $as_echo_n "checking for ANSI C header files... " >&6; }
19410 if ${ac_cv_header_stdc+:} false; then :
19411 $as_echo_n "(cached) " >&6
19412 else
19413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19414 /* end confdefs.h. */
19415 #include <stdlib.h>
19416 #include <stdarg.h>
19417 #include <string.h>
19418 #include <float.h>
19419
19420 int
19421 main ()
19422 {
19423
19424 ;
19425 return 0;
19426 }
19427 _ACEOF
19428 if ac_fn_c_try_compile "$LINENO"; then :
19429 ac_cv_header_stdc=yes
19430 else
19431 ac_cv_header_stdc=no
19432 fi
19433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19434
19435 if test $ac_cv_header_stdc = yes; then
19436 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19438 /* end confdefs.h. */
19439 #include <string.h>
19440
19441 _ACEOF
19442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19443 $EGREP "memchr" >/dev/null 2>&1; then :
19444
19445 else
19446 ac_cv_header_stdc=no
19447 fi
19448 rm -f conftest*
19449
19450 fi
19451
19452 if test $ac_cv_header_stdc = yes; then
19453 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19455 /* end confdefs.h. */
19456 #include <stdlib.h>
19457
19458 _ACEOF
19459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19460 $EGREP "free" >/dev/null 2>&1; then :
19461
19462 else
19463 ac_cv_header_stdc=no
19464 fi
19465 rm -f conftest*
19466
19467 fi
19468
19469 if test $ac_cv_header_stdc = yes; then
19470 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19471 if test "$cross_compiling" = yes; then :
19472 :
19473 else
19474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19475 /* end confdefs.h. */
19476 #include <ctype.h>
19477 #include <stdlib.h>
19478 #if ((' ' & 0x0FF) == 0x020)
19479 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19480 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19481 #else
19482 # define ISLOWER(c) \
19483 (('a' <= (c) && (c) <= 'i') \
19484 || ('j' <= (c) && (c) <= 'r') \
19485 || ('s' <= (c) && (c) <= 'z'))
19486 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19487 #endif
19488
19489 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19490 int
19491 main ()
19492 {
19493 int i;
19494 for (i = 0; i < 256; i++)
19495 if (XOR (islower (i), ISLOWER (i))
19496 || toupper (i) != TOUPPER (i))
19497 return 2;
19498 return 0;
19499 }
19500 _ACEOF
19501 if ac_fn_c_try_run "$LINENO"; then :
19502
19503 else
19504 ac_cv_header_stdc=no
19505 fi
19506 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19507 conftest.$ac_objext conftest.beam conftest.$ac_ext
19508 fi
19509
19510 fi
19511 fi
19512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
19513 $as_echo "$ac_cv_header_stdc" >&6; }
19514 if test $ac_cv_header_stdc = yes; then
19515
19516 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
19517
19518 fi
19519
19520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
19521 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
19522 if ${ac_cv_search_getaddrinfo+:} false; then :
19523 $as_echo_n "(cached) " >&6
19524 else
19525 ac_func_search_save_LIBS=$LIBS
19526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19527 /* end confdefs.h. */
19528
19529 /* Override any GCC internal prototype to avoid an error.
19530 Use char because int might match the return type of a GCC
19531 builtin and then its argument prototype would still apply. */
19532 #ifdef __cplusplus
19533 extern "C"
19534 #endif
19535 char getaddrinfo ();
19536 int
19537 main ()
19538 {
19539 return getaddrinfo ();
19540 ;
19541 return 0;
19542 }
19543 _ACEOF
19544 for ac_lib in '' socket; do
19545 if test -z "$ac_lib"; then
19546 ac_res="none required"
19547 else
19548 ac_res=-l$ac_lib
19549 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19550 fi
19551 if ac_fn_c_try_link "$LINENO"; then :
19552 ac_cv_search_getaddrinfo=$ac_res
19553 fi
19554 rm -f core conftest.err conftest.$ac_objext \
19555 conftest$ac_exeext
19556 if ${ac_cv_search_getaddrinfo+:} false; then :
19557 break
19558 fi
19559 done
19560 if ${ac_cv_search_getaddrinfo+:} false; then :
19561
19562 else
19563 ac_cv_search_getaddrinfo=no
19564 fi
19565 rm conftest.$ac_ext
19566 LIBS=$ac_func_search_save_LIBS
19567 fi
19568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
19569 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
19570 ac_res=$ac_cv_search_getaddrinfo
19571 if test "$ac_res" != no; then :
19572 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19573
19574 fi
19575
19576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
19577 $as_echo_n "checking for library containing connect... " >&6; }
19578 if ${ac_cv_search_connect+:} false; then :
19579 $as_echo_n "(cached) " >&6
19580 else
19581 ac_func_search_save_LIBS=$LIBS
19582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19583 /* end confdefs.h. */
19584
19585 /* Override any GCC internal prototype to avoid an error.
19586 Use char because int might match the return type of a GCC
19587 builtin and then its argument prototype would still apply. */
19588 #ifdef __cplusplus
19589 extern "C"
19590 #endif
19591 char connect ();
19592 int
19593 main ()
19594 {
19595 return connect ();
19596 ;
19597 return 0;
19598 }
19599 _ACEOF
19600 for ac_lib in '' socket; do
19601 if test -z "$ac_lib"; then
19602 ac_res="none required"
19603 else
19604 ac_res=-l$ac_lib
19605 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19606 fi
19607 if ac_fn_c_try_link "$LINENO"; then :
19608 ac_cv_search_connect=$ac_res
19609 fi
19610 rm -f core conftest.err conftest.$ac_objext \
19611 conftest$ac_exeext
19612 if ${ac_cv_search_connect+:} false; then :
19613 break
19614 fi
19615 done
19616 if ${ac_cv_search_connect+:} false; then :
19617
19618 else
19619 ac_cv_search_connect=no
19620 fi
19621 rm conftest.$ac_ext
19622 LIBS=$ac_func_search_save_LIBS
19623 fi
19624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
19625 $as_echo "$ac_cv_search_connect" >&6; }
19626 ac_res=$ac_cv_search_connect
19627 if test "$ac_res" != no; then :
19628 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19629
19630 fi
19631
19632
19633 # Check whether --enable-sendfds was given.
19634 if test "${enable_sendfds+set}" = set; then :
19635 enableval=$enable_sendfds; sendfds=$enableval
19636 else
19637 sendfds=auto
19638 fi
19639
19640
19641 case x$sendfds in
19642 xauto)
19643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendmsg" >&5
19644 $as_echo_n "checking for library containing sendmsg... " >&6; }
19645 if ${ac_cv_search_sendmsg+:} false; then :
19646 $as_echo_n "(cached) " >&6
19647 else
19648 ac_func_search_save_LIBS=$LIBS
19649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19650 /* end confdefs.h. */
19651
19652 /* Override any GCC internal prototype to avoid an error.
19653 Use char because int might match the return type of a GCC
19654 builtin and then its argument prototype would still apply. */
19655 #ifdef __cplusplus
19656 extern "C"
19657 #endif
19658 char sendmsg ();
19659 int
19660 main ()
19661 {
19662 return sendmsg ();
19663 ;
19664 return 0;
19665 }
19666 _ACEOF
19667 for ac_lib in '' socket; do
19668 if test -z "$ac_lib"; then
19669 ac_res="none required"
19670 else
19671 ac_res=-l$ac_lib
19672 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19673 fi
19674 if ac_fn_c_try_link "$LINENO"; then :
19675 ac_cv_search_sendmsg=$ac_res
19676 fi
19677 rm -f core conftest.err conftest.$ac_objext \
19678 conftest$ac_exeext
19679 if ${ac_cv_search_sendmsg+:} false; then :
19680 break
19681 fi
19682 done
19683 if ${ac_cv_search_sendmsg+:} false; then :
19684
19685 else
19686 ac_cv_search_sendmsg=no
19687 fi
19688 rm conftest.$ac_ext
19689 LIBS=$ac_func_search_save_LIBS
19690 fi
19691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendmsg" >&5
19692 $as_echo "$ac_cv_search_sendmsg" >&6; }
19693 ac_res=$ac_cv_search_sendmsg
19694 if test "$ac_res" != no; then :
19695 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19696 sendfds="yes"
19697 else
19698 sendfds="no"
19699 fi
19700
19701 ;;
19702 esac
19703
19704 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
19705 # _XOPEN_SOURCE to get it (such as on Solaris)
19706 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
19707 $ac_includes_default
19708 #include <sys/socket.h>
19709
19710 "
19711 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
19712
19713 fi
19714
19715 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
19716 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
19717 unset ac_cv_member_struct_msghdr_msg_control
19718 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
19719 $as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
19720 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
19721 #define _XOPEN_SOURCE 600
19722 $ac_includes_default
19723 #include <sys/socket.h>
19724
19725 "
19726 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
19727
19728 $as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
19729
19730
19731 fi
19732
19733 fi
19734 # If that didn't work, fall back to XPG5/UNIX98 with C89
19735 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
19736 unset ac_cv_member_struct_msghdr_msg_control
19737 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
19738 $as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
19739 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
19740 #define _XOPEN_SOURCE 500
19741 $ac_includes_default
19742 #include <sys/socket.h>
19743
19744 "
19745 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
19746
19747 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
19748
19749
19750 else
19751 sendfds="no"
19752 fi
19753
19754 fi
19755
19756 case x$sendfds in
19757 xyes)
19758
19759 $as_echo "#define HAVE_SENDMSG 1" >>confdefs.h
19760
19761 ;;
19762 esac
19763
19764 have_win32="no"
19765 lt_enable_auto_import=""
19766 case $host_os in
19767 mingw*)
19768 have_win32="yes"
19769 lt_enable_auto_import="-Wl,--enable-auto-import"
19770 ;;
19771 linux*)
19772
19773 $as_echo "#define HAVE_ABSTRACT_SOCKETS 1" >>confdefs.h
19774
19775 ;;
19776 esac
19777
19778
19779 if test "x${have_win32}" = "xyes"; then
19780 XCB_HAVE_WIN32_TRUE=
19781 XCB_HAVE_WIN32_FALSE='#'
19782 else
19783 XCB_HAVE_WIN32_TRUE='#'
19784 XCB_HAVE_WIN32_FALSE=
19785 fi
19786
19787
19788
19789 # Check whether --with-queue-size was given.
19790 if test "${with_queue_size+set}" = set; then :
19791 withval=$with_queue_size; xcb_queue_buffer_size="$withval"
19792 else
19793 xcb_queue_buffer_size=16384
19794 fi
19795
19796
19797 cat >>confdefs.h <<_ACEOF
19798 #define XCB_QUEUE_BUFFER_SIZE $xcb_queue_buffer_size
19799 _ACEOF
19800
19801
19802 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" " #include <sys/types.h>
19803 #include <sys/un.h>
19804
19805 "
19806 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
19807
19808 $as_echo "#define HAVE_SOCKADDR_SUN_LEN 1" >>confdefs.h
19809
19810 fi
19811
19812
19813 for ac_header in tsol/label.h
19814 do :
19815 ac_fn_c_check_header_mongrel "$LINENO" "tsol/label.h" "ac_cv_header_tsol_label_h" "$ac_includes_default"
19816 if test "x$ac_cv_header_tsol_label_h" = xyes; then :
19817 cat >>confdefs.h <<_ACEOF
19818 #define HAVE_TSOL_LABEL_H 1
19819 _ACEOF
19820
19821 fi
19822
19823 done
19824
19825 for ac_func in is_system_labeled
19826 do :
19827 ac_fn_c_check_func "$LINENO" "is_system_labeled" "ac_cv_func_is_system_labeled"
19828 if test "x$ac_cv_func_is_system_labeled" = xyes; then :
19829 cat >>confdefs.h <<_ACEOF
19830 #define HAVE_IS_SYSTEM_LABELED 1
19831 _ACEOF
19832
19833 fi
19834 done
19835
19836
19837 ac_fn_c_check_decl "$LINENO" "IOV_MAX" "ac_cv_have_decl_IOV_MAX" "#include <limits.h>
19838 "
19839 if test "x$ac_cv_have_decl_IOV_MAX" = xyes; then :
19840
19841 else
19842 ac_fn_c_check_decl "$LINENO" "UIO_MAXIOV" "ac_cv_have_decl_UIO_MAXIOV" "#include <sys/uio.h>
19843 "
19844 if test "x$ac_cv_have_decl_UIO_MAXIOV" = xyes; then :
19845 $as_echo "#define IOV_MAX UIO_MAXIOV" >>confdefs.h
19846
19847 else
19848
19849 $as_echo "#define IOV_MAX 16" >>confdefs.h
19850
19851 fi
19852
19853 fi
19854
19855
19856 xcbincludedir='${includedir}/xcb'
19857
19858
19859
19860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports symbol visibility" >&5
19861 $as_echo_n "checking whether ${CC} supports symbol visibility... " >&6; }
19862
19863 save_CFLAGS=${CFLAGS}
19864 CFLAGS="$CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
19865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19866 /* end confdefs.h. */
19867
19868 #pragma GCC visibility push(hidden)
19869 extern void f(int);
19870 #pragma GCC visibility pop
19871
19872 int
19873 main ()
19874 {
19875
19876
19877 ;
19878 return 0;
19879 }
19880 _ACEOF
19881 if ac_fn_c_try_compile "$LINENO"; then :
19882
19883 $as_echo "#define GCC_HAS_VISIBILITY /**/" >>confdefs.h
19884
19885 :
19886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19887 $as_echo "yes" >&6; }
19888 else
19889 :
19890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19891 $as_echo "no" >&6; }
19892 fi
19893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19894
19895 CFLAGS=${save_CFLAGS}
19896
19897
19898 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
19899 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
19900
19901 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
19902
19903 fi
19904
19905
19906 case $host_os in
19907 # darwin through Snow Leopard has poll() but can't be used to poll character devices.
19908 darwin[789]*|darwin10*) ;;
19909 darwin*)
19910 _ac_xorg_macosx_version_min=""
19911 if echo $CPPFLAGS $CFLAGS | grep -q mmacosx-version-min ; then
19912 _ac_xorg_macosx_version_min=`echo $CPPFLAGS $CFLAGS | sed 's/^.*-mmacosx-version-min=\([^ ]*\).*$/\1/'`
19913 else
19914 _ac_xorg_macosx_version_min=$MACOSX_DEPLOYMENT_TARGET
19915 fi
19916 case $_ac_xorg_macosx_version_min in
19917 10.[0123456]|10.[0123456].*) ;;
19918 *)
19919 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
19920 if test "x$ac_cv_func_poll" = xyes; then :
19921
19922 $as_echo "#define USE_POLL 1" >>confdefs.h
19923
19924 fi
19925
19926 ;;
19927 esac
19928 unset _ac_xorg_macosx_version_min
19929 ;;
19930 *)
19931 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
19932 if test "x$ac_cv_func_poll" = xyes; then :
19933
19934 $as_echo "#define USE_POLL 1" >>confdefs.h
19935
19936 fi
19937
19938 ;;
19939 esac
19940
19941
19942
19943 # Check whether --enable-composite was given.
19944 if test "${enable_composite+set}" = set; then :
19945 enableval=$enable_composite; BUILD_COMPOSITE=$enableval
19946 else
19947 BUILD_COMPOSITE="yes"
19948 fi
19949
19950
19951 if test "x$BUILD_COMPOSITE" = "xyes"; then
19952 BUILD_COMPOSITE_TRUE=
19953 BUILD_COMPOSITE_FALSE='#'
19954 else
19955 BUILD_COMPOSITE_TRUE='#'
19956 BUILD_COMPOSITE_FALSE=
19957 fi
19958
19959
19960
19961
19962 # Check whether --enable-damage was given.
19963 if test "${enable_damage+set}" = set; then :
19964 enableval=$enable_damage; BUILD_DAMAGE=$enableval
19965 else
19966 BUILD_DAMAGE="yes"
19967 fi
19968
19969
19970 if test "x$BUILD_DAMAGE" = "xyes"; then
19971 BUILD_DAMAGE_TRUE=
19972 BUILD_DAMAGE_FALSE='#'
19973 else
19974 BUILD_DAMAGE_TRUE='#'
19975 BUILD_DAMAGE_FALSE=
19976 fi
19977
19978
19979
19980
19981 # Check whether --enable-dpms was given.
19982 if test "${enable_dpms+set}" = set; then :
19983 enableval=$enable_dpms; BUILD_DPMS=$enableval
19984 else
19985 BUILD_DPMS="yes"
19986 fi
19987
19988
19989 if test "x$BUILD_DPMS" = "xyes"; then
19990 BUILD_DPMS_TRUE=
19991 BUILD_DPMS_FALSE='#'
19992 else
19993 BUILD_DPMS_TRUE='#'
19994 BUILD_DPMS_FALSE=
19995 fi
19996
19997
19998
19999
20000 # Check whether --enable-dri2 was given.
20001 if test "${enable_dri2+set}" = set; then :
20002 enableval=$enable_dri2; BUILD_DRI2=$enableval
20003 else
20004 BUILD_DRI2="yes"
20005 fi
20006
20007
20008 if test "x$BUILD_DRI2" = "xyes"; then
20009 BUILD_DRI2_TRUE=
20010 BUILD_DRI2_FALSE='#'
20011 else
20012 BUILD_DRI2_TRUE='#'
20013 BUILD_DRI2_FALSE=
20014 fi
20015
20016
20017
20018
20019 # Check whether --enable-dri3 was given.
20020 if test "${enable_dri3+set}" = set; then :
20021 enableval=$enable_dri3; BUILD_DRI3=$enableval
20022 else
20023 BUILD_DRI3="$sendfds"
20024 fi
20025
20026
20027 if test "x$BUILD_DRI3" = "xyes"; then
20028 BUILD_DRI3_TRUE=
20029 BUILD_DRI3_FALSE='#'
20030 else
20031 BUILD_DRI3_TRUE='#'
20032 BUILD_DRI3_FALSE=
20033 fi
20034
20035
20036
20037
20038 # Check whether --enable-glx was given.
20039 if test "${enable_glx+set}" = set; then :
20040 enableval=$enable_glx; BUILD_GLX=$enableval
20041 else
20042 BUILD_GLX="yes"
20043 fi
20044
20045
20046 if test "x$BUILD_GLX" = "xyes"; then
20047 BUILD_GLX_TRUE=
20048 BUILD_GLX_FALSE='#'
20049 else
20050 BUILD_GLX_TRUE='#'
20051 BUILD_GLX_FALSE=
20052 fi
20053
20054
20055
20056
20057 # Check whether --enable-present was given.
20058 if test "${enable_present+set}" = set; then :
20059 enableval=$enable_present; BUILD_PRESENT=$enableval
20060 else
20061 BUILD_PRESENT="yes"
20062 fi
20063
20064
20065 if test "x$BUILD_PRESENT" = "xyes"; then
20066 BUILD_PRESENT_TRUE=
20067 BUILD_PRESENT_FALSE='#'
20068 else
20069 BUILD_PRESENT_TRUE='#'
20070 BUILD_PRESENT_FALSE=
20071 fi
20072
20073
20074
20075
20076 # Check whether --enable-randr was given.
20077 if test "${enable_randr+set}" = set; then :
20078 enableval=$enable_randr; BUILD_RANDR=$enableval
20079 else
20080 BUILD_RANDR="yes"
20081 fi
20082
20083
20084 if test "x$BUILD_RANDR" = "xyes"; then
20085 BUILD_RANDR_TRUE=
20086 BUILD_RANDR_FALSE='#'
20087 else
20088 BUILD_RANDR_TRUE='#'
20089 BUILD_RANDR_FALSE=
20090 fi
20091
20092
20093
20094
20095 # Check whether --enable-record was given.
20096 if test "${enable_record+set}" = set; then :
20097 enableval=$enable_record; BUILD_RECORD=$enableval
20098 else
20099 BUILD_RECORD="yes"
20100 fi
20101
20102
20103 if test "x$BUILD_RECORD" = "xyes"; then
20104 BUILD_RECORD_TRUE=
20105 BUILD_RECORD_FALSE='#'
20106 else
20107 BUILD_RECORD_TRUE='#'
20108 BUILD_RECORD_FALSE=
20109 fi
20110
20111
20112
20113
20114 # Check whether --enable-render was given.
20115 if test "${enable_render+set}" = set; then :
20116 enableval=$enable_render; BUILD_RENDER=$enableval
20117 else
20118 BUILD_RENDER="yes"
20119 fi
20120
20121
20122 if test "x$BUILD_RENDER" = "xyes"; then
20123 BUILD_RENDER_TRUE=
20124 BUILD_RENDER_FALSE='#'
20125 else
20126 BUILD_RENDER_TRUE='#'
20127 BUILD_RENDER_FALSE=
20128 fi
20129
20130
20131
20132
20133 # Check whether --enable-resource was given.
20134 if test "${enable_resource+set}" = set; then :
20135 enableval=$enable_resource; BUILD_RESOURCE=$enableval
20136 else
20137 BUILD_RESOURCE="yes"
20138 fi
20139
20140
20141 if test "x$BUILD_RESOURCE" = "xyes"; then
20142 BUILD_RESOURCE_TRUE=
20143 BUILD_RESOURCE_FALSE='#'
20144 else
20145 BUILD_RESOURCE_TRUE='#'
20146 BUILD_RESOURCE_FALSE=
20147 fi
20148
20149
20150
20151
20152 # Check whether --enable-screensaver was given.
20153 if test "${enable_screensaver+set}" = set; then :
20154 enableval=$enable_screensaver; BUILD_SCREENSAVER=$enableval
20155 else
20156 BUILD_SCREENSAVER="yes"
20157 fi
20158
20159
20160 if test "x$BUILD_SCREENSAVER" = "xyes"; then
20161 BUILD_SCREENSAVER_TRUE=
20162 BUILD_SCREENSAVER_FALSE='#'
20163 else
20164 BUILD_SCREENSAVER_TRUE='#'
20165 BUILD_SCREENSAVER_FALSE=
20166 fi
20167
20168
20169
20170
20171 # Check whether --enable-shape was given.
20172 if test "${enable_shape+set}" = set; then :
20173 enableval=$enable_shape; BUILD_SHAPE=$enableval
20174 else
20175 BUILD_SHAPE="yes"
20176 fi
20177
20178
20179 if test "x$BUILD_SHAPE" = "xyes"; then
20180 BUILD_SHAPE_TRUE=
20181 BUILD_SHAPE_FALSE='#'
20182 else
20183 BUILD_SHAPE_TRUE='#'
20184 BUILD_SHAPE_FALSE=
20185 fi
20186
20187
20188
20189
20190 # Check whether --enable-shm was given.
20191 if test "${enable_shm+set}" = set; then :
20192 enableval=$enable_shm; BUILD_SHM=$enableval
20193 else
20194 BUILD_SHM="yes"
20195 fi
20196
20197
20198 if test "x$BUILD_SHM" = "xyes"; then
20199 BUILD_SHM_TRUE=
20200 BUILD_SHM_FALSE='#'
20201 else
20202 BUILD_SHM_TRUE='#'
20203 BUILD_SHM_FALSE=
20204 fi
20205
20206
20207
20208
20209 # Check whether --enable-sync was given.
20210 if test "${enable_sync+set}" = set; then :
20211 enableval=$enable_sync; BUILD_SYNC=$enableval
20212 else
20213 BUILD_SYNC="yes"
20214 fi
20215
20216
20217 if test "x$BUILD_SYNC" = "xyes"; then
20218 BUILD_SYNC_TRUE=
20219 BUILD_SYNC_FALSE='#'
20220 else
20221 BUILD_SYNC_TRUE='#'
20222 BUILD_SYNC_FALSE=
20223 fi
20224
20225
20226
20227
20228 # Check whether --enable-xevie was given.
20229 if test "${enable_xevie+set}" = set; then :
20230 enableval=$enable_xevie; BUILD_XEVIE=$enableval
20231 else
20232 BUILD_XEVIE="yes"
20233 fi
20234
20235
20236 if test "x$BUILD_XEVIE" = "xyes"; then
20237 BUILD_XEVIE_TRUE=
20238 BUILD_XEVIE_FALSE='#'
20239 else
20240 BUILD_XEVIE_TRUE='#'
20241 BUILD_XEVIE_FALSE=
20242 fi
20243
20244
20245
20246
20247 # Check whether --enable-xfixes was given.
20248 if test "${enable_xfixes+set}" = set; then :
20249 enableval=$enable_xfixes; BUILD_XFIXES=$enableval
20250 else
20251 BUILD_XFIXES="yes"
20252 fi
20253
20254
20255 if test "x$BUILD_XFIXES" = "xyes"; then
20256 BUILD_XFIXES_TRUE=
20257 BUILD_XFIXES_FALSE='#'
20258 else
20259 BUILD_XFIXES_TRUE='#'
20260 BUILD_XFIXES_FALSE=
20261 fi
20262
20263
20264
20265
20266 # Check whether --enable-xfree86-dri was given.
20267 if test "${enable_xfree86_dri+set}" = set; then :
20268 enableval=$enable_xfree86_dri; BUILD_XFREE86_DRI=$enableval
20269 else
20270 BUILD_XFREE86_DRI="yes"
20271 fi
20272
20273
20274 if test "x$BUILD_XFREE86_DRI" = "xyes"; then
20275 BUILD_XFREE86_DRI_TRUE=
20276 BUILD_XFREE86_DRI_FALSE='#'
20277 else
20278 BUILD_XFREE86_DRI_TRUE='#'
20279 BUILD_XFREE86_DRI_FALSE=
20280 fi
20281
20282
20283
20284
20285 # Check whether --enable-xinerama was given.
20286 if test "${enable_xinerama+set}" = set; then :
20287 enableval=$enable_xinerama; BUILD_XINERAMA=$enableval
20288 else
20289 BUILD_XINERAMA="yes"
20290 fi
20291
20292
20293 if test "x$BUILD_XINERAMA" = "xyes"; then
20294 BUILD_XINERAMA_TRUE=
20295 BUILD_XINERAMA_FALSE='#'
20296 else
20297 BUILD_XINERAMA_TRUE='#'
20298 BUILD_XINERAMA_FALSE=
20299 fi
20300
20301
20302
20303
20304 # Check whether --enable-xinput was given.
20305 if test "${enable_xinput+set}" = set; then :
20306 enableval=$enable_xinput; BUILD_XINPUT=$enableval
20307 else
20308 BUILD_XINPUT="no"
20309 fi
20310
20311
20312 if test "x$BUILD_XINPUT" = "xyes"; then
20313 BUILD_XINPUT_TRUE=
20314 BUILD_XINPUT_FALSE='#'
20315 else
20316 BUILD_XINPUT_TRUE='#'
20317 BUILD_XINPUT_FALSE=
20318 fi
20319
20320
20321
20322
20323 # Check whether --enable-xkb was given.
20324 if test "${enable_xkb+set}" = set; then :
20325 enableval=$enable_xkb; BUILD_XKB=$enableval
20326 else
20327 BUILD_XKB="yes"
20328 fi
20329
20330
20331 if test "x$BUILD_XKB" = "xyes"; then
20332 BUILD_XKB_TRUE=
20333 BUILD_XKB_FALSE='#'
20334 else
20335 BUILD_XKB_TRUE='#'
20336 BUILD_XKB_FALSE=
20337 fi
20338
20339
20340
20341
20342 # Check whether --enable-xprint was given.
20343 if test "${enable_xprint+set}" = set; then :
20344 enableval=$enable_xprint; BUILD_XPRINT=$enableval
20345 else
20346 BUILD_XPRINT="yes"
20347 fi
20348
20349
20350 if test "x$BUILD_XPRINT" = "xyes"; then
20351 BUILD_XPRINT_TRUE=
20352 BUILD_XPRINT_FALSE='#'
20353 else
20354 BUILD_XPRINT_TRUE='#'
20355 BUILD_XPRINT_FALSE=
20356 fi
20357
20358
20359
20360
20361 # Check whether --enable-selinux was given.
20362 if test "${enable_selinux+set}" = set; then :
20363 enableval=$enable_selinux; BUILD_SELINUX=$enableval
20364 else
20365 BUILD_SELINUX="no"
20366 fi
20367
20368
20369 if test "x$BUILD_SELINUX" = "xyes"; then
20370 BUILD_SELINUX_TRUE=
20371 BUILD_SELINUX_FALSE='#'
20372 else
20373 BUILD_SELINUX_TRUE='#'
20374 BUILD_SELINUX_FALSE=
20375 fi
20376
20377
20378
20379
20380 # Check whether --enable-xtest was given.
20381 if test "${enable_xtest+set}" = set; then :
20382 enableval=$enable_xtest; BUILD_XTEST=$enableval
20383 else
20384 BUILD_XTEST="yes"
20385 fi
20386
20387
20388 if test "x$BUILD_XTEST" = "xyes"; then
20389 BUILD_XTEST_TRUE=
20390 BUILD_XTEST_FALSE='#'
20391 else
20392 BUILD_XTEST_TRUE='#'
20393 BUILD_XTEST_FALSE=
20394 fi
20395
20396
20397
20398
20399 # Check whether --enable-xv was given.
20400 if test "${enable_xv+set}" = set; then :
20401 enableval=$enable_xv; BUILD_XV=$enableval
20402 else
20403 BUILD_XV="yes"
20404 fi
20405
20406
20407 if test "x$BUILD_XV" = "xyes"; then
20408 BUILD_XV_TRUE=
20409 BUILD_XV_FALSE='#'
20410 else
20411 BUILD_XV_TRUE='#'
20412 BUILD_XV_FALSE=
20413 fi
20414
20415
20416
20417
20418 # Check whether --enable-xvmc was given.
20419 if test "${enable_xvmc+set}" = set; then :
20420 enableval=$enable_xvmc; BUILD_XVMC=$enableval
20421 else
20422 BUILD_XVMC="yes"
20423 fi
20424
20425
20426 if test "x$BUILD_XVMC" = "xyes"; then
20427 BUILD_XVMC_TRUE=
20428 BUILD_XVMC_FALSE='#'
20429 else
20430 BUILD_XVMC_TRUE='#'
20431 BUILD_XVMC_FALSE=
20432 fi
20433
20434
20435
20436
20437 # Check whether --with-launchd was given.
20438 if test "${with_launchd+set}" = set; then :
20439 withval=$with_launchd; LAUNCHD=$withval
20440 else
20441 LAUNCHD=auto
20442 fi
20443
20444 if test "x$LAUNCHD" = xauto; then
20445 unset LAUNCHD
20446 # Extract the first word of "launchd", so it can be a program name with args.
20447 set dummy launchd; ac_word=$2
20448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20449 $as_echo_n "checking for $ac_word... " >&6; }
20450 if ${ac_cv_prog_LAUNCHD+:} false; then :
20451 $as_echo_n "(cached) " >&6
20452 else
20453 if test -n "$LAUNCHD"; then
20454 ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test.
20455 else
20456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20457 for as_dir in $PATH$PATH_SEPARATOR/sbin
20458 do
20459 IFS=$as_save_IFS
20460 test -z "$as_dir" && as_dir=.
20461 for ac_exec_ext in '' $ac_executable_extensions; do
20462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20463 ac_cv_prog_LAUNCHD="yes"
20464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20465 break 2
20466 fi
20467 done
20468 done
20469 IFS=$as_save_IFS
20470
20471 test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no"
20472 fi
20473 fi
20474 LAUNCHD=$ac_cv_prog_LAUNCHD
20475 if test -n "$LAUNCHD"; then
20476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5
20477 $as_echo "$LAUNCHD" >&6; }
20478 else
20479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20480 $as_echo "no" >&6; }
20481 fi
20482
20483
20484 fi
20485
20486 if test "x$LAUNCHD" = xyes ; then
20487
20488 $as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
20489
20490 fi
20491
20492 ac_config_files="$ac_config_files Makefile doc/Makefile man/Makefile src/Makefile tests/Makefile"
20493
20494
20495 ac_config_files="$ac_config_files xcb.pc xcb-composite.pc xcb-damage.pc xcb-dpms.pc xcb-dri2.pc xcb-dri3.pc xcb-glx.pc xcb-present.pc xcb-randr.pc xcb-record.pc xcb-render.pc xcb-res.pc xcb-screensaver.pc xcb-shape.pc xcb-shm.pc xcb-sync.pc xcb-xevie.pc xcb-xf86dri.pc xcb-xfixes.pc xcb-xinerama.pc xcb-xinput.pc xcb-xkb.pc xcb-xprint.pc xcb-xselinux.pc xcb-xtest.pc xcb-xv.pc xcb-xvmc.pc"
20496
20497
20498 ac_config_files="$ac_config_files doc/xcb.doxygen"
20499
20500
20501 cat >confcache <<\_ACEOF
20502 # This file is a shell script that caches the results of configure
20503 # tests run on this system so they can be shared between configure
20504 # scripts and configure runs, see configure's option --config-cache.
20505 # It is not useful on other systems. If it contains results you don't
20506 # want to keep, you may remove or edit it.
20507 #
20508 # config.status only pays attention to the cache file if you give it
20509 # the --recheck option to rerun configure.
20510 #
20511 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20512 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20513 # following values.
20514
20515 _ACEOF
20516
20517 # The following way of writing the cache mishandles newlines in values,
20518 # but we know of no workaround that is simple, portable, and efficient.
20519 # So, we kill variables containing newlines.
20520 # Ultrix sh set writes to stderr and can't be redirected directly,
20521 # and sets the high bit in the cache file unless we assign to the vars.
20522 (
20523 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20524 eval ac_val=\$$ac_var
20525 case $ac_val in #(
20526 *${as_nl}*)
20527 case $ac_var in #(
20528 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20529 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20530 esac
20531 case $ac_var in #(
20532 _ | IFS | as_nl) ;; #(
20533 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20534 *) { eval $ac_var=; unset $ac_var;} ;;
20535 esac ;;
20536 esac
20537 done
20538
20539 (set) 2>&1 |
20540 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20541 *${as_nl}ac_space=\ *)
20542 # `set' does not quote correctly, so add quotes: double-quote
20543 # substitution turns \\\\ into \\, and sed turns \\ into \.
20544 sed -n \
20545 "s/'/'\\\\''/g;
20546 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20547 ;; #(
20548 *)
20549 # `set' quotes correctly as required by POSIX, so do not add quotes.
20550 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20551 ;;
20552 esac |
20553 sort
20554 ) |
20555 sed '
20556 /^ac_cv_env_/b end
20557 t clear
20558 :clear
20559 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20560 t end
20561 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20562 :end' >>confcache
20563 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20564 if test -w "$cache_file"; then
20565 if test "x$cache_file" != "x/dev/null"; then
20566 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20567 $as_echo "$as_me: updating cache $cache_file" >&6;}
20568 if test ! -f "$cache_file" || test -h "$cache_file"; then
20569 cat confcache >"$cache_file"
20570 else
20571 case $cache_file in #(
20572 */* | ?:*)
20573 mv -f confcache "$cache_file"$$ &&
20574 mv -f "$cache_file"$$ "$cache_file" ;; #(
20575 *)
20576 mv -f confcache "$cache_file" ;;
20577 esac
20578 fi
20579 fi
20580 else
20581 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20582 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20583 fi
20584 fi
20585 rm -f confcache
20586
20587 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20588 # Let make expand exec_prefix.
20589 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20590
20591 DEFS=-DHAVE_CONFIG_H
20592
20593 ac_libobjs=
20594 ac_ltlibobjs=
20595 U=
20596 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20597 # 1. Remove the extension, and $U if already installed.
20598 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20599 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20600 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20601 # will be set to the directory where LIBOBJS objects are built.
20602 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20603 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20604 done
20605 LIBOBJS=$ac_libobjs
20606
20607 LTLIBOBJS=$ac_ltlibobjs
20608
20609
20610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20611 $as_echo_n "checking that generated files are newer than configure... " >&6; }
20612 if test -n "$am_sleep_pid"; then
20613 # Hide warnings about reused PIDs.
20614 wait $am_sleep_pid 2>/dev/null
20615 fi
20616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20617 $as_echo "done" >&6; }
20618 if test -n "$EXEEXT"; then
20619 am__EXEEXT_TRUE=
20620 am__EXEEXT_FALSE='#'
20621 else
20622 am__EXEEXT_TRUE='#'
20623 am__EXEEXT_FALSE=
20624 fi
20625
20626 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20627 as_fn_error $? "conditional \"AMDEP\" was never defined.
20628 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20629 fi
20630 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20631 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20632 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20633 fi
20634 if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then
20635 as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined.
20636 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20637 fi
20638 if test -z "${HAVE_DOT_TRUE}" && test -z "${HAVE_DOT_FALSE}"; then
20639 as_fn_error $? "conditional \"HAVE_DOT\" was never defined.
20640 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20641 fi
20642 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
20643 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
20644 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20645 fi
20646 if test -z "${HAVE_CHECK_TRUE}" && test -z "${HAVE_CHECK_FALSE}"; then
20647 as_fn_error $? "conditional \"HAVE_CHECK\" was never defined.
20648 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20649 fi
20650 if test -z "${XCB_HAVE_WIN32_TRUE}" && test -z "${XCB_HAVE_WIN32_FALSE}"; then
20651 as_fn_error $? "conditional \"XCB_HAVE_WIN32\" was never defined.
20652 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20653 fi
20654 if test -z "${BUILD_COMPOSITE_TRUE}" && test -z "${BUILD_COMPOSITE_FALSE}"; then
20655 as_fn_error $? "conditional \"BUILD_COMPOSITE\" was never defined.
20656 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20657 fi
20658 if test -z "${BUILD_DAMAGE_TRUE}" && test -z "${BUILD_DAMAGE_FALSE}"; then
20659 as_fn_error $? "conditional \"BUILD_DAMAGE\" was never defined.
20660 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20661 fi
20662 if test -z "${BUILD_DPMS_TRUE}" && test -z "${BUILD_DPMS_FALSE}"; then
20663 as_fn_error $? "conditional \"BUILD_DPMS\" was never defined.
20664 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20665 fi
20666 if test -z "${BUILD_DRI2_TRUE}" && test -z "${BUILD_DRI2_FALSE}"; then
20667 as_fn_error $? "conditional \"BUILD_DRI2\" was never defined.
20668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20669 fi
20670 if test -z "${BUILD_DRI3_TRUE}" && test -z "${BUILD_DRI3_FALSE}"; then
20671 as_fn_error $? "conditional \"BUILD_DRI3\" was never defined.
20672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20673 fi
20674 if test -z "${BUILD_GLX_TRUE}" && test -z "${BUILD_GLX_FALSE}"; then
20675 as_fn_error $? "conditional \"BUILD_GLX\" was never defined.
20676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20677 fi
20678 if test -z "${BUILD_PRESENT_TRUE}" && test -z "${BUILD_PRESENT_FALSE}"; then
20679 as_fn_error $? "conditional \"BUILD_PRESENT\" was never defined.
20680 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20681 fi
20682 if test -z "${BUILD_RANDR_TRUE}" && test -z "${BUILD_RANDR_FALSE}"; then
20683 as_fn_error $? "conditional \"BUILD_RANDR\" was never defined.
20684 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20685 fi
20686 if test -z "${BUILD_RECORD_TRUE}" && test -z "${BUILD_RECORD_FALSE}"; then
20687 as_fn_error $? "conditional \"BUILD_RECORD\" was never defined.
20688 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20689 fi
20690 if test -z "${BUILD_RENDER_TRUE}" && test -z "${BUILD_RENDER_FALSE}"; then
20691 as_fn_error $? "conditional \"BUILD_RENDER\" was never defined.
20692 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20693 fi
20694 if test -z "${BUILD_RESOURCE_TRUE}" && test -z "${BUILD_RESOURCE_FALSE}"; then
20695 as_fn_error $? "conditional \"BUILD_RESOURCE\" was never defined.
20696 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20697 fi
20698 if test -z "${BUILD_SCREENSAVER_TRUE}" && test -z "${BUILD_SCREENSAVER_FALSE}"; then
20699 as_fn_error $? "conditional \"BUILD_SCREENSAVER\" was never defined.
20700 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20701 fi
20702 if test -z "${BUILD_SHAPE_TRUE}" && test -z "${BUILD_SHAPE_FALSE}"; then
20703 as_fn_error $? "conditional \"BUILD_SHAPE\" was never defined.
20704 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20705 fi
20706 if test -z "${BUILD_SHM_TRUE}" && test -z "${BUILD_SHM_FALSE}"; then
20707 as_fn_error $? "conditional \"BUILD_SHM\" was never defined.
20708 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20709 fi
20710 if test -z "${BUILD_SYNC_TRUE}" && test -z "${BUILD_SYNC_FALSE}"; then
20711 as_fn_error $? "conditional \"BUILD_SYNC\" was never defined.
20712 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20713 fi
20714 if test -z "${BUILD_XEVIE_TRUE}" && test -z "${BUILD_XEVIE_FALSE}"; then
20715 as_fn_error $? "conditional \"BUILD_XEVIE\" was never defined.
20716 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20717 fi
20718 if test -z "${BUILD_XFIXES_TRUE}" && test -z "${BUILD_XFIXES_FALSE}"; then
20719 as_fn_error $? "conditional \"BUILD_XFIXES\" was never defined.
20720 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20721 fi
20722 if test -z "${BUILD_XFREE86_DRI_TRUE}" && test -z "${BUILD_XFREE86_DRI_FALSE}"; then
20723 as_fn_error $? "conditional \"BUILD_XFREE86_DRI\" was never defined.
20724 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20725 fi
20726 if test -z "${BUILD_XINERAMA_TRUE}" && test -z "${BUILD_XINERAMA_FALSE}"; then
20727 as_fn_error $? "conditional \"BUILD_XINERAMA\" was never defined.
20728 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20729 fi
20730 if test -z "${BUILD_XINPUT_TRUE}" && test -z "${BUILD_XINPUT_FALSE}"; then
20731 as_fn_error $? "conditional \"BUILD_XINPUT\" was never defined.
20732 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20733 fi
20734 if test -z "${BUILD_XKB_TRUE}" && test -z "${BUILD_XKB_FALSE}"; then
20735 as_fn_error $? "conditional \"BUILD_XKB\" was never defined.
20736 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20737 fi
20738 if test -z "${BUILD_XPRINT_TRUE}" && test -z "${BUILD_XPRINT_FALSE}"; then
20739 as_fn_error $? "conditional \"BUILD_XPRINT\" was never defined.
20740 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20741 fi
20742 if test -z "${BUILD_SELINUX_TRUE}" && test -z "${BUILD_SELINUX_FALSE}"; then
20743 as_fn_error $? "conditional \"BUILD_SELINUX\" was never defined.
20744 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20745 fi
20746 if test -z "${BUILD_XTEST_TRUE}" && test -z "${BUILD_XTEST_FALSE}"; then
20747 as_fn_error $? "conditional \"BUILD_XTEST\" was never defined.
20748 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20749 fi
20750 if test -z "${BUILD_XV_TRUE}" && test -z "${BUILD_XV_FALSE}"; then
20751 as_fn_error $? "conditional \"BUILD_XV\" was never defined.
20752 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20753 fi
20754 if test -z "${BUILD_XVMC_TRUE}" && test -z "${BUILD_XVMC_FALSE}"; then
20755 as_fn_error $? "conditional \"BUILD_XVMC\" was never defined.
20756 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20757 fi
20758
20759 : "${CONFIG_STATUS=./config.status}"
20760 ac_write_fail=0
20761 ac_clean_files_save=$ac_clean_files
20762 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20763 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20764 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20765 as_write_fail=0
20766 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20767 #! $SHELL
20768 # Generated by $as_me.
20769 # Run this file to recreate the current configuration.
20770 # Compiler output produced by configure, useful for debugging
20771 # configure, is in config.log if it exists.
20772
20773 debug=false
20774 ac_cs_recheck=false
20775 ac_cs_silent=false
20776
20777 SHELL=\${CONFIG_SHELL-$SHELL}
20778 export SHELL
20779 _ASEOF
20780 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20781 ## -------------------- ##
20782 ## M4sh Initialization. ##
20783 ## -------------------- ##
20784
20785 # Be more Bourne compatible
20786 DUALCASE=1; export DUALCASE # for MKS sh
20787 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20788 emulate sh
20789 NULLCMD=:
20790 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20791 # is contrary to our usage. Disable this feature.
20792 alias -g '${1+"$@"}'='"$@"'
20793 setopt NO_GLOB_SUBST
20794 else
20795 case `(set -o) 2>/dev/null` in #(
20796 *posix*) :
20797 set -o posix ;; #(
20798 *) :
20799 ;;
20800 esac
20801 fi
20802
20803
20804 as_nl='
20805 '
20806 export as_nl
20807 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20808 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20809 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20810 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20811 # Prefer a ksh shell builtin over an external printf program on Solaris,
20812 # but without wasting forks for bash or zsh.
20813 if test -z "$BASH_VERSION$ZSH_VERSION" \
20814 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20815 as_echo='print -r --'
20816 as_echo_n='print -rn --'
20817 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20818 as_echo='printf %s\n'
20819 as_echo_n='printf %s'
20820 else
20821 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20822 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20823 as_echo_n='/usr/ucb/echo -n'
20824 else
20825 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20826 as_echo_n_body='eval
20827 arg=$1;
20828 case $arg in #(
20829 *"$as_nl"*)
20830 expr "X$arg" : "X\\(.*\\)$as_nl";
20831 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20832 esac;
20833 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20834 '
20835 export as_echo_n_body
20836 as_echo_n='sh -c $as_echo_n_body as_echo'
20837 fi
20838 export as_echo_body
20839 as_echo='sh -c $as_echo_body as_echo'
20840 fi
20841
20842 # The user is always right.
20843 if test "${PATH_SEPARATOR+set}" != set; then
20844 PATH_SEPARATOR=:
20845 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20846 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20847 PATH_SEPARATOR=';'
20848 }
20849 fi
20850
20851
20852 # IFS
20853 # We need space, tab and new line, in precisely that order. Quoting is
20854 # there to prevent editors from complaining about space-tab.
20855 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20856 # splitting by setting IFS to empty value.)
20857 IFS=" "" $as_nl"
20858
20859 # Find who we are. Look in the path if we contain no directory separator.
20860 as_myself=
20861 case $0 in #((
20862 *[\\/]* ) as_myself=$0 ;;
20863 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20864 for as_dir in $PATH
20865 do
20866 IFS=$as_save_IFS
20867 test -z "$as_dir" && as_dir=.
20868 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20869 done
20870 IFS=$as_save_IFS
20871
20872 ;;
20873 esac
20874 # We did not find ourselves, most probably we were run as `sh COMMAND'
20875 # in which case we are not to be found in the path.
20876 if test "x$as_myself" = x; then
20877 as_myself=$0
20878 fi
20879 if test ! -f "$as_myself"; then
20880 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20881 exit 1
20882 fi
20883
20884 # Unset variables that we do not need and which cause bugs (e.g. in
20885 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20886 # suppresses any "Segmentation fault" message there. '((' could
20887 # trigger a bug in pdksh 5.2.14.
20888 for as_var in BASH_ENV ENV MAIL MAILPATH
20889 do eval test x\${$as_var+set} = xset \
20890 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20891 done
20892 PS1='$ '
20893 PS2='> '
20894 PS4='+ '
20895
20896 # NLS nuisances.
20897 LC_ALL=C
20898 export LC_ALL
20899 LANGUAGE=C
20900 export LANGUAGE
20901
20902 # CDPATH.
20903 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20904
20905
20906 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20907 # ----------------------------------------
20908 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20909 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20910 # script with STATUS, using 1 if that was 0.
20911 as_fn_error ()
20912 {
20913 as_status=$1; test $as_status -eq 0 && as_status=1
20914 if test "$4"; then
20915 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20916 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20917 fi
20918 $as_echo "$as_me: error: $2" >&2
20919 as_fn_exit $as_status
20920 } # as_fn_error
20921
20922
20923 # as_fn_set_status STATUS
20924 # -----------------------
20925 # Set $? to STATUS, without forking.
20926 as_fn_set_status ()
20927 {
20928 return $1
20929 } # as_fn_set_status
20930
20931 # as_fn_exit STATUS
20932 # -----------------
20933 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20934 as_fn_exit ()
20935 {
20936 set +e
20937 as_fn_set_status $1
20938 exit $1
20939 } # as_fn_exit
20940
20941 # as_fn_unset VAR
20942 # ---------------
20943 # Portably unset VAR.
20944 as_fn_unset ()
20945 {
20946 { eval $1=; unset $1;}
20947 }
20948 as_unset=as_fn_unset
20949 # as_fn_append VAR VALUE
20950 # ----------------------
20951 # Append the text in VALUE to the end of the definition contained in VAR. Take
20952 # advantage of any shell optimizations that allow amortized linear growth over
20953 # repeated appends, instead of the typical quadratic growth present in naive
20954 # implementations.
20955 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20956 eval 'as_fn_append ()
20957 {
20958 eval $1+=\$2
20959 }'
20960 else
20961 as_fn_append ()
20962 {
20963 eval $1=\$$1\$2
20964 }
20965 fi # as_fn_append
20966
20967 # as_fn_arith ARG...
20968 # ------------------
20969 # Perform arithmetic evaluation on the ARGs, and store the result in the
20970 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20971 # must be portable across $(()) and expr.
20972 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20973 eval 'as_fn_arith ()
20974 {
20975 as_val=$(( $* ))
20976 }'
20977 else
20978 as_fn_arith ()
20979 {
20980 as_val=`expr "$@" || test $? -eq 1`
20981 }
20982 fi # as_fn_arith
20983
20984
20985 if expr a : '\(a\)' >/dev/null 2>&1 &&
20986 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20987 as_expr=expr
20988 else
20989 as_expr=false
20990 fi
20991
20992 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20993 as_basename=basename
20994 else
20995 as_basename=false
20996 fi
20997
20998 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20999 as_dirname=dirname
21000 else
21001 as_dirname=false
21002 fi
21003
21004 as_me=`$as_basename -- "$0" ||
21005 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21006 X"$0" : 'X\(//\)$' \| \
21007 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21008 $as_echo X/"$0" |
21009 sed '/^.*\/\([^/][^/]*\)\/*$/{
21010 s//\1/
21011 q
21012 }
21013 /^X\/\(\/\/\)$/{
21014 s//\1/
21015 q
21016 }
21017 /^X\/\(\/\).*/{
21018 s//\1/
21019 q
21020 }
21021 s/.*/./; q'`
21022
21023 # Avoid depending upon Character Ranges.
21024 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21025 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21026 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21027 as_cr_digits='0123456789'
21028 as_cr_alnum=$as_cr_Letters$as_cr_digits
21029
21030 ECHO_C= ECHO_N= ECHO_T=
21031 case `echo -n x` in #(((((
21032 -n*)
21033 case `echo 'xy\c'` in
21034 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21035 xy) ECHO_C='\c';;
21036 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21037 ECHO_T=' ';;
21038 esac;;
21039 *)
21040 ECHO_N='-n';;
21041 esac
21042
21043 rm -f conf$$ conf$$.exe conf$$.file
21044 if test -d conf$$.dir; then
21045 rm -f conf$$.dir/conf$$.file
21046 else
21047 rm -f conf$$.dir
21048 mkdir conf$$.dir 2>/dev/null
21049 fi
21050 if (echo >conf$$.file) 2>/dev/null; then
21051 if ln -s conf$$.file conf$$ 2>/dev/null; then
21052 as_ln_s='ln -s'
21053 # ... but there are two gotchas:
21054 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21055 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21056 # In both cases, we have to default to `cp -pR'.
21057 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21058 as_ln_s='cp -pR'
21059 elif ln conf$$.file conf$$ 2>/dev/null; then
21060 as_ln_s=ln
21061 else
21062 as_ln_s='cp -pR'
21063 fi
21064 else
21065 as_ln_s='cp -pR'
21066 fi
21067 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21068 rmdir conf$$.dir 2>/dev/null
21069
21070
21071 # as_fn_mkdir_p
21072 # -------------
21073 # Create "$as_dir" as a directory, including parents if necessary.
21074 as_fn_mkdir_p ()
21075 {
21076
21077 case $as_dir in #(
21078 -*) as_dir=./$as_dir;;
21079 esac
21080 test -d "$as_dir" || eval $as_mkdir_p || {
21081 as_dirs=
21082 while :; do
21083 case $as_dir in #(
21084 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21085 *) as_qdir=$as_dir;;
21086 esac
21087 as_dirs="'$as_qdir' $as_dirs"
21088 as_dir=`$as_dirname -- "$as_dir" ||
21089 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21090 X"$as_dir" : 'X\(//\)[^/]' \| \
21091 X"$as_dir" : 'X\(//\)$' \| \
21092 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21093 $as_echo X"$as_dir" |
21094 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21095 s//\1/
21096 q
21097 }
21098 /^X\(\/\/\)[^/].*/{
21099 s//\1/
21100 q
21101 }
21102 /^X\(\/\/\)$/{
21103 s//\1/
21104 q
21105 }
21106 /^X\(\/\).*/{
21107 s//\1/
21108 q
21109 }
21110 s/.*/./; q'`
21111 test -d "$as_dir" && break
21112 done
21113 test -z "$as_dirs" || eval "mkdir $as_dirs"
21114 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21115
21116
21117 } # as_fn_mkdir_p
21118 if mkdir -p . 2>/dev/null; then
21119 as_mkdir_p='mkdir -p "$as_dir"'
21120 else
21121 test -d ./-p && rmdir ./-p
21122 as_mkdir_p=false
21123 fi
21124
21125
21126 # as_fn_executable_p FILE
21127 # -----------------------
21128 # Test if FILE is an executable regular file.
21129 as_fn_executable_p ()
21130 {
21131 test -f "$1" && test -x "$1"
21132 } # as_fn_executable_p
21133 as_test_x='test -x'
21134 as_executable_p=as_fn_executable_p
21135
21136 # Sed expression to map a string onto a valid CPP name.
21137 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21138
21139 # Sed expression to map a string onto a valid variable name.
21140 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21141
21142
21143 exec 6>&1
21144 ## ----------------------------------- ##
21145 ## Main body of $CONFIG_STATUS script. ##
21146 ## ----------------------------------- ##
21147 _ASEOF
21148 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21149
21150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21151 # Save the log message, to keep $0 and so on meaningful, and to
21152 # report actual input values of CONFIG_FILES etc. instead of their
21153 # values after options handling.
21154 ac_log="
21155 This file was extended by libxcb $as_me 1.11.1, which was
21156 generated by GNU Autoconf 2.69. Invocation command line was
21157
21158 CONFIG_FILES = $CONFIG_FILES
21159 CONFIG_HEADERS = $CONFIG_HEADERS
21160 CONFIG_LINKS = $CONFIG_LINKS
21161 CONFIG_COMMANDS = $CONFIG_COMMANDS
21162 $ $0 $@
21163
21164 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21165 "
21166
21167 _ACEOF
21168
21169 case $ac_config_files in *"
21170 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21171 esac
21172
21173 case $ac_config_headers in *"
21174 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21175 esac
21176
21177
21178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21179 # Files that config.status was made for.
21180 config_files="$ac_config_files"
21181 config_headers="$ac_config_headers"
21182 config_commands="$ac_config_commands"
21183
21184 _ACEOF
21185
21186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21187 ac_cs_usage="\
21188 \`$as_me' instantiates files and other configuration actions
21189 from templates according to the current configuration. Unless the files
21190 and actions are specified as TAGs, all are instantiated by default.
21191
21192 Usage: $0 [OPTION]... [TAG]...
21193
21194 -h, --help print this help, then exit
21195 -V, --version print version number and configuration settings, then exit
21196 --config print configuration, then exit
21197 -q, --quiet, --silent
21198 do not print progress messages
21199 -d, --debug don't remove temporary files
21200 --recheck update $as_me by reconfiguring in the same conditions
21201 --file=FILE[:TEMPLATE]
21202 instantiate the configuration file FILE
21203 --header=FILE[:TEMPLATE]
21204 instantiate the configuration header FILE
21205
21206 Configuration files:
21207 $config_files
21208
21209 Configuration headers:
21210 $config_headers
21211
21212 Configuration commands:
21213 $config_commands
21214
21215 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xcb>."
21216
21217 _ACEOF
21218 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21219 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21220 ac_cs_version="\\
21221 libxcb config.status 1.11.1
21222 configured by $0, generated by GNU Autoconf 2.69,
21223 with options \\"\$ac_cs_config\\"
21224
21225 Copyright (C) 2012 Free Software Foundation, Inc.
21226 This config.status script is free software; the Free Software Foundation
21227 gives unlimited permission to copy, distribute and modify it."
21228
21229 ac_pwd='$ac_pwd'
21230 srcdir='$srcdir'
21231 INSTALL='$INSTALL'
21232 MKDIR_P='$MKDIR_P'
21233 AWK='$AWK'
21234 test -n "\$AWK" || AWK=awk
21235 _ACEOF
21236
21237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21238 # The default lists apply if the user does not specify any file.
21239 ac_need_defaults=:
21240 while test $# != 0
21241 do
21242 case $1 in
21243 --*=?*)
21244 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21245 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21246 ac_shift=:
21247 ;;
21248 --*=)
21249 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21250 ac_optarg=
21251 ac_shift=:
21252 ;;
21253 *)
21254 ac_option=$1
21255 ac_optarg=$2
21256 ac_shift=shift
21257 ;;
21258 esac
21259
21260 case $ac_option in
21261 # Handling of the options.
21262 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21263 ac_cs_recheck=: ;;
21264 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21265 $as_echo "$ac_cs_version"; exit ;;
21266 --config | --confi | --conf | --con | --co | --c )
21267 $as_echo "$ac_cs_config"; exit ;;
21268 --debug | --debu | --deb | --de | --d | -d )
21269 debug=: ;;
21270 --file | --fil | --fi | --f )
21271 $ac_shift
21272 case $ac_optarg in
21273 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21274 '') as_fn_error $? "missing file argument" ;;
21275 esac
21276 as_fn_append CONFIG_FILES " '$ac_optarg'"
21277 ac_need_defaults=false;;
21278 --header | --heade | --head | --hea )
21279 $ac_shift
21280 case $ac_optarg in
21281 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21282 esac
21283 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21284 ac_need_defaults=false;;
21285 --he | --h)
21286 # Conflict between --help and --header
21287 as_fn_error $? "ambiguous option: \`$1'
21288 Try \`$0 --help' for more information.";;
21289 --help | --hel | -h )
21290 $as_echo "$ac_cs_usage"; exit ;;
21291 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21292 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21293 ac_cs_silent=: ;;
21294
21295 # This is an error.
21296 -*) as_fn_error $? "unrecognized option: \`$1'
21297 Try \`$0 --help' for more information." ;;
21298
21299 *) as_fn_append ac_config_targets " $1"
21300 ac_need_defaults=false ;;
21301
21302 esac
21303 shift
21304 done
21305
21306 ac_configure_extra_args=
21307
21308 if $ac_cs_silent; then
21309 exec 6>/dev/null
21310 ac_configure_extra_args="$ac_configure_extra_args --silent"
21311 fi
21312
21313 _ACEOF
21314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21315 if \$ac_cs_recheck; then
21316 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21317 shift
21318 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21319 CONFIG_SHELL='$SHELL'
21320 export CONFIG_SHELL
21321 exec "\$@"
21322 fi
21323
21324 _ACEOF
21325 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21326 exec 5>>config.log
21327 {
21328 echo
21329 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21330 ## Running $as_me. ##
21331 _ASBOX
21332 $as_echo "$ac_log"
21333 } >&5
21334
21335 _ACEOF
21336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21337 #
21338 # INIT-COMMANDS
21339 #
21340 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21341
21342
21343 # The HP-UX ksh and POSIX shell print the target directory to stdout
21344 # if CDPATH is set.
21345 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21346
21347 sed_quote_subst='$sed_quote_subst'
21348 double_quote_subst='$double_quote_subst'
21349 delay_variable_subst='$delay_variable_subst'
21350 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21351 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21352 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
21353 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21354 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21355 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21356 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21357 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21358 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21359 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21360 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21361 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21362 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21363 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21364 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21365 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21366 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21367 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21368 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21369 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21370 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21371 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21372 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21373 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21374 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21375 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21376 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21377 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21378 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21379 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21380 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21381 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21382 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21383 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21384 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21385 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21386 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21387 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21388 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21389 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21390 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21391 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21392 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21393 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21394 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21395 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21396 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21397 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21398 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21399 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21400 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21401 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21402 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21403 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21404 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21405 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21406 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21407 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"`'
21408 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21409 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21410 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21411 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21412 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21413 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21414 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21415 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21416 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21417 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21418 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21419 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21420 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21421 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21422 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21423 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21424 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21425 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21426 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21427 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21428 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21429 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21430 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21431 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21432 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21433 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21434 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21435 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21436 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21437 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21438 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21439 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21440 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21441 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21442 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21443 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21444 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21445 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21446 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21447 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21448 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21449 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21450 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21451 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21452 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21453 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21454 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21455 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21456 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21457 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21458 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21459 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21460 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21461 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21462 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21463 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21464 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21465 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21466 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21467 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21468 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21469 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21470 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21471 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21472 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21473 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21474 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
21475 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21476 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21477 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21478 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21479 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21480 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21481
21482 LTCC='$LTCC'
21483 LTCFLAGS='$LTCFLAGS'
21484 compiler='$compiler_DEFAULT'
21485
21486 # A function that is used when there is no print builtin or printf.
21487 func_fallback_echo ()
21488 {
21489 eval 'cat <<_LTECHO_EOF
21490 \$1
21491 _LTECHO_EOF'
21492 }
21493
21494 # Quote evaled strings.
21495 for var in AS \
21496 DLLTOOL \
21497 OBJDUMP \
21498 SHELL \
21499 ECHO \
21500 PATH_SEPARATOR \
21501 SED \
21502 GREP \
21503 EGREP \
21504 FGREP \
21505 LD \
21506 NM \
21507 LN_S \
21508 lt_SP2NL \
21509 lt_NL2SP \
21510 reload_flag \
21511 deplibs_check_method \
21512 file_magic_cmd \
21513 file_magic_glob \
21514 want_nocaseglob \
21515 sharedlib_from_linklib_cmd \
21516 AR \
21517 AR_FLAGS \
21518 archiver_list_spec \
21519 STRIP \
21520 RANLIB \
21521 CC \
21522 CFLAGS \
21523 compiler \
21524 lt_cv_sys_global_symbol_pipe \
21525 lt_cv_sys_global_symbol_to_cdecl \
21526 lt_cv_sys_global_symbol_to_c_name_address \
21527 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21528 nm_file_list_spec \
21529 lt_prog_compiler_no_builtin_flag \
21530 lt_prog_compiler_pic \
21531 lt_prog_compiler_wl \
21532 lt_prog_compiler_static \
21533 lt_cv_prog_compiler_c_o \
21534 need_locks \
21535 MANIFEST_TOOL \
21536 DSYMUTIL \
21537 NMEDIT \
21538 LIPO \
21539 OTOOL \
21540 OTOOL64 \
21541 shrext_cmds \
21542 export_dynamic_flag_spec \
21543 whole_archive_flag_spec \
21544 compiler_needs_object \
21545 with_gnu_ld \
21546 allow_undefined_flag \
21547 no_undefined_flag \
21548 hardcode_libdir_flag_spec \
21549 hardcode_libdir_separator \
21550 exclude_expsyms \
21551 include_expsyms \
21552 file_list_spec \
21553 variables_saved_for_relink \
21554 libname_spec \
21555 library_names_spec \
21556 soname_spec \
21557 install_override_mode \
21558 finish_eval \
21559 old_striplib \
21560 striplib; do
21561 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21562 *[\\\\\\\`\\"\\\$]*)
21563 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21564 ;;
21565 *)
21566 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21567 ;;
21568 esac
21569 done
21570
21571 # Double-quote double-evaled strings.
21572 for var in reload_cmds \
21573 old_postinstall_cmds \
21574 old_postuninstall_cmds \
21575 old_archive_cmds \
21576 extract_expsyms_cmds \
21577 old_archive_from_new_cmds \
21578 old_archive_from_expsyms_cmds \
21579 archive_cmds \
21580 archive_expsym_cmds \
21581 module_cmds \
21582 module_expsym_cmds \
21583 export_symbols_cmds \
21584 prelink_cmds \
21585 postlink_cmds \
21586 postinstall_cmds \
21587 postuninstall_cmds \
21588 finish_cmds \
21589 sys_lib_search_path_spec \
21590 sys_lib_dlsearch_path_spec; do
21591 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21592 *[\\\\\\\`\\"\\\$]*)
21593 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21594 ;;
21595 *)
21596 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21597 ;;
21598 esac
21599 done
21600
21601 ac_aux_dir='$ac_aux_dir'
21602 xsi_shell='$xsi_shell'
21603 lt_shell_append='$lt_shell_append'
21604
21605 # See if we are running on zsh, and set the options which allow our
21606 # commands through without removal of \ escapes INIT.
21607 if test -n "\${ZSH_VERSION+set}" ; then
21608 setopt NO_GLOB_SUBST
21609 fi
21610
21611
21612 PACKAGE='$PACKAGE'
21613 VERSION='$VERSION'
21614 TIMESTAMP='$TIMESTAMP'
21615 RM='$RM'
21616 ofile='$ofile'
21617
21618
21619
21620
21621 _ACEOF
21622
21623 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21624
21625 # Handling of arguments.
21626 for ac_config_target in $ac_config_targets
21627 do
21628 case $ac_config_target in
21629 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
21630 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21631 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21632 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21633 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21634 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21635 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21636 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
21637 "xcb.pc") CONFIG_FILES="$CONFIG_FILES xcb.pc" ;;
21638 "xcb-composite.pc") CONFIG_FILES="$CONFIG_FILES xcb-composite.pc" ;;
21639 "xcb-damage.pc") CONFIG_FILES="$CONFIG_FILES xcb-damage.pc" ;;
21640 "xcb-dpms.pc") CONFIG_FILES="$CONFIG_FILES xcb-dpms.pc" ;;
21641 "xcb-dri2.pc") CONFIG_FILES="$CONFIG_FILES xcb-dri2.pc" ;;
21642 "xcb-dri3.pc") CONFIG_FILES="$CONFIG_FILES xcb-dri3.pc" ;;
21643 "xcb-glx.pc") CONFIG_FILES="$CONFIG_FILES xcb-glx.pc" ;;
21644 "xcb-present.pc") CONFIG_FILES="$CONFIG_FILES xcb-present.pc" ;;
21645 "xcb-randr.pc") CONFIG_FILES="$CONFIG_FILES xcb-randr.pc" ;;
21646 "xcb-record.pc") CONFIG_FILES="$CONFIG_FILES xcb-record.pc" ;;
21647 "xcb-render.pc") CONFIG_FILES="$CONFIG_FILES xcb-render.pc" ;;
21648 "xcb-res.pc") CONFIG_FILES="$CONFIG_FILES xcb-res.pc" ;;
21649 "xcb-screensaver.pc") CONFIG_FILES="$CONFIG_FILES xcb-screensaver.pc" ;;
21650 "xcb-shape.pc") CONFIG_FILES="$CONFIG_FILES xcb-shape.pc" ;;
21651 "xcb-shm.pc") CONFIG_FILES="$CONFIG_FILES xcb-shm.pc" ;;
21652 "xcb-sync.pc") CONFIG_FILES="$CONFIG_FILES xcb-sync.pc" ;;
21653 "xcb-xevie.pc") CONFIG_FILES="$CONFIG_FILES xcb-xevie.pc" ;;
21654 "xcb-xf86dri.pc") CONFIG_FILES="$CONFIG_FILES xcb-xf86dri.pc" ;;
21655 "xcb-xfixes.pc") CONFIG_FILES="$CONFIG_FILES xcb-xfixes.pc" ;;
21656 "xcb-xinerama.pc") CONFIG_FILES="$CONFIG_FILES xcb-xinerama.pc" ;;
21657 "xcb-xinput.pc") CONFIG_FILES="$CONFIG_FILES xcb-xinput.pc" ;;
21658 "xcb-xkb.pc") CONFIG_FILES="$CONFIG_FILES xcb-xkb.pc" ;;
21659 "xcb-xprint.pc") CONFIG_FILES="$CONFIG_FILES xcb-xprint.pc" ;;
21660 "xcb-xselinux.pc") CONFIG_FILES="$CONFIG_FILES xcb-xselinux.pc" ;;
21661 "xcb-xtest.pc") CONFIG_FILES="$CONFIG_FILES xcb-xtest.pc" ;;
21662 "xcb-xv.pc") CONFIG_FILES="$CONFIG_FILES xcb-xv.pc" ;;
21663 "xcb-xvmc.pc") CONFIG_FILES="$CONFIG_FILES xcb-xvmc.pc" ;;
21664 "doc/xcb.doxygen") CONFIG_FILES="$CONFIG_FILES doc/xcb.doxygen" ;;
21665
21666 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21667 esac
21668 done
21669
21670
21671 # If the user did not use the arguments to specify the items to instantiate,
21672 # then the envvar interface is used. Set only those that are not.
21673 # We use the long form for the default assignment because of an extremely
21674 # bizarre bug on SunOS 4.1.3.
21675 if $ac_need_defaults; then
21676 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21677 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21678 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21679 fi
21680
21681 # Have a temporary directory for convenience. Make it in the build tree
21682 # simply because there is no reason against having it here, and in addition,
21683 # creating and moving files from /tmp can sometimes cause problems.
21684 # Hook for its removal unless debugging.
21685 # Note that there is a small window in which the directory will not be cleaned:
21686 # after its creation but before its name has been assigned to `$tmp'.
21687 $debug ||
21688 {
21689 tmp= ac_tmp=
21690 trap 'exit_status=$?
21691 : "${ac_tmp:=$tmp}"
21692 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21693 ' 0
21694 trap 'as_fn_exit 1' 1 2 13 15
21695 }
21696 # Create a (secure) tmp directory for tmp files.
21697
21698 {
21699 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21700 test -d "$tmp"
21701 } ||
21702 {
21703 tmp=./conf$$-$RANDOM
21704 (umask 077 && mkdir "$tmp")
21705 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21706 ac_tmp=$tmp
21707
21708 # Set up the scripts for CONFIG_FILES section.
21709 # No need to generate them if there are no CONFIG_FILES.
21710 # This happens for instance with `./config.status config.h'.
21711 if test -n "$CONFIG_FILES"; then
21712
21713
21714 ac_cr=`echo X | tr X '\015'`
21715 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21716 # But we know of no other shell where ac_cr would be empty at this
21717 # point, so we can use a bashism as a fallback.
21718 if test "x$ac_cr" = x; then
21719 eval ac_cr=\$\'\\r\'
21720 fi
21721 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21722 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21723 ac_cs_awk_cr='\\r'
21724 else
21725 ac_cs_awk_cr=$ac_cr
21726 fi
21727
21728 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21729 _ACEOF
21730
21731
21732 {
21733 echo "cat >conf$$subs.awk <<_ACEOF" &&
21734 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21735 echo "_ACEOF"
21736 } >conf$$subs.sh ||
21737 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21738 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21739 ac_delim='%!_!# '
21740 for ac_last_try in false false false false false :; do
21741 . ./conf$$subs.sh ||
21742 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21743
21744 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21745 if test $ac_delim_n = $ac_delim_num; then
21746 break
21747 elif $ac_last_try; then
21748 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21749 else
21750 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21751 fi
21752 done
21753 rm -f conf$$subs.sh
21754
21755 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21756 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21757 _ACEOF
21758 sed -n '
21759 h
21760 s/^/S["/; s/!.*/"]=/
21761 p
21762 g
21763 s/^[^!]*!//
21764 :repl
21765 t repl
21766 s/'"$ac_delim"'$//
21767 t delim
21768 :nl
21769 h
21770 s/\(.\{148\}\)..*/\1/
21771 t more1
21772 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21773 p
21774 n
21775 b repl
21776 :more1
21777 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21778 p
21779 g
21780 s/.\{148\}//
21781 t nl
21782 :delim
21783 h
21784 s/\(.\{148\}\)..*/\1/
21785 t more2
21786 s/["\\]/\\&/g; s/^/"/; s/$/"/
21787 p
21788 b
21789 :more2
21790 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21791 p
21792 g
21793 s/.\{148\}//
21794 t delim
21795 ' <conf$$subs.awk | sed '
21796 /^[^""]/{
21797 N
21798 s/\n//
21799 }
21800 ' >>$CONFIG_STATUS || ac_write_fail=1
21801 rm -f conf$$subs.awk
21802 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21803 _ACAWK
21804 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21805 for (key in S) S_is_set[key] = 1
21806 FS = ""
21807
21808 }
21809 {
21810 line = $ 0
21811 nfields = split(line, field, "@")
21812 substed = 0
21813 len = length(field[1])
21814 for (i = 2; i < nfields; i++) {
21815 key = field[i]
21816 keylen = length(key)
21817 if (S_is_set[key]) {
21818 value = S[key]
21819 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21820 len += length(value) + length(field[++i])
21821 substed = 1
21822 } else
21823 len += 1 + keylen
21824 }
21825
21826 print line
21827 }
21828
21829 _ACAWK
21830 _ACEOF
21831 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21832 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21833 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21834 else
21835 cat
21836 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21837 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21838 _ACEOF
21839
21840 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21841 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21842 # trailing colons and then remove the whole line if VPATH becomes empty
21843 # (actually we leave an empty line to preserve line numbers).
21844 if test "x$srcdir" = x.; then
21845 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21846 h
21847 s///
21848 s/^/:/
21849 s/[ ]*$/:/
21850 s/:\$(srcdir):/:/g
21851 s/:\${srcdir}:/:/g
21852 s/:@srcdir@:/:/g
21853 s/^:*//
21854 s/:*$//
21855 x
21856 s/\(=[ ]*\).*/\1/
21857 G
21858 s/\n//
21859 s/^[^=]*=[ ]*$//
21860 }'
21861 fi
21862
21863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21864 fi # test -n "$CONFIG_FILES"
21865
21866 # Set up the scripts for CONFIG_HEADERS section.
21867 # No need to generate them if there are no CONFIG_HEADERS.
21868 # This happens for instance with `./config.status Makefile'.
21869 if test -n "$CONFIG_HEADERS"; then
21870 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21871 BEGIN {
21872 _ACEOF
21873
21874 # Transform confdefs.h into an awk script `defines.awk', embedded as
21875 # here-document in config.status, that substitutes the proper values into
21876 # config.h.in to produce config.h.
21877
21878 # Create a delimiter string that does not exist in confdefs.h, to ease
21879 # handling of long lines.
21880 ac_delim='%!_!# '
21881 for ac_last_try in false false :; do
21882 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21883 if test -z "$ac_tt"; then
21884 break
21885 elif $ac_last_try; then
21886 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21887 else
21888 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21889 fi
21890 done
21891
21892 # For the awk script, D is an array of macro values keyed by name,
21893 # likewise P contains macro parameters if any. Preserve backslash
21894 # newline sequences.
21895
21896 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21897 sed -n '
21898 s/.\{148\}/&'"$ac_delim"'/g
21899 t rset
21900 :rset
21901 s/^[ ]*#[ ]*define[ ][ ]*/ /
21902 t def
21903 d
21904 :def
21905 s/\\$//
21906 t bsnl
21907 s/["\\]/\\&/g
21908 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21909 D["\1"]=" \3"/p
21910 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21911 d
21912 :bsnl
21913 s/["\\]/\\&/g
21914 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21915 D["\1"]=" \3\\\\\\n"\\/p
21916 t cont
21917 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21918 t cont
21919 d
21920 :cont
21921 n
21922 s/.\{148\}/&'"$ac_delim"'/g
21923 t clear
21924 :clear
21925 s/\\$//
21926 t bsnlc
21927 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21928 d
21929 :bsnlc
21930 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21931 b cont
21932 ' <confdefs.h | sed '
21933 s/'"$ac_delim"'/"\\\
21934 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21935
21936 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21937 for (key in D) D_is_set[key] = 1
21938 FS = ""
21939 }
21940 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21941 line = \$ 0
21942 split(line, arg, " ")
21943 if (arg[1] == "#") {
21944 defundef = arg[2]
21945 mac1 = arg[3]
21946 } else {
21947 defundef = substr(arg[1], 2)
21948 mac1 = arg[2]
21949 }
21950 split(mac1, mac2, "(") #)
21951 macro = mac2[1]
21952 prefix = substr(line, 1, index(line, defundef) - 1)
21953 if (D_is_set[macro]) {
21954 # Preserve the white space surrounding the "#".
21955 print prefix "define", macro P[macro] D[macro]
21956 next
21957 } else {
21958 # Replace #undef with comments. This is necessary, for example,
21959 # in the case of _POSIX_SOURCE, which is predefined and required
21960 # on some systems where configure will not decide to define it.
21961 if (defundef == "undef") {
21962 print "/*", prefix defundef, macro, "*/"
21963 next
21964 }
21965 }
21966 }
21967 { print }
21968 _ACAWK
21969 _ACEOF
21970 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21971 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21972 fi # test -n "$CONFIG_HEADERS"
21973
21974
21975 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21976 shift
21977 for ac_tag
21978 do
21979 case $ac_tag in
21980 :[FHLC]) ac_mode=$ac_tag; continue;;
21981 esac
21982 case $ac_mode$ac_tag in
21983 :[FHL]*:*);;
21984 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21985 :[FH]-) ac_tag=-:-;;
21986 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21987 esac
21988 ac_save_IFS=$IFS
21989 IFS=:
21990 set x $ac_tag
21991 IFS=$ac_save_IFS
21992 shift
21993 ac_file=$1
21994 shift
21995
21996 case $ac_mode in
21997 :L) ac_source=$1;;
21998 :[FH])
21999 ac_file_inputs=
22000 for ac_f
22001 do
22002 case $ac_f in
22003 -) ac_f="$ac_tmp/stdin";;
22004 *) # Look for the file first in the build tree, then in the source tree
22005 # (if the path is not absolute). The absolute path cannot be DOS-style,
22006 # because $ac_f cannot contain `:'.
22007 test -f "$ac_f" ||
22008 case $ac_f in
22009 [\\/$]*) false;;
22010 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22011 esac ||
22012 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22013 esac
22014 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22015 as_fn_append ac_file_inputs " '$ac_f'"
22016 done
22017
22018 # Let's still pretend it is `configure' which instantiates (i.e., don't
22019 # use $as_me), people would be surprised to read:
22020 # /* config.h. Generated by config.status. */
22021 configure_input='Generated from '`
22022 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22023 `' by configure.'
22024 if test x"$ac_file" != x-; then
22025 configure_input="$ac_file. $configure_input"
22026 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22027 $as_echo "$as_me: creating $ac_file" >&6;}
22028 fi
22029 # Neutralize special characters interpreted by sed in replacement strings.
22030 case $configure_input in #(
22031 *\&* | *\|* | *\\* )
22032 ac_sed_conf_input=`$as_echo "$configure_input" |
22033 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22034 *) ac_sed_conf_input=$configure_input;;
22035 esac
22036
22037 case $ac_tag in
22038 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22039 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22040 esac
22041 ;;
22042 esac
22043
22044 ac_dir=`$as_dirname -- "$ac_file" ||
22045 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22046 X"$ac_file" : 'X\(//\)[^/]' \| \
22047 X"$ac_file" : 'X\(//\)$' \| \
22048 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22049 $as_echo X"$ac_file" |
22050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22051 s//\1/
22052 q
22053 }
22054 /^X\(\/\/\)[^/].*/{
22055 s//\1/
22056 q
22057 }
22058 /^X\(\/\/\)$/{
22059 s//\1/
22060 q
22061 }
22062 /^X\(\/\).*/{
22063 s//\1/
22064 q
22065 }
22066 s/.*/./; q'`
22067 as_dir="$ac_dir"; as_fn_mkdir_p
22068 ac_builddir=.
22069
22070 case "$ac_dir" in
22071 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22072 *)
22073 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22074 # A ".." for each directory in $ac_dir_suffix.
22075 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22076 case $ac_top_builddir_sub in
22077 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22078 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22079 esac ;;
22080 esac
22081 ac_abs_top_builddir=$ac_pwd
22082 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22083 # for backward compatibility:
22084 ac_top_builddir=$ac_top_build_prefix
22085
22086 case $srcdir in
22087 .) # We are building in place.
22088 ac_srcdir=.
22089 ac_top_srcdir=$ac_top_builddir_sub
22090 ac_abs_top_srcdir=$ac_pwd ;;
22091 [\\/]* | ?:[\\/]* ) # Absolute name.
22092 ac_srcdir=$srcdir$ac_dir_suffix;
22093 ac_top_srcdir=$srcdir
22094 ac_abs_top_srcdir=$srcdir ;;
22095 *) # Relative name.
22096 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22097 ac_top_srcdir=$ac_top_build_prefix$srcdir
22098 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22099 esac
22100 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22101
22102
22103 case $ac_mode in
22104 :F)
22105 #
22106 # CONFIG_FILE
22107 #
22108
22109 case $INSTALL in
22110 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22111 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22112 esac
22113 ac_MKDIR_P=$MKDIR_P
22114 case $MKDIR_P in
22115 [\\/$]* | ?:[\\/]* ) ;;
22116 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22117 esac
22118 _ACEOF
22119
22120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22121 # If the template does not know about datarootdir, expand it.
22122 # FIXME: This hack should be removed a few years after 2.60.
22123 ac_datarootdir_hack=; ac_datarootdir_seen=
22124 ac_sed_dataroot='
22125 /datarootdir/ {
22126 p
22127 q
22128 }
22129 /@datadir@/p
22130 /@docdir@/p
22131 /@infodir@/p
22132 /@localedir@/p
22133 /@mandir@/p'
22134 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22135 *datarootdir*) ac_datarootdir_seen=yes;;
22136 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22138 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22139 _ACEOF
22140 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22141 ac_datarootdir_hack='
22142 s&@datadir@&$datadir&g
22143 s&@docdir@&$docdir&g
22144 s&@infodir@&$infodir&g
22145 s&@localedir@&$localedir&g
22146 s&@mandir@&$mandir&g
22147 s&\\\${datarootdir}&$datarootdir&g' ;;
22148 esac
22149 _ACEOF
22150
22151 # Neutralize VPATH when `$srcdir' = `.'.
22152 # Shell code in configure.ac might set extrasub.
22153 # FIXME: do we really want to maintain this feature?
22154 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22155 ac_sed_extra="$ac_vpsub
22156 $extrasub
22157 _ACEOF
22158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22159 :t
22160 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22161 s|@configure_input@|$ac_sed_conf_input|;t t
22162 s&@top_builddir@&$ac_top_builddir_sub&;t t
22163 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22164 s&@srcdir@&$ac_srcdir&;t t
22165 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22166 s&@top_srcdir@&$ac_top_srcdir&;t t
22167 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22168 s&@builddir@&$ac_builddir&;t t
22169 s&@abs_builddir@&$ac_abs_builddir&;t t
22170 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22171 s&@INSTALL@&$ac_INSTALL&;t t
22172 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22173 $ac_datarootdir_hack
22174 "
22175 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22176 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22177
22178 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22179 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22180 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22181 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22183 which seems to be undefined. Please make sure it is defined" >&5
22184 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22185 which seems to be undefined. Please make sure it is defined" >&2;}
22186
22187 rm -f "$ac_tmp/stdin"
22188 case $ac_file in
22189 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22190 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22191 esac \
22192 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22193 ;;
22194 :H)
22195 #
22196 # CONFIG_HEADER
22197 #
22198 if test x"$ac_file" != x-; then
22199 {
22200 $as_echo "/* $configure_input */" \
22201 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22202 } >"$ac_tmp/config.h" \
22203 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22204 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22205 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22206 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22207 else
22208 rm -f "$ac_file"
22209 mv "$ac_tmp/config.h" "$ac_file" \
22210 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22211 fi
22212 else
22213 $as_echo "/* $configure_input */" \
22214 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22215 || as_fn_error $? "could not create -" "$LINENO" 5
22216 fi
22217 # Compute "$ac_file"'s index in $config_headers.
22218 _am_arg="$ac_file"
22219 _am_stamp_count=1
22220 for _am_header in $config_headers :; do
22221 case $_am_header in
22222 $_am_arg | $_am_arg:* )
22223 break ;;
22224 * )
22225 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22226 esac
22227 done
22228 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22229 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22230 X"$_am_arg" : 'X\(//\)[^/]' \| \
22231 X"$_am_arg" : 'X\(//\)$' \| \
22232 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22233 $as_echo X"$_am_arg" |
22234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22235 s//\1/
22236 q
22237 }
22238 /^X\(\/\/\)[^/].*/{
22239 s//\1/
22240 q
22241 }
22242 /^X\(\/\/\)$/{
22243 s//\1/
22244 q
22245 }
22246 /^X\(\/\).*/{
22247 s//\1/
22248 q
22249 }
22250 s/.*/./; q'`/stamp-h$_am_stamp_count
22251 ;;
22252
22253 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22254 $as_echo "$as_me: executing $ac_file commands" >&6;}
22255 ;;
22256 esac
22257
22258
22259 case $ac_file$ac_mode in
22260 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22261 # Older Autoconf quotes --file arguments for eval, but not when files
22262 # are listed without --file. Let's play safe and only enable the eval
22263 # if we detect the quoting.
22264 case $CONFIG_FILES in
22265 *\'*) eval set x "$CONFIG_FILES" ;;
22266 *) set x $CONFIG_FILES ;;
22267 esac
22268 shift
22269 for mf
22270 do
22271 # Strip MF so we end up with the name of the file.
22272 mf=`echo "$mf" | sed -e 's/:.*$//'`
22273 # Check whether this is an Automake generated Makefile or not.
22274 # We used to match only the files named 'Makefile.in', but
22275 # some people rename them; so instead we look at the file content.
22276 # Grep'ing the first line is not enough: some people post-process
22277 # each Makefile.in and add a new line on top of each file to say so.
22278 # Grep'ing the whole file is not good either: AIX grep has a line
22279 # limit of 2048, but all sed's we know have understand at least 4000.
22280 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22281 dirpart=`$as_dirname -- "$mf" ||
22282 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22283 X"$mf" : 'X\(//\)[^/]' \| \
22284 X"$mf" : 'X\(//\)$' \| \
22285 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22286 $as_echo X"$mf" |
22287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22288 s//\1/
22289 q
22290 }
22291 /^X\(\/\/\)[^/].*/{
22292 s//\1/
22293 q
22294 }
22295 /^X\(\/\/\)$/{
22296 s//\1/
22297 q
22298 }
22299 /^X\(\/\).*/{
22300 s//\1/
22301 q
22302 }
22303 s/.*/./; q'`
22304 else
22305 continue
22306 fi
22307 # Extract the definition of DEPDIR, am__include, and am__quote
22308 # from the Makefile without running 'make'.
22309 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22310 test -z "$DEPDIR" && continue
22311 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22312 test -z "$am__include" && continue
22313 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22314 # Find all dependency output files, they are included files with
22315 # $(DEPDIR) in their names. We invoke sed twice because it is the
22316 # simplest approach to changing $(DEPDIR) to its actual value in the
22317 # expansion.
22318 for file in `sed -n "
22319 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22320 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
22321 # Make sure the directory exists.
22322 test -f "$dirpart/$file" && continue
22323 fdir=`$as_dirname -- "$file" ||
22324 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22325 X"$file" : 'X\(//\)[^/]' \| \
22326 X"$file" : 'X\(//\)$' \| \
22327 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22328 $as_echo X"$file" |
22329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22330 s//\1/
22331 q
22332 }
22333 /^X\(\/\/\)[^/].*/{
22334 s//\1/
22335 q
22336 }
22337 /^X\(\/\/\)$/{
22338 s//\1/
22339 q
22340 }
22341 /^X\(\/\).*/{
22342 s//\1/
22343 q
22344 }
22345 s/.*/./; q'`
22346 as_dir=$dirpart/$fdir; as_fn_mkdir_p
22347 # echo "creating $dirpart/$file"
22348 echo '# dummy' > "$dirpart/$file"
22349 done
22350 done
22351 }
22352 ;;
22353 "libtool":C)
22354
22355 # See if we are running on zsh, and set the options which allow our
22356 # commands through without removal of \ escapes.
22357 if test -n "${ZSH_VERSION+set}" ; then
22358 setopt NO_GLOB_SUBST
22359 fi
22360
22361 cfgfile="${ofile}T"
22362 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22363 $RM "$cfgfile"
22364
22365 cat <<_LT_EOF >> "$cfgfile"
22366 #! $SHELL
22367
22368 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22369 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22370 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22371 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22372 #
22373 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22374 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
22375 # Foundation, Inc.
22376 # Written by Gordon Matzigkeit, 1996
22377 #
22378 # This file is part of GNU Libtool.
22379 #
22380 # GNU Libtool is free software; you can redistribute it and/or
22381 # modify it under the terms of the GNU General Public License as
22382 # published by the Free Software Foundation; either version 2 of
22383 # the License, or (at your option) any later version.
22384 #
22385 # As a special exception to the GNU General Public License,
22386 # if you distribute this file as part of a program or library that
22387 # is built using GNU Libtool, you may include this file under the
22388 # same distribution terms that you use for the rest of that program.
22389 #
22390 # GNU Libtool is distributed in the hope that it will be useful,
22391 # but WITHOUT ANY WARRANTY; without even the implied warranty of
22392 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22393 # GNU General Public License for more details.
22394 #
22395 # You should have received a copy of the GNU General Public License
22396 # along with GNU Libtool; see the file COPYING. If not, a copy
22397 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22398 # obtained by writing to the Free Software Foundation, Inc.,
22399 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22400
22401
22402 # The names of the tagged configurations supported by this script.
22403 available_tags=""
22404
22405 # ### BEGIN LIBTOOL CONFIG
22406
22407 # Which release of libtool.m4 was used?
22408 macro_version=$macro_version
22409 macro_revision=$macro_revision
22410
22411 # Assembler program.
22412 AS=$lt_AS
22413
22414 # DLL creation program.
22415 DLLTOOL=$lt_DLLTOOL
22416
22417 # Object dumper program.
22418 OBJDUMP=$lt_OBJDUMP
22419
22420 # Whether or not to build shared libraries.
22421 build_libtool_libs=$enable_shared
22422
22423 # Whether or not to build static libraries.
22424 build_old_libs=$enable_static
22425
22426 # What type of objects to build.
22427 pic_mode=$pic_mode
22428
22429 # Whether or not to optimize for fast installation.
22430 fast_install=$enable_fast_install
22431
22432 # Shell to use when invoking shell scripts.
22433 SHELL=$lt_SHELL
22434
22435 # An echo program that protects backslashes.
22436 ECHO=$lt_ECHO
22437
22438 # The PATH separator for the build system.
22439 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22440
22441 # The host system.
22442 host_alias=$host_alias
22443 host=$host
22444 host_os=$host_os
22445
22446 # The build system.
22447 build_alias=$build_alias
22448 build=$build
22449 build_os=$build_os
22450
22451 # A sed program that does not truncate output.
22452 SED=$lt_SED
22453
22454 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22455 Xsed="\$SED -e 1s/^X//"
22456
22457 # A grep program that handles long lines.
22458 GREP=$lt_GREP
22459
22460 # An ERE matcher.
22461 EGREP=$lt_EGREP
22462
22463 # A literal string matcher.
22464 FGREP=$lt_FGREP
22465
22466 # A BSD- or MS-compatible name lister.
22467 NM=$lt_NM
22468
22469 # Whether we need soft or hard links.
22470 LN_S=$lt_LN_S
22471
22472 # What is the maximum length of a command?
22473 max_cmd_len=$max_cmd_len
22474
22475 # Object file suffix (normally "o").
22476 objext=$ac_objext
22477
22478 # Executable file suffix (normally "").
22479 exeext=$exeext
22480
22481 # whether the shell understands "unset".
22482 lt_unset=$lt_unset
22483
22484 # turn spaces into newlines.
22485 SP2NL=$lt_lt_SP2NL
22486
22487 # turn newlines into spaces.
22488 NL2SP=$lt_lt_NL2SP
22489
22490 # convert \$build file names to \$host format.
22491 to_host_file_cmd=$lt_cv_to_host_file_cmd
22492
22493 # convert \$build files to toolchain format.
22494 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22495
22496 # Method to check whether dependent libraries are shared objects.
22497 deplibs_check_method=$lt_deplibs_check_method
22498
22499 # Command to use when deplibs_check_method = "file_magic".
22500 file_magic_cmd=$lt_file_magic_cmd
22501
22502 # How to find potential files when deplibs_check_method = "file_magic".
22503 file_magic_glob=$lt_file_magic_glob
22504
22505 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22506 want_nocaseglob=$lt_want_nocaseglob
22507
22508 # Command to associate shared and link libraries.
22509 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22510
22511 # The archiver.
22512 AR=$lt_AR
22513
22514 # Flags to create an archive.
22515 AR_FLAGS=$lt_AR_FLAGS
22516
22517 # How to feed a file listing to the archiver.
22518 archiver_list_spec=$lt_archiver_list_spec
22519
22520 # A symbol stripping program.
22521 STRIP=$lt_STRIP
22522
22523 # Commands used to install an old-style archive.
22524 RANLIB=$lt_RANLIB
22525 old_postinstall_cmds=$lt_old_postinstall_cmds
22526 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22527
22528 # Whether to use a lock for old archive extraction.
22529 lock_old_archive_extraction=$lock_old_archive_extraction
22530
22531 # A C compiler.
22532 LTCC=$lt_CC
22533
22534 # LTCC compiler flags.
22535 LTCFLAGS=$lt_CFLAGS
22536
22537 # Take the output of nm and produce a listing of raw symbols and C names.
22538 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22539
22540 # Transform the output of nm in a proper C declaration.
22541 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22542
22543 # Transform the output of nm in a C name address pair.
22544 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22545
22546 # Transform the output of nm in a C name address pair when lib prefix is needed.
22547 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22548
22549 # Specify filename containing input files for \$NM.
22550 nm_file_list_spec=$lt_nm_file_list_spec
22551
22552 # The root where to search for dependent libraries,and in which our libraries should be installed.
22553 lt_sysroot=$lt_sysroot
22554
22555 # The name of the directory that contains temporary libtool files.
22556 objdir=$objdir
22557
22558 # Used to examine libraries when file_magic_cmd begins with "file".
22559 MAGIC_CMD=$MAGIC_CMD
22560
22561 # Must we lock files when doing compilation?
22562 need_locks=$lt_need_locks
22563
22564 # Manifest tool.
22565 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22566
22567 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22568 DSYMUTIL=$lt_DSYMUTIL
22569
22570 # Tool to change global to local symbols on Mac OS X.
22571 NMEDIT=$lt_NMEDIT
22572
22573 # Tool to manipulate fat objects and archives on Mac OS X.
22574 LIPO=$lt_LIPO
22575
22576 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22577 OTOOL=$lt_OTOOL
22578
22579 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22580 OTOOL64=$lt_OTOOL64
22581
22582 # Old archive suffix (normally "a").
22583 libext=$libext
22584
22585 # Shared library suffix (normally ".so").
22586 shrext_cmds=$lt_shrext_cmds
22587
22588 # The commands to extract the exported symbol list from a shared archive.
22589 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22590
22591 # Variables whose values should be saved in libtool wrapper scripts and
22592 # restored at link time.
22593 variables_saved_for_relink=$lt_variables_saved_for_relink
22594
22595 # Do we need the "lib" prefix for modules?
22596 need_lib_prefix=$need_lib_prefix
22597
22598 # Do we need a version for libraries?
22599 need_version=$need_version
22600
22601 # Library versioning type.
22602 version_type=$version_type
22603
22604 # Shared library runtime path variable.
22605 runpath_var=$runpath_var
22606
22607 # Shared library path variable.
22608 shlibpath_var=$shlibpath_var
22609
22610 # Is shlibpath searched before the hard-coded library search path?
22611 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22612
22613 # Format of library name prefix.
22614 libname_spec=$lt_libname_spec
22615
22616 # List of archive names. First name is the real one, the rest are links.
22617 # The last name is the one that the linker finds with -lNAME
22618 library_names_spec=$lt_library_names_spec
22619
22620 # The coded name of the library, if different from the real name.
22621 soname_spec=$lt_soname_spec
22622
22623 # Permission mode override for installation of shared libraries.
22624 install_override_mode=$lt_install_override_mode
22625
22626 # Command to use after installation of a shared archive.
22627 postinstall_cmds=$lt_postinstall_cmds
22628
22629 # Command to use after uninstallation of a shared archive.
22630 postuninstall_cmds=$lt_postuninstall_cmds
22631
22632 # Commands used to finish a libtool library installation in a directory.
22633 finish_cmds=$lt_finish_cmds
22634
22635 # As "finish_cmds", except a single script fragment to be evaled but
22636 # not shown.
22637 finish_eval=$lt_finish_eval
22638
22639 # Whether we should hardcode library paths into libraries.
22640 hardcode_into_libs=$hardcode_into_libs
22641
22642 # Compile-time system search path for libraries.
22643 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22644
22645 # Run-time system search path for libraries.
22646 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22647
22648 # Whether dlopen is supported.
22649 dlopen_support=$enable_dlopen
22650
22651 # Whether dlopen of programs is supported.
22652 dlopen_self=$enable_dlopen_self
22653
22654 # Whether dlopen of statically linked programs is supported.
22655 dlopen_self_static=$enable_dlopen_self_static
22656
22657 # Commands to strip libraries.
22658 old_striplib=$lt_old_striplib
22659 striplib=$lt_striplib
22660
22661
22662 # The linker used to build libraries.
22663 LD=$lt_LD
22664
22665 # How to create reloadable object files.
22666 reload_flag=$lt_reload_flag
22667 reload_cmds=$lt_reload_cmds
22668
22669 # Commands used to build an old-style archive.
22670 old_archive_cmds=$lt_old_archive_cmds
22671
22672 # A language specific compiler.
22673 CC=$lt_compiler
22674
22675 # Is the compiler the GNU compiler?
22676 with_gcc=$GCC
22677
22678 # Compiler flag to turn off builtin functions.
22679 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22680
22681 # Additional compiler flags for building library objects.
22682 pic_flag=$lt_lt_prog_compiler_pic
22683
22684 # How to pass a linker flag through the compiler.
22685 wl=$lt_lt_prog_compiler_wl
22686
22687 # Compiler flag to prevent dynamic linking.
22688 link_static_flag=$lt_lt_prog_compiler_static
22689
22690 # Does compiler simultaneously support -c and -o options?
22691 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22692
22693 # Whether or not to add -lc for building shared libraries.
22694 build_libtool_need_lc=$archive_cmds_need_lc
22695
22696 # Whether or not to disallow shared libs when runtime libs are static.
22697 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22698
22699 # Compiler flag to allow reflexive dlopens.
22700 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22701
22702 # Compiler flag to generate shared objects directly from archives.
22703 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22704
22705 # Whether the compiler copes with passing no objects directly.
22706 compiler_needs_object=$lt_compiler_needs_object
22707
22708 # Create an old-style archive from a shared archive.
22709 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22710
22711 # Create a temporary old-style archive to link instead of a shared archive.
22712 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22713
22714 # Commands used to build a shared archive.
22715 archive_cmds=$lt_archive_cmds
22716 archive_expsym_cmds=$lt_archive_expsym_cmds
22717
22718 # Commands used to build a loadable module if different from building
22719 # a shared archive.
22720 module_cmds=$lt_module_cmds
22721 module_expsym_cmds=$lt_module_expsym_cmds
22722
22723 # Whether we are building with GNU ld or not.
22724 with_gnu_ld=$lt_with_gnu_ld
22725
22726 # Flag that allows shared libraries with undefined symbols to be built.
22727 allow_undefined_flag=$lt_allow_undefined_flag
22728
22729 # Flag that enforces no undefined symbols.
22730 no_undefined_flag=$lt_no_undefined_flag
22731
22732 # Flag to hardcode \$libdir into a binary during linking.
22733 # This must work even if \$libdir does not exist
22734 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22735
22736 # Whether we need a single "-rpath" flag with a separated argument.
22737 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22738
22739 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22740 # DIR into the resulting binary.
22741 hardcode_direct=$hardcode_direct
22742
22743 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22744 # DIR into the resulting binary and the resulting library dependency is
22745 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22746 # library is relocated.
22747 hardcode_direct_absolute=$hardcode_direct_absolute
22748
22749 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22750 # into the resulting binary.
22751 hardcode_minus_L=$hardcode_minus_L
22752
22753 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22754 # into the resulting binary.
22755 hardcode_shlibpath_var=$hardcode_shlibpath_var
22756
22757 # Set to "yes" if building a shared library automatically hardcodes DIR
22758 # into the library and all subsequent libraries and executables linked
22759 # against it.
22760 hardcode_automatic=$hardcode_automatic
22761
22762 # Set to yes if linker adds runtime paths of dependent libraries
22763 # to runtime path list.
22764 inherit_rpath=$inherit_rpath
22765
22766 # Whether libtool must link a program against all its dependency libraries.
22767 link_all_deplibs=$link_all_deplibs
22768
22769 # Set to "yes" if exported symbols are required.
22770 always_export_symbols=$always_export_symbols
22771
22772 # The commands to list exported symbols.
22773 export_symbols_cmds=$lt_export_symbols_cmds
22774
22775 # Symbols that should not be listed in the preloaded symbols.
22776 exclude_expsyms=$lt_exclude_expsyms
22777
22778 # Symbols that must always be exported.
22779 include_expsyms=$lt_include_expsyms
22780
22781 # Commands necessary for linking programs (against libraries) with templates.
22782 prelink_cmds=$lt_prelink_cmds
22783
22784 # Commands necessary for finishing linking programs.
22785 postlink_cmds=$lt_postlink_cmds
22786
22787 # Specify filename containing input files.
22788 file_list_spec=$lt_file_list_spec
22789
22790 # How to hardcode a shared library path into an executable.
22791 hardcode_action=$hardcode_action
22792
22793 # ### END LIBTOOL CONFIG
22794
22795 _LT_EOF
22796
22797 case $host_os in
22798 aix3*)
22799 cat <<\_LT_EOF >> "$cfgfile"
22800 # AIX sometimes has problems with the GCC collect2 program. For some
22801 # reason, if we set the COLLECT_NAMES environment variable, the problems
22802 # vanish in a puff of smoke.
22803 if test "X${COLLECT_NAMES+set}" != Xset; then
22804 COLLECT_NAMES=
22805 export COLLECT_NAMES
22806 fi
22807 _LT_EOF
22808 ;;
22809 esac
22810
22811
22812 ltmain="$ac_aux_dir/ltmain.sh"
22813
22814
22815 # We use sed instead of cat because bash on DJGPP gets confused if
22816 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22817 # text mode, it properly converts lines to CR/LF. This bash problem
22818 # is reportedly fixed, but why not run on old versions too?
22819 sed '$q' "$ltmain" >> "$cfgfile" \
22820 || (rm -f "$cfgfile"; exit 1)
22821
22822 if test x"$xsi_shell" = xyes; then
22823 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22824 func_dirname ()\
22825 {\
22826 \ case ${1} in\
22827 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22828 \ * ) func_dirname_result="${3}" ;;\
22829 \ esac\
22830 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22831 && mv -f "$cfgfile.tmp" "$cfgfile" \
22832 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22833 test 0 -eq $? || _lt_function_replace_fail=:
22834
22835
22836 sed -e '/^func_basename ()$/,/^} # func_basename /c\
22837 func_basename ()\
22838 {\
22839 \ func_basename_result="${1##*/}"\
22840 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22841 && mv -f "$cfgfile.tmp" "$cfgfile" \
22842 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22843 test 0 -eq $? || _lt_function_replace_fail=:
22844
22845
22846 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22847 func_dirname_and_basename ()\
22848 {\
22849 \ case ${1} in\
22850 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22851 \ * ) func_dirname_result="${3}" ;;\
22852 \ esac\
22853 \ func_basename_result="${1##*/}"\
22854 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22855 && mv -f "$cfgfile.tmp" "$cfgfile" \
22856 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22857 test 0 -eq $? || _lt_function_replace_fail=:
22858
22859
22860 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22861 func_stripname ()\
22862 {\
22863 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22864 \ # positional parameters, so assign one to ordinary parameter first.\
22865 \ func_stripname_result=${3}\
22866 \ func_stripname_result=${func_stripname_result#"${1}"}\
22867 \ func_stripname_result=${func_stripname_result%"${2}"}\
22868 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22869 && mv -f "$cfgfile.tmp" "$cfgfile" \
22870 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22871 test 0 -eq $? || _lt_function_replace_fail=:
22872
22873
22874 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22875 func_split_long_opt ()\
22876 {\
22877 \ func_split_long_opt_name=${1%%=*}\
22878 \ func_split_long_opt_arg=${1#*=}\
22879 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22880 && mv -f "$cfgfile.tmp" "$cfgfile" \
22881 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22882 test 0 -eq $? || _lt_function_replace_fail=:
22883
22884
22885 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22886 func_split_short_opt ()\
22887 {\
22888 \ func_split_short_opt_arg=${1#??}\
22889 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22890 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22891 && mv -f "$cfgfile.tmp" "$cfgfile" \
22892 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22893 test 0 -eq $? || _lt_function_replace_fail=:
22894
22895
22896 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22897 func_lo2o ()\
22898 {\
22899 \ case ${1} in\
22900 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22901 \ *) func_lo2o_result=${1} ;;\
22902 \ esac\
22903 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22904 && mv -f "$cfgfile.tmp" "$cfgfile" \
22905 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22906 test 0 -eq $? || _lt_function_replace_fail=:
22907
22908
22909 sed -e '/^func_xform ()$/,/^} # func_xform /c\
22910 func_xform ()\
22911 {\
22912 func_xform_result=${1%.*}.lo\
22913 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22914 && mv -f "$cfgfile.tmp" "$cfgfile" \
22915 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22916 test 0 -eq $? || _lt_function_replace_fail=:
22917
22918
22919 sed -e '/^func_arith ()$/,/^} # func_arith /c\
22920 func_arith ()\
22921 {\
22922 func_arith_result=$(( $* ))\
22923 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22924 && mv -f "$cfgfile.tmp" "$cfgfile" \
22925 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22926 test 0 -eq $? || _lt_function_replace_fail=:
22927
22928
22929 sed -e '/^func_len ()$/,/^} # func_len /c\
22930 func_len ()\
22931 {\
22932 func_len_result=${#1}\
22933 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22934 && mv -f "$cfgfile.tmp" "$cfgfile" \
22935 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22936 test 0 -eq $? || _lt_function_replace_fail=:
22937
22938 fi
22939
22940 if test x"$lt_shell_append" = xyes; then
22941 sed -e '/^func_append ()$/,/^} # func_append /c\
22942 func_append ()\
22943 {\
22944 eval "${1}+=\\${2}"\
22945 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22946 && mv -f "$cfgfile.tmp" "$cfgfile" \
22947 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22948 test 0 -eq $? || _lt_function_replace_fail=:
22949
22950
22951 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22952 func_append_quoted ()\
22953 {\
22954 \ func_quote_for_eval "${2}"\
22955 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22956 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22957 && mv -f "$cfgfile.tmp" "$cfgfile" \
22958 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22959 test 0 -eq $? || _lt_function_replace_fail=:
22960
22961
22962 # Save a `func_append' function call where possible by direct use of '+='
22963 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22964 && mv -f "$cfgfile.tmp" "$cfgfile" \
22965 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22966 test 0 -eq $? || _lt_function_replace_fail=:
22967 else
22968 # Save a `func_append' function call even when '+=' is not available
22969 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22970 && mv -f "$cfgfile.tmp" "$cfgfile" \
22971 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22972 test 0 -eq $? || _lt_function_replace_fail=:
22973 fi
22974
22975 if test x"$_lt_function_replace_fail" = x":"; then
22976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22977 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22978 fi
22979
22980
22981 mv -f "$cfgfile" "$ofile" ||
22982 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22983 chmod +x "$ofile"
22984
22985 ;;
22986
22987 esac
22988 done # for ac_tag
22989
22990
22991 as_fn_exit 0
22992 _ACEOF
22993 ac_clean_files=$ac_clean_files_save
22994
22995 test $ac_write_fail = 0 ||
22996 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22997
22998
22999 # configure is writing to config.log, and then calls config.status.
23000 # config.status does its own redirection, appending to config.log.
23001 # Unfortunately, on DOS this fails, as config.log is still kept open
23002 # by configure, so config.status won't be able to write to it; its
23003 # output is simply discarded. So we exec the FD to /dev/null,
23004 # effectively closing config.log, so it can be properly (re)opened and
23005 # appended to by config.status. When coming back to configure, we
23006 # need to make the FD available again.
23007 if test "$no_create" != yes; then
23008 ac_cs_success=:
23009 ac_config_status_args=
23010 test "$silent" = yes &&
23011 ac_config_status_args="$ac_config_status_args --quiet"
23012 exec 5>/dev/null
23013 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23014 exec 5>>config.log
23015 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23016 # would make configure fail if this is the last instruction.
23017 $ac_cs_success || as_fn_exit 1
23018 fi
23019 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23021 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23022 fi
23023
23024
23025
23026 echo ""
23027 echo " Package: ${PACKAGE_NAME} ${PACKAGE_VERSION}"
23028 echo ""
23029 echo " Configuration"
23030 echo " XDM support.........: ${have_xdmcp}"
23031 echo " sendmsg fd passing..: ${sendfds}"
23032 echo " Build unit tests....: ${HAVE_CHECK}"
23033 echo " with html results.: ${HTML_CHECK_RESULT}"
23034 echo " XCB buffer size.....: ${xcb_queue_buffer_size}"
23035 echo ""
23036 echo " X11 extensions"
23037 echo " Composite...........: ${BUILD_COMPOSITE}"
23038 echo " Damage..............: ${BUILD_DAMAGE}"
23039 echo " Dpms................: ${BUILD_DPMS}"
23040 echo " Dri2................: ${BUILD_DRI2}"
23041 echo " Dri3................: ${BUILD_DRI3}"
23042 echo " Glx.................: ${BUILD_GLX}"
23043 echo " Randr...............: ${BUILD_RANDR}"
23044 echo " Record..............: ${BUILD_RECORD}"
23045 echo " Render..............: ${BUILD_RENDER}"
23046 echo " Resource............: ${BUILD_RESOURCE}"
23047 echo " Screensaver.........: ${BUILD_SCREENSAVER}"
23048 echo " selinux.............: ${BUILD_SELINUX}"
23049 echo " Shape...............: ${BUILD_SHAPE}"
23050 echo " Shm.................: ${BUILD_SHM}"
23051 echo " Sync................: ${BUILD_SYNC}"
23052 echo " Xevie...............: ${BUILD_XEVIE}"
23053 echo " Xfixes..............: ${BUILD_XFIXES}"
23054 echo " Xfree86-dri.........: ${BUILD_XFREE86_DRI}"
23055 echo " xinerama............: ${BUILD_XINERAMA}"
23056 echo " xinput..............: ${BUILD_XINPUT}"
23057 echo " xkb.................: ${BUILD_XKB}"
23058 echo " xprint..............: ${BUILD_XPRINT}"
23059 echo " xtest...............: ${BUILD_XTEST}"
23060 echo " xv..................: ${BUILD_XV}"
23061 echo " xvmc................: ${BUILD_XVMC}"
23062 echo ""
23063 echo " Used CFLAGS:"
23064 echo " CPPFLAGS............: ${CPPFLAGS}"
23065 echo " CFLAGS..............: ${CFLAGS}"
23066 echo " Warning CFLAGS......: ${BASE_CFLAGS}"
23067 echo ""
23068 echo " Installation:"
23069 echo " Prefix..............: ${prefix}"
23070 echo ""
23071