configure revision 1.1.1.6 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libxcb 1.11.
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'
595 PACKAGE_STRING='libxcb 1.11'
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 localstatedir
848 sharedstatedir
849 sysconfdir
850 datadir
851 datarootdir
852 libexecdir
853 sbindir
854 bindir
855 program_transform_name
856 prefix
857 exec_prefix
858 PACKAGE_URL
859 PACKAGE_BUGREPORT
860 PACKAGE_STRING
861 PACKAGE_VERSION
862 PACKAGE_TARNAME
863 PACKAGE_NAME
864 PATH_SEPARATOR
865 SHELL'
866 ac_subst_files=''
867 ac_user_opts='
868 enable_option_checking
869 enable_silent_rules
870 enable_dependency_tracking
871 enable_shared
872 enable_static
873 with_pic
874 enable_fast_install
875 with_gnu_ld
876 with_sysroot
877 enable_libtool_lock
878 enable_selective_werror
879 enable_strict_compilation
880 enable_devel_docs
881 with_doxygen
882 enable_sendfds
883 with_queue_size
884 enable_composite
885 enable_damage
886 enable_dpms
887 enable_dri2
888 enable_dri3
889 enable_glx
890 enable_present
891 enable_randr
892 enable_record
893 enable_render
894 enable_resource
895 enable_screensaver
896 enable_shape
897 enable_shm
898 enable_sync
899 enable_xevie
900 enable_xfixes
901 enable_xfree86_dri
902 enable_xinerama
903 enable_xinput
904 enable_xkb
905 enable_xprint
906 enable_selinux
907 enable_xtest
908 enable_xv
909 enable_xvmc
910 with_launchd
911 '
912 ac_precious_vars='build_alias
913 host_alias
914 target_alias
915 PYTHON
916 CC
917 CFLAGS
918 LDFLAGS
919 LIBS
920 CPPFLAGS
921 CPP
922 PKG_CONFIG
923 PKG_CONFIG_PATH
924 PKG_CONFIG_LIBDIR
925 DOXYGEN
926 DOT
927 CHECK_CFLAGS
928 CHECK_LIBS
929 XCBPROTO_CFLAGS
930 XCBPROTO_LIBS
931 NEEDED_CFLAGS
932 NEEDED_LIBS
933 XDMCP_CFLAGS
934 XDMCP_LIBS'
935
936
937 # Initialize some variables set by options.
938 ac_init_help=
939 ac_init_version=false
940 ac_unrecognized_opts=
941 ac_unrecognized_sep=
942 # The variables have the same names as the options, with
943 # dashes changed to underlines.
944 cache_file=/dev/null
945 exec_prefix=NONE
946 no_create=
947 no_recursion=
948 prefix=NONE
949 program_prefix=NONE
950 program_suffix=NONE
951 program_transform_name=s,x,x,
952 silent=
953 site=
954 srcdir=
955 verbose=
956 x_includes=NONE
957 x_libraries=NONE
958
959 # Installation directory options.
960 # These are left unexpanded so users can "make install exec_prefix=/foo"
961 # and all the variables that are supposed to be based on exec_prefix
962 # by default will actually change.
963 # Use braces instead of parens because sh, perl, etc. also accept them.
964 # (The list follows the same order as the GNU Coding Standards.)
965 bindir='${exec_prefix}/bin'
966 sbindir='${exec_prefix}/sbin'
967 libexecdir='${exec_prefix}/libexec'
968 datarootdir='${prefix}/share'
969 datadir='${datarootdir}'
970 sysconfdir='${prefix}/etc'
971 sharedstatedir='${prefix}/com'
972 localstatedir='${prefix}/var'
973 includedir='${prefix}/include'
974 oldincludedir='/usr/include'
975 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
976 infodir='${datarootdir}/info'
977 htmldir='${docdir}'
978 dvidir='${docdir}'
979 pdfdir='${docdir}'
980 psdir='${docdir}'
981 libdir='${exec_prefix}/lib'
982 localedir='${datarootdir}/locale'
983 mandir='${datarootdir}/man'
984
985 ac_prev=
986 ac_dashdash=
987 for ac_option
988 do
989 # If the previous option needs an argument, assign it.
990 if test -n "$ac_prev"; then
991 eval $ac_prev=\$ac_option
992 ac_prev=
993 continue
994 fi
995
996 case $ac_option in
997 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
998 *=) ac_optarg= ;;
999 *) ac_optarg=yes ;;
1000 esac
1001
1002 # Accept the important Cygnus configure options, so we can diagnose typos.
1003
1004 case $ac_dashdash$ac_option in
1005 --)
1006 ac_dashdash=yes ;;
1007
1008 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1009 ac_prev=bindir ;;
1010 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1011 bindir=$ac_optarg ;;
1012
1013 -build | --build | --buil | --bui | --bu)
1014 ac_prev=build_alias ;;
1015 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1016 build_alias=$ac_optarg ;;
1017
1018 -cache-file | --cache-file | --cache-fil | --cache-fi \
1019 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1020 ac_prev=cache_file ;;
1021 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1022 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1023 cache_file=$ac_optarg ;;
1024
1025 --config-cache | -C)
1026 cache_file=config.cache ;;
1027
1028 -datadir | --datadir | --datadi | --datad)
1029 ac_prev=datadir ;;
1030 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1031 datadir=$ac_optarg ;;
1032
1033 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1034 | --dataroo | --dataro | --datar)
1035 ac_prev=datarootdir ;;
1036 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1037 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1038 datarootdir=$ac_optarg ;;
1039
1040 -disable-* | --disable-*)
1041 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1042 # Reject names that are not valid shell variable names.
1043 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1044 as_fn_error $? "invalid feature name: $ac_useropt"
1045 ac_useropt_orig=$ac_useropt
1046 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1047 case $ac_user_opts in
1048 *"
1049 "enable_$ac_useropt"
1050 "*) ;;
1051 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1052 ac_unrecognized_sep=', ';;
1053 esac
1054 eval enable_$ac_useropt=no ;;
1055
1056 -docdir | --docdir | --docdi | --doc | --do)
1057 ac_prev=docdir ;;
1058 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1059 docdir=$ac_optarg ;;
1060
1061 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1062 ac_prev=dvidir ;;
1063 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1064 dvidir=$ac_optarg ;;
1065
1066 -enable-* | --enable-*)
1067 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1070 as_fn_error $? "invalid feature name: $ac_useropt"
1071 ac_useropt_orig=$ac_useropt
1072 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1073 case $ac_user_opts in
1074 *"
1075 "enable_$ac_useropt"
1076 "*) ;;
1077 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1078 ac_unrecognized_sep=', ';;
1079 esac
1080 eval enable_$ac_useropt=\$ac_optarg ;;
1081
1082 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1083 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1084 | --exec | --exe | --ex)
1085 ac_prev=exec_prefix ;;
1086 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1087 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1088 | --exec=* | --exe=* | --ex=*)
1089 exec_prefix=$ac_optarg ;;
1090
1091 -gas | --gas | --ga | --g)
1092 # Obsolete; use --with-gas.
1093 with_gas=yes ;;
1094
1095 -help | --help | --hel | --he | -h)
1096 ac_init_help=long ;;
1097 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1098 ac_init_help=recursive ;;
1099 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1100 ac_init_help=short ;;
1101
1102 -host | --host | --hos | --ho)
1103 ac_prev=host_alias ;;
1104 -host=* | --host=* | --hos=* | --ho=*)
1105 host_alias=$ac_optarg ;;
1106
1107 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1108 ac_prev=htmldir ;;
1109 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1110 | --ht=*)
1111 htmldir=$ac_optarg ;;
1112
1113 -includedir | --includedir | --includedi | --included | --include \
1114 | --includ | --inclu | --incl | --inc)
1115 ac_prev=includedir ;;
1116 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1117 | --includ=* | --inclu=* | --incl=* | --inc=*)
1118 includedir=$ac_optarg ;;
1119
1120 -infodir | --infodir | --infodi | --infod | --info | --inf)
1121 ac_prev=infodir ;;
1122 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1123 infodir=$ac_optarg ;;
1124
1125 -libdir | --libdir | --libdi | --libd)
1126 ac_prev=libdir ;;
1127 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1128 libdir=$ac_optarg ;;
1129
1130 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1131 | --libexe | --libex | --libe)
1132 ac_prev=libexecdir ;;
1133 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1134 | --libexe=* | --libex=* | --libe=*)
1135 libexecdir=$ac_optarg ;;
1136
1137 -localedir | --localedir | --localedi | --localed | --locale)
1138 ac_prev=localedir ;;
1139 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1140 localedir=$ac_optarg ;;
1141
1142 -localstatedir | --localstatedir | --localstatedi | --localstated \
1143 | --localstate | --localstat | --localsta | --localst | --locals)
1144 ac_prev=localstatedir ;;
1145 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1146 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1147 localstatedir=$ac_optarg ;;
1148
1149 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1150 ac_prev=mandir ;;
1151 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1152 mandir=$ac_optarg ;;
1153
1154 -nfp | --nfp | --nf)
1155 # Obsolete; use --without-fp.
1156 with_fp=no ;;
1157
1158 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1159 | --no-cr | --no-c | -n)
1160 no_create=yes ;;
1161
1162 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1163 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1164 no_recursion=yes ;;
1165
1166 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1167 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1168 | --oldin | --oldi | --old | --ol | --o)
1169 ac_prev=oldincludedir ;;
1170 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1171 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1172 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1173 oldincludedir=$ac_optarg ;;
1174
1175 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1176 ac_prev=prefix ;;
1177 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1178 prefix=$ac_optarg ;;
1179
1180 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1181 | --program-pre | --program-pr | --program-p)
1182 ac_prev=program_prefix ;;
1183 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1184 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1185 program_prefix=$ac_optarg ;;
1186
1187 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1188 | --program-suf | --program-su | --program-s)
1189 ac_prev=program_suffix ;;
1190 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1191 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1192 program_suffix=$ac_optarg ;;
1193
1194 -program-transform-name | --program-transform-name \
1195 | --program-transform-nam | --program-transform-na \
1196 | --program-transform-n | --program-transform- \
1197 | --program-transform | --program-transfor \
1198 | --program-transfo | --program-transf \
1199 | --program-trans | --program-tran \
1200 | --progr-tra | --program-tr | --program-t)
1201 ac_prev=program_transform_name ;;
1202 -program-transform-name=* | --program-transform-name=* \
1203 | --program-transform-nam=* | --program-transform-na=* \
1204 | --program-transform-n=* | --program-transform-=* \
1205 | --program-transform=* | --program-transfor=* \
1206 | --program-transfo=* | --program-transf=* \
1207 | --program-trans=* | --program-tran=* \
1208 | --progr-tra=* | --program-tr=* | --program-t=*)
1209 program_transform_name=$ac_optarg ;;
1210
1211 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1212 ac_prev=pdfdir ;;
1213 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1214 pdfdir=$ac_optarg ;;
1215
1216 -psdir | --psdir | --psdi | --psd | --ps)
1217 ac_prev=psdir ;;
1218 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1219 psdir=$ac_optarg ;;
1220
1221 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1222 | -silent | --silent | --silen | --sile | --sil)
1223 silent=yes ;;
1224
1225 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1226 ac_prev=sbindir ;;
1227 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1228 | --sbi=* | --sb=*)
1229 sbindir=$ac_optarg ;;
1230
1231 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1232 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1233 | --sharedst | --shareds | --shared | --share | --shar \
1234 | --sha | --sh)
1235 ac_prev=sharedstatedir ;;
1236 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1237 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1238 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1239 | --sha=* | --sh=*)
1240 sharedstatedir=$ac_optarg ;;
1241
1242 -site | --site | --sit)
1243 ac_prev=site ;;
1244 -site=* | --site=* | --sit=*)
1245 site=$ac_optarg ;;
1246
1247 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1248 ac_prev=srcdir ;;
1249 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1250 srcdir=$ac_optarg ;;
1251
1252 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1253 | --syscon | --sysco | --sysc | --sys | --sy)
1254 ac_prev=sysconfdir ;;
1255 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1256 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1257 sysconfdir=$ac_optarg ;;
1258
1259 -target | --target | --targe | --targ | --tar | --ta | --t)
1260 ac_prev=target_alias ;;
1261 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1262 target_alias=$ac_optarg ;;
1263
1264 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1265 verbose=yes ;;
1266
1267 -version | --version | --versio | --versi | --vers | -V)
1268 ac_init_version=: ;;
1269
1270 -with-* | --with-*)
1271 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1272 # Reject names that are not valid shell variable names.
1273 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1274 as_fn_error $? "invalid package name: $ac_useropt"
1275 ac_useropt_orig=$ac_useropt
1276 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1277 case $ac_user_opts in
1278 *"
1279 "with_$ac_useropt"
1280 "*) ;;
1281 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1282 ac_unrecognized_sep=', ';;
1283 esac
1284 eval with_$ac_useropt=\$ac_optarg ;;
1285
1286 -without-* | --without-*)
1287 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1288 # Reject names that are not valid shell variable names.
1289 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1290 as_fn_error $? "invalid package name: $ac_useropt"
1291 ac_useropt_orig=$ac_useropt
1292 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1293 case $ac_user_opts in
1294 *"
1295 "with_$ac_useropt"
1296 "*) ;;
1297 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1298 ac_unrecognized_sep=', ';;
1299 esac
1300 eval with_$ac_useropt=no ;;
1301
1302 --x)
1303 # Obsolete; use --with-x.
1304 with_x=yes ;;
1305
1306 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1307 | --x-incl | --x-inc | --x-in | --x-i)
1308 ac_prev=x_includes ;;
1309 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1310 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1311 x_includes=$ac_optarg ;;
1312
1313 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1314 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1315 ac_prev=x_libraries ;;
1316 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1317 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1318 x_libraries=$ac_optarg ;;
1319
1320 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1321 Try \`$0 --help' for more information"
1322 ;;
1323
1324 *=*)
1325 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1326 # Reject names that are not valid shell variable names.
1327 case $ac_envvar in #(
1328 '' | [0-9]* | *[!_$as_cr_alnum]* )
1329 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1330 esac
1331 eval $ac_envvar=\$ac_optarg
1332 export $ac_envvar ;;
1333
1334 *)
1335 # FIXME: should be removed in autoconf 3.0.
1336 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1337 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1338 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1339 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1340 ;;
1341
1342 esac
1343 done
1344
1345 if test -n "$ac_prev"; then
1346 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1347 as_fn_error $? "missing argument to $ac_option"
1348 fi
1349
1350 if test -n "$ac_unrecognized_opts"; then
1351 case $enable_option_checking in
1352 no) ;;
1353 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1354 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1355 esac
1356 fi
1357
1358 # Check all directory arguments for consistency.
1359 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1360 datadir sysconfdir sharedstatedir localstatedir includedir \
1361 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1362 libdir localedir mandir
1363 do
1364 eval ac_val=\$$ac_var
1365 # Remove trailing slashes.
1366 case $ac_val in
1367 */ )
1368 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1369 eval $ac_var=\$ac_val;;
1370 esac
1371 # Be sure to have absolute directory names.
1372 case $ac_val in
1373 [\\/$]* | ?:[\\/]* ) continue;;
1374 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1375 esac
1376 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1377 done
1378
1379 # There might be people who depend on the old broken behavior: `$host'
1380 # used to hold the argument of --host etc.
1381 # FIXME: To remove some day.
1382 build=$build_alias
1383 host=$host_alias
1384 target=$target_alias
1385
1386 # FIXME: To remove some day.
1387 if test "x$host_alias" != x; then
1388 if test "x$build_alias" = x; then
1389 cross_compiling=maybe
1390 elif test "x$build_alias" != "x$host_alias"; then
1391 cross_compiling=yes
1392 fi
1393 fi
1394
1395 ac_tool_prefix=
1396 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1397
1398 test "$silent" = yes && exec 6>/dev/null
1399
1400
1401 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1402 ac_ls_di=`ls -di .` &&
1403 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1404 as_fn_error $? "working directory cannot be determined"
1405 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1406 as_fn_error $? "pwd does not report name of working directory"
1407
1408
1409 # Find the source files, if location was not specified.
1410 if test -z "$srcdir"; then
1411 ac_srcdir_defaulted=yes
1412 # Try the directory containing this script, then the parent directory.
1413 ac_confdir=`$as_dirname -- "$as_myself" ||
1414 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1415 X"$as_myself" : 'X\(//\)[^/]' \| \
1416 X"$as_myself" : 'X\(//\)$' \| \
1417 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1418 $as_echo X"$as_myself" |
1419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1420 s//\1/
1421 q
1422 }
1423 /^X\(\/\/\)[^/].*/{
1424 s//\1/
1425 q
1426 }
1427 /^X\(\/\/\)$/{
1428 s//\1/
1429 q
1430 }
1431 /^X\(\/\).*/{
1432 s//\1/
1433 q
1434 }
1435 s/.*/./; q'`
1436 srcdir=$ac_confdir
1437 if test ! -r "$srcdir/$ac_unique_file"; then
1438 srcdir=..
1439 fi
1440 else
1441 ac_srcdir_defaulted=no
1442 fi
1443 if test ! -r "$srcdir/$ac_unique_file"; then
1444 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1445 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1446 fi
1447 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1448 ac_abs_confdir=`(
1449 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1450 pwd)`
1451 # When building in place, set srcdir=.
1452 if test "$ac_abs_confdir" = "$ac_pwd"; then
1453 srcdir=.
1454 fi
1455 # Remove unnecessary trailing slashes from srcdir.
1456 # Double slashes in file names in object file debugging info
1457 # mess up M-x gdb in Emacs.
1458 case $srcdir in
1459 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1460 esac
1461 for ac_var in $ac_precious_vars; do
1462 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1463 eval ac_env_${ac_var}_value=\$${ac_var}
1464 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1465 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1466 done
1467
1468 #
1469 # Report the --help message.
1470 #
1471 if test "$ac_init_help" = "long"; then
1472 # Omit some internal or obsolete options to make the list less imposing.
1473 # This message is too long to be a string in the A/UX 3.1 sh.
1474 cat <<_ACEOF
1475 \`configure' configures libxcb 1.11 to adapt to many kinds of systems.
1476
1477 Usage: $0 [OPTION]... [VAR=VALUE]...
1478
1479 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1480 VAR=VALUE. See below for descriptions of some of the useful variables.
1481
1482 Defaults for the options are specified in brackets.
1483
1484 Configuration:
1485 -h, --help display this help and exit
1486 --help=short display options specific to this package
1487 --help=recursive display the short help of all the included packages
1488 -V, --version display version information and exit
1489 -q, --quiet, --silent do not print \`checking ...' messages
1490 --cache-file=FILE cache test results in FILE [disabled]
1491 -C, --config-cache alias for \`--cache-file=config.cache'
1492 -n, --no-create do not create output files
1493 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1494
1495 Installation directories:
1496 --prefix=PREFIX install architecture-independent files in PREFIX
1497 [$ac_default_prefix]
1498 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1499 [PREFIX]
1500
1501 By default, \`make install' will install all the files in
1502 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1503 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1504 for instance \`--prefix=\$HOME'.
1505
1506 For better control, use the options below.
1507
1508 Fine tuning of the installation directories:
1509 --bindir=DIR user executables [EPREFIX/bin]
1510 --sbindir=DIR system admin executables [EPREFIX/sbin]
1511 --libexecdir=DIR program executables [EPREFIX/libexec]
1512 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1513 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1514 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1515 --libdir=DIR object code libraries [EPREFIX/lib]
1516 --includedir=DIR C header files [PREFIX/include]
1517 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1518 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1519 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1520 --infodir=DIR info documentation [DATAROOTDIR/info]
1521 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1522 --mandir=DIR man documentation [DATAROOTDIR/man]
1523 --docdir=DIR documentation root [DATAROOTDIR/doc/libxcb]
1524 --htmldir=DIR html documentation [DOCDIR]
1525 --dvidir=DIR dvi documentation [DOCDIR]
1526 --pdfdir=DIR pdf documentation [DOCDIR]
1527 --psdir=DIR ps documentation [DOCDIR]
1528 _ACEOF
1529
1530 cat <<\_ACEOF
1531
1532 Program names:
1533 --program-prefix=PREFIX prepend PREFIX to installed program names
1534 --program-suffix=SUFFIX append SUFFIX to installed program names
1535 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1536
1537 System types:
1538 --build=BUILD configure for building on BUILD [guessed]
1539 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1540 _ACEOF
1541 fi
1542
1543 if test -n "$ac_init_help"; then
1544 case $ac_init_help in
1545 short | recursive ) echo "Configuration of libxcb 1.11:";;
1546 esac
1547 cat <<\_ACEOF
1548
1549 Optional Features:
1550 --disable-option-checking ignore unrecognized --enable/--with options
1551 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1552 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1553 --enable-silent-rules less verbose build output (undo: "make V=1")
1554 --disable-silent-rules verbose build output (undo: "make V=0")
1555 --enable-dependency-tracking
1556 do not reject slow dependency extractors
1557 --disable-dependency-tracking
1558 speeds up one-time build
1559 --enable-shared[=PKGS] build shared libraries [default=yes]
1560 --enable-static[=PKGS] build static libraries [default=yes]
1561 --enable-fast-install[=PKGS]
1562 optimize for fast installation [default=yes]
1563 --disable-libtool-lock avoid locking (might break parallel builds)
1564 --disable-selective-werror
1565 Turn off selective compiler errors. (default:
1566 enabled)
1567 --enable-strict-compilation
1568 Enable all warnings from compiler and make them
1569 errors (default: disabled)
1570 --enable-devel-docs Enable building the developer documentation
1571 (default: yes)
1572 --disable-sendfds Support FD passing (default: auto)
1573 --enable-composite Build XCB Composite Extension (default: "yes")
1574 --enable-damage Build XCB Damage Extension (default: "yes")
1575 --enable-dpms Build XCB DPMS Extension (default: "yes")
1576 --enable-dri2 Build XCB DRI2 Extension (default: "yes")
1577 --enable-dri3 Build XCB DRI3 Extension (default: "$sendfds")
1578 --enable-glx Build XCB GLX Extension (default: "yes")
1579 --enable-present Build XCB Present Extension (default: "yes")
1580 --enable-randr Build XCB RandR Extension (default: "yes")
1581 --enable-record Build XCB Record Extension (default: "yes")
1582 --enable-render Build XCB Render Extension (default: "yes")
1583 --enable-resource Build XCB Resource Extension (default: "yes")
1584 --enable-screensaver Build XCB Screensaver Extension (default: "yes")
1585 --enable-shape Build XCB Shape Extension (default: "yes")
1586 --enable-shm Build XCB Shm Extension (default: "yes")
1587 --enable-sync Build XCB Sync Extension (default: "yes")
1588 --enable-xevie Build XCB Xevie Extension (default: "yes")
1589 --enable-xfixes Build XCB XFixes Extension (default: "yes")
1590 --enable-xfree86-dri Build XCB XFree86-DRI Extension (default: "yes")
1591 --enable-xinerama Build XCB Xinerama Extension (default: "yes")
1592 --enable-xinput Build XCB XInput Extension (default: "no")
1593 --enable-xkb Build XCB XKB Extension (default: "yes")
1594 --enable-xprint Build XCB Xprint Extension (default: "yes")
1595 --enable-selinux Build XCB SELinux Extension (default: "no")
1596 --enable-xtest Build XCB XTest Extension (default: "yes")
1597 --enable-xv Build XCB Xv Extension (default: "yes")
1598 --enable-xvmc Build XCB XvMC Extension (default: "yes")
1599
1600 Optional Packages:
1601 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1602 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1603 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1604 both]
1605 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1606 --with-sysroot=DIR Search for dependent libraries within DIR
1607 (or the compiler's sysroot if not specified).
1608 --with-doxygen Use doxygen to regenerate documentation (default:
1609 auto)
1610 --with-queue-size=SIZE Set the XCB buffer queue size (default is 16384)
1611 --with-launchd Build with support for Apple's launchd (default:
1612 auto)
1613
1614 Some influential environment variables:
1615 PYTHON the Python interpreter
1616 CC C compiler command
1617 CFLAGS C compiler flags
1618 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1619 nonstandard directory <lib dir>
1620 LIBS libraries to pass to the linker, e.g. -l<library>
1621 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1622 you have headers in a nonstandard directory <include dir>
1623 CPP C preprocessor
1624 PKG_CONFIG path to pkg-config utility
1625 PKG_CONFIG_PATH
1626 directories to add to pkg-config's search path
1627 PKG_CONFIG_LIBDIR
1628 path overriding pkg-config's built-in search path
1629 DOXYGEN Path to doxygen command
1630 DOT Path to the dot graphics utility
1631 CHECK_CFLAGS
1632 C compiler flags for CHECK, overriding pkg-config
1633 CHECK_LIBS linker flags for CHECK, overriding pkg-config
1634 XCBPROTO_CFLAGS
1635 C compiler flags for XCBPROTO, overriding pkg-config
1636 XCBPROTO_LIBS
1637 linker flags for XCBPROTO, overriding pkg-config
1638 NEEDED_CFLAGS
1639 C compiler flags for NEEDED, overriding pkg-config
1640 NEEDED_LIBS linker flags for NEEDED, overriding pkg-config
1641 XDMCP_CFLAGS
1642 C compiler flags for XDMCP, overriding pkg-config
1643 XDMCP_LIBS linker flags for XDMCP, overriding pkg-config
1644
1645 Use these variables to override the choices made by `configure' or to help
1646 it to find libraries and programs with nonstandard names/locations.
1647
1648 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xcb>.
1649 _ACEOF
1650 ac_status=$?
1651 fi
1652
1653 if test "$ac_init_help" = "recursive"; then
1654 # If there are subdirs, report their specific --help.
1655 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1656 test -d "$ac_dir" ||
1657 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1658 continue
1659 ac_builddir=.
1660
1661 case "$ac_dir" in
1662 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1663 *)
1664 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1665 # A ".." for each directory in $ac_dir_suffix.
1666 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1667 case $ac_top_builddir_sub in
1668 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1669 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1670 esac ;;
1671 esac
1672 ac_abs_top_builddir=$ac_pwd
1673 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1674 # for backward compatibility:
1675 ac_top_builddir=$ac_top_build_prefix
1676
1677 case $srcdir in
1678 .) # We are building in place.
1679 ac_srcdir=.
1680 ac_top_srcdir=$ac_top_builddir_sub
1681 ac_abs_top_srcdir=$ac_pwd ;;
1682 [\\/]* | ?:[\\/]* ) # Absolute name.
1683 ac_srcdir=$srcdir$ac_dir_suffix;
1684 ac_top_srcdir=$srcdir
1685 ac_abs_top_srcdir=$srcdir ;;
1686 *) # Relative name.
1687 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1688 ac_top_srcdir=$ac_top_build_prefix$srcdir
1689 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1690 esac
1691 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1692
1693 cd "$ac_dir" || { ac_status=$?; continue; }
1694 # Check for guested configure.
1695 if test -f "$ac_srcdir/configure.gnu"; then
1696 echo &&
1697 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1698 elif test -f "$ac_srcdir/configure"; then
1699 echo &&
1700 $SHELL "$ac_srcdir/configure" --help=recursive
1701 else
1702 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1703 fi || ac_status=$?
1704 cd "$ac_pwd" || { ac_status=$?; break; }
1705 done
1706 fi
1707
1708 test -n "$ac_init_help" && exit $ac_status
1709 if $ac_init_version; then
1710 cat <<\_ACEOF
1711 libxcb configure 1.11
1712 generated by GNU Autoconf 2.69
1713
1714 Copyright (C) 2012 Free Software Foundation, Inc.
1715 This configure script is free software; the Free Software Foundation
1716 gives unlimited permission to copy, distribute and modify it.
1717 _ACEOF
1718 exit
1719 fi
1720
1721 ## ------------------------ ##
1722 ## Autoconf initialization. ##
1723 ## ------------------------ ##
1724
1725 # ac_fn_c_try_compile LINENO
1726 # --------------------------
1727 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1728 ac_fn_c_try_compile ()
1729 {
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 rm -f conftest.$ac_objext
1732 if { { ac_try="$ac_compile"
1733 case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736 esac
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_compile") 2>conftest.err
1740 ac_status=$?
1741 if test -s conftest.err; then
1742 grep -v '^ *+' conftest.err >conftest.er1
1743 cat conftest.er1 >&5
1744 mv -f conftest.er1 conftest.err
1745 fi
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; } && {
1748 test -z "$ac_c_werror_flag" ||
1749 test ! -s conftest.err
1750 } && test -s conftest.$ac_objext; then :
1751 ac_retval=0
1752 else
1753 $as_echo "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.$ac_ext >&5
1755
1756 ac_retval=1
1757 fi
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759 as_fn_set_status $ac_retval
1760
1761 } # ac_fn_c_try_compile
1762
1763 # ac_fn_c_try_cpp LINENO
1764 # ----------------------
1765 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1766 ac_fn_c_try_cpp ()
1767 {
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 if { { ac_try="$ac_cpp conftest.$ac_ext"
1770 case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773 esac
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1777 ac_status=$?
1778 if test -s conftest.err; then
1779 grep -v '^ *+' conftest.err >conftest.er1
1780 cat conftest.er1 >&5
1781 mv -f conftest.er1 conftest.err
1782 fi
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } > conftest.i && {
1785 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1786 test ! -s conftest.err
1787 }; then :
1788 ac_retval=0
1789 else
1790 $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1792
1793 ac_retval=1
1794 fi
1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796 as_fn_set_status $ac_retval
1797
1798 } # ac_fn_c_try_cpp
1799
1800 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1801 # -------------------------------------------------------
1802 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1803 # the include files in INCLUDES and setting the cache variable VAR
1804 # accordingly.
1805 ac_fn_c_check_header_mongrel ()
1806 {
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 if eval \${$3+:} false; then :
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1810 $as_echo_n "checking for $2... " >&6; }
1811 if eval \${$3+:} false; then :
1812 $as_echo_n "(cached) " >&6
1813 fi
1814 eval ac_res=\$$3
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816 $as_echo "$ac_res" >&6; }
1817 else
1818 # Is the header compilable?
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1820 $as_echo_n "checking $2 usability... " >&6; }
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h. */
1823 $4
1824 #include <$2>
1825 _ACEOF
1826 if ac_fn_c_try_compile "$LINENO"; then :
1827 ac_header_compiler=yes
1828 else
1829 ac_header_compiler=no
1830 fi
1831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1833 $as_echo "$ac_header_compiler" >&6; }
1834
1835 # Is the header present?
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1837 $as_echo_n "checking $2 presence... " >&6; }
1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h. */
1840 #include <$2>
1841 _ACEOF
1842 if ac_fn_c_try_cpp "$LINENO"; then :
1843 ac_header_preproc=yes
1844 else
1845 ac_header_preproc=no
1846 fi
1847 rm -f conftest.err conftest.i conftest.$ac_ext
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1849 $as_echo "$ac_header_preproc" >&6; }
1850
1851 # So? What about this header?
1852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1853 yes:no: )
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1855 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1857 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1858 ;;
1859 no:yes:* )
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1861 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1863 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1865 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1867 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&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 ( $as_echo "## --------------------------------------------------------------------- ##
1871 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xcb ##
1872 ## --------------------------------------------------------------------- ##"
1873 ) | sed "s/^/$as_me: WARNING: /" >&2
1874 ;;
1875 esac
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1877 $as_echo_n "checking for $2... " >&6; }
1878 if eval \${$3+:} false; then :
1879 $as_echo_n "(cached) " >&6
1880 else
1881 eval "$3=\$ac_header_compiler"
1882 fi
1883 eval ac_res=\$$3
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1885 $as_echo "$ac_res" >&6; }
1886 fi
1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888
1889 } # ac_fn_c_check_header_mongrel
1890
1891 # ac_fn_c_try_run LINENO
1892 # ----------------------
1893 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1894 # that executables *can* be run.
1895 ac_fn_c_try_run ()
1896 {
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 if { { ac_try="$ac_link"
1899 case "(($ac_try" in
1900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901 *) ac_try_echo=$ac_try;;
1902 esac
1903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904 $as_echo "$ac_try_echo"; } >&5
1905 (eval "$ac_link") 2>&5
1906 ac_status=$?
1907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1909 { { case "(($ac_try" in
1910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1911 *) ac_try_echo=$ac_try;;
1912 esac
1913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1914 $as_echo "$ac_try_echo"; } >&5
1915 (eval "$ac_try") 2>&5
1916 ac_status=$?
1917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1918 test $ac_status = 0; }; }; then :
1919 ac_retval=0
1920 else
1921 $as_echo "$as_me: program exited with status $ac_status" >&5
1922 $as_echo "$as_me: failed program was:" >&5
1923 sed 's/^/| /' conftest.$ac_ext >&5
1924
1925 ac_retval=$ac_status
1926 fi
1927 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929 as_fn_set_status $ac_retval
1930
1931 } # ac_fn_c_try_run
1932
1933 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1934 # -------------------------------------------------------
1935 # Tests whether HEADER exists and can be compiled using the include files in
1936 # INCLUDES, setting the cache variable VAR accordingly.
1937 ac_fn_c_check_header_compile ()
1938 {
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1941 $as_echo_n "checking for $2... " >&6; }
1942 if eval \${$3+:} false; then :
1943 $as_echo_n "(cached) " >&6
1944 else
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1947 $4
1948 #include <$2>
1949 _ACEOF
1950 if ac_fn_c_try_compile "$LINENO"; then :
1951 eval "$3=yes"
1952 else
1953 eval "$3=no"
1954 fi
1955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1956 fi
1957 eval ac_res=\$$3
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1959 $as_echo "$ac_res" >&6; }
1960 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1961
1962 } # ac_fn_c_check_header_compile
1963
1964 # ac_fn_c_try_link LINENO
1965 # -----------------------
1966 # Try to link conftest.$ac_ext, and return whether this succeeded.
1967 ac_fn_c_try_link ()
1968 {
1969 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970 rm -f conftest.$ac_objext conftest$ac_exeext
1971 if { { ac_try="$ac_link"
1972 case "(($ac_try" in
1973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1974 *) ac_try_echo=$ac_try;;
1975 esac
1976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1977 $as_echo "$ac_try_echo"; } >&5
1978 (eval "$ac_link") 2>conftest.err
1979 ac_status=$?
1980 if test -s conftest.err; then
1981 grep -v '^ *+' conftest.err >conftest.er1
1982 cat conftest.er1 >&5
1983 mv -f conftest.er1 conftest.err
1984 fi
1985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1986 test $ac_status = 0; } && {
1987 test -z "$ac_c_werror_flag" ||
1988 test ! -s conftest.err
1989 } && test -s conftest$ac_exeext && {
1990 test "$cross_compiling" = yes ||
1991 test -x conftest$ac_exeext
1992 }; then :
1993 ac_retval=0
1994 else
1995 $as_echo "$as_me: failed program was:" >&5
1996 sed 's/^/| /' conftest.$ac_ext >&5
1997
1998 ac_retval=1
1999 fi
2000 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2001 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2002 # interfere with the next link command; also delete a directory that is
2003 # left behind by Apple's compiler. We do this before executing the actions.
2004 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2005 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2006 as_fn_set_status $ac_retval
2007
2008 } # ac_fn_c_try_link
2009
2010 # ac_fn_c_check_func LINENO FUNC VAR
2011 # ----------------------------------
2012 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2013 ac_fn_c_check_func ()
2014 {
2015 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2017 $as_echo_n "checking for $2... " >&6; }
2018 if eval \${$3+:} false; then :
2019 $as_echo_n "(cached) " >&6
2020 else
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2023 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2025 #define $2 innocuous_$2
2026
2027 /* System header to define __stub macros and hopefully few prototypes,
2028 which can conflict with char $2 (); below.
2029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2030 <limits.h> exists even on freestanding compilers. */
2031
2032 #ifdef __STDC__
2033 # include <limits.h>
2034 #else
2035 # include <assert.h>
2036 #endif
2037
2038 #undef $2
2039
2040 /* Override any GCC internal prototype to avoid an error.
2041 Use char because int might match the return type of a GCC
2042 builtin and then its argument prototype would still apply. */
2043 #ifdef __cplusplus
2044 extern "C"
2045 #endif
2046 char $2 ();
2047 /* The GNU C library defines this for functions which it implements
2048 to always fail with ENOSYS. Some functions are actually named
2049 something starting with __ and the normal name is an alias. */
2050 #if defined __stub_$2 || defined __stub___$2
2051 choke me
2052 #endif
2053
2054 int
2055 main ()
2056 {
2057 return $2 ();
2058 ;
2059 return 0;
2060 }
2061 _ACEOF
2062 if ac_fn_c_try_link "$LINENO"; then :
2063 eval "$3=yes"
2064 else
2065 eval "$3=no"
2066 fi
2067 rm -f core conftest.err conftest.$ac_objext \
2068 conftest$ac_exeext conftest.$ac_ext
2069 fi
2070 eval ac_res=\$$3
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2072 $as_echo "$ac_res" >&6; }
2073 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2074
2075 } # ac_fn_c_check_func
2076
2077 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2078 # ---------------------------------------------
2079 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2080 # accordingly.
2081 ac_fn_c_check_decl ()
2082 {
2083 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084 as_decl_name=`echo $2|sed 's/ *(.*//'`
2085 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2087 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2088 if eval \${$3+:} false; then :
2089 $as_echo_n "(cached) " >&6
2090 else
2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h. */
2093 $4
2094 int
2095 main ()
2096 {
2097 #ifndef $as_decl_name
2098 #ifdef __cplusplus
2099 (void) $as_decl_use;
2100 #else
2101 (void) $as_decl_name;
2102 #endif
2103 #endif
2104
2105 ;
2106 return 0;
2107 }
2108 _ACEOF
2109 if ac_fn_c_try_compile "$LINENO"; then :
2110 eval "$3=yes"
2111 else
2112 eval "$3=no"
2113 fi
2114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115 fi
2116 eval ac_res=\$$3
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2118 $as_echo "$ac_res" >&6; }
2119 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2120
2121 } # ac_fn_c_check_decl
2122
2123 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2124 # ----------------------------------------------------
2125 # Tries to find if the field MEMBER exists in type AGGR, after including
2126 # INCLUDES, setting cache variable VAR accordingly.
2127 ac_fn_c_check_member ()
2128 {
2129 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2131 $as_echo_n "checking for $2.$3... " >&6; }
2132 if eval \${$4+:} false; then :
2133 $as_echo_n "(cached) " >&6
2134 else
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2137 $5
2138 int
2139 main ()
2140 {
2141 static $2 ac_aggr;
2142 if (ac_aggr.$3)
2143 return 0;
2144 ;
2145 return 0;
2146 }
2147 _ACEOF
2148 if ac_fn_c_try_compile "$LINENO"; then :
2149 eval "$4=yes"
2150 else
2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152 /* end confdefs.h. */
2153 $5
2154 int
2155 main ()
2156 {
2157 static $2 ac_aggr;
2158 if (sizeof ac_aggr.$3)
2159 return 0;
2160 ;
2161 return 0;
2162 }
2163 _ACEOF
2164 if ac_fn_c_try_compile "$LINENO"; then :
2165 eval "$4=yes"
2166 else
2167 eval "$4=no"
2168 fi
2169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170 fi
2171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172 fi
2173 eval ac_res=\$$4
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2175 $as_echo "$ac_res" >&6; }
2176 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2177
2178 } # ac_fn_c_check_member
2179 cat >config.log <<_ACEOF
2180 This file contains any messages produced by compilers while
2181 running configure, to aid debugging if configure makes a mistake.
2182
2183 It was created by libxcb $as_me 1.11, which was
2184 generated by GNU Autoconf 2.69. Invocation command line was
2185
2186 $ $0 $@
2187
2188 _ACEOF
2189 exec 5>>config.log
2190 {
2191 cat <<_ASUNAME
2192 ## --------- ##
2193 ## Platform. ##
2194 ## --------- ##
2195
2196 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2197 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2198 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2199 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2200 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2201
2202 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2203 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2204
2205 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2206 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2207 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2208 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2209 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2210 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2211 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2212
2213 _ASUNAME
2214
2215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216 for as_dir in $PATH
2217 do
2218 IFS=$as_save_IFS
2219 test -z "$as_dir" && as_dir=.
2220 $as_echo "PATH: $as_dir"
2221 done
2222 IFS=$as_save_IFS
2223
2224 } >&5
2225
2226 cat >&5 <<_ACEOF
2227
2228
2229 ## ----------- ##
2230 ## Core tests. ##
2231 ## ----------- ##
2232
2233 _ACEOF
2234
2235
2236 # Keep a trace of the command line.
2237 # Strip out --no-create and --no-recursion so they do not pile up.
2238 # Strip out --silent because we don't want to record it for future runs.
2239 # Also quote any args containing shell meta-characters.
2240 # Make two passes to allow for proper duplicate-argument suppression.
2241 ac_configure_args=
2242 ac_configure_args0=
2243 ac_configure_args1=
2244 ac_must_keep_next=false
2245 for ac_pass in 1 2
2246 do
2247 for ac_arg
2248 do
2249 case $ac_arg in
2250 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2251 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2252 | -silent | --silent | --silen | --sile | --sil)
2253 continue ;;
2254 *\'*)
2255 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2256 esac
2257 case $ac_pass in
2258 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2259 2)
2260 as_fn_append ac_configure_args1 " '$ac_arg'"
2261 if test $ac_must_keep_next = true; then
2262 ac_must_keep_next=false # Got value, back to normal.
2263 else
2264 case $ac_arg in
2265 *=* | --config-cache | -C | -disable-* | --disable-* \
2266 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2267 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2268 | -with-* | --with-* | -without-* | --without-* | --x)
2269 case "$ac_configure_args0 " in
2270 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2271 esac
2272 ;;
2273 -* ) ac_must_keep_next=true ;;
2274 esac
2275 fi
2276 as_fn_append ac_configure_args " '$ac_arg'"
2277 ;;
2278 esac
2279 done
2280 done
2281 { ac_configure_args0=; unset ac_configure_args0;}
2282 { ac_configure_args1=; unset ac_configure_args1;}
2283
2284 # When interrupted or exit'd, cleanup temporary files, and complete
2285 # config.log. We remove comments because anyway the quotes in there
2286 # would cause problems or look ugly.
2287 # WARNING: Use '\'' to represent an apostrophe within the trap.
2288 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2289 trap 'exit_status=$?
2290 # Save into config.log some information that might help in debugging.
2291 {
2292 echo
2293
2294 $as_echo "## ---------------- ##
2295 ## Cache variables. ##
2296 ## ---------------- ##"
2297 echo
2298 # The following way of writing the cache mishandles newlines in values,
2299 (
2300 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2301 eval ac_val=\$$ac_var
2302 case $ac_val in #(
2303 *${as_nl}*)
2304 case $ac_var in #(
2305 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2306 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2307 esac
2308 case $ac_var in #(
2309 _ | IFS | as_nl) ;; #(
2310 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2311 *) { eval $ac_var=; unset $ac_var;} ;;
2312 esac ;;
2313 esac
2314 done
2315 (set) 2>&1 |
2316 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2317 *${as_nl}ac_space=\ *)
2318 sed -n \
2319 "s/'\''/'\''\\\\'\'''\''/g;
2320 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2321 ;; #(
2322 *)
2323 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2324 ;;
2325 esac |
2326 sort
2327 )
2328 echo
2329
2330 $as_echo "## ----------------- ##
2331 ## Output variables. ##
2332 ## ----------------- ##"
2333 echo
2334 for ac_var in $ac_subst_vars
2335 do
2336 eval ac_val=\$$ac_var
2337 case $ac_val in
2338 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2339 esac
2340 $as_echo "$ac_var='\''$ac_val'\''"
2341 done | sort
2342 echo
2343
2344 if test -n "$ac_subst_files"; then
2345 $as_echo "## ------------------- ##
2346 ## File substitutions. ##
2347 ## ------------------- ##"
2348 echo
2349 for ac_var in $ac_subst_files
2350 do
2351 eval ac_val=\$$ac_var
2352 case $ac_val in
2353 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2354 esac
2355 $as_echo "$ac_var='\''$ac_val'\''"
2356 done | sort
2357 echo
2358 fi
2359
2360 if test -s confdefs.h; then
2361 $as_echo "## ----------- ##
2362 ## confdefs.h. ##
2363 ## ----------- ##"
2364 echo
2365 cat confdefs.h
2366 echo
2367 fi
2368 test "$ac_signal" != 0 &&
2369 $as_echo "$as_me: caught signal $ac_signal"
2370 $as_echo "$as_me: exit $exit_status"
2371 } >&5
2372 rm -f core *.core core.conftest.* &&
2373 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2374 exit $exit_status
2375 ' 0
2376 for ac_signal in 1 2 13 15; do
2377 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2378 done
2379 ac_signal=0
2380
2381 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2382 rm -f -r conftest* confdefs.h
2383
2384 $as_echo "/* confdefs.h */" > confdefs.h
2385
2386 # Predefined preprocessor variables.
2387
2388 cat >>confdefs.h <<_ACEOF
2389 #define PACKAGE_NAME "$PACKAGE_NAME"
2390 _ACEOF
2391
2392 cat >>confdefs.h <<_ACEOF
2393 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2394 _ACEOF
2395
2396 cat >>confdefs.h <<_ACEOF
2397 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2398 _ACEOF
2399
2400 cat >>confdefs.h <<_ACEOF
2401 #define PACKAGE_STRING "$PACKAGE_STRING"
2402 _ACEOF
2403
2404 cat >>confdefs.h <<_ACEOF
2405 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2406 _ACEOF
2407
2408 cat >>confdefs.h <<_ACEOF
2409 #define PACKAGE_URL "$PACKAGE_URL"
2410 _ACEOF
2411
2412
2413 # Let the site file select an alternate cache file if it wants to.
2414 # Prefer an explicitly selected file to automatically selected ones.
2415 ac_site_file1=NONE
2416 ac_site_file2=NONE
2417 if test -n "$CONFIG_SITE"; then
2418 # We do not want a PATH search for config.site.
2419 case $CONFIG_SITE in #((
2420 -*) ac_site_file1=./$CONFIG_SITE;;
2421 */*) ac_site_file1=$CONFIG_SITE;;
2422 *) ac_site_file1=./$CONFIG_SITE;;
2423 esac
2424 elif test "x$prefix" != xNONE; then
2425 ac_site_file1=$prefix/share/config.site
2426 ac_site_file2=$prefix/etc/config.site
2427 else
2428 ac_site_file1=$ac_default_prefix/share/config.site
2429 ac_site_file2=$ac_default_prefix/etc/config.site
2430 fi
2431 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2432 do
2433 test "x$ac_site_file" = xNONE && continue
2434 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2436 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2437 sed 's/^/| /' "$ac_site_file" >&5
2438 . "$ac_site_file" \
2439 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2441 as_fn_error $? "failed to load site script $ac_site_file
2442 See \`config.log' for more details" "$LINENO" 5; }
2443 fi
2444 done
2445
2446 if test -r "$cache_file"; then
2447 # Some versions of bash will fail to source /dev/null (special files
2448 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2449 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2451 $as_echo "$as_me: loading cache $cache_file" >&6;}
2452 case $cache_file in
2453 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2454 *) . "./$cache_file";;
2455 esac
2456 fi
2457 else
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2459 $as_echo "$as_me: creating cache $cache_file" >&6;}
2460 >$cache_file
2461 fi
2462
2463 # Check that the precious variables saved in the cache have kept the same
2464 # value.
2465 ac_cache_corrupted=false
2466 for ac_var in $ac_precious_vars; do
2467 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2468 eval ac_new_set=\$ac_env_${ac_var}_set
2469 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2470 eval ac_new_val=\$ac_env_${ac_var}_value
2471 case $ac_old_set,$ac_new_set in
2472 set,)
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2474 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2475 ac_cache_corrupted=: ;;
2476 ,set)
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2478 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2479 ac_cache_corrupted=: ;;
2480 ,);;
2481 *)
2482 if test "x$ac_old_val" != "x$ac_new_val"; then
2483 # differences in whitespace do not lead to failure.
2484 ac_old_val_w=`echo x $ac_old_val`
2485 ac_new_val_w=`echo x $ac_new_val`
2486 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2488 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2489 ac_cache_corrupted=:
2490 else
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2492 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2493 eval $ac_var=\$ac_old_val
2494 fi
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2496 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2498 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2499 fi;;
2500 esac
2501 # Pass precious variables to config.status.
2502 if test "$ac_new_set" = set; then
2503 case $ac_new_val in
2504 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2505 *) ac_arg=$ac_var=$ac_new_val ;;
2506 esac
2507 case " $ac_configure_args " in
2508 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2509 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2510 esac
2511 fi
2512 done
2513 if $ac_cache_corrupted; then
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2517 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2518 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2519 fi
2520 ## -------------------- ##
2521 ## Main body of script. ##
2522 ## -------------------- ##
2523
2524 ac_ext=c
2525 ac_cpp='$CPP $CPPFLAGS'
2526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2529
2530
2531 ac_aux_dir=
2532 for ac_dir in build-aux "$srcdir"/build-aux; do
2533 if test -f "$ac_dir/install-sh"; then
2534 ac_aux_dir=$ac_dir
2535 ac_install_sh="$ac_aux_dir/install-sh -c"
2536 break
2537 elif test -f "$ac_dir/install.sh"; then
2538 ac_aux_dir=$ac_dir
2539 ac_install_sh="$ac_aux_dir/install.sh -c"
2540 break
2541 elif test -f "$ac_dir/shtool"; then
2542 ac_aux_dir=$ac_dir
2543 ac_install_sh="$ac_aux_dir/shtool install -c"
2544 break
2545 fi
2546 done
2547 if test -z "$ac_aux_dir"; then
2548 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2549 fi
2550
2551 # These three variables are undocumented and unsupported,
2552 # and are intended to be withdrawn in a future Autoconf release.
2553 # They can cause serious problems if a builder's source tree is in a directory
2554 # whose full name contains unusual characters.
2555 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2556 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2557 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2558
2559
2560
2561
2562 ac_config_headers="$ac_config_headers src/config.h"
2563
2564
2565 # Initialize Automake
2566 am__api_version='1.14'
2567
2568 # Find a good install program. We prefer a C program (faster),
2569 # so one script is as good as another. But avoid the broken or
2570 # incompatible versions:
2571 # SysV /etc/install, /usr/sbin/install
2572 # SunOS /usr/etc/install
2573 # IRIX /sbin/install
2574 # AIX /bin/install
2575 # AmigaOS /C/install, which installs bootblocks on floppy discs
2576 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2577 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2578 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2579 # OS/2's system install, which has a completely different semantic
2580 # ./install, which can be erroneously created by make from ./install.sh.
2581 # Reject install programs that cannot install multiple files.
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2583 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2584 if test -z "$INSTALL"; then
2585 if ${ac_cv_path_install+:} false; then :
2586 $as_echo_n "(cached) " >&6
2587 else
2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 for as_dir in $PATH
2590 do
2591 IFS=$as_save_IFS
2592 test -z "$as_dir" && as_dir=.
2593 # Account for people who put trailing slashes in PATH elements.
2594 case $as_dir/ in #((
2595 ./ | .// | /[cC]/* | \
2596 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2597 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2598 /usr/ucb/* ) ;;
2599 *)
2600 # OSF1 and SCO ODT 3.0 have their own names for install.
2601 # Don't use installbsd from OSF since it installs stuff as root
2602 # by default.
2603 for ac_prog in ginstall scoinst install; do
2604 for ac_exec_ext in '' $ac_executable_extensions; do
2605 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2606 if test $ac_prog = install &&
2607 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2608 # AIX install. It has an incompatible calling convention.
2609 :
2610 elif test $ac_prog = install &&
2611 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2612 # program-specific install script used by HP pwplus--don't use.
2613 :
2614 else
2615 rm -rf conftest.one conftest.two conftest.dir
2616 echo one > conftest.one
2617 echo two > conftest.two
2618 mkdir conftest.dir
2619 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2620 test -s conftest.one && test -s conftest.two &&
2621 test -s conftest.dir/conftest.one &&
2622 test -s conftest.dir/conftest.two
2623 then
2624 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2625 break 3
2626 fi
2627 fi
2628 fi
2629 done
2630 done
2631 ;;
2632 esac
2633
2634 done
2635 IFS=$as_save_IFS
2636
2637 rm -rf conftest.one conftest.two conftest.dir
2638
2639 fi
2640 if test "${ac_cv_path_install+set}" = set; then
2641 INSTALL=$ac_cv_path_install
2642 else
2643 # As a last resort, use the slow shell script. Don't cache a
2644 # value for INSTALL within a source directory, because that will
2645 # break other packages using the cache if that directory is
2646 # removed, or if the value is a relative name.
2647 INSTALL=$ac_install_sh
2648 fi
2649 fi
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2651 $as_echo "$INSTALL" >&6; }
2652
2653 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2654 # It thinks the first close brace ends the variable substitution.
2655 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2656
2657 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2658
2659 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2660
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2662 $as_echo_n "checking whether build environment is sane... " >&6; }
2663 # Reject unsafe characters in $srcdir or the absolute working directory
2664 # name. Accept space and tab only in the latter.
2665 am_lf='
2666 '
2667 case `pwd` in
2668 *[\\\"\#\$\&\'\`$am_lf]*)
2669 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2670 esac
2671 case $srcdir in
2672 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2673 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2674 esac
2675
2676 # Do 'set' in a subshell so we don't clobber the current shell's
2677 # arguments. Must try -L first in case configure is actually a
2678 # symlink; some systems play weird games with the mod time of symlinks
2679 # (eg FreeBSD returns the mod time of the symlink's containing
2680 # directory).
2681 if (
2682 am_has_slept=no
2683 for am_try in 1 2; do
2684 echo "timestamp, slept: $am_has_slept" > conftest.file
2685 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2686 if test "$*" = "X"; then
2687 # -L didn't work.
2688 set X `ls -t "$srcdir/configure" conftest.file`
2689 fi
2690 if test "$*" != "X $srcdir/configure conftest.file" \
2691 && test "$*" != "X conftest.file $srcdir/configure"; then
2692
2693 # If neither matched, then we have a broken ls. This can happen
2694 # if, for instance, CONFIG_SHELL is bash and it inherits a
2695 # broken ls alias from the environment. This has actually
2696 # happened. Such a system could not be considered "sane".
2697 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2698 alias in your environment" "$LINENO" 5
2699 fi
2700 if test "$2" = conftest.file || test $am_try -eq 2; then
2701 break
2702 fi
2703 # Just in case.
2704 sleep 1
2705 am_has_slept=yes
2706 done
2707 test "$2" = conftest.file
2708 )
2709 then
2710 # Ok.
2711 :
2712 else
2713 as_fn_error $? "newly created file is older than distributed files!
2714 Check your system clock" "$LINENO" 5
2715 fi
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2717 $as_echo "yes" >&6; }
2718 # If we didn't sleep, we still need to ensure time stamps of config.status and
2719 # generated files are strictly newer.
2720 am_sleep_pid=
2721 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2722 ( sleep 1 ) &
2723 am_sleep_pid=$!
2724 fi
2725
2726 rm -f conftest.file
2727
2728 test "$program_prefix" != NONE &&
2729 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2730 # Use a double $ so make ignores it.
2731 test "$program_suffix" != NONE &&
2732 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2733 # Double any \ or $.
2734 # By default was `s,x,x', remove it if useless.
2735 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2736 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2737
2738 # expand $ac_aux_dir to an absolute path
2739 am_aux_dir=`cd $ac_aux_dir && pwd`
2740
2741 if test x"${MISSING+set}" != xset; then
2742 case $am_aux_dir in
2743 *\ * | *\ *)
2744 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2745 *)
2746 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2747 esac
2748 fi
2749 # Use eval to expand $SHELL
2750 if eval "$MISSING --is-lightweight"; then
2751 am_missing_run="$MISSING "
2752 else
2753 am_missing_run=
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2755 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2756 fi
2757
2758 if test x"${install_sh}" != xset; then
2759 case $am_aux_dir in
2760 *\ * | *\ *)
2761 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2762 *)
2763 install_sh="\${SHELL} $am_aux_dir/install-sh"
2764 esac
2765 fi
2766
2767 # Installed binaries are usually stripped using 'strip' when the user
2768 # run "make install-strip". However 'strip' might not be the right
2769 # tool to use in cross-compilation environments, therefore Automake
2770 # will honor the 'STRIP' environment variable to overrule this program.
2771 if test "$cross_compiling" != no; then
2772 if test -n "$ac_tool_prefix"; then
2773 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2774 set dummy ${ac_tool_prefix}strip; ac_word=$2
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2776 $as_echo_n "checking for $ac_word... " >&6; }
2777 if ${ac_cv_prog_STRIP+:} false; then :
2778 $as_echo_n "(cached) " >&6
2779 else
2780 if test -n "$STRIP"; then
2781 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2782 else
2783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 for as_dir in $PATH
2785 do
2786 IFS=$as_save_IFS
2787 test -z "$as_dir" && as_dir=.
2788 for ac_exec_ext in '' $ac_executable_extensions; do
2789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2790 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2792 break 2
2793 fi
2794 done
2795 done
2796 IFS=$as_save_IFS
2797
2798 fi
2799 fi
2800 STRIP=$ac_cv_prog_STRIP
2801 if test -n "$STRIP"; then
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2803 $as_echo "$STRIP" >&6; }
2804 else
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2806 $as_echo "no" >&6; }
2807 fi
2808
2809
2810 fi
2811 if test -z "$ac_cv_prog_STRIP"; then
2812 ac_ct_STRIP=$STRIP
2813 # Extract the first word of "strip", so it can be a program name with args.
2814 set dummy strip; ac_word=$2
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2816 $as_echo_n "checking for $ac_word... " >&6; }
2817 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2818 $as_echo_n "(cached) " >&6
2819 else
2820 if test -n "$ac_ct_STRIP"; then
2821 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2822 else
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 for as_dir in $PATH
2825 do
2826 IFS=$as_save_IFS
2827 test -z "$as_dir" && as_dir=.
2828 for ac_exec_ext in '' $ac_executable_extensions; do
2829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2830 ac_cv_prog_ac_ct_STRIP="strip"
2831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2832 break 2
2833 fi
2834 done
2835 done
2836 IFS=$as_save_IFS
2837
2838 fi
2839 fi
2840 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2841 if test -n "$ac_ct_STRIP"; then
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2843 $as_echo "$ac_ct_STRIP" >&6; }
2844 else
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2846 $as_echo "no" >&6; }
2847 fi
2848
2849 if test "x$ac_ct_STRIP" = x; then
2850 STRIP=":"
2851 else
2852 case $cross_compiling:$ac_tool_warned in
2853 yes:)
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2855 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2856 ac_tool_warned=yes ;;
2857 esac
2858 STRIP=$ac_ct_STRIP
2859 fi
2860 else
2861 STRIP="$ac_cv_prog_STRIP"
2862 fi
2863
2864 fi
2865 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2866
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2868 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2869 if test -z "$MKDIR_P"; then
2870 if ${ac_cv_path_mkdir+:} false; then :
2871 $as_echo_n "(cached) " >&6
2872 else
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2875 do
2876 IFS=$as_save_IFS
2877 test -z "$as_dir" && as_dir=.
2878 for ac_prog in mkdir gmkdir; do
2879 for ac_exec_ext in '' $ac_executable_extensions; do
2880 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2881 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2882 'mkdir (GNU coreutils) '* | \
2883 'mkdir (coreutils) '* | \
2884 'mkdir (fileutils) '4.1*)
2885 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2886 break 3;;
2887 esac
2888 done
2889 done
2890 done
2891 IFS=$as_save_IFS
2892
2893 fi
2894
2895 test -d ./--version && rmdir ./--version
2896 if test "${ac_cv_path_mkdir+set}" = set; then
2897 MKDIR_P="$ac_cv_path_mkdir -p"
2898 else
2899 # As a last resort, use the slow shell script. Don't cache a
2900 # value for MKDIR_P within a source directory, because that will
2901 # break other packages using the cache if that directory is
2902 # removed, or if the value is a relative name.
2903 MKDIR_P="$ac_install_sh -d"
2904 fi
2905 fi
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2907 $as_echo "$MKDIR_P" >&6; }
2908
2909 for ac_prog in gawk mawk nawk awk
2910 do
2911 # Extract the first word of "$ac_prog", so it can be a program name with args.
2912 set dummy $ac_prog; ac_word=$2
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2914 $as_echo_n "checking for $ac_word... " >&6; }
2915 if ${ac_cv_prog_AWK+:} false; then :
2916 $as_echo_n "(cached) " >&6
2917 else
2918 if test -n "$AWK"; then
2919 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2920 else
2921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 for as_dir in $PATH
2923 do
2924 IFS=$as_save_IFS
2925 test -z "$as_dir" && as_dir=.
2926 for ac_exec_ext in '' $ac_executable_extensions; do
2927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2928 ac_cv_prog_AWK="$ac_prog"
2929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2930 break 2
2931 fi
2932 done
2933 done
2934 IFS=$as_save_IFS
2935
2936 fi
2937 fi
2938 AWK=$ac_cv_prog_AWK
2939 if test -n "$AWK"; then
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2941 $as_echo "$AWK" >&6; }
2942 else
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2944 $as_echo "no" >&6; }
2945 fi
2946
2947
2948 test -n "$AWK" && break
2949 done
2950
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2952 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2953 set x ${MAKE-make}
2954 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2955 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2956 $as_echo_n "(cached) " >&6
2957 else
2958 cat >conftest.make <<\_ACEOF
2959 SHELL = /bin/sh
2960 all:
2961 @echo '@@@%%%=$(MAKE)=@@@%%%'
2962 _ACEOF
2963 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2964 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2965 *@@@%%%=?*=@@@%%%*)
2966 eval ac_cv_prog_make_${ac_make}_set=yes;;
2967 *)
2968 eval ac_cv_prog_make_${ac_make}_set=no;;
2969 esac
2970 rm -f conftest.make
2971 fi
2972 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2974 $as_echo "yes" >&6; }
2975 SET_MAKE=
2976 else
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978 $as_echo "no" >&6; }
2979 SET_MAKE="MAKE=${MAKE-make}"
2980 fi
2981
2982 rm -rf .tst 2>/dev/null
2983 mkdir .tst 2>/dev/null
2984 if test -d .tst; then
2985 am__leading_dot=.
2986 else
2987 am__leading_dot=_
2988 fi
2989 rmdir .tst 2>/dev/null
2990
2991 # Check whether --enable-silent-rules was given.
2992 if test "${enable_silent_rules+set}" = set; then :
2993 enableval=$enable_silent_rules;
2994 fi
2995
2996 case $enable_silent_rules in # (((
2997 yes) AM_DEFAULT_VERBOSITY=0;;
2998 no) AM_DEFAULT_VERBOSITY=1;;
2999 *) AM_DEFAULT_VERBOSITY=1;;
3000 esac
3001 am_make=${MAKE-make}
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3003 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3004 if ${am_cv_make_support_nested_variables+:} false; then :
3005 $as_echo_n "(cached) " >&6
3006 else
3007 if $as_echo 'TRUE=$(BAR$(V))
3008 BAR0=false
3009 BAR1=true
3010 V=1
3011 am__doit:
3012 @$(TRUE)
3013 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3014 am_cv_make_support_nested_variables=yes
3015 else
3016 am_cv_make_support_nested_variables=no
3017 fi
3018 fi
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3020 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3021 if test $am_cv_make_support_nested_variables = yes; then
3022 AM_V='$(V)'
3023 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3024 else
3025 AM_V=$AM_DEFAULT_VERBOSITY
3026 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3027 fi
3028 AM_BACKSLASH='\'
3029
3030 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3031 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3032 # is not polluted with repeated "-I."
3033 am__isrc=' -I$(srcdir)'
3034 # test to see if srcdir already configured
3035 if test -f $srcdir/config.status; then
3036 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3037 fi
3038 fi
3039
3040 # test whether we have cygpath
3041 if test -z "$CYGPATH_W"; then
3042 if (cygpath --version) >/dev/null 2>/dev/null; then
3043 CYGPATH_W='cygpath -w'
3044 else
3045 CYGPATH_W=echo
3046 fi
3047 fi
3048
3049
3050 # Define the identity of the package.
3051 PACKAGE='libxcb'
3052 VERSION='1.11'
3053
3054
3055 cat >>confdefs.h <<_ACEOF
3056 #define PACKAGE "$PACKAGE"
3057 _ACEOF
3058
3059
3060 cat >>confdefs.h <<_ACEOF
3061 #define VERSION "$VERSION"
3062 _ACEOF
3063
3064 # Some tools Automake needs.
3065
3066 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3067
3068
3069 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3070
3071
3072 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3073
3074
3075 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3076
3077
3078 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3079
3080 # For better backward compatibility. To be removed once Automake 1.9.x
3081 # dies out for good. For more background, see:
3082 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3083 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3084 mkdir_p='$(MKDIR_P)'
3085
3086 # We need awk for the "check" target. The system "awk" is bad on
3087 # some platforms.
3088 # Always define AMTAR for backward compatibility. Yes, it's still used
3089 # in the wild :-( We should find a proper way to deprecate it ...
3090 AMTAR='$${TAR-tar}'
3091
3092
3093 # We'll loop over all known methods to create a tar archive until one works.
3094 _am_tools='gnutar pax cpio none'
3095
3096 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3097
3098
3099
3100
3101
3102
3103 # POSIX will say in a future version that running "rm -f" with no argument
3104 # is OK; and we want to be able to make that assumption in our Makefile
3105 # recipes. So use an aggressive probe to check that the usage we want is
3106 # actually supported "in the wild" to an acceptable degree.
3107 # See automake bug#10828.
3108 # To make any issue more visible, cause the running configure to be aborted
3109 # by default if the 'rm' program in use doesn't match our expectations; the
3110 # user can still override this though.
3111 if rm -f && rm -fr && rm -rf; then : OK; else
3112 cat >&2 <<'END'
3113 Oops!
3114
3115 Your 'rm' program seems unable to run without file operands specified
3116 on the command line, even when the '-f' option is present. This is contrary
3117 to the behaviour of most rm programs out there, and not conforming with
3118 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3119
3120 Please tell bug-automake@gnu.org about your system, including the value
3121 of your $PATH and any error possibly output before this message. This
3122 can help us improve future automake versions.
3123
3124 END
3125 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3126 echo 'Configuration will proceed anyway, since you have set the' >&2
3127 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3128 echo >&2
3129 else
3130 cat >&2 <<'END'
3131 Aborting the configuration process, to ensure you take notice of the issue.
3132
3133 You can download and install GNU coreutils to get an 'rm' implementation
3134 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3135
3136 If you want to complete the configuration process using your problematic
3137 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3138 to "yes", and re-run configure.
3139
3140 END
3141 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3142 fi
3143 fi
3144
3145
3146
3147
3148
3149
3150
3151 if test -n "$PYTHON"; then
3152 # If the user set $PYTHON, use it and don't search something else.
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.6" >&5
3154 $as_echo_n "checking whether $PYTHON version is >= 2.6... " >&6; }
3155 prog="import sys
3156 # split strings by '.' and convert to numeric. Append some zeros
3157 # because we need at least 4 digits for the hex conversion.
3158 # map returns an iterator in Python 3.0 and a list in 2.x
3159 minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
3160 minverhex = 0
3161 # xrange is not present in Python 3.0 and range returns an iterator
3162 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
3163 sys.exit(sys.hexversion < minverhex)"
3164 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
3165 ($PYTHON -c "$prog") >&5 2>&5
3166 ac_status=$?
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; then :
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3170 $as_echo "yes" >&6; }
3171 else
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173 $as_echo "no" >&6; }
3174 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
3175 fi
3176 am_display_PYTHON=$PYTHON
3177 else
3178 # Otherwise, try each interpreter until we find one that satisfies
3179 # VERSION.
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.6" >&5
3181 $as_echo_n "checking for a Python interpreter with version >= 2.6... " >&6; }
3182 if ${am_cv_pathless_PYTHON+:} false; then :
3183 $as_echo_n "(cached) " >&6
3184 else
3185
3186 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
3187 test "$am_cv_pathless_PYTHON" = none && break
3188 prog="import sys
3189 # split strings by '.' and convert to numeric. Append some zeros
3190 # because we need at least 4 digits for the hex conversion.
3191 # map returns an iterator in Python 3.0 and a list in 2.x
3192 minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
3193 minverhex = 0
3194 # xrange is not present in Python 3.0 and range returns an iterator
3195 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
3196 sys.exit(sys.hexversion < minverhex)"
3197 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
3198 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
3199 ac_status=$?
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); }; then :
3202 break
3203 fi
3204 done
3205 fi
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
3207 $as_echo "$am_cv_pathless_PYTHON" >&6; }
3208 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
3209 if test "$am_cv_pathless_PYTHON" = none; then
3210 PYTHON=:
3211 else
3212 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
3213 set dummy $am_cv_pathless_PYTHON; ac_word=$2
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3215 $as_echo_n "checking for $ac_word... " >&6; }
3216 if ${ac_cv_path_PYTHON+:} false; then :
3217 $as_echo_n "(cached) " >&6
3218 else
3219 case $PYTHON in
3220 [\\/]* | ?:[\\/]*)
3221 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3222 ;;
3223 *)
3224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225 for as_dir in $PATH
3226 do
3227 IFS=$as_save_IFS
3228 test -z "$as_dir" && as_dir=.
3229 for ac_exec_ext in '' $ac_executable_extensions; do
3230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3231 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3233 break 2
3234 fi
3235 done
3236 done
3237 IFS=$as_save_IFS
3238
3239 ;;
3240 esac
3241 fi
3242 PYTHON=$ac_cv_path_PYTHON
3243 if test -n "$PYTHON"; then
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
3245 $as_echo "$PYTHON" >&6; }
3246 else
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248 $as_echo "no" >&6; }
3249 fi
3250
3251
3252 fi
3253 am_display_PYTHON=$am_cv_pathless_PYTHON
3254 fi
3255
3256
3257 if test "$PYTHON" = :; then
3258 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
3259 else
3260
3261
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
3263 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
3264 if ${am_cv_python_version+:} false; then :
3265 $as_echo_n "(cached) " >&6
3266 else
3267 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
3268 fi
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
3270 $as_echo "$am_cv_python_version" >&6; }
3271 PYTHON_VERSION=$am_cv_python_version
3272
3273
3274
3275 PYTHON_PREFIX='${prefix}'
3276
3277 PYTHON_EXEC_PREFIX='${exec_prefix}'
3278
3279
3280
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
3282 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
3283 if ${am_cv_python_platform+:} false; then :
3284 $as_echo_n "(cached) " >&6
3285 else
3286 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
3287 fi
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
3289 $as_echo "$am_cv_python_platform" >&6; }
3290 PYTHON_PLATFORM=$am_cv_python_platform
3291
3292
3293 # Just factor out some code duplication.
3294 am_python_setup_sysconfig="\
3295 import sys
3296 # Prefer sysconfig over distutils.sysconfig, for better compatibility
3297 # with python 3.x. See automake bug#10227.
3298 try:
3299 import sysconfig
3300 except ImportError:
3301 can_use_sysconfig = 0
3302 else:
3303 can_use_sysconfig = 1
3304 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
3305 # <https://github.com/pypa/virtualenv/issues/118>
3306 try:
3307 from platform import python_implementation
3308 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
3309 can_use_sysconfig = 0
3310 except ImportError:
3311 pass"
3312
3313
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
3315 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
3316 if ${am_cv_python_pythondir+:} false; then :
3317 $as_echo_n "(cached) " >&6
3318 else
3319 if test "x$prefix" = xNONE
3320 then
3321 am_py_prefix=$ac_default_prefix
3322 else
3323 am_py_prefix=$prefix
3324 fi
3325 am_cv_python_pythondir=`$PYTHON -c "
3326 $am_python_setup_sysconfig
3327 if can_use_sysconfig:
3328 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
3329 else:
3330 from distutils import sysconfig
3331 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
3332 sys.stdout.write(sitedir)"`
3333 case $am_cv_python_pythondir in
3334 $am_py_prefix*)
3335 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
3336 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
3337 ;;
3338 *)
3339 case $am_py_prefix in
3340 /usr|/System*) ;;
3341 *)
3342 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
3343 ;;
3344 esac
3345 ;;
3346 esac
3347
3348 fi
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
3350 $as_echo "$am_cv_python_pythondir" >&6; }
3351 pythondir=$am_cv_python_pythondir
3352
3353
3354
3355 pkgpythondir=\${pythondir}/$PACKAGE
3356
3357
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
3359 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
3360 if ${am_cv_python_pyexecdir+:} false; then :
3361 $as_echo_n "(cached) " >&6
3362 else
3363 if test "x$exec_prefix" = xNONE
3364 then
3365 am_py_exec_prefix=$am_py_prefix
3366 else
3367 am_py_exec_prefix=$exec_prefix
3368 fi
3369 am_cv_python_pyexecdir=`$PYTHON -c "
3370 $am_python_setup_sysconfig
3371 if can_use_sysconfig:
3372 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
3373 else:
3374 from distutils import sysconfig
3375 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
3376 sys.stdout.write(sitedir)"`
3377 case $am_cv_python_pyexecdir in
3378 $am_py_exec_prefix*)
3379 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
3380 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
3381 ;;
3382 *)
3383 case $am_py_exec_prefix in
3384 /usr|/System*) ;;
3385 *)
3386 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
3387 ;;
3388 esac
3389 ;;
3390 esac
3391
3392 fi
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
3394 $as_echo "$am_cv_python_pyexecdir" >&6; }
3395 pyexecdir=$am_cv_python_pyexecdir
3396
3397
3398
3399 pkgpyexecdir=\${pyexecdir}/$PACKAGE
3400
3401
3402
3403 fi
3404
3405
3406
3407 # Set common system defines for POSIX extensions, such as _GNU_SOURCE
3408 # Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL)
3409 # to avoid autoconf errors.
3410 DEPDIR="${am__leading_dot}deps"
3411
3412 ac_config_commands="$ac_config_commands depfiles"
3413
3414
3415 am_make=${MAKE-make}
3416 cat > confinc << 'END'
3417 am__doit:
3418 @echo this is the am__doit target
3419 .PHONY: am__doit
3420 END
3421 # If we don't find an include directive, just comment out the code.
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3423 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3424 am__include="#"
3425 am__quote=
3426 _am_result=none
3427 # First try GNU make style include.
3428 echo "include confinc" > confmf
3429 # Ignore all kinds of additional output from 'make'.
3430 case `$am_make -s -f confmf 2> /dev/null` in #(
3431 *the\ am__doit\ target*)
3432 am__include=include
3433 am__quote=
3434 _am_result=GNU
3435 ;;
3436 esac
3437 # Now try BSD make style include.
3438 if test "$am__include" = "#"; then
3439 echo '.include "confinc"' > confmf
3440 case `$am_make -s -f confmf 2> /dev/null` in #(
3441 *the\ am__doit\ target*)
3442 am__include=.include
3443 am__quote="\""
3444 _am_result=BSD
3445 ;;
3446 esac
3447 fi
3448
3449
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3451 $as_echo "$_am_result" >&6; }
3452 rm -f confinc confmf
3453
3454 # Check whether --enable-dependency-tracking was given.
3455 if test "${enable_dependency_tracking+set}" = set; then :
3456 enableval=$enable_dependency_tracking;
3457 fi
3458
3459 if test "x$enable_dependency_tracking" != xno; then
3460 am_depcomp="$ac_aux_dir/depcomp"
3461 AMDEPBACKSLASH='\'
3462 am__nodep='_no'
3463 fi
3464 if test "x$enable_dependency_tracking" != xno; then
3465 AMDEP_TRUE=
3466 AMDEP_FALSE='#'
3467 else
3468 AMDEP_TRUE='#'
3469 AMDEP_FALSE=
3470 fi
3471
3472
3473 ac_ext=c
3474 ac_cpp='$CPP $CPPFLAGS'
3475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3478 if test -n "$ac_tool_prefix"; then
3479 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3480 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3482 $as_echo_n "checking for $ac_word... " >&6; }
3483 if ${ac_cv_prog_CC+:} false; then :
3484 $as_echo_n "(cached) " >&6
3485 else
3486 if test -n "$CC"; then
3487 ac_cv_prog_CC="$CC" # Let the user override the test.
3488 else
3489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3490 for as_dir in $PATH
3491 do
3492 IFS=$as_save_IFS
3493 test -z "$as_dir" && as_dir=.
3494 for ac_exec_ext in '' $ac_executable_extensions; do
3495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3496 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3498 break 2
3499 fi
3500 done
3501 done
3502 IFS=$as_save_IFS
3503
3504 fi
3505 fi
3506 CC=$ac_cv_prog_CC
3507 if test -n "$CC"; then
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3509 $as_echo "$CC" >&6; }
3510 else
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512 $as_echo "no" >&6; }
3513 fi
3514
3515
3516 fi
3517 if test -z "$ac_cv_prog_CC"; then
3518 ac_ct_CC=$CC
3519 # Extract the first word of "gcc", so it can be a program name with args.
3520 set dummy gcc; ac_word=$2
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3522 $as_echo_n "checking for $ac_word... " >&6; }
3523 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3524 $as_echo_n "(cached) " >&6
3525 else
3526 if test -n "$ac_ct_CC"; then
3527 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3528 else
3529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530 for as_dir in $PATH
3531 do
3532 IFS=$as_save_IFS
3533 test -z "$as_dir" && as_dir=.
3534 for ac_exec_ext in '' $ac_executable_extensions; do
3535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3536 ac_cv_prog_ac_ct_CC="gcc"
3537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3538 break 2
3539 fi
3540 done
3541 done
3542 IFS=$as_save_IFS
3543
3544 fi
3545 fi
3546 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3547 if test -n "$ac_ct_CC"; then
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3549 $as_echo "$ac_ct_CC" >&6; }
3550 else
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552 $as_echo "no" >&6; }
3553 fi
3554
3555 if test "x$ac_ct_CC" = x; then
3556 CC=""
3557 else
3558 case $cross_compiling:$ac_tool_warned in
3559 yes:)
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3562 ac_tool_warned=yes ;;
3563 esac
3564 CC=$ac_ct_CC
3565 fi
3566 else
3567 CC="$ac_cv_prog_CC"
3568 fi
3569
3570 if test -z "$CC"; then
3571 if test -n "$ac_tool_prefix"; then
3572 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3573 set dummy ${ac_tool_prefix}cc; ac_word=$2
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3575 $as_echo_n "checking for $ac_word... " >&6; }
3576 if ${ac_cv_prog_CC+:} false; then :
3577 $as_echo_n "(cached) " >&6
3578 else
3579 if test -n "$CC"; then
3580 ac_cv_prog_CC="$CC" # Let the user override the test.
3581 else
3582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3583 for as_dir in $PATH
3584 do
3585 IFS=$as_save_IFS
3586 test -z "$as_dir" && as_dir=.
3587 for ac_exec_ext in '' $ac_executable_extensions; do
3588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3589 ac_cv_prog_CC="${ac_tool_prefix}cc"
3590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3591 break 2
3592 fi
3593 done
3594 done
3595 IFS=$as_save_IFS
3596
3597 fi
3598 fi
3599 CC=$ac_cv_prog_CC
3600 if test -n "$CC"; then
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3602 $as_echo "$CC" >&6; }
3603 else
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3605 $as_echo "no" >&6; }
3606 fi
3607
3608
3609 fi
3610 fi
3611 if test -z "$CC"; then
3612 # Extract the first word of "cc", so it can be a program name with args.
3613 set dummy cc; ac_word=$2
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3615 $as_echo_n "checking for $ac_word... " >&6; }
3616 if ${ac_cv_prog_CC+:} false; then :
3617 $as_echo_n "(cached) " >&6
3618 else
3619 if test -n "$CC"; then
3620 ac_cv_prog_CC="$CC" # Let the user override the test.
3621 else
3622 ac_prog_rejected=no
3623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3624 for as_dir in $PATH
3625 do
3626 IFS=$as_save_IFS
3627 test -z "$as_dir" && as_dir=.
3628 for ac_exec_ext in '' $ac_executable_extensions; do
3629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3630 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3631 ac_prog_rejected=yes
3632 continue
3633 fi
3634 ac_cv_prog_CC="cc"
3635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3636 break 2
3637 fi
3638 done
3639 done
3640 IFS=$as_save_IFS
3641
3642 if test $ac_prog_rejected = yes; then
3643 # We found a bogon in the path, so make sure we never use it.
3644 set dummy $ac_cv_prog_CC
3645 shift
3646 if test $# != 0; then
3647 # We chose a different compiler from the bogus one.
3648 # However, it has the same basename, so the bogon will be chosen
3649 # first if we set CC to just the basename; use the full file name.
3650 shift
3651 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3652 fi
3653 fi
3654 fi
3655 fi
3656 CC=$ac_cv_prog_CC
3657 if test -n "$CC"; then
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3659 $as_echo "$CC" >&6; }
3660 else
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3662 $as_echo "no" >&6; }
3663 fi
3664
3665
3666 fi
3667 if test -z "$CC"; then
3668 if test -n "$ac_tool_prefix"; then
3669 for ac_prog in cl.exe
3670 do
3671 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3672 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3674 $as_echo_n "checking for $ac_word... " >&6; }
3675 if ${ac_cv_prog_CC+:} false; then :
3676 $as_echo_n "(cached) " >&6
3677 else
3678 if test -n "$CC"; then
3679 ac_cv_prog_CC="$CC" # Let the user override the test.
3680 else
3681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3682 for as_dir in $PATH
3683 do
3684 IFS=$as_save_IFS
3685 test -z "$as_dir" && as_dir=.
3686 for ac_exec_ext in '' $ac_executable_extensions; do
3687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3688 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3690 break 2
3691 fi
3692 done
3693 done
3694 IFS=$as_save_IFS
3695
3696 fi
3697 fi
3698 CC=$ac_cv_prog_CC
3699 if test -n "$CC"; then
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3701 $as_echo "$CC" >&6; }
3702 else
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3704 $as_echo "no" >&6; }
3705 fi
3706
3707
3708 test -n "$CC" && break
3709 done
3710 fi
3711 if test -z "$CC"; then
3712 ac_ct_CC=$CC
3713 for ac_prog in cl.exe
3714 do
3715 # Extract the first word of "$ac_prog", so it can be a program name with args.
3716 set dummy $ac_prog; ac_word=$2
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3718 $as_echo_n "checking for $ac_word... " >&6; }
3719 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3720 $as_echo_n "(cached) " >&6
3721 else
3722 if test -n "$ac_ct_CC"; then
3723 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3724 else
3725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726 for as_dir in $PATH
3727 do
3728 IFS=$as_save_IFS
3729 test -z "$as_dir" && as_dir=.
3730 for ac_exec_ext in '' $ac_executable_extensions; do
3731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3732 ac_cv_prog_ac_ct_CC="$ac_prog"
3733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3734 break 2
3735 fi
3736 done
3737 done
3738 IFS=$as_save_IFS
3739
3740 fi
3741 fi
3742 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3743 if test -n "$ac_ct_CC"; then
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3745 $as_echo "$ac_ct_CC" >&6; }
3746 else
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3748 $as_echo "no" >&6; }
3749 fi
3750
3751
3752 test -n "$ac_ct_CC" && break
3753 done
3754
3755 if test "x$ac_ct_CC" = x; then
3756 CC=""
3757 else
3758 case $cross_compiling:$ac_tool_warned in
3759 yes:)
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3762 ac_tool_warned=yes ;;
3763 esac
3764 CC=$ac_ct_CC
3765 fi
3766 fi
3767
3768 fi
3769
3770
3771 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3772 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3773 as_fn_error $? "no acceptable C compiler found in \$PATH
3774 See \`config.log' for more details" "$LINENO" 5; }
3775
3776 # Provide some information about the compiler.
3777 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3778 set X $ac_compile
3779 ac_compiler=$2
3780 for ac_option in --version -v -V -qversion; do
3781 { { ac_try="$ac_compiler $ac_option >&5"
3782 case "(($ac_try" in
3783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784 *) ac_try_echo=$ac_try;;
3785 esac
3786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3787 $as_echo "$ac_try_echo"; } >&5
3788 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3789 ac_status=$?
3790 if test -s conftest.err; then
3791 sed '10a\
3792 ... rest of stderr output deleted ...
3793 10q' conftest.err >conftest.er1
3794 cat conftest.er1 >&5
3795 fi
3796 rm -f conftest.er1 conftest.err
3797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3798 test $ac_status = 0; }
3799 done
3800
3801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3802 /* end confdefs.h. */
3803
3804 int
3805 main ()
3806 {
3807
3808 ;
3809 return 0;
3810 }
3811 _ACEOF
3812 ac_clean_files_save=$ac_clean_files
3813 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3814 # Try to create an executable without -o first, disregard a.out.
3815 # It will help us diagnose broken compilers, and finding out an intuition
3816 # of exeext.
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3818 $as_echo_n "checking whether the C compiler works... " >&6; }
3819 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3820
3821 # The possible output files:
3822 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3823
3824 ac_rmfiles=
3825 for ac_file in $ac_files
3826 do
3827 case $ac_file in
3828 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3829 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3830 esac
3831 done
3832 rm -f $ac_rmfiles
3833
3834 if { { ac_try="$ac_link_default"
3835 case "(($ac_try" in
3836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837 *) ac_try_echo=$ac_try;;
3838 esac
3839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3840 $as_echo "$ac_try_echo"; } >&5
3841 (eval "$ac_link_default") 2>&5
3842 ac_status=$?
3843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3844 test $ac_status = 0; }; then :
3845 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3846 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3847 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3848 # so that the user can short-circuit this test for compilers unknown to
3849 # Autoconf.
3850 for ac_file in $ac_files ''
3851 do
3852 test -f "$ac_file" || continue
3853 case $ac_file in
3854 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3855 ;;
3856 [ab].out )
3857 # We found the default executable, but exeext='' is most
3858 # certainly right.
3859 break;;
3860 *.* )
3861 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3862 then :; else
3863 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3864 fi
3865 # We set ac_cv_exeext here because the later test for it is not
3866 # safe: cross compilers may not add the suffix if given an `-o'
3867 # argument, so we may need to know it at that point already.
3868 # Even if this section looks crufty: it has the advantage of
3869 # actually working.
3870 break;;
3871 * )
3872 break;;
3873 esac
3874 done
3875 test "$ac_cv_exeext" = no && ac_cv_exeext=
3876
3877 else
3878 ac_file=''
3879 fi
3880 if test -z "$ac_file"; then :
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3882 $as_echo "no" >&6; }
3883 $as_echo "$as_me: failed program was:" >&5
3884 sed 's/^/| /' conftest.$ac_ext >&5
3885
3886 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3887 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3888 as_fn_error 77 "C compiler cannot create executables
3889 See \`config.log' for more details" "$LINENO" 5; }
3890 else
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3892 $as_echo "yes" >&6; }
3893 fi
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3895 $as_echo_n "checking for C compiler default output file name... " >&6; }
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3897 $as_echo "$ac_file" >&6; }
3898 ac_exeext=$ac_cv_exeext
3899
3900 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3901 ac_clean_files=$ac_clean_files_save
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3903 $as_echo_n "checking for suffix of executables... " >&6; }
3904 if { { ac_try="$ac_link"
3905 case "(($ac_try" in
3906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907 *) ac_try_echo=$ac_try;;
3908 esac
3909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3910 $as_echo "$ac_try_echo"; } >&5
3911 (eval "$ac_link") 2>&5
3912 ac_status=$?
3913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3914 test $ac_status = 0; }; then :
3915 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3916 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3917 # work properly (i.e., refer to `conftest.exe'), while it won't with
3918 # `rm'.
3919 for ac_file in conftest.exe conftest conftest.*; do
3920 test -f "$ac_file" || continue
3921 case $ac_file in
3922 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3923 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3924 break;;
3925 * ) break;;
3926 esac
3927 done
3928 else
3929 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3930 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3931 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3932 See \`config.log' for more details" "$LINENO" 5; }
3933 fi
3934 rm -f conftest conftest$ac_cv_exeext
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3936 $as_echo "$ac_cv_exeext" >&6; }
3937
3938 rm -f conftest.$ac_ext
3939 EXEEXT=$ac_cv_exeext
3940 ac_exeext=$EXEEXT
3941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3942 /* end confdefs.h. */
3943 #include <stdio.h>
3944 int
3945 main ()
3946 {
3947 FILE *f = fopen ("conftest.out", "w");
3948 return ferror (f) || fclose (f) != 0;
3949
3950 ;
3951 return 0;
3952 }
3953 _ACEOF
3954 ac_clean_files="$ac_clean_files conftest.out"
3955 # Check that the compiler produces executables we can run. If not, either
3956 # the compiler is broken, or we cross compile.
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3958 $as_echo_n "checking whether we are cross compiling... " >&6; }
3959 if test "$cross_compiling" != yes; then
3960 { { ac_try="$ac_link"
3961 case "(($ac_try" in
3962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963 *) ac_try_echo=$ac_try;;
3964 esac
3965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3966 $as_echo "$ac_try_echo"; } >&5
3967 (eval "$ac_link") 2>&5
3968 ac_status=$?
3969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3970 test $ac_status = 0; }
3971 if { ac_try='./conftest$ac_cv_exeext'
3972 { { case "(($ac_try" in
3973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974 *) ac_try_echo=$ac_try;;
3975 esac
3976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3977 $as_echo "$ac_try_echo"; } >&5
3978 (eval "$ac_try") 2>&5
3979 ac_status=$?
3980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3981 test $ac_status = 0; }; }; then
3982 cross_compiling=no
3983 else
3984 if test "$cross_compiling" = maybe; then
3985 cross_compiling=yes
3986 else
3987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3989 as_fn_error $? "cannot run C compiled programs.
3990 If you meant to cross compile, use \`--host'.
3991 See \`config.log' for more details" "$LINENO" 5; }
3992 fi
3993 fi
3994 fi
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3996 $as_echo "$cross_compiling" >&6; }
3997
3998 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3999 ac_clean_files=$ac_clean_files_save
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4001 $as_echo_n "checking for suffix of object files... " >&6; }
4002 if ${ac_cv_objext+:} false; then :
4003 $as_echo_n "(cached) " >&6
4004 else
4005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4006 /* end confdefs.h. */
4007
4008 int
4009 main ()
4010 {
4011
4012 ;
4013 return 0;
4014 }
4015 _ACEOF
4016 rm -f conftest.o conftest.obj
4017 if { { ac_try="$ac_compile"
4018 case "(($ac_try" in
4019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4020 *) ac_try_echo=$ac_try;;
4021 esac
4022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4023 $as_echo "$ac_try_echo"; } >&5
4024 (eval "$ac_compile") 2>&5
4025 ac_status=$?
4026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4027 test $ac_status = 0; }; then :
4028 for ac_file in conftest.o conftest.obj conftest.*; do
4029 test -f "$ac_file" || continue;
4030 case $ac_file in
4031 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4032 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4033 break;;
4034 esac
4035 done
4036 else
4037 $as_echo "$as_me: failed program was:" >&5
4038 sed 's/^/| /' conftest.$ac_ext >&5
4039
4040 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4042 as_fn_error $? "cannot compute suffix of object files: cannot compile
4043 See \`config.log' for more details" "$LINENO" 5; }
4044 fi
4045 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4046 fi
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4048 $as_echo "$ac_cv_objext" >&6; }
4049 OBJEXT=$ac_cv_objext
4050 ac_objext=$OBJEXT
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4052 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4053 if ${ac_cv_c_compiler_gnu+:} false; then :
4054 $as_echo_n "(cached) " >&6
4055 else
4056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4057 /* end confdefs.h. */
4058
4059 int
4060 main ()
4061 {
4062 #ifndef __GNUC__
4063 choke me
4064 #endif
4065
4066 ;
4067 return 0;
4068 }
4069 _ACEOF
4070 if ac_fn_c_try_compile "$LINENO"; then :
4071 ac_compiler_gnu=yes
4072 else
4073 ac_compiler_gnu=no
4074 fi
4075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4076 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4077
4078 fi
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4080 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4081 if test $ac_compiler_gnu = yes; then
4082 GCC=yes
4083 else
4084 GCC=
4085 fi
4086 ac_test_CFLAGS=${CFLAGS+set}
4087 ac_save_CFLAGS=$CFLAGS
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4089 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4090 if ${ac_cv_prog_cc_g+:} false; then :
4091 $as_echo_n "(cached) " >&6
4092 else
4093 ac_save_c_werror_flag=$ac_c_werror_flag
4094 ac_c_werror_flag=yes
4095 ac_cv_prog_cc_g=no
4096 CFLAGS="-g"
4097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098 /* end confdefs.h. */
4099
4100 int
4101 main ()
4102 {
4103
4104 ;
4105 return 0;
4106 }
4107 _ACEOF
4108 if ac_fn_c_try_compile "$LINENO"; then :
4109 ac_cv_prog_cc_g=yes
4110 else
4111 CFLAGS=""
4112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113 /* end confdefs.h. */
4114
4115 int
4116 main ()
4117 {
4118
4119 ;
4120 return 0;
4121 }
4122 _ACEOF
4123 if ac_fn_c_try_compile "$LINENO"; then :
4124
4125 else
4126 ac_c_werror_flag=$ac_save_c_werror_flag
4127 CFLAGS="-g"
4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h. */
4130
4131 int
4132 main ()
4133 {
4134
4135 ;
4136 return 0;
4137 }
4138 _ACEOF
4139 if ac_fn_c_try_compile "$LINENO"; then :
4140 ac_cv_prog_cc_g=yes
4141 fi
4142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4143 fi
4144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4145 fi
4146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4147 ac_c_werror_flag=$ac_save_c_werror_flag
4148 fi
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4150 $as_echo "$ac_cv_prog_cc_g" >&6; }
4151 if test "$ac_test_CFLAGS" = set; then
4152 CFLAGS=$ac_save_CFLAGS
4153 elif test $ac_cv_prog_cc_g = yes; then
4154 if test "$GCC" = yes; then
4155 CFLAGS="-g -O2"
4156 else
4157 CFLAGS="-g"
4158 fi
4159 else
4160 if test "$GCC" = yes; then
4161 CFLAGS="-O2"
4162 else
4163 CFLAGS=
4164 fi
4165 fi
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4167 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4168 if ${ac_cv_prog_cc_c89+:} false; then :
4169 $as_echo_n "(cached) " >&6
4170 else
4171 ac_cv_prog_cc_c89=no
4172 ac_save_CC=$CC
4173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174 /* end confdefs.h. */
4175 #include <stdarg.h>
4176 #include <stdio.h>
4177 struct stat;
4178 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4179 struct buf { int x; };
4180 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4181 static char *e (p, i)
4182 char **p;
4183 int i;
4184 {
4185 return p[i];
4186 }
4187 static char *f (char * (*g) (char **, int), char **p, ...)
4188 {
4189 char *s;
4190 va_list v;
4191 va_start (v,p);
4192 s = g (p, va_arg (v,int));
4193 va_end (v);
4194 return s;
4195 }
4196
4197 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4198 function prototypes and stuff, but not '\xHH' hex character constants.
4199 These don't provoke an error unfortunately, instead are silently treated
4200 as 'x'. The following induces an error, until -std is added to get
4201 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4202 array size at least. It's necessary to write '\x00'==0 to get something
4203 that's true only with -std. */
4204 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4205
4206 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4207 inside strings and character constants. */
4208 #define FOO(x) 'x'
4209 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4210
4211 int test (int i, double x);
4212 struct s1 {int (*f) (int a);};
4213 struct s2 {int (*f) (double a);};
4214 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4215 int argc;
4216 char **argv;
4217 int
4218 main ()
4219 {
4220 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4221 ;
4222 return 0;
4223 }
4224 _ACEOF
4225 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4226 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4227 do
4228 CC="$ac_save_CC $ac_arg"
4229 if ac_fn_c_try_compile "$LINENO"; then :
4230 ac_cv_prog_cc_c89=$ac_arg
4231 fi
4232 rm -f core conftest.err conftest.$ac_objext
4233 test "x$ac_cv_prog_cc_c89" != "xno" && break
4234 done
4235 rm -f conftest.$ac_ext
4236 CC=$ac_save_CC
4237
4238 fi
4239 # AC_CACHE_VAL
4240 case "x$ac_cv_prog_cc_c89" in
4241 x)
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4243 $as_echo "none needed" >&6; } ;;
4244 xno)
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4246 $as_echo "unsupported" >&6; } ;;
4247 *)
4248 CC="$CC $ac_cv_prog_cc_c89"
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4250 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4251 esac
4252 if test "x$ac_cv_prog_cc_c89" != xno; then :
4253
4254 fi
4255
4256 ac_ext=c
4257 ac_cpp='$CPP $CPPFLAGS'
4258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4261
4262 ac_ext=c
4263 ac_cpp='$CPP $CPPFLAGS'
4264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4268 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4269 if ${am_cv_prog_cc_c_o+:} false; then :
4270 $as_echo_n "(cached) " >&6
4271 else
4272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4273 /* end confdefs.h. */
4274
4275 int
4276 main ()
4277 {
4278
4279 ;
4280 return 0;
4281 }
4282 _ACEOF
4283 # Make sure it works both with $CC and with simple cc.
4284 # Following AC_PROG_CC_C_O, we do the test twice because some
4285 # compilers refuse to overwrite an existing .o file with -o,
4286 # though they will create one.
4287 am_cv_prog_cc_c_o=yes
4288 for am_i in 1 2; do
4289 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4290 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4291 ac_status=$?
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); } \
4294 && test -f conftest2.$ac_objext; then
4295 : OK
4296 else
4297 am_cv_prog_cc_c_o=no
4298 break
4299 fi
4300 done
4301 rm -f core conftest*
4302 unset am_i
4303 fi
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4305 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4306 if test "$am_cv_prog_cc_c_o" != yes; then
4307 # Losing compiler, so override with the script.
4308 # FIXME: It is wrong to rewrite CC.
4309 # But if we don't then we get into trouble of one sort or another.
4310 # A longer-term fix would be to have automake use am__CC in this case,
4311 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4312 CC="$am_aux_dir/compile $CC"
4313 fi
4314 ac_ext=c
4315 ac_cpp='$CPP $CPPFLAGS'
4316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4319
4320
4321 depcc="$CC" am_compiler_list=
4322
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4324 $as_echo_n "checking dependency style of $depcc... " >&6; }
4325 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4326 $as_echo_n "(cached) " >&6
4327 else
4328 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4329 # We make a subdir and do the tests there. Otherwise we can end up
4330 # making bogus files that we don't know about and never remove. For
4331 # instance it was reported that on HP-UX the gcc test will end up
4332 # making a dummy file named 'D' -- because '-MD' means "put the output
4333 # in D".
4334 rm -rf conftest.dir
4335 mkdir conftest.dir
4336 # Copy depcomp to subdir because otherwise we won't find it if we're
4337 # using a relative directory.
4338 cp "$am_depcomp" conftest.dir
4339 cd conftest.dir
4340 # We will build objects and dependencies in a subdirectory because
4341 # it helps to detect inapplicable dependency modes. For instance
4342 # both Tru64's cc and ICC support -MD to output dependencies as a
4343 # side effect of compilation, but ICC will put the dependencies in
4344 # the current directory while Tru64 will put them in the object
4345 # directory.
4346 mkdir sub
4347
4348 am_cv_CC_dependencies_compiler_type=none
4349 if test "$am_compiler_list" = ""; then
4350 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4351 fi
4352 am__universal=false
4353 case " $depcc " in #(
4354 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4355 esac
4356
4357 for depmode in $am_compiler_list; do
4358 # Setup a source with many dependencies, because some compilers
4359 # like to wrap large dependency lists on column 80 (with \), and
4360 # we should not choose a depcomp mode which is confused by this.
4361 #
4362 # We need to recreate these files for each test, as the compiler may
4363 # overwrite some of them when testing with obscure command lines.
4364 # This happens at least with the AIX C compiler.
4365 : > sub/conftest.c
4366 for i in 1 2 3 4 5 6; do
4367 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4368 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4369 # Solaris 10 /bin/sh.
4370 echo '/* dummy */' > sub/conftst$i.h
4371 done
4372 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4373
4374 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4375 # mode. It turns out that the SunPro C++ compiler does not properly
4376 # handle '-M -o', and we need to detect this. Also, some Intel
4377 # versions had trouble with output in subdirs.
4378 am__obj=sub/conftest.${OBJEXT-o}
4379 am__minus_obj="-o $am__obj"
4380 case $depmode in
4381 gcc)
4382 # This depmode causes a compiler race in universal mode.
4383 test "$am__universal" = false || continue
4384 ;;
4385 nosideeffect)
4386 # After this tag, mechanisms are not by side-effect, so they'll
4387 # only be used when explicitly requested.
4388 if test "x$enable_dependency_tracking" = xyes; then
4389 continue
4390 else
4391 break
4392 fi
4393 ;;
4394 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4395 # This compiler won't grok '-c -o', but also, the minuso test has
4396 # not run yet. These depmodes are late enough in the game, and
4397 # so weak that their functioning should not be impacted.
4398 am__obj=conftest.${OBJEXT-o}
4399 am__minus_obj=
4400 ;;
4401 none) break ;;
4402 esac
4403 if depmode=$depmode \
4404 source=sub/conftest.c object=$am__obj \
4405 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4406 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4407 >/dev/null 2>conftest.err &&
4408 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4409 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4410 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4411 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4412 # icc doesn't choke on unknown options, it will just issue warnings
4413 # or remarks (even with -Werror). So we grep stderr for any message
4414 # that says an option was ignored or not supported.
4415 # When given -MP, icc 7.0 and 7.1 complain thusly:
4416 # icc: Command line warning: ignoring option '-M'; no argument required
4417 # The diagnosis changed in icc 8.0:
4418 # icc: Command line remark: option '-MP' not supported
4419 if (grep 'ignoring option' conftest.err ||
4420 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4421 am_cv_CC_dependencies_compiler_type=$depmode
4422 break
4423 fi
4424 fi
4425 done
4426
4427 cd ..
4428 rm -rf conftest.dir
4429 else
4430 am_cv_CC_dependencies_compiler_type=none
4431 fi
4432
4433 fi
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4435 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4436 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4437
4438 if
4439 test "x$enable_dependency_tracking" != xno \
4440 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4441 am__fastdepCC_TRUE=
4442 am__fastdepCC_FALSE='#'
4443 else
4444 am__fastdepCC_TRUE='#'
4445 am__fastdepCC_FALSE=
4446 fi
4447
4448
4449
4450 ac_ext=c
4451 ac_cpp='$CPP $CPPFLAGS'
4452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4456 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4457 # On Suns, sometimes $CPP names a directory.
4458 if test -n "$CPP" && test -d "$CPP"; then
4459 CPP=
4460 fi
4461 if test -z "$CPP"; then
4462 if ${ac_cv_prog_CPP+:} false; then :
4463 $as_echo_n "(cached) " >&6
4464 else
4465 # Double quotes because CPP needs to be expanded
4466 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4467 do
4468 ac_preproc_ok=false
4469 for ac_c_preproc_warn_flag in '' yes
4470 do
4471 # Use a header file that comes with gcc, so configuring glibc
4472 # with a fresh cross-compiler works.
4473 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4474 # <limits.h> exists even on freestanding compilers.
4475 # On the NeXT, cc -E runs the code through the compiler's parser,
4476 # not just through cpp. "Syntax error" is here to catch this case.
4477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4478 /* end confdefs.h. */
4479 #ifdef __STDC__
4480 # include <limits.h>
4481 #else
4482 # include <assert.h>
4483 #endif
4484 Syntax error
4485 _ACEOF
4486 if ac_fn_c_try_cpp "$LINENO"; then :
4487
4488 else
4489 # Broken: fails on valid input.
4490 continue
4491 fi
4492 rm -f conftest.err conftest.i conftest.$ac_ext
4493
4494 # OK, works on sane cases. Now check whether nonexistent headers
4495 # can be detected and how.
4496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4497 /* end confdefs.h. */
4498 #include <ac_nonexistent.h>
4499 _ACEOF
4500 if ac_fn_c_try_cpp "$LINENO"; then :
4501 # Broken: success on invalid input.
4502 continue
4503 else
4504 # Passes both tests.
4505 ac_preproc_ok=:
4506 break
4507 fi
4508 rm -f conftest.err conftest.i conftest.$ac_ext
4509
4510 done
4511 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4512 rm -f conftest.i conftest.err conftest.$ac_ext
4513 if $ac_preproc_ok; then :
4514 break
4515 fi
4516
4517 done
4518 ac_cv_prog_CPP=$CPP
4519
4520 fi
4521 CPP=$ac_cv_prog_CPP
4522 else
4523 ac_cv_prog_CPP=$CPP
4524 fi
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4526 $as_echo "$CPP" >&6; }
4527 ac_preproc_ok=false
4528 for ac_c_preproc_warn_flag in '' yes
4529 do
4530 # Use a header file that comes with gcc, so configuring glibc
4531 # with a fresh cross-compiler works.
4532 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4533 # <limits.h> exists even on freestanding compilers.
4534 # On the NeXT, cc -E runs the code through the compiler's parser,
4535 # not just through cpp. "Syntax error" is here to catch this case.
4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537 /* end confdefs.h. */
4538 #ifdef __STDC__
4539 # include <limits.h>
4540 #else
4541 # include <assert.h>
4542 #endif
4543 Syntax error
4544 _ACEOF
4545 if ac_fn_c_try_cpp "$LINENO"; then :
4546
4547 else
4548 # Broken: fails on valid input.
4549 continue
4550 fi
4551 rm -f conftest.err conftest.i conftest.$ac_ext
4552
4553 # OK, works on sane cases. Now check whether nonexistent headers
4554 # can be detected and how.
4555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4556 /* end confdefs.h. */
4557 #include <ac_nonexistent.h>
4558 _ACEOF
4559 if ac_fn_c_try_cpp "$LINENO"; then :
4560 # Broken: success on invalid input.
4561 continue
4562 else
4563 # Passes both tests.
4564 ac_preproc_ok=:
4565 break
4566 fi
4567 rm -f conftest.err conftest.i conftest.$ac_ext
4568
4569 done
4570 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4571 rm -f conftest.i conftest.err conftest.$ac_ext
4572 if $ac_preproc_ok; then :
4573
4574 else
4575 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4577 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4578 See \`config.log' for more details" "$LINENO" 5; }
4579 fi
4580
4581 ac_ext=c
4582 ac_cpp='$CPP $CPPFLAGS'
4583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4586
4587
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4589 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4590 if ${ac_cv_path_GREP+:} false; then :
4591 $as_echo_n "(cached) " >&6
4592 else
4593 if test -z "$GREP"; then
4594 ac_path_GREP_found=false
4595 # Loop through the user's path and test for each of PROGNAME-LIST
4596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4598 do
4599 IFS=$as_save_IFS
4600 test -z "$as_dir" && as_dir=.
4601 for ac_prog in grep ggrep; do
4602 for ac_exec_ext in '' $ac_executable_extensions; do
4603 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4604 as_fn_executable_p "$ac_path_GREP" || continue
4605 # Check for GNU ac_path_GREP and select it if it is found.
4606 # Check for GNU $ac_path_GREP
4607 case `"$ac_path_GREP" --version 2>&1` in
4608 *GNU*)
4609 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4610 *)
4611 ac_count=0
4612 $as_echo_n 0123456789 >"conftest.in"
4613 while :
4614 do
4615 cat "conftest.in" "conftest.in" >"conftest.tmp"
4616 mv "conftest.tmp" "conftest.in"
4617 cp "conftest.in" "conftest.nl"
4618 $as_echo 'GREP' >> "conftest.nl"
4619 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4620 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4621 as_fn_arith $ac_count + 1 && ac_count=$as_val
4622 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4623 # Best one so far, save it but keep looking for a better one
4624 ac_cv_path_GREP="$ac_path_GREP"
4625 ac_path_GREP_max=$ac_count
4626 fi
4627 # 10*(2^10) chars as input seems more than enough
4628 test $ac_count -gt 10 && break
4629 done
4630 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4631 esac
4632
4633 $ac_path_GREP_found && break 3
4634 done
4635 done
4636 done
4637 IFS=$as_save_IFS
4638 if test -z "$ac_cv_path_GREP"; then
4639 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4640 fi
4641 else
4642 ac_cv_path_GREP=$GREP
4643 fi
4644
4645 fi
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4647 $as_echo "$ac_cv_path_GREP" >&6; }
4648 GREP="$ac_cv_path_GREP"
4649
4650
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4652 $as_echo_n "checking for egrep... " >&6; }
4653 if ${ac_cv_path_EGREP+:} false; then :
4654 $as_echo_n "(cached) " >&6
4655 else
4656 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4657 then ac_cv_path_EGREP="$GREP -E"
4658 else
4659 if test -z "$EGREP"; then
4660 ac_path_EGREP_found=false
4661 # Loop through the user's path and test for each of PROGNAME-LIST
4662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4664 do
4665 IFS=$as_save_IFS
4666 test -z "$as_dir" && as_dir=.
4667 for ac_prog in egrep; do
4668 for ac_exec_ext in '' $ac_executable_extensions; do
4669 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4670 as_fn_executable_p "$ac_path_EGREP" || continue
4671 # Check for GNU ac_path_EGREP and select it if it is found.
4672 # Check for GNU $ac_path_EGREP
4673 case `"$ac_path_EGREP" --version 2>&1` in
4674 *GNU*)
4675 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4676 *)
4677 ac_count=0
4678 $as_echo_n 0123456789 >"conftest.in"
4679 while :
4680 do
4681 cat "conftest.in" "conftest.in" >"conftest.tmp"
4682 mv "conftest.tmp" "conftest.in"
4683 cp "conftest.in" "conftest.nl"
4684 $as_echo 'EGREP' >> "conftest.nl"
4685 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4686 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4687 as_fn_arith $ac_count + 1 && ac_count=$as_val
4688 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4689 # Best one so far, save it but keep looking for a better one
4690 ac_cv_path_EGREP="$ac_path_EGREP"
4691 ac_path_EGREP_max=$ac_count
4692 fi
4693 # 10*(2^10) chars as input seems more than enough
4694 test $ac_count -gt 10 && break
4695 done
4696 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4697 esac
4698
4699 $ac_path_EGREP_found && break 3
4700 done
4701 done
4702 done
4703 IFS=$as_save_IFS
4704 if test -z "$ac_cv_path_EGREP"; then
4705 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4706 fi
4707 else
4708 ac_cv_path_EGREP=$EGREP
4709 fi
4710
4711 fi
4712 fi
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4714 $as_echo "$ac_cv_path_EGREP" >&6; }
4715 EGREP="$ac_cv_path_EGREP"
4716
4717
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4719 $as_echo_n "checking for ANSI C header files... " >&6; }
4720 if ${ac_cv_header_stdc+:} false; then :
4721 $as_echo_n "(cached) " >&6
4722 else
4723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4724 /* end confdefs.h. */
4725 #include <stdlib.h>
4726 #include <stdarg.h>
4727 #include <string.h>
4728 #include <float.h>
4729
4730 int
4731 main ()
4732 {
4733
4734 ;
4735 return 0;
4736 }
4737 _ACEOF
4738 if ac_fn_c_try_compile "$LINENO"; then :
4739 ac_cv_header_stdc=yes
4740 else
4741 ac_cv_header_stdc=no
4742 fi
4743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4744
4745 if test $ac_cv_header_stdc = yes; then
4746 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4748 /* end confdefs.h. */
4749 #include <string.h>
4750
4751 _ACEOF
4752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4753 $EGREP "memchr" >/dev/null 2>&1; then :
4754
4755 else
4756 ac_cv_header_stdc=no
4757 fi
4758 rm -f conftest*
4759
4760 fi
4761
4762 if test $ac_cv_header_stdc = yes; then
4763 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4765 /* end confdefs.h. */
4766 #include <stdlib.h>
4767
4768 _ACEOF
4769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4770 $EGREP "free" >/dev/null 2>&1; then :
4771
4772 else
4773 ac_cv_header_stdc=no
4774 fi
4775 rm -f conftest*
4776
4777 fi
4778
4779 if test $ac_cv_header_stdc = yes; then
4780 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4781 if test "$cross_compiling" = yes; then :
4782 :
4783 else
4784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4785 /* end confdefs.h. */
4786 #include <ctype.h>
4787 #include <stdlib.h>
4788 #if ((' ' & 0x0FF) == 0x020)
4789 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4790 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4791 #else
4792 # define ISLOWER(c) \
4793 (('a' <= (c) && (c) <= 'i') \
4794 || ('j' <= (c) && (c) <= 'r') \
4795 || ('s' <= (c) && (c) <= 'z'))
4796 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4797 #endif
4798
4799 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4800 int
4801 main ()
4802 {
4803 int i;
4804 for (i = 0; i < 256; i++)
4805 if (XOR (islower (i), ISLOWER (i))
4806 || toupper (i) != TOUPPER (i))
4807 return 2;
4808 return 0;
4809 }
4810 _ACEOF
4811 if ac_fn_c_try_run "$LINENO"; then :
4812
4813 else
4814 ac_cv_header_stdc=no
4815 fi
4816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4817 conftest.$ac_objext conftest.beam conftest.$ac_ext
4818 fi
4819
4820 fi
4821 fi
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4823 $as_echo "$ac_cv_header_stdc" >&6; }
4824 if test $ac_cv_header_stdc = yes; then
4825
4826 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4827
4828 fi
4829
4830 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4831 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4832 inttypes.h stdint.h unistd.h
4833 do :
4834 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4835 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4836 "
4837 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4838 cat >>confdefs.h <<_ACEOF
4839 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4840 _ACEOF
4841
4842 fi
4843
4844 done
4845
4846
4847
4848 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4849 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4850 MINIX=yes
4851 else
4852 MINIX=
4853 fi
4854
4855
4856 if test "$MINIX" = yes; then
4857
4858 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4859
4860
4861 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4862
4863
4864 $as_echo "#define _MINIX 1" >>confdefs.h
4865
4866 fi
4867
4868
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4870 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4871 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4872 $as_echo_n "(cached) " >&6
4873 else
4874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4875 /* end confdefs.h. */
4876
4877 # define __EXTENSIONS__ 1
4878 $ac_includes_default
4879 int
4880 main ()
4881 {
4882
4883 ;
4884 return 0;
4885 }
4886 _ACEOF
4887 if ac_fn_c_try_compile "$LINENO"; then :
4888 ac_cv_safe_to_define___extensions__=yes
4889 else
4890 ac_cv_safe_to_define___extensions__=no
4891 fi
4892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4893 fi
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4895 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4896 test $ac_cv_safe_to_define___extensions__ = yes &&
4897 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4898
4899 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4900
4901 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4902
4903 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4904
4905 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4906
4907
4908
4909 # Initialize libtool
4910
4911 case `pwd` in
4912 *\ * | *\ *)
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4914 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4915 esac
4916
4917
4918
4919 macro_version='2.4.2'
4920 macro_revision='1.3337'
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934 ltmain="$ac_aux_dir/ltmain.sh"
4935
4936 # Make sure we can run config.sub.
4937 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4938 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4939
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4941 $as_echo_n "checking build system type... " >&6; }
4942 if ${ac_cv_build+:} false; then :
4943 $as_echo_n "(cached) " >&6
4944 else
4945 ac_build_alias=$build_alias
4946 test "x$ac_build_alias" = x &&
4947 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4948 test "x$ac_build_alias" = x &&
4949 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4950 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4951 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4952
4953 fi
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4955 $as_echo "$ac_cv_build" >&6; }
4956 case $ac_cv_build in
4957 *-*-*) ;;
4958 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4959 esac
4960 build=$ac_cv_build
4961 ac_save_IFS=$IFS; IFS='-'
4962 set x $ac_cv_build
4963 shift
4964 build_cpu=$1
4965 build_vendor=$2
4966 shift; shift
4967 # Remember, the first character of IFS is used to create $*,
4968 # except with old shells:
4969 build_os=$*
4970 IFS=$ac_save_IFS
4971 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4972
4973
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4975 $as_echo_n "checking host system type... " >&6; }
4976 if ${ac_cv_host+:} false; then :
4977 $as_echo_n "(cached) " >&6
4978 else
4979 if test "x$host_alias" = x; then
4980 ac_cv_host=$ac_cv_build
4981 else
4982 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4983 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4984 fi
4985
4986 fi
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4988 $as_echo "$ac_cv_host" >&6; }
4989 case $ac_cv_host in
4990 *-*-*) ;;
4991 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4992 esac
4993 host=$ac_cv_host
4994 ac_save_IFS=$IFS; IFS='-'
4995 set x $ac_cv_host
4996 shift
4997 host_cpu=$1
4998 host_vendor=$2
4999 shift; shift
5000 # Remember, the first character of IFS is used to create $*,
5001 # except with old shells:
5002 host_os=$*
5003 IFS=$ac_save_IFS
5004 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5005
5006
5007 # Backslashify metacharacters that are still active within
5008 # double-quoted strings.
5009 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5010
5011 # Same as above, but do not quote variable references.
5012 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5013
5014 # Sed substitution to delay expansion of an escaped shell variable in a
5015 # double_quote_subst'ed string.
5016 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5017
5018 # Sed substitution to delay expansion of an escaped single quote.
5019 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5020
5021 # Sed substitution to avoid accidental globbing in evaled expressions
5022 no_glob_subst='s/\*/\\\*/g'
5023
5024 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5025 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5026 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5027
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5029 $as_echo_n "checking how to print strings... " >&6; }
5030 # Test print first, because it will be a builtin if present.
5031 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5032 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5033 ECHO='print -r --'
5034 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5035 ECHO='printf %s\n'
5036 else
5037 # Use this function as a fallback that always works.
5038 func_fallback_echo ()
5039 {
5040 eval 'cat <<_LTECHO_EOF
5041 $1
5042 _LTECHO_EOF'
5043 }
5044 ECHO='func_fallback_echo'
5045 fi
5046
5047 # func_echo_all arg...
5048 # Invoke $ECHO with all args, space-separated.
5049 func_echo_all ()
5050 {
5051 $ECHO ""
5052 }
5053
5054 case "$ECHO" in
5055 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5056 $as_echo "printf" >&6; } ;;
5057 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5058 $as_echo "print -r" >&6; } ;;
5059 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5060 $as_echo "cat" >&6; } ;;
5061 esac
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5077 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5078 if ${ac_cv_path_SED+:} false; then :
5079 $as_echo_n "(cached) " >&6
5080 else
5081 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5082 for ac_i in 1 2 3 4 5 6 7; do
5083 ac_script="$ac_script$as_nl$ac_script"
5084 done
5085 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5086 { ac_script=; unset ac_script;}
5087 if test -z "$SED"; then
5088 ac_path_SED_found=false
5089 # Loop through the user's path and test for each of PROGNAME-LIST
5090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091 for as_dir in $PATH
5092 do
5093 IFS=$as_save_IFS
5094 test -z "$as_dir" && as_dir=.
5095 for ac_prog in sed gsed; do
5096 for ac_exec_ext in '' $ac_executable_extensions; do
5097 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5098 as_fn_executable_p "$ac_path_SED" || continue
5099 # Check for GNU ac_path_SED and select it if it is found.
5100 # Check for GNU $ac_path_SED
5101 case `"$ac_path_SED" --version 2>&1` in
5102 *GNU*)
5103 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5104 *)
5105 ac_count=0
5106 $as_echo_n 0123456789 >"conftest.in"
5107 while :
5108 do
5109 cat "conftest.in" "conftest.in" >"conftest.tmp"
5110 mv "conftest.tmp" "conftest.in"
5111 cp "conftest.in" "conftest.nl"
5112 $as_echo '' >> "conftest.nl"
5113 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5114 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5115 as_fn_arith $ac_count + 1 && ac_count=$as_val
5116 if test $ac_count -gt ${ac_path_SED_max-0}; then
5117 # Best one so far, save it but keep looking for a better one
5118 ac_cv_path_SED="$ac_path_SED"
5119 ac_path_SED_max=$ac_count
5120 fi
5121 # 10*(2^10) chars as input seems more than enough
5122 test $ac_count -gt 10 && break
5123 done
5124 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5125 esac
5126
5127 $ac_path_SED_found && break 3
5128 done
5129 done
5130 done
5131 IFS=$as_save_IFS
5132 if test -z "$ac_cv_path_SED"; then
5133 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5134 fi
5135 else
5136 ac_cv_path_SED=$SED
5137 fi
5138
5139 fi
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5141 $as_echo "$ac_cv_path_SED" >&6; }
5142 SED="$ac_cv_path_SED"
5143 rm -f conftest.sed
5144
5145 test -z "$SED" && SED=sed
5146 Xsed="$SED -e 1s/^X//"
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5159 $as_echo_n "checking for fgrep... " >&6; }
5160 if ${ac_cv_path_FGREP+:} false; then :
5161 $as_echo_n "(cached) " >&6
5162 else
5163 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5164 then ac_cv_path_FGREP="$GREP -F"
5165 else
5166 if test -z "$FGREP"; then
5167 ac_path_FGREP_found=false
5168 # Loop through the user's path and test for each of PROGNAME-LIST
5169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5171 do
5172 IFS=$as_save_IFS
5173 test -z "$as_dir" && as_dir=.
5174 for ac_prog in fgrep; do
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5177 as_fn_executable_p "$ac_path_FGREP" || continue
5178 # Check for GNU ac_path_FGREP and select it if it is found.
5179 # Check for GNU $ac_path_FGREP
5180 case `"$ac_path_FGREP" --version 2>&1` in
5181 *GNU*)
5182 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5183 *)
5184 ac_count=0
5185 $as_echo_n 0123456789 >"conftest.in"
5186 while :
5187 do
5188 cat "conftest.in" "conftest.in" >"conftest.tmp"
5189 mv "conftest.tmp" "conftest.in"
5190 cp "conftest.in" "conftest.nl"
5191 $as_echo 'FGREP' >> "conftest.nl"
5192 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5193 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5194 as_fn_arith $ac_count + 1 && ac_count=$as_val
5195 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5196 # Best one so far, save it but keep looking for a better one
5197 ac_cv_path_FGREP="$ac_path_FGREP"
5198 ac_path_FGREP_max=$ac_count
5199 fi
5200 # 10*(2^10) chars as input seems more than enough
5201 test $ac_count -gt 10 && break
5202 done
5203 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5204 esac
5205
5206 $ac_path_FGREP_found && break 3
5207 done
5208 done
5209 done
5210 IFS=$as_save_IFS
5211 if test -z "$ac_cv_path_FGREP"; then
5212 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5213 fi
5214 else
5215 ac_cv_path_FGREP=$FGREP
5216 fi
5217
5218 fi
5219 fi
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5221 $as_echo "$ac_cv_path_FGREP" >&6; }
5222 FGREP="$ac_cv_path_FGREP"
5223
5224
5225 test -z "$GREP" && GREP=grep
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245 # Check whether --with-gnu-ld was given.
5246 if test "${with_gnu_ld+set}" = set; then :
5247 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5248 else
5249 with_gnu_ld=no
5250 fi
5251
5252 ac_prog=ld
5253 if test "$GCC" = yes; then
5254 # Check if gcc -print-prog-name=ld gives a path.
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5256 $as_echo_n "checking for ld used by $CC... " >&6; }
5257 case $host in
5258 *-*-mingw*)
5259 # gcc leaves a trailing carriage return which upsets mingw
5260 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5261 *)
5262 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5263 esac
5264 case $ac_prog in
5265 # Accept absolute paths.
5266 [\\/]* | ?:[\\/]*)
5267 re_direlt='/[^/][^/]*/\.\./'
5268 # Canonicalize the pathname of ld
5269 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5270 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5271 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5272 done
5273 test -z "$LD" && LD="$ac_prog"
5274 ;;
5275 "")
5276 # If it fails, then pretend we aren't using GCC.
5277 ac_prog=ld
5278 ;;
5279 *)
5280 # If it is relative, then search for the first ld in PATH.
5281 with_gnu_ld=unknown
5282 ;;
5283 esac
5284 elif test "$with_gnu_ld" = yes; then
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5286 $as_echo_n "checking for GNU ld... " >&6; }
5287 else
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5289 $as_echo_n "checking for non-GNU ld... " >&6; }
5290 fi
5291 if ${lt_cv_path_LD+:} false; then :
5292 $as_echo_n "(cached) " >&6
5293 else
5294 if test -z "$LD"; then
5295 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5296 for ac_dir in $PATH; do
5297 IFS="$lt_save_ifs"
5298 test -z "$ac_dir" && ac_dir=.
5299 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5300 lt_cv_path_LD="$ac_dir/$ac_prog"
5301 # Check to see if the program is GNU ld. I'd rather use --version,
5302 # but apparently some variants of GNU ld only accept -v.
5303 # Break only if it was the GNU/non-GNU ld that we prefer.
5304 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5305 *GNU* | *'with BFD'*)
5306 test "$with_gnu_ld" != no && break
5307 ;;
5308 *)
5309 test "$with_gnu_ld" != yes && break
5310 ;;
5311 esac
5312 fi
5313 done
5314 IFS="$lt_save_ifs"
5315 else
5316 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5317 fi
5318 fi
5319
5320 LD="$lt_cv_path_LD"
5321 if test -n "$LD"; then
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5323 $as_echo "$LD" >&6; }
5324 else
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5326 $as_echo "no" >&6; }
5327 fi
5328 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5330 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5331 if ${lt_cv_prog_gnu_ld+:} false; then :
5332 $as_echo_n "(cached) " >&6
5333 else
5334 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5335 case `$LD -v 2>&1 </dev/null` in
5336 *GNU* | *'with BFD'*)
5337 lt_cv_prog_gnu_ld=yes
5338 ;;
5339 *)
5340 lt_cv_prog_gnu_ld=no
5341 ;;
5342 esac
5343 fi
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5345 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5346 with_gnu_ld=$lt_cv_prog_gnu_ld
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5357 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5358 if ${lt_cv_path_NM+:} false; then :
5359 $as_echo_n "(cached) " >&6
5360 else
5361 if test -n "$NM"; then
5362 # Let the user override the test.
5363 lt_cv_path_NM="$NM"
5364 else
5365 lt_nm_to_check="${ac_tool_prefix}nm"
5366 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5367 lt_nm_to_check="$lt_nm_to_check nm"
5368 fi
5369 for lt_tmp_nm in $lt_nm_to_check; do
5370 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5371 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5372 IFS="$lt_save_ifs"
5373 test -z "$ac_dir" && ac_dir=.
5374 tmp_nm="$ac_dir/$lt_tmp_nm"
5375 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5376 # Check to see if the nm accepts a BSD-compat flag.
5377 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5378 # nm: unknown option "B" ignored
5379 # Tru64's nm complains that /dev/null is an invalid object file
5380 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5381 */dev/null* | *'Invalid file or object type'*)
5382 lt_cv_path_NM="$tmp_nm -B"
5383 break
5384 ;;
5385 *)
5386 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5387 */dev/null*)
5388 lt_cv_path_NM="$tmp_nm -p"
5389 break
5390 ;;
5391 *)
5392 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5393 continue # so that we can try to find one that supports BSD flags
5394 ;;
5395 esac
5396 ;;
5397 esac
5398 fi
5399 done
5400 IFS="$lt_save_ifs"
5401 done
5402 : ${lt_cv_path_NM=no}
5403 fi
5404 fi
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5406 $as_echo "$lt_cv_path_NM" >&6; }
5407 if test "$lt_cv_path_NM" != "no"; then
5408 NM="$lt_cv_path_NM"
5409 else
5410 # Didn't find any BSD compatible name lister, look for dumpbin.
5411 if test -n "$DUMPBIN"; then :
5412 # Let the user override the test.
5413 else
5414 if test -n "$ac_tool_prefix"; then
5415 for ac_prog in dumpbin "link -dump"
5416 do
5417 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5418 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5420 $as_echo_n "checking for $ac_word... " >&6; }
5421 if ${ac_cv_prog_DUMPBIN+:} false; then :
5422 $as_echo_n "(cached) " >&6
5423 else
5424 if test -n "$DUMPBIN"; then
5425 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5426 else
5427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5428 for as_dir in $PATH
5429 do
5430 IFS=$as_save_IFS
5431 test -z "$as_dir" && as_dir=.
5432 for ac_exec_ext in '' $ac_executable_extensions; do
5433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5434 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5436 break 2
5437 fi
5438 done
5439 done
5440 IFS=$as_save_IFS
5441
5442 fi
5443 fi
5444 DUMPBIN=$ac_cv_prog_DUMPBIN
5445 if test -n "$DUMPBIN"; then
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5447 $as_echo "$DUMPBIN" >&6; }
5448 else
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450 $as_echo "no" >&6; }
5451 fi
5452
5453
5454 test -n "$DUMPBIN" && break
5455 done
5456 fi
5457 if test -z "$DUMPBIN"; then
5458 ac_ct_DUMPBIN=$DUMPBIN
5459 for ac_prog in dumpbin "link -dump"
5460 do
5461 # Extract the first word of "$ac_prog", so it can be a program name with args.
5462 set dummy $ac_prog; ac_word=$2
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5464 $as_echo_n "checking for $ac_word... " >&6; }
5465 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5466 $as_echo_n "(cached) " >&6
5467 else
5468 if test -n "$ac_ct_DUMPBIN"; then
5469 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5470 else
5471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5472 for as_dir in $PATH
5473 do
5474 IFS=$as_save_IFS
5475 test -z "$as_dir" && as_dir=.
5476 for ac_exec_ext in '' $ac_executable_extensions; do
5477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5478 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5480 break 2
5481 fi
5482 done
5483 done
5484 IFS=$as_save_IFS
5485
5486 fi
5487 fi
5488 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5489 if test -n "$ac_ct_DUMPBIN"; then
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5491 $as_echo "$ac_ct_DUMPBIN" >&6; }
5492 else
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5494 $as_echo "no" >&6; }
5495 fi
5496
5497
5498 test -n "$ac_ct_DUMPBIN" && break
5499 done
5500
5501 if test "x$ac_ct_DUMPBIN" = x; then
5502 DUMPBIN=":"
5503 else
5504 case $cross_compiling:$ac_tool_warned in
5505 yes:)
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5508 ac_tool_warned=yes ;;
5509 esac
5510 DUMPBIN=$ac_ct_DUMPBIN
5511 fi
5512 fi
5513
5514 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5515 *COFF*)
5516 DUMPBIN="$DUMPBIN -symbols"
5517 ;;
5518 *)
5519 DUMPBIN=:
5520 ;;
5521 esac
5522 fi
5523
5524 if test "$DUMPBIN" != ":"; then
5525 NM="$DUMPBIN"
5526 fi
5527 fi
5528 test -z "$NM" && NM=nm
5529
5530
5531
5532
5533
5534
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5536 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5537 if ${lt_cv_nm_interface+:} false; then :
5538 $as_echo_n "(cached) " >&6
5539 else
5540 lt_cv_nm_interface="BSD nm"
5541 echo "int some_variable = 0;" > conftest.$ac_ext
5542 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5543 (eval "$ac_compile" 2>conftest.err)
5544 cat conftest.err >&5
5545 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5546 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5547 cat conftest.err >&5
5548 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5549 cat conftest.out >&5
5550 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5551 lt_cv_nm_interface="MS dumpbin"
5552 fi
5553 rm -f conftest*
5554 fi
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5556 $as_echo "$lt_cv_nm_interface" >&6; }
5557
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5559 $as_echo_n "checking whether ln -s works... " >&6; }
5560 LN_S=$as_ln_s
5561 if test "$LN_S" = "ln -s"; then
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5563 $as_echo "yes" >&6; }
5564 else
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5566 $as_echo "no, using $LN_S" >&6; }
5567 fi
5568
5569 # find the maximum length of command line arguments
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5571 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5572 if ${lt_cv_sys_max_cmd_len+:} false; then :
5573 $as_echo_n "(cached) " >&6
5574 else
5575 i=0
5576 teststring="ABCD"
5577
5578 case $build_os in
5579 msdosdjgpp*)
5580 # On DJGPP, this test can blow up pretty badly due to problems in libc
5581 # (any single argument exceeding 2000 bytes causes a buffer overrun
5582 # during glob expansion). Even if it were fixed, the result of this
5583 # check would be larger than it should be.
5584 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5585 ;;
5586
5587 gnu*)
5588 # Under GNU Hurd, this test is not required because there is
5589 # no limit to the length of command line arguments.
5590 # Libtool will interpret -1 as no limit whatsoever
5591 lt_cv_sys_max_cmd_len=-1;
5592 ;;
5593
5594 cygwin* | mingw* | cegcc*)
5595 # On Win9x/ME, this test blows up -- it succeeds, but takes
5596 # about 5 minutes as the teststring grows exponentially.
5597 # Worse, since 9x/ME are not pre-emptively multitasking,
5598 # you end up with a "frozen" computer, even though with patience
5599 # the test eventually succeeds (with a max line length of 256k).
5600 # Instead, let's just punt: use the minimum linelength reported by
5601 # all of the supported platforms: 8192 (on NT/2K/XP).
5602 lt_cv_sys_max_cmd_len=8192;
5603 ;;
5604
5605 mint*)
5606 # On MiNT this can take a long time and run out of memory.
5607 lt_cv_sys_max_cmd_len=8192;
5608 ;;
5609
5610 amigaos*)
5611 # On AmigaOS with pdksh, this test takes hours, literally.
5612 # So we just punt and use a minimum line length of 8192.
5613 lt_cv_sys_max_cmd_len=8192;
5614 ;;
5615
5616 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5617 # This has been around since 386BSD, at least. Likely further.
5618 if test -x /sbin/sysctl; then
5619 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5620 elif test -x /usr/sbin/sysctl; then
5621 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5622 else
5623 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5624 fi
5625 # And add a safety zone
5626 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5627 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5628 ;;
5629
5630 interix*)
5631 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5632 lt_cv_sys_max_cmd_len=196608
5633 ;;
5634
5635 os2*)
5636 # The test takes a long time on OS/2.
5637 lt_cv_sys_max_cmd_len=8192
5638 ;;
5639
5640 osf*)
5641 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5642 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5643 # nice to cause kernel panics so lets avoid the loop below.
5644 # First set a reasonable default.
5645 lt_cv_sys_max_cmd_len=16384
5646 #
5647 if test -x /sbin/sysconfig; then
5648 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5649 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5650 esac
5651 fi
5652 ;;
5653 sco3.2v5*)
5654 lt_cv_sys_max_cmd_len=102400
5655 ;;
5656 sysv5* | sco5v6* | sysv4.2uw2*)
5657 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5658 if test -n "$kargmax"; then
5659 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5660 else
5661 lt_cv_sys_max_cmd_len=32768
5662 fi
5663 ;;
5664 *)
5665 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5666 if test -n "$lt_cv_sys_max_cmd_len" && \
5667 test undefined != "$lt_cv_sys_max_cmd_len"; then
5668 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5669 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5670 else
5671 # Make teststring a little bigger before we do anything with it.
5672 # a 1K string should be a reasonable start.
5673 for i in 1 2 3 4 5 6 7 8 ; do
5674 teststring=$teststring$teststring
5675 done
5676 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5677 # If test is not a shell built-in, we'll probably end up computing a
5678 # maximum length that is only half of the actual maximum length, but
5679 # we can't tell.
5680 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5681 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5682 test $i != 17 # 1/2 MB should be enough
5683 do
5684 i=`expr $i + 1`
5685 teststring=$teststring$teststring
5686 done
5687 # Only check the string length outside the loop.
5688 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5689 teststring=
5690 # Add a significant safety factor because C++ compilers can tack on
5691 # massive amounts of additional arguments before passing them to the
5692 # linker. It appears as though 1/2 is a usable value.
5693 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5694 fi
5695 ;;
5696 esac
5697
5698 fi
5699
5700 if test -n $lt_cv_sys_max_cmd_len ; then
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5702 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5703 else
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5705 $as_echo "none" >&6; }
5706 fi
5707 max_cmd_len=$lt_cv_sys_max_cmd_len
5708
5709
5710
5711
5712
5713
5714 : ${CP="cp -f"}
5715 : ${MV="mv -f"}
5716 : ${RM="rm -f"}
5717
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5719 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5720 # Try some XSI features
5721 xsi_shell=no
5722 ( _lt_dummy="a/b/c"
5723 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5724 = c,a/b,b/c, \
5725 && eval 'test $(( 1 + 1 )) -eq 2 \
5726 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5727 && xsi_shell=yes
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5729 $as_echo "$xsi_shell" >&6; }
5730
5731
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5733 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5734 lt_shell_append=no
5735 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5736 >/dev/null 2>&1 \
5737 && lt_shell_append=yes
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5739 $as_echo "$lt_shell_append" >&6; }
5740
5741
5742 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5743 lt_unset=unset
5744 else
5745 lt_unset=false
5746 fi
5747
5748
5749
5750
5751
5752 # test EBCDIC or ASCII
5753 case `echo X|tr X '\101'` in
5754 A) # ASCII based system
5755 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5756 lt_SP2NL='tr \040 \012'
5757 lt_NL2SP='tr \015\012 \040\040'
5758 ;;
5759 *) # EBCDIC based system
5760 lt_SP2NL='tr \100 \n'
5761 lt_NL2SP='tr \r\n \100\100'
5762 ;;
5763 esac
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5774 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5775 if ${lt_cv_to_host_file_cmd+:} false; then :
5776 $as_echo_n "(cached) " >&6
5777 else
5778 case $host in
5779 *-*-mingw* )
5780 case $build in
5781 *-*-mingw* ) # actually msys
5782 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5783 ;;
5784 *-*-cygwin* )
5785 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5786 ;;
5787 * ) # otherwise, assume *nix
5788 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5789 ;;
5790 esac
5791 ;;
5792 *-*-cygwin* )
5793 case $build in
5794 *-*-mingw* ) # actually msys
5795 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5796 ;;
5797 *-*-cygwin* )
5798 lt_cv_to_host_file_cmd=func_convert_file_noop
5799 ;;
5800 * ) # otherwise, assume *nix
5801 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5802 ;;
5803 esac
5804 ;;
5805 * ) # unhandled hosts (and "normal" native builds)
5806 lt_cv_to_host_file_cmd=func_convert_file_noop
5807 ;;
5808 esac
5809
5810 fi
5811
5812 to_host_file_cmd=$lt_cv_to_host_file_cmd
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5814 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5815
5816
5817
5818
5819
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5821 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5822 if ${lt_cv_to_tool_file_cmd+:} false; then :
5823 $as_echo_n "(cached) " >&6
5824 else
5825 #assume ordinary cross tools, or native build.
5826 lt_cv_to_tool_file_cmd=func_convert_file_noop
5827 case $host in
5828 *-*-mingw* )
5829 case $build in
5830 *-*-mingw* ) # actually msys
5831 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5832 ;;
5833 esac
5834 ;;
5835 esac
5836
5837 fi
5838
5839 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5841 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5842
5843
5844
5845
5846
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5848 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5849 if ${lt_cv_ld_reload_flag+:} false; then :
5850 $as_echo_n "(cached) " >&6
5851 else
5852 lt_cv_ld_reload_flag='-r'
5853 fi
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5855 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5856 reload_flag=$lt_cv_ld_reload_flag
5857 case $reload_flag in
5858 "" | " "*) ;;
5859 *) reload_flag=" $reload_flag" ;;
5860 esac
5861 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5862 case $host_os in
5863 cygwin* | mingw* | pw32* | cegcc*)
5864 if test "$GCC" != yes; then
5865 reload_cmds=false
5866 fi
5867 ;;
5868 darwin*)
5869 if test "$GCC" = yes; then
5870 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5871 else
5872 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5873 fi
5874 ;;
5875 esac
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885 if test -n "$ac_tool_prefix"; then
5886 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5887 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5889 $as_echo_n "checking for $ac_word... " >&6; }
5890 if ${ac_cv_prog_OBJDUMP+:} false; then :
5891 $as_echo_n "(cached) " >&6
5892 else
5893 if test -n "$OBJDUMP"; then
5894 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5895 else
5896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897 for as_dir in $PATH
5898 do
5899 IFS=$as_save_IFS
5900 test -z "$as_dir" && as_dir=.
5901 for ac_exec_ext in '' $ac_executable_extensions; do
5902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5903 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5905 break 2
5906 fi
5907 done
5908 done
5909 IFS=$as_save_IFS
5910
5911 fi
5912 fi
5913 OBJDUMP=$ac_cv_prog_OBJDUMP
5914 if test -n "$OBJDUMP"; then
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5916 $as_echo "$OBJDUMP" >&6; }
5917 else
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5919 $as_echo "no" >&6; }
5920 fi
5921
5922
5923 fi
5924 if test -z "$ac_cv_prog_OBJDUMP"; then
5925 ac_ct_OBJDUMP=$OBJDUMP
5926 # Extract the first word of "objdump", so it can be a program name with args.
5927 set dummy objdump; ac_word=$2
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5929 $as_echo_n "checking for $ac_word... " >&6; }
5930 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5931 $as_echo_n "(cached) " >&6
5932 else
5933 if test -n "$ac_ct_OBJDUMP"; then
5934 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5935 else
5936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937 for as_dir in $PATH
5938 do
5939 IFS=$as_save_IFS
5940 test -z "$as_dir" && as_dir=.
5941 for ac_exec_ext in '' $ac_executable_extensions; do
5942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5943 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5945 break 2
5946 fi
5947 done
5948 done
5949 IFS=$as_save_IFS
5950
5951 fi
5952 fi
5953 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5954 if test -n "$ac_ct_OBJDUMP"; then
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5956 $as_echo "$ac_ct_OBJDUMP" >&6; }
5957 else
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5959 $as_echo "no" >&6; }
5960 fi
5961
5962 if test "x$ac_ct_OBJDUMP" = x; then
5963 OBJDUMP="false"
5964 else
5965 case $cross_compiling:$ac_tool_warned in
5966 yes:)
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5968 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5969 ac_tool_warned=yes ;;
5970 esac
5971 OBJDUMP=$ac_ct_OBJDUMP
5972 fi
5973 else
5974 OBJDUMP="$ac_cv_prog_OBJDUMP"
5975 fi
5976
5977 test -z "$OBJDUMP" && OBJDUMP=objdump
5978
5979
5980
5981
5982
5983
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5985 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5986 if ${lt_cv_deplibs_check_method+:} false; then :
5987 $as_echo_n "(cached) " >&6
5988 else
5989 lt_cv_file_magic_cmd='$MAGIC_CMD'
5990 lt_cv_file_magic_test_file=
5991 lt_cv_deplibs_check_method='unknown'
5992 # Need to set the preceding variable on all platforms that support
5993 # interlibrary dependencies.
5994 # 'none' -- dependencies not supported.
5995 # `unknown' -- same as none, but documents that we really don't know.
5996 # 'pass_all' -- all dependencies passed with no checks.
5997 # 'test_compile' -- check by making test program.
5998 # 'file_magic [[regex]]' -- check by looking for files in library path
5999 # which responds to the $file_magic_cmd with a given extended regex.
6000 # If you have `file' or equivalent on your system and you're not sure
6001 # whether `pass_all' will *always* work, you probably want this one.
6002
6003 case $host_os in
6004 aix[4-9]*)
6005 lt_cv_deplibs_check_method=pass_all
6006 ;;
6007
6008 beos*)
6009 lt_cv_deplibs_check_method=pass_all
6010 ;;
6011
6012 bsdi[45]*)
6013 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6014 lt_cv_file_magic_cmd='/usr/bin/file -L'
6015 lt_cv_file_magic_test_file=/shlib/libc.so
6016 ;;
6017
6018 cygwin*)
6019 # func_win32_libid is a shell function defined in ltmain.sh
6020 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6021 lt_cv_file_magic_cmd='func_win32_libid'
6022 ;;
6023
6024 mingw* | pw32*)
6025 # Base MSYS/MinGW do not provide the 'file' command needed by
6026 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6027 # unless we find 'file', for example because we are cross-compiling.
6028 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6029 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6030 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6031 lt_cv_file_magic_cmd='func_win32_libid'
6032 else
6033 # Keep this pattern in sync with the one in func_win32_libid.
6034 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6035 lt_cv_file_magic_cmd='$OBJDUMP -f'
6036 fi
6037 ;;
6038
6039 cegcc*)
6040 # use the weaker test based on 'objdump'. See mingw*.
6041 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6042 lt_cv_file_magic_cmd='$OBJDUMP -f'
6043 ;;
6044
6045 darwin* | rhapsody*)
6046 lt_cv_deplibs_check_method=pass_all
6047 ;;
6048
6049 freebsd* | dragonfly*)
6050 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6051 case $host_cpu in
6052 i*86 )
6053 # Not sure whether the presence of OpenBSD here was a mistake.
6054 # Let's accept both of them until this is cleared up.
6055 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6056 lt_cv_file_magic_cmd=/usr/bin/file
6057 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6058 ;;
6059 esac
6060 else
6061 lt_cv_deplibs_check_method=pass_all
6062 fi
6063 ;;
6064
6065 haiku*)
6066 lt_cv_deplibs_check_method=pass_all
6067 ;;
6068
6069 hpux10.20* | hpux11*)
6070 lt_cv_file_magic_cmd=/usr/bin/file
6071 case $host_cpu in
6072 ia64*)
6073 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6074 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6075 ;;
6076 hppa*64*)
6077 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]'
6078 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6079 ;;
6080 *)
6081 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6082 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6083 ;;
6084 esac
6085 ;;
6086
6087 interix[3-9]*)
6088 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6089 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6090 ;;
6091
6092 irix5* | irix6* | nonstopux*)
6093 case $LD in
6094 *-32|*"-32 ") libmagic=32-bit;;
6095 *-n32|*"-n32 ") libmagic=N32;;
6096 *-64|*"-64 ") libmagic=64-bit;;
6097 *) libmagic=never-match;;
6098 esac
6099 lt_cv_deplibs_check_method=pass_all
6100 ;;
6101
6102 # This must be glibc/ELF.
6103 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6104 lt_cv_deplibs_check_method=pass_all
6105 ;;
6106
6107 netbsd* | netbsdelf*-gnu)
6108 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6109 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6110 else
6111 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6112 fi
6113 ;;
6114
6115 newos6*)
6116 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6117 lt_cv_file_magic_cmd=/usr/bin/file
6118 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6119 ;;
6120
6121 *nto* | *qnx*)
6122 lt_cv_deplibs_check_method=pass_all
6123 ;;
6124
6125 openbsd*)
6126 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6127 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6128 else
6129 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6130 fi
6131 ;;
6132
6133 osf3* | osf4* | osf5*)
6134 lt_cv_deplibs_check_method=pass_all
6135 ;;
6136
6137 rdos*)
6138 lt_cv_deplibs_check_method=pass_all
6139 ;;
6140
6141 solaris*)
6142 lt_cv_deplibs_check_method=pass_all
6143 ;;
6144
6145 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6146 lt_cv_deplibs_check_method=pass_all
6147 ;;
6148
6149 sysv4 | sysv4.3*)
6150 case $host_vendor in
6151 motorola)
6152 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]'
6153 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6154 ;;
6155 ncr)
6156 lt_cv_deplibs_check_method=pass_all
6157 ;;
6158 sequent)
6159 lt_cv_file_magic_cmd='/bin/file'
6160 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6161 ;;
6162 sni)
6163 lt_cv_file_magic_cmd='/bin/file'
6164 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6165 lt_cv_file_magic_test_file=/lib/libc.so
6166 ;;
6167 siemens)
6168 lt_cv_deplibs_check_method=pass_all
6169 ;;
6170 pc)
6171 lt_cv_deplibs_check_method=pass_all
6172 ;;
6173 esac
6174 ;;
6175
6176 tpf*)
6177 lt_cv_deplibs_check_method=pass_all
6178 ;;
6179 esac
6180
6181 fi
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6183 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6184
6185 file_magic_glob=
6186 want_nocaseglob=no
6187 if test "$build" = "$host"; then
6188 case $host_os in
6189 mingw* | pw32*)
6190 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6191 want_nocaseglob=yes
6192 else
6193 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6194 fi
6195 ;;
6196 esac
6197 fi
6198
6199 file_magic_cmd=$lt_cv_file_magic_cmd
6200 deplibs_check_method=$lt_cv_deplibs_check_method
6201 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224 if test -n "$ac_tool_prefix"; then
6225 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6226 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6228 $as_echo_n "checking for $ac_word... " >&6; }
6229 if ${ac_cv_prog_DLLTOOL+:} false; then :
6230 $as_echo_n "(cached) " >&6
6231 else
6232 if test -n "$DLLTOOL"; then
6233 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6234 else
6235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6236 for as_dir in $PATH
6237 do
6238 IFS=$as_save_IFS
6239 test -z "$as_dir" && as_dir=.
6240 for ac_exec_ext in '' $ac_executable_extensions; do
6241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6242 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6244 break 2
6245 fi
6246 done
6247 done
6248 IFS=$as_save_IFS
6249
6250 fi
6251 fi
6252 DLLTOOL=$ac_cv_prog_DLLTOOL
6253 if test -n "$DLLTOOL"; then
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6255 $as_echo "$DLLTOOL" >&6; }
6256 else
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6258 $as_echo "no" >&6; }
6259 fi
6260
6261
6262 fi
6263 if test -z "$ac_cv_prog_DLLTOOL"; then
6264 ac_ct_DLLTOOL=$DLLTOOL
6265 # Extract the first word of "dlltool", so it can be a program name with args.
6266 set dummy dlltool; ac_word=$2
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6268 $as_echo_n "checking for $ac_word... " >&6; }
6269 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6270 $as_echo_n "(cached) " >&6
6271 else
6272 if test -n "$ac_ct_DLLTOOL"; then
6273 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6274 else
6275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6276 for as_dir in $PATH
6277 do
6278 IFS=$as_save_IFS
6279 test -z "$as_dir" && as_dir=.
6280 for ac_exec_ext in '' $ac_executable_extensions; do
6281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6282 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6284 break 2
6285 fi
6286 done
6287 done
6288 IFS=$as_save_IFS
6289
6290 fi
6291 fi
6292 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6293 if test -n "$ac_ct_DLLTOOL"; then
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6295 $as_echo "$ac_ct_DLLTOOL" >&6; }
6296 else
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6298 $as_echo "no" >&6; }
6299 fi
6300
6301 if test "x$ac_ct_DLLTOOL" = x; then
6302 DLLTOOL="false"
6303 else
6304 case $cross_compiling:$ac_tool_warned in
6305 yes:)
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6308 ac_tool_warned=yes ;;
6309 esac
6310 DLLTOOL=$ac_ct_DLLTOOL
6311 fi
6312 else
6313 DLLTOOL="$ac_cv_prog_DLLTOOL"
6314 fi
6315
6316 test -z "$DLLTOOL" && DLLTOOL=dlltool
6317
6318
6319
6320
6321
6322
6323
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6325 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6326 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6327 $as_echo_n "(cached) " >&6
6328 else
6329 lt_cv_sharedlib_from_linklib_cmd='unknown'
6330
6331 case $host_os in
6332 cygwin* | mingw* | pw32* | cegcc*)
6333 # two different shell functions defined in ltmain.sh
6334 # decide which to use based on capabilities of $DLLTOOL
6335 case `$DLLTOOL --help 2>&1` in
6336 *--identify-strict*)
6337 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6338 ;;
6339 *)
6340 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6341 ;;
6342 esac
6343 ;;
6344 *)
6345 # fallback: assume linklib IS sharedlib
6346 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6347 ;;
6348 esac
6349
6350 fi
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6352 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6353 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6354 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6355
6356
6357
6358
6359
6360
6361
6362 if test -n "$ac_tool_prefix"; then
6363 for ac_prog in ar
6364 do
6365 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6366 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6368 $as_echo_n "checking for $ac_word... " >&6; }
6369 if ${ac_cv_prog_AR+:} false; then :
6370 $as_echo_n "(cached) " >&6
6371 else
6372 if test -n "$AR"; then
6373 ac_cv_prog_AR="$AR" # Let the user override the test.
6374 else
6375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376 for as_dir in $PATH
6377 do
6378 IFS=$as_save_IFS
6379 test -z "$as_dir" && as_dir=.
6380 for ac_exec_ext in '' $ac_executable_extensions; do
6381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6382 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6384 break 2
6385 fi
6386 done
6387 done
6388 IFS=$as_save_IFS
6389
6390 fi
6391 fi
6392 AR=$ac_cv_prog_AR
6393 if test -n "$AR"; then
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6395 $as_echo "$AR" >&6; }
6396 else
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6398 $as_echo "no" >&6; }
6399 fi
6400
6401
6402 test -n "$AR" && break
6403 done
6404 fi
6405 if test -z "$AR"; then
6406 ac_ct_AR=$AR
6407 for ac_prog in ar
6408 do
6409 # Extract the first word of "$ac_prog", so it can be a program name with args.
6410 set dummy $ac_prog; ac_word=$2
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6412 $as_echo_n "checking for $ac_word... " >&6; }
6413 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6414 $as_echo_n "(cached) " >&6
6415 else
6416 if test -n "$ac_ct_AR"; then
6417 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6418 else
6419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420 for as_dir in $PATH
6421 do
6422 IFS=$as_save_IFS
6423 test -z "$as_dir" && as_dir=.
6424 for ac_exec_ext in '' $ac_executable_extensions; do
6425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6426 ac_cv_prog_ac_ct_AR="$ac_prog"
6427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6428 break 2
6429 fi
6430 done
6431 done
6432 IFS=$as_save_IFS
6433
6434 fi
6435 fi
6436 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6437 if test -n "$ac_ct_AR"; then
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6439 $as_echo "$ac_ct_AR" >&6; }
6440 else
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6442 $as_echo "no" >&6; }
6443 fi
6444
6445
6446 test -n "$ac_ct_AR" && break
6447 done
6448
6449 if test "x$ac_ct_AR" = x; then
6450 AR="false"
6451 else
6452 case $cross_compiling:$ac_tool_warned in
6453 yes:)
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6455 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6456 ac_tool_warned=yes ;;
6457 esac
6458 AR=$ac_ct_AR
6459 fi
6460 fi
6461
6462 : ${AR=ar}
6463 : ${AR_FLAGS=cru}
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6476 $as_echo_n "checking for archiver @FILE support... " >&6; }
6477 if ${lt_cv_ar_at_file+:} false; then :
6478 $as_echo_n "(cached) " >&6
6479 else
6480 lt_cv_ar_at_file=no
6481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6482 /* end confdefs.h. */
6483
6484 int
6485 main ()
6486 {
6487
6488 ;
6489 return 0;
6490 }
6491 _ACEOF
6492 if ac_fn_c_try_compile "$LINENO"; then :
6493 echo conftest.$ac_objext > conftest.lst
6494 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6496 (eval $lt_ar_try) 2>&5
6497 ac_status=$?
6498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6499 test $ac_status = 0; }
6500 if test "$ac_status" -eq 0; then
6501 # Ensure the archiver fails upon bogus file names.
6502 rm -f conftest.$ac_objext libconftest.a
6503 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6504 (eval $lt_ar_try) 2>&5
6505 ac_status=$?
6506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6507 test $ac_status = 0; }
6508 if test "$ac_status" -ne 0; then
6509 lt_cv_ar_at_file=@
6510 fi
6511 fi
6512 rm -f conftest.* libconftest.a
6513
6514 fi
6515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6516
6517 fi
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6519 $as_echo "$lt_cv_ar_at_file" >&6; }
6520
6521 if test "x$lt_cv_ar_at_file" = xno; then
6522 archiver_list_spec=
6523 else
6524 archiver_list_spec=$lt_cv_ar_at_file
6525 fi
6526
6527
6528
6529
6530
6531
6532
6533 if test -n "$ac_tool_prefix"; then
6534 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6535 set dummy ${ac_tool_prefix}strip; ac_word=$2
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6537 $as_echo_n "checking for $ac_word... " >&6; }
6538 if ${ac_cv_prog_STRIP+:} false; then :
6539 $as_echo_n "(cached) " >&6
6540 else
6541 if test -n "$STRIP"; then
6542 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6543 else
6544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545 for as_dir in $PATH
6546 do
6547 IFS=$as_save_IFS
6548 test -z "$as_dir" && as_dir=.
6549 for ac_exec_ext in '' $ac_executable_extensions; do
6550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6551 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6553 break 2
6554 fi
6555 done
6556 done
6557 IFS=$as_save_IFS
6558
6559 fi
6560 fi
6561 STRIP=$ac_cv_prog_STRIP
6562 if test -n "$STRIP"; then
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6564 $as_echo "$STRIP" >&6; }
6565 else
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6567 $as_echo "no" >&6; }
6568 fi
6569
6570
6571 fi
6572 if test -z "$ac_cv_prog_STRIP"; then
6573 ac_ct_STRIP=$STRIP
6574 # Extract the first word of "strip", so it can be a program name with args.
6575 set dummy strip; ac_word=$2
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6577 $as_echo_n "checking for $ac_word... " >&6; }
6578 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6579 $as_echo_n "(cached) " >&6
6580 else
6581 if test -n "$ac_ct_STRIP"; then
6582 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6583 else
6584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585 for as_dir in $PATH
6586 do
6587 IFS=$as_save_IFS
6588 test -z "$as_dir" && as_dir=.
6589 for ac_exec_ext in '' $ac_executable_extensions; do
6590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6591 ac_cv_prog_ac_ct_STRIP="strip"
6592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6593 break 2
6594 fi
6595 done
6596 done
6597 IFS=$as_save_IFS
6598
6599 fi
6600 fi
6601 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6602 if test -n "$ac_ct_STRIP"; then
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6604 $as_echo "$ac_ct_STRIP" >&6; }
6605 else
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6607 $as_echo "no" >&6; }
6608 fi
6609
6610 if test "x$ac_ct_STRIP" = x; then
6611 STRIP=":"
6612 else
6613 case $cross_compiling:$ac_tool_warned in
6614 yes:)
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6617 ac_tool_warned=yes ;;
6618 esac
6619 STRIP=$ac_ct_STRIP
6620 fi
6621 else
6622 STRIP="$ac_cv_prog_STRIP"
6623 fi
6624
6625 test -z "$STRIP" && STRIP=:
6626
6627
6628
6629
6630
6631
6632 if test -n "$ac_tool_prefix"; then
6633 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6634 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6636 $as_echo_n "checking for $ac_word... " >&6; }
6637 if ${ac_cv_prog_RANLIB+:} false; then :
6638 $as_echo_n "(cached) " >&6
6639 else
6640 if test -n "$RANLIB"; then
6641 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6642 else
6643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644 for as_dir in $PATH
6645 do
6646 IFS=$as_save_IFS
6647 test -z "$as_dir" && as_dir=.
6648 for ac_exec_ext in '' $ac_executable_extensions; do
6649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6650 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6652 break 2
6653 fi
6654 done
6655 done
6656 IFS=$as_save_IFS
6657
6658 fi
6659 fi
6660 RANLIB=$ac_cv_prog_RANLIB
6661 if test -n "$RANLIB"; then
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6663 $as_echo "$RANLIB" >&6; }
6664 else
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6666 $as_echo "no" >&6; }
6667 fi
6668
6669
6670 fi
6671 if test -z "$ac_cv_prog_RANLIB"; then
6672 ac_ct_RANLIB=$RANLIB
6673 # Extract the first word of "ranlib", so it can be a program name with args.
6674 set dummy ranlib; ac_word=$2
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6676 $as_echo_n "checking for $ac_word... " >&6; }
6677 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6678 $as_echo_n "(cached) " >&6
6679 else
6680 if test -n "$ac_ct_RANLIB"; then
6681 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6682 else
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 for as_dir in $PATH
6685 do
6686 IFS=$as_save_IFS
6687 test -z "$as_dir" && as_dir=.
6688 for ac_exec_ext in '' $ac_executable_extensions; do
6689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6690 ac_cv_prog_ac_ct_RANLIB="ranlib"
6691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6692 break 2
6693 fi
6694 done
6695 done
6696 IFS=$as_save_IFS
6697
6698 fi
6699 fi
6700 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6701 if test -n "$ac_ct_RANLIB"; then
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6703 $as_echo "$ac_ct_RANLIB" >&6; }
6704 else
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6706 $as_echo "no" >&6; }
6707 fi
6708
6709 if test "x$ac_ct_RANLIB" = x; then
6710 RANLIB=":"
6711 else
6712 case $cross_compiling:$ac_tool_warned in
6713 yes:)
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6716 ac_tool_warned=yes ;;
6717 esac
6718 RANLIB=$ac_ct_RANLIB
6719 fi
6720 else
6721 RANLIB="$ac_cv_prog_RANLIB"
6722 fi
6723
6724 test -z "$RANLIB" && RANLIB=:
6725
6726
6727
6728
6729
6730
6731 # Determine commands to create old-style static archives.
6732 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6733 old_postinstall_cmds='chmod 644 $oldlib'
6734 old_postuninstall_cmds=
6735
6736 if test -n "$RANLIB"; then
6737 case $host_os in
6738 openbsd*)
6739 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6740 ;;
6741 *)
6742 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6743 ;;
6744 esac
6745 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6746 fi
6747
6748 case $host_os in
6749 darwin*)
6750 lock_old_archive_extraction=yes ;;
6751 *)
6752 lock_old_archive_extraction=no ;;
6753 esac
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
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 # If no C compiler was specified, use CC.
6794 LTCC=${LTCC-"$CC"}
6795
6796 # If no C compiler flags were specified, use CFLAGS.
6797 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6798
6799 # Allow CC to be a program name with arguments.
6800 compiler=$CC
6801
6802
6803 # Check for command to grab the raw symbol name followed by C symbol from nm.
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6805 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6806 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6807 $as_echo_n "(cached) " >&6
6808 else
6809
6810 # These are sane defaults that work on at least a few old systems.
6811 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6812
6813 # Character class describing NM global symbol codes.
6814 symcode='[BCDEGRST]'
6815
6816 # Regexp to match symbols that can be accessed directly from C.
6817 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6818
6819 # Define system-specific variables.
6820 case $host_os in
6821 aix*)
6822 symcode='[BCDT]'
6823 ;;
6824 cygwin* | mingw* | pw32* | cegcc*)
6825 symcode='[ABCDGISTW]'
6826 ;;
6827 hpux*)
6828 if test "$host_cpu" = ia64; then
6829 symcode='[ABCDEGRST]'
6830 fi
6831 ;;
6832 irix* | nonstopux*)
6833 symcode='[BCDEGRST]'
6834 ;;
6835 osf*)
6836 symcode='[BCDEGQRST]'
6837 ;;
6838 solaris*)
6839 symcode='[BDRT]'
6840 ;;
6841 sco3.2v5*)
6842 symcode='[DT]'
6843 ;;
6844 sysv4.2uw2*)
6845 symcode='[DT]'
6846 ;;
6847 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6848 symcode='[ABDT]'
6849 ;;
6850 sysv4)
6851 symcode='[DFNSTU]'
6852 ;;
6853 esac
6854
6855 # If we're using GNU nm, then use its standard symbol codes.
6856 case `$NM -V 2>&1` in
6857 *GNU* | *'with BFD'*)
6858 symcode='[ABCDGIRSTW]' ;;
6859 esac
6860
6861 # Transform an extracted symbol line into a proper C declaration.
6862 # Some systems (esp. on ia64) link data and code symbols differently,
6863 # so use this general approach.
6864 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6865
6866 # Transform an extracted symbol line into symbol name and symbol address
6867 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6868 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'"
6869
6870 # Handle CRLF in mingw tool chain
6871 opt_cr=
6872 case $build_os in
6873 mingw*)
6874 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6875 ;;
6876 esac
6877
6878 # Try without a prefix underscore, then with it.
6879 for ac_symprfx in "" "_"; do
6880
6881 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6882 symxfrm="\\1 $ac_symprfx\\2 \\2"
6883
6884 # Write the raw and C identifiers.
6885 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6886 # Fake it for dumpbin and say T for any non-static function
6887 # and D for any global variable.
6888 # Also find C++ and __fastcall symbols from MSVC++,
6889 # which start with @ or ?.
6890 lt_cv_sys_global_symbol_pipe="$AWK '"\
6891 " {last_section=section; section=\$ 3};"\
6892 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6893 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6894 " \$ 0!~/External *\|/{next};"\
6895 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6896 " {if(hide[section]) next};"\
6897 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6898 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6899 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6900 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6901 " ' prfx=^$ac_symprfx"
6902 else
6903 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6904 fi
6905 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6906
6907 # Check to see that the pipe works correctly.
6908 pipe_works=no
6909
6910 rm -f conftest*
6911 cat > conftest.$ac_ext <<_LT_EOF
6912 #ifdef __cplusplus
6913 extern "C" {
6914 #endif
6915 char nm_test_var;
6916 void nm_test_func(void);
6917 void nm_test_func(void){}
6918 #ifdef __cplusplus
6919 }
6920 #endif
6921 int main(){nm_test_var='a';nm_test_func();return(0);}
6922 _LT_EOF
6923
6924 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6925 (eval $ac_compile) 2>&5
6926 ac_status=$?
6927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6928 test $ac_status = 0; }; then
6929 # Now try to grab the symbols.
6930 nlist=conftest.nm
6931 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6932 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6933 ac_status=$?
6934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6935 test $ac_status = 0; } && test -s "$nlist"; then
6936 # Try sorting and uniquifying the output.
6937 if sort "$nlist" | uniq > "$nlist"T; then
6938 mv -f "$nlist"T "$nlist"
6939 else
6940 rm -f "$nlist"T
6941 fi
6942
6943 # Make sure that we snagged all the symbols we need.
6944 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6945 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6946 cat <<_LT_EOF > conftest.$ac_ext
6947 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6948 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6949 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6950 relocations are performed -- see ld's documentation on pseudo-relocs. */
6951 # define LT_DLSYM_CONST
6952 #elif defined(__osf__)
6953 /* This system does not cope well with relocations in const data. */
6954 # define LT_DLSYM_CONST
6955 #else
6956 # define LT_DLSYM_CONST const
6957 #endif
6958
6959 #ifdef __cplusplus
6960 extern "C" {
6961 #endif
6962
6963 _LT_EOF
6964 # Now generate the symbol file.
6965 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6966
6967 cat <<_LT_EOF >> conftest.$ac_ext
6968
6969 /* The mapping between symbol names and symbols. */
6970 LT_DLSYM_CONST struct {
6971 const char *name;
6972 void *address;
6973 }
6974 lt__PROGRAM__LTX_preloaded_symbols[] =
6975 {
6976 { "@PROGRAM@", (void *) 0 },
6977 _LT_EOF
6978 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6979 cat <<\_LT_EOF >> conftest.$ac_ext
6980 {0, (void *) 0}
6981 };
6982
6983 /* This works around a problem in FreeBSD linker */
6984 #ifdef FREEBSD_WORKAROUND
6985 static const void *lt_preloaded_setup() {
6986 return lt__PROGRAM__LTX_preloaded_symbols;
6987 }
6988 #endif
6989
6990 #ifdef __cplusplus
6991 }
6992 #endif
6993 _LT_EOF
6994 # Now try linking the two files.
6995 mv conftest.$ac_objext conftstm.$ac_objext
6996 lt_globsym_save_LIBS=$LIBS
6997 lt_globsym_save_CFLAGS=$CFLAGS
6998 LIBS="conftstm.$ac_objext"
6999 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7000 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7001 (eval $ac_link) 2>&5
7002 ac_status=$?
7003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7004 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7005 pipe_works=yes
7006 fi
7007 LIBS=$lt_globsym_save_LIBS
7008 CFLAGS=$lt_globsym_save_CFLAGS
7009 else
7010 echo "cannot find nm_test_func in $nlist" >&5
7011 fi
7012 else
7013 echo "cannot find nm_test_var in $nlist" >&5
7014 fi
7015 else
7016 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7017 fi
7018 else
7019 echo "$progname: failed program was:" >&5
7020 cat conftest.$ac_ext >&5
7021 fi
7022 rm -rf conftest* conftst*
7023
7024 # Do not use the global_symbol_pipe unless it works.
7025 if test "$pipe_works" = yes; then
7026 break
7027 else
7028 lt_cv_sys_global_symbol_pipe=
7029 fi
7030 done
7031
7032 fi
7033
7034 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7035 lt_cv_sys_global_symbol_to_cdecl=
7036 fi
7037 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7039 $as_echo "failed" >&6; }
7040 else
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7042 $as_echo "ok" >&6; }
7043 fi
7044
7045 # Response file support.
7046 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7047 nm_file_list_spec='@'
7048 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7049 nm_file_list_spec='@'
7050 fi
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7079 $as_echo_n "checking for sysroot... " >&6; }
7080
7081 # Check whether --with-sysroot was given.
7082 if test "${with_sysroot+set}" = set; then :
7083 withval=$with_sysroot;
7084 else
7085 with_sysroot=no
7086 fi
7087
7088
7089 lt_sysroot=
7090 case ${with_sysroot} in #(
7091 yes)
7092 if test "$GCC" = yes; then
7093 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7094 fi
7095 ;; #(
7096 /*)
7097 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7098 ;; #(
7099 no|'')
7100 ;; #(
7101 *)
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7103 $as_echo "${with_sysroot}" >&6; }
7104 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7105 ;;
7106 esac
7107
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7109 $as_echo "${lt_sysroot:-no}" >&6; }
7110
7111
7112
7113
7114
7115 # Check whether --enable-libtool-lock was given.
7116 if test "${enable_libtool_lock+set}" = set; then :
7117 enableval=$enable_libtool_lock;
7118 fi
7119
7120 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7121
7122 # Some flags need to be propagated to the compiler or linker for good
7123 # libtool support.
7124 case $host in
7125 ia64-*-hpux*)
7126 # Find out which ABI we are using.
7127 echo 'int i;' > conftest.$ac_ext
7128 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7129 (eval $ac_compile) 2>&5
7130 ac_status=$?
7131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7132 test $ac_status = 0; }; then
7133 case `/usr/bin/file conftest.$ac_objext` in
7134 *ELF-32*)
7135 HPUX_IA64_MODE="32"
7136 ;;
7137 *ELF-64*)
7138 HPUX_IA64_MODE="64"
7139 ;;
7140 esac
7141 fi
7142 rm -rf conftest*
7143 ;;
7144 *-*-irix6*)
7145 # Find out which ABI we are using.
7146 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7148 (eval $ac_compile) 2>&5
7149 ac_status=$?
7150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7151 test $ac_status = 0; }; then
7152 if test "$lt_cv_prog_gnu_ld" = yes; then
7153 case `/usr/bin/file conftest.$ac_objext` in
7154 *32-bit*)
7155 LD="${LD-ld} -melf32bsmip"
7156 ;;
7157 *N32*)
7158 LD="${LD-ld} -melf32bmipn32"
7159 ;;
7160 *64-bit*)
7161 LD="${LD-ld} -melf64bmip"
7162 ;;
7163 esac
7164 else
7165 case `/usr/bin/file conftest.$ac_objext` in
7166 *32-bit*)
7167 LD="${LD-ld} -32"
7168 ;;
7169 *N32*)
7170 LD="${LD-ld} -n32"
7171 ;;
7172 *64-bit*)
7173 LD="${LD-ld} -64"
7174 ;;
7175 esac
7176 fi
7177 fi
7178 rm -rf conftest*
7179 ;;
7180
7181 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7182 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7183 # Find out which ABI we are using.
7184 echo 'int i;' > conftest.$ac_ext
7185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7186 (eval $ac_compile) 2>&5
7187 ac_status=$?
7188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7189 test $ac_status = 0; }; then
7190 case `/usr/bin/file conftest.o` in
7191 *32-bit*)
7192 case $host in
7193 x86_64-*kfreebsd*-gnu)
7194 LD="${LD-ld} -m elf_i386_fbsd"
7195 ;;
7196 x86_64-*linux*)
7197 case `/usr/bin/file conftest.o` in
7198 *x86-64*)
7199 LD="${LD-ld} -m elf32_x86_64"
7200 ;;
7201 *)
7202 LD="${LD-ld} -m elf_i386"
7203 ;;
7204 esac
7205 ;;
7206 powerpc64le-*)
7207 LD="${LD-ld} -m elf32lppclinux"
7208 ;;
7209 powerpc64-*)
7210 LD="${LD-ld} -m elf32ppclinux"
7211 ;;
7212 s390x-*linux*)
7213 LD="${LD-ld} -m elf_s390"
7214 ;;
7215 sparc64-*linux*)
7216 LD="${LD-ld} -m elf32_sparc"
7217 ;;
7218 esac
7219 ;;
7220 *64-bit*)
7221 case $host in
7222 x86_64-*kfreebsd*-gnu)
7223 LD="${LD-ld} -m elf_x86_64_fbsd"
7224 ;;
7225 x86_64-*linux*)
7226 LD="${LD-ld} -m elf_x86_64"
7227 ;;
7228 powerpcle-*)
7229 LD="${LD-ld} -m elf64lppc"
7230 ;;
7231 powerpc-*)
7232 LD="${LD-ld} -m elf64ppc"
7233 ;;
7234 s390*-*linux*|s390*-*tpf*)
7235 LD="${LD-ld} -m elf64_s390"
7236 ;;
7237 sparc*-*linux*)
7238 LD="${LD-ld} -m elf64_sparc"
7239 ;;
7240 esac
7241 ;;
7242 esac
7243 fi
7244 rm -rf conftest*
7245 ;;
7246
7247 *-*-sco3.2v5*)
7248 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7249 SAVE_CFLAGS="$CFLAGS"
7250 CFLAGS="$CFLAGS -belf"
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7252 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7253 if ${lt_cv_cc_needs_belf+:} false; then :
7254 $as_echo_n "(cached) " >&6
7255 else
7256 ac_ext=c
7257 ac_cpp='$CPP $CPPFLAGS'
7258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7261
7262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7263 /* end confdefs.h. */
7264
7265 int
7266 main ()
7267 {
7268
7269 ;
7270 return 0;
7271 }
7272 _ACEOF
7273 if ac_fn_c_try_link "$LINENO"; then :
7274 lt_cv_cc_needs_belf=yes
7275 else
7276 lt_cv_cc_needs_belf=no
7277 fi
7278 rm -f core conftest.err conftest.$ac_objext \
7279 conftest$ac_exeext conftest.$ac_ext
7280 ac_ext=c
7281 ac_cpp='$CPP $CPPFLAGS'
7282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7285
7286 fi
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7288 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7289 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7290 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7291 CFLAGS="$SAVE_CFLAGS"
7292 fi
7293 ;;
7294 *-*solaris*)
7295 # Find out which ABI we are using.
7296 echo 'int i;' > conftest.$ac_ext
7297 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7298 (eval $ac_compile) 2>&5
7299 ac_status=$?
7300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7301 test $ac_status = 0; }; then
7302 case `/usr/bin/file conftest.o` in
7303 *64-bit*)
7304 case $lt_cv_prog_gnu_ld in
7305 yes*)
7306 case $host in
7307 i?86-*-solaris*)
7308 LD="${LD-ld} -m elf_x86_64"
7309 ;;
7310 sparc*-*-solaris*)
7311 LD="${LD-ld} -m elf64_sparc"
7312 ;;
7313 esac
7314 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7315 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7316 LD="${LD-ld}_sol2"
7317 fi
7318 ;;
7319 *)
7320 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7321 LD="${LD-ld} -64"
7322 fi
7323 ;;
7324 esac
7325 ;;
7326 esac
7327 fi
7328 rm -rf conftest*
7329 ;;
7330 esac
7331
7332 need_locks="$enable_libtool_lock"
7333
7334 if test -n "$ac_tool_prefix"; then
7335 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7336 set dummy ${ac_tool_prefix}mt; ac_word=$2
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7338 $as_echo_n "checking for $ac_word... " >&6; }
7339 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7340 $as_echo_n "(cached) " >&6
7341 else
7342 if test -n "$MANIFEST_TOOL"; then
7343 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7344 else
7345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7346 for as_dir in $PATH
7347 do
7348 IFS=$as_save_IFS
7349 test -z "$as_dir" && as_dir=.
7350 for ac_exec_ext in '' $ac_executable_extensions; do
7351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7352 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7354 break 2
7355 fi
7356 done
7357 done
7358 IFS=$as_save_IFS
7359
7360 fi
7361 fi
7362 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7363 if test -n "$MANIFEST_TOOL"; then
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7365 $as_echo "$MANIFEST_TOOL" >&6; }
7366 else
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7368 $as_echo "no" >&6; }
7369 fi
7370
7371
7372 fi
7373 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7374 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7375 # Extract the first word of "mt", so it can be a program name with args.
7376 set dummy mt; ac_word=$2
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7378 $as_echo_n "checking for $ac_word... " >&6; }
7379 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7380 $as_echo_n "(cached) " >&6
7381 else
7382 if test -n "$ac_ct_MANIFEST_TOOL"; then
7383 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7384 else
7385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7386 for as_dir in $PATH
7387 do
7388 IFS=$as_save_IFS
7389 test -z "$as_dir" && as_dir=.
7390 for ac_exec_ext in '' $ac_executable_extensions; do
7391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7392 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7394 break 2
7395 fi
7396 done
7397 done
7398 IFS=$as_save_IFS
7399
7400 fi
7401 fi
7402 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7403 if test -n "$ac_ct_MANIFEST_TOOL"; then
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7405 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7406 else
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7408 $as_echo "no" >&6; }
7409 fi
7410
7411 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7412 MANIFEST_TOOL=":"
7413 else
7414 case $cross_compiling:$ac_tool_warned in
7415 yes:)
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7417 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7418 ac_tool_warned=yes ;;
7419 esac
7420 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7421 fi
7422 else
7423 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7424 fi
7425
7426 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7428 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7429 if ${lt_cv_path_mainfest_tool+:} false; then :
7430 $as_echo_n "(cached) " >&6
7431 else
7432 lt_cv_path_mainfest_tool=no
7433 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7434 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7435 cat conftest.err >&5
7436 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7437 lt_cv_path_mainfest_tool=yes
7438 fi
7439 rm -f conftest*
7440 fi
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7442 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7443 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7444 MANIFEST_TOOL=:
7445 fi
7446
7447
7448
7449
7450
7451
7452 case $host_os in
7453 rhapsody* | darwin*)
7454 if test -n "$ac_tool_prefix"; then
7455 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7456 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7458 $as_echo_n "checking for $ac_word... " >&6; }
7459 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7460 $as_echo_n "(cached) " >&6
7461 else
7462 if test -n "$DSYMUTIL"; then
7463 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7464 else
7465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466 for as_dir in $PATH
7467 do
7468 IFS=$as_save_IFS
7469 test -z "$as_dir" && as_dir=.
7470 for ac_exec_ext in '' $ac_executable_extensions; do
7471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7472 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7474 break 2
7475 fi
7476 done
7477 done
7478 IFS=$as_save_IFS
7479
7480 fi
7481 fi
7482 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7483 if test -n "$DSYMUTIL"; then
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7485 $as_echo "$DSYMUTIL" >&6; }
7486 else
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7488 $as_echo "no" >&6; }
7489 fi
7490
7491
7492 fi
7493 if test -z "$ac_cv_prog_DSYMUTIL"; then
7494 ac_ct_DSYMUTIL=$DSYMUTIL
7495 # Extract the first word of "dsymutil", so it can be a program name with args.
7496 set dummy dsymutil; ac_word=$2
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7498 $as_echo_n "checking for $ac_word... " >&6; }
7499 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7500 $as_echo_n "(cached) " >&6
7501 else
7502 if test -n "$ac_ct_DSYMUTIL"; then
7503 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7504 else
7505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506 for as_dir in $PATH
7507 do
7508 IFS=$as_save_IFS
7509 test -z "$as_dir" && as_dir=.
7510 for ac_exec_ext in '' $ac_executable_extensions; do
7511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7512 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7514 break 2
7515 fi
7516 done
7517 done
7518 IFS=$as_save_IFS
7519
7520 fi
7521 fi
7522 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7523 if test -n "$ac_ct_DSYMUTIL"; then
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7525 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7526 else
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7528 $as_echo "no" >&6; }
7529 fi
7530
7531 if test "x$ac_ct_DSYMUTIL" = x; then
7532 DSYMUTIL=":"
7533 else
7534 case $cross_compiling:$ac_tool_warned in
7535 yes:)
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7537 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7538 ac_tool_warned=yes ;;
7539 esac
7540 DSYMUTIL=$ac_ct_DSYMUTIL
7541 fi
7542 else
7543 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7544 fi
7545
7546 if test -n "$ac_tool_prefix"; then
7547 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7548 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7550 $as_echo_n "checking for $ac_word... " >&6; }
7551 if ${ac_cv_prog_NMEDIT+:} false; then :
7552 $as_echo_n "(cached) " >&6
7553 else
7554 if test -n "$NMEDIT"; then
7555 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7556 else
7557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558 for as_dir in $PATH
7559 do
7560 IFS=$as_save_IFS
7561 test -z "$as_dir" && as_dir=.
7562 for ac_exec_ext in '' $ac_executable_extensions; do
7563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7564 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7566 break 2
7567 fi
7568 done
7569 done
7570 IFS=$as_save_IFS
7571
7572 fi
7573 fi
7574 NMEDIT=$ac_cv_prog_NMEDIT
7575 if test -n "$NMEDIT"; then
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7577 $as_echo "$NMEDIT" >&6; }
7578 else
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7580 $as_echo "no" >&6; }
7581 fi
7582
7583
7584 fi
7585 if test -z "$ac_cv_prog_NMEDIT"; then
7586 ac_ct_NMEDIT=$NMEDIT
7587 # Extract the first word of "nmedit", so it can be a program name with args.
7588 set dummy nmedit; ac_word=$2
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7590 $as_echo_n "checking for $ac_word... " >&6; }
7591 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7592 $as_echo_n "(cached) " >&6
7593 else
7594 if test -n "$ac_ct_NMEDIT"; then
7595 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7596 else
7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598 for as_dir in $PATH
7599 do
7600 IFS=$as_save_IFS
7601 test -z "$as_dir" && as_dir=.
7602 for ac_exec_ext in '' $ac_executable_extensions; do
7603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7604 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7606 break 2
7607 fi
7608 done
7609 done
7610 IFS=$as_save_IFS
7611
7612 fi
7613 fi
7614 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7615 if test -n "$ac_ct_NMEDIT"; then
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7617 $as_echo "$ac_ct_NMEDIT" >&6; }
7618 else
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7620 $as_echo "no" >&6; }
7621 fi
7622
7623 if test "x$ac_ct_NMEDIT" = x; then
7624 NMEDIT=":"
7625 else
7626 case $cross_compiling:$ac_tool_warned in
7627 yes:)
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7629 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7630 ac_tool_warned=yes ;;
7631 esac
7632 NMEDIT=$ac_ct_NMEDIT
7633 fi
7634 else
7635 NMEDIT="$ac_cv_prog_NMEDIT"
7636 fi
7637
7638 if test -n "$ac_tool_prefix"; then
7639 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7640 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7642 $as_echo_n "checking for $ac_word... " >&6; }
7643 if ${ac_cv_prog_LIPO+:} false; then :
7644 $as_echo_n "(cached) " >&6
7645 else
7646 if test -n "$LIPO"; then
7647 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7648 else
7649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7650 for as_dir in $PATH
7651 do
7652 IFS=$as_save_IFS
7653 test -z "$as_dir" && as_dir=.
7654 for ac_exec_ext in '' $ac_executable_extensions; do
7655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7656 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7658 break 2
7659 fi
7660 done
7661 done
7662 IFS=$as_save_IFS
7663
7664 fi
7665 fi
7666 LIPO=$ac_cv_prog_LIPO
7667 if test -n "$LIPO"; then
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7669 $as_echo "$LIPO" >&6; }
7670 else
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7672 $as_echo "no" >&6; }
7673 fi
7674
7675
7676 fi
7677 if test -z "$ac_cv_prog_LIPO"; then
7678 ac_ct_LIPO=$LIPO
7679 # Extract the first word of "lipo", so it can be a program name with args.
7680 set dummy lipo; ac_word=$2
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7682 $as_echo_n "checking for $ac_word... " >&6; }
7683 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7684 $as_echo_n "(cached) " >&6
7685 else
7686 if test -n "$ac_ct_LIPO"; then
7687 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7688 else
7689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690 for as_dir in $PATH
7691 do
7692 IFS=$as_save_IFS
7693 test -z "$as_dir" && as_dir=.
7694 for ac_exec_ext in '' $ac_executable_extensions; do
7695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7696 ac_cv_prog_ac_ct_LIPO="lipo"
7697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7698 break 2
7699 fi
7700 done
7701 done
7702 IFS=$as_save_IFS
7703
7704 fi
7705 fi
7706 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7707 if test -n "$ac_ct_LIPO"; then
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7709 $as_echo "$ac_ct_LIPO" >&6; }
7710 else
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7712 $as_echo "no" >&6; }
7713 fi
7714
7715 if test "x$ac_ct_LIPO" = x; then
7716 LIPO=":"
7717 else
7718 case $cross_compiling:$ac_tool_warned in
7719 yes:)
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7722 ac_tool_warned=yes ;;
7723 esac
7724 LIPO=$ac_ct_LIPO
7725 fi
7726 else
7727 LIPO="$ac_cv_prog_LIPO"
7728 fi
7729
7730 if test -n "$ac_tool_prefix"; then
7731 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7732 set dummy ${ac_tool_prefix}otool; ac_word=$2
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7734 $as_echo_n "checking for $ac_word... " >&6; }
7735 if ${ac_cv_prog_OTOOL+:} false; then :
7736 $as_echo_n "(cached) " >&6
7737 else
7738 if test -n "$OTOOL"; then
7739 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7740 else
7741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7742 for as_dir in $PATH
7743 do
7744 IFS=$as_save_IFS
7745 test -z "$as_dir" && as_dir=.
7746 for ac_exec_ext in '' $ac_executable_extensions; do
7747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7748 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7750 break 2
7751 fi
7752 done
7753 done
7754 IFS=$as_save_IFS
7755
7756 fi
7757 fi
7758 OTOOL=$ac_cv_prog_OTOOL
7759 if test -n "$OTOOL"; then
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7761 $as_echo "$OTOOL" >&6; }
7762 else
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7764 $as_echo "no" >&6; }
7765 fi
7766
7767
7768 fi
7769 if test -z "$ac_cv_prog_OTOOL"; then
7770 ac_ct_OTOOL=$OTOOL
7771 # Extract the first word of "otool", so it can be a program name with args.
7772 set dummy otool; ac_word=$2
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7774 $as_echo_n "checking for $ac_word... " >&6; }
7775 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7776 $as_echo_n "(cached) " >&6
7777 else
7778 if test -n "$ac_ct_OTOOL"; then
7779 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7780 else
7781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7782 for as_dir in $PATH
7783 do
7784 IFS=$as_save_IFS
7785 test -z "$as_dir" && as_dir=.
7786 for ac_exec_ext in '' $ac_executable_extensions; do
7787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7788 ac_cv_prog_ac_ct_OTOOL="otool"
7789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7790 break 2
7791 fi
7792 done
7793 done
7794 IFS=$as_save_IFS
7795
7796 fi
7797 fi
7798 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7799 if test -n "$ac_ct_OTOOL"; then
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7801 $as_echo "$ac_ct_OTOOL" >&6; }
7802 else
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7804 $as_echo "no" >&6; }
7805 fi
7806
7807 if test "x$ac_ct_OTOOL" = x; then
7808 OTOOL=":"
7809 else
7810 case $cross_compiling:$ac_tool_warned in
7811 yes:)
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7813 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7814 ac_tool_warned=yes ;;
7815 esac
7816 OTOOL=$ac_ct_OTOOL
7817 fi
7818 else
7819 OTOOL="$ac_cv_prog_OTOOL"
7820 fi
7821
7822 if test -n "$ac_tool_prefix"; then
7823 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7824 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7826 $as_echo_n "checking for $ac_word... " >&6; }
7827 if ${ac_cv_prog_OTOOL64+:} false; then :
7828 $as_echo_n "(cached) " >&6
7829 else
7830 if test -n "$OTOOL64"; then
7831 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7832 else
7833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7834 for as_dir in $PATH
7835 do
7836 IFS=$as_save_IFS
7837 test -z "$as_dir" && as_dir=.
7838 for ac_exec_ext in '' $ac_executable_extensions; do
7839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7840 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7842 break 2
7843 fi
7844 done
7845 done
7846 IFS=$as_save_IFS
7847
7848 fi
7849 fi
7850 OTOOL64=$ac_cv_prog_OTOOL64
7851 if test -n "$OTOOL64"; then
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7853 $as_echo "$OTOOL64" >&6; }
7854 else
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7856 $as_echo "no" >&6; }
7857 fi
7858
7859
7860 fi
7861 if test -z "$ac_cv_prog_OTOOL64"; then
7862 ac_ct_OTOOL64=$OTOOL64
7863 # Extract the first word of "otool64", so it can be a program name with args.
7864 set dummy otool64; ac_word=$2
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7866 $as_echo_n "checking for $ac_word... " >&6; }
7867 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7868 $as_echo_n "(cached) " >&6
7869 else
7870 if test -n "$ac_ct_OTOOL64"; then
7871 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7872 else
7873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7874 for as_dir in $PATH
7875 do
7876 IFS=$as_save_IFS
7877 test -z "$as_dir" && as_dir=.
7878 for ac_exec_ext in '' $ac_executable_extensions; do
7879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7880 ac_cv_prog_ac_ct_OTOOL64="otool64"
7881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7882 break 2
7883 fi
7884 done
7885 done
7886 IFS=$as_save_IFS
7887
7888 fi
7889 fi
7890 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7891 if test -n "$ac_ct_OTOOL64"; then
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7893 $as_echo "$ac_ct_OTOOL64" >&6; }
7894 else
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7896 $as_echo "no" >&6; }
7897 fi
7898
7899 if test "x$ac_ct_OTOOL64" = x; then
7900 OTOOL64=":"
7901 else
7902 case $cross_compiling:$ac_tool_warned in
7903 yes:)
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7906 ac_tool_warned=yes ;;
7907 esac
7908 OTOOL64=$ac_ct_OTOOL64
7909 fi
7910 else
7911 OTOOL64="$ac_cv_prog_OTOOL64"
7912 fi
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7941 $as_echo_n "checking for -single_module linker flag... " >&6; }
7942 if ${lt_cv_apple_cc_single_mod+:} false; then :
7943 $as_echo_n "(cached) " >&6
7944 else
7945 lt_cv_apple_cc_single_mod=no
7946 if test -z "${LT_MULTI_MODULE}"; then
7947 # By default we will add the -single_module flag. You can override
7948 # by either setting the environment variable LT_MULTI_MODULE
7949 # non-empty at configure time, or by adding -multi_module to the
7950 # link flags.
7951 rm -rf libconftest.dylib*
7952 echo "int foo(void){return 1;}" > conftest.c
7953 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7954 -dynamiclib -Wl,-single_module conftest.c" >&5
7955 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7956 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7957 _lt_result=$?
7958 # If there is a non-empty error log, and "single_module"
7959 # appears in it, assume the flag caused a linker warning
7960 if test -s conftest.err && $GREP single_module conftest.err; then
7961 cat conftest.err >&5
7962 # Otherwise, if the output was created with a 0 exit code from
7963 # the compiler, it worked.
7964 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7965 lt_cv_apple_cc_single_mod=yes
7966 else
7967 cat conftest.err >&5
7968 fi
7969 rm -rf libconftest.dylib*
7970 rm -f conftest.*
7971 fi
7972 fi
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7974 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7975
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7977 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7978 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7979 $as_echo_n "(cached) " >&6
7980 else
7981 lt_cv_ld_exported_symbols_list=no
7982 save_LDFLAGS=$LDFLAGS
7983 echo "_main" > conftest.sym
7984 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7986 /* end confdefs.h. */
7987
7988 int
7989 main ()
7990 {
7991
7992 ;
7993 return 0;
7994 }
7995 _ACEOF
7996 if ac_fn_c_try_link "$LINENO"; then :
7997 lt_cv_ld_exported_symbols_list=yes
7998 else
7999 lt_cv_ld_exported_symbols_list=no
8000 fi
8001 rm -f core conftest.err conftest.$ac_objext \
8002 conftest$ac_exeext conftest.$ac_ext
8003 LDFLAGS="$save_LDFLAGS"
8004
8005 fi
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8007 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8008
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8010 $as_echo_n "checking for -force_load linker flag... " >&6; }
8011 if ${lt_cv_ld_force_load+:} false; then :
8012 $as_echo_n "(cached) " >&6
8013 else
8014 lt_cv_ld_force_load=no
8015 cat > conftest.c << _LT_EOF
8016 int forced_loaded() { return 2;}
8017 _LT_EOF
8018 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8019 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8020 echo "$AR cru libconftest.a conftest.o" >&5
8021 $AR cru libconftest.a conftest.o 2>&5
8022 echo "$RANLIB libconftest.a" >&5
8023 $RANLIB libconftest.a 2>&5
8024 cat > conftest.c << _LT_EOF
8025 int main() { return 0;}
8026 _LT_EOF
8027 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8028 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8029 _lt_result=$?
8030 if test -s conftest.err && $GREP force_load conftest.err; then
8031 cat conftest.err >&5
8032 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8033 lt_cv_ld_force_load=yes
8034 else
8035 cat conftest.err >&5
8036 fi
8037 rm -f conftest.err libconftest.a conftest conftest.c
8038 rm -rf conftest.dSYM
8039
8040 fi
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8042 $as_echo "$lt_cv_ld_force_load" >&6; }
8043 case $host_os in
8044 rhapsody* | darwin1.[012])
8045 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8046 darwin1.*)
8047 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8048 darwin*) # darwin 5.x on
8049 # if running on 10.5 or later, the deployment target defaults
8050 # to the OS version, if on x86, and 10.4, the deployment
8051 # target defaults to 10.4. Don't you love it?
8052 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8053 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8054 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8055 10.[012]*)
8056 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8057 10.*)
8058 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8059 esac
8060 ;;
8061 esac
8062 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8063 _lt_dar_single_mod='$single_module'
8064 fi
8065 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8066 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8067 else
8068 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8069 fi
8070 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8071 _lt_dsymutil='~$DSYMUTIL $lib || :'
8072 else
8073 _lt_dsymutil=
8074 fi
8075 ;;
8076 esac
8077
8078 for ac_header in dlfcn.h
8079 do :
8080 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8081 "
8082 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8083 cat >>confdefs.h <<_ACEOF
8084 #define HAVE_DLFCN_H 1
8085 _ACEOF
8086
8087 fi
8088
8089 done
8090
8091
8092
8093
8094
8095 # Set options
8096 enable_win32_dll=yes
8097
8098 case $host in
8099 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8100 if test -n "$ac_tool_prefix"; then
8101 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8102 set dummy ${ac_tool_prefix}as; ac_word=$2
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8104 $as_echo_n "checking for $ac_word... " >&6; }
8105 if ${ac_cv_prog_AS+:} false; then :
8106 $as_echo_n "(cached) " >&6
8107 else
8108 if test -n "$AS"; then
8109 ac_cv_prog_AS="$AS" # Let the user override the test.
8110 else
8111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8112 for as_dir in $PATH
8113 do
8114 IFS=$as_save_IFS
8115 test -z "$as_dir" && as_dir=.
8116 for ac_exec_ext in '' $ac_executable_extensions; do
8117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8118 ac_cv_prog_AS="${ac_tool_prefix}as"
8119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8120 break 2
8121 fi
8122 done
8123 done
8124 IFS=$as_save_IFS
8125
8126 fi
8127 fi
8128 AS=$ac_cv_prog_AS
8129 if test -n "$AS"; then
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8131 $as_echo "$AS" >&6; }
8132 else
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8134 $as_echo "no" >&6; }
8135 fi
8136
8137
8138 fi
8139 if test -z "$ac_cv_prog_AS"; then
8140 ac_ct_AS=$AS
8141 # Extract the first word of "as", so it can be a program name with args.
8142 set dummy as; ac_word=$2
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8144 $as_echo_n "checking for $ac_word... " >&6; }
8145 if ${ac_cv_prog_ac_ct_AS+:} false; then :
8146 $as_echo_n "(cached) " >&6
8147 else
8148 if test -n "$ac_ct_AS"; then
8149 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8150 else
8151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8152 for as_dir in $PATH
8153 do
8154 IFS=$as_save_IFS
8155 test -z "$as_dir" && as_dir=.
8156 for ac_exec_ext in '' $ac_executable_extensions; do
8157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8158 ac_cv_prog_ac_ct_AS="as"
8159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8160 break 2
8161 fi
8162 done
8163 done
8164 IFS=$as_save_IFS
8165
8166 fi
8167 fi
8168 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8169 if test -n "$ac_ct_AS"; then
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8171 $as_echo "$ac_ct_AS" >&6; }
8172 else
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8174 $as_echo "no" >&6; }
8175 fi
8176
8177 if test "x$ac_ct_AS" = x; then
8178 AS="false"
8179 else
8180 case $cross_compiling:$ac_tool_warned in
8181 yes:)
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8184 ac_tool_warned=yes ;;
8185 esac
8186 AS=$ac_ct_AS
8187 fi
8188 else
8189 AS="$ac_cv_prog_AS"
8190 fi
8191
8192 if test -n "$ac_tool_prefix"; then
8193 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8194 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8196 $as_echo_n "checking for $ac_word... " >&6; }
8197 if ${ac_cv_prog_DLLTOOL+:} false; then :
8198 $as_echo_n "(cached) " >&6
8199 else
8200 if test -n "$DLLTOOL"; then
8201 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8202 else
8203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8204 for as_dir in $PATH
8205 do
8206 IFS=$as_save_IFS
8207 test -z "$as_dir" && as_dir=.
8208 for ac_exec_ext in '' $ac_executable_extensions; do
8209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8210 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8212 break 2
8213 fi
8214 done
8215 done
8216 IFS=$as_save_IFS
8217
8218 fi
8219 fi
8220 DLLTOOL=$ac_cv_prog_DLLTOOL
8221 if test -n "$DLLTOOL"; then
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8223 $as_echo "$DLLTOOL" >&6; }
8224 else
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8226 $as_echo "no" >&6; }
8227 fi
8228
8229
8230 fi
8231 if test -z "$ac_cv_prog_DLLTOOL"; then
8232 ac_ct_DLLTOOL=$DLLTOOL
8233 # Extract the first word of "dlltool", so it can be a program name with args.
8234 set dummy dlltool; ac_word=$2
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8236 $as_echo_n "checking for $ac_word... " >&6; }
8237 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8238 $as_echo_n "(cached) " >&6
8239 else
8240 if test -n "$ac_ct_DLLTOOL"; then
8241 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8242 else
8243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8244 for as_dir in $PATH
8245 do
8246 IFS=$as_save_IFS
8247 test -z "$as_dir" && as_dir=.
8248 for ac_exec_ext in '' $ac_executable_extensions; do
8249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8250 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8252 break 2
8253 fi
8254 done
8255 done
8256 IFS=$as_save_IFS
8257
8258 fi
8259 fi
8260 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8261 if test -n "$ac_ct_DLLTOOL"; then
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8263 $as_echo "$ac_ct_DLLTOOL" >&6; }
8264 else
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8266 $as_echo "no" >&6; }
8267 fi
8268
8269 if test "x$ac_ct_DLLTOOL" = x; then
8270 DLLTOOL="false"
8271 else
8272 case $cross_compiling:$ac_tool_warned in
8273 yes:)
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8276 ac_tool_warned=yes ;;
8277 esac
8278 DLLTOOL=$ac_ct_DLLTOOL
8279 fi
8280 else
8281 DLLTOOL="$ac_cv_prog_DLLTOOL"
8282 fi
8283
8284 if test -n "$ac_tool_prefix"; then
8285 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8286 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8288 $as_echo_n "checking for $ac_word... " >&6; }
8289 if ${ac_cv_prog_OBJDUMP+:} false; then :
8290 $as_echo_n "(cached) " >&6
8291 else
8292 if test -n "$OBJDUMP"; then
8293 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8294 else
8295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8296 for as_dir in $PATH
8297 do
8298 IFS=$as_save_IFS
8299 test -z "$as_dir" && as_dir=.
8300 for ac_exec_ext in '' $ac_executable_extensions; do
8301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8302 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8304 break 2
8305 fi
8306 done
8307 done
8308 IFS=$as_save_IFS
8309
8310 fi
8311 fi
8312 OBJDUMP=$ac_cv_prog_OBJDUMP
8313 if test -n "$OBJDUMP"; then
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8315 $as_echo "$OBJDUMP" >&6; }
8316 else
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8318 $as_echo "no" >&6; }
8319 fi
8320
8321
8322 fi
8323 if test -z "$ac_cv_prog_OBJDUMP"; then
8324 ac_ct_OBJDUMP=$OBJDUMP
8325 # Extract the first word of "objdump", so it can be a program name with args.
8326 set dummy objdump; ac_word=$2
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8328 $as_echo_n "checking for $ac_word... " >&6; }
8329 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8330 $as_echo_n "(cached) " >&6
8331 else
8332 if test -n "$ac_ct_OBJDUMP"; then
8333 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8334 else
8335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8336 for as_dir in $PATH
8337 do
8338 IFS=$as_save_IFS
8339 test -z "$as_dir" && as_dir=.
8340 for ac_exec_ext in '' $ac_executable_extensions; do
8341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8342 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8344 break 2
8345 fi
8346 done
8347 done
8348 IFS=$as_save_IFS
8349
8350 fi
8351 fi
8352 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8353 if test -n "$ac_ct_OBJDUMP"; then
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8355 $as_echo "$ac_ct_OBJDUMP" >&6; }
8356 else
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8358 $as_echo "no" >&6; }
8359 fi
8360
8361 if test "x$ac_ct_OBJDUMP" = x; then
8362 OBJDUMP="false"
8363 else
8364 case $cross_compiling:$ac_tool_warned in
8365 yes:)
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8368 ac_tool_warned=yes ;;
8369 esac
8370 OBJDUMP=$ac_ct_OBJDUMP
8371 fi
8372 else
8373 OBJDUMP="$ac_cv_prog_OBJDUMP"
8374 fi
8375
8376 ;;
8377 esac
8378
8379 test -z "$AS" && AS=as
8380
8381
8382
8383
8384
8385 test -z "$DLLTOOL" && DLLTOOL=dlltool
8386
8387
8388
8389
8390
8391 test -z "$OBJDUMP" && OBJDUMP=objdump
8392
8393
8394
8395
8396
8397
8398
8399 enable_dlopen=no
8400
8401
8402
8403 # Check whether --enable-shared was given.
8404 if test "${enable_shared+set}" = set; then :
8405 enableval=$enable_shared; p=${PACKAGE-default}
8406 case $enableval in
8407 yes) enable_shared=yes ;;
8408 no) enable_shared=no ;;
8409 *)
8410 enable_shared=no
8411 # Look at the argument we got. We use all the common list separators.
8412 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8413 for pkg in $enableval; do
8414 IFS="$lt_save_ifs"
8415 if test "X$pkg" = "X$p"; then
8416 enable_shared=yes
8417 fi
8418 done
8419 IFS="$lt_save_ifs"
8420 ;;
8421 esac
8422 else
8423 enable_shared=yes
8424 fi
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434 # Check whether --enable-static was given.
8435 if test "${enable_static+set}" = set; then :
8436 enableval=$enable_static; p=${PACKAGE-default}
8437 case $enableval in
8438 yes) enable_static=yes ;;
8439 no) enable_static=no ;;
8440 *)
8441 enable_static=no
8442 # Look at the argument we got. We use all the common list separators.
8443 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8444 for pkg in $enableval; do
8445 IFS="$lt_save_ifs"
8446 if test "X$pkg" = "X$p"; then
8447 enable_static=yes
8448 fi
8449 done
8450 IFS="$lt_save_ifs"
8451 ;;
8452 esac
8453 else
8454 enable_static=yes
8455 fi
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466 # Check whether --with-pic was given.
8467 if test "${with_pic+set}" = set; then :
8468 withval=$with_pic; lt_p=${PACKAGE-default}
8469 case $withval in
8470 yes|no) pic_mode=$withval ;;
8471 *)
8472 pic_mode=default
8473 # Look at the argument we got. We use all the common list separators.
8474 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8475 for lt_pkg in $withval; do
8476 IFS="$lt_save_ifs"
8477 if test "X$lt_pkg" = "X$lt_p"; then
8478 pic_mode=yes
8479 fi
8480 done
8481 IFS="$lt_save_ifs"
8482 ;;
8483 esac
8484 else
8485 pic_mode=default
8486 fi
8487
8488
8489 test -z "$pic_mode" && pic_mode=default
8490
8491
8492
8493
8494
8495
8496
8497 # Check whether --enable-fast-install was given.
8498 if test "${enable_fast_install+set}" = set; then :
8499 enableval=$enable_fast_install; p=${PACKAGE-default}
8500 case $enableval in
8501 yes) enable_fast_install=yes ;;
8502 no) enable_fast_install=no ;;
8503 *)
8504 enable_fast_install=no
8505 # Look at the argument we got. We use all the common list separators.
8506 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8507 for pkg in $enableval; do
8508 IFS="$lt_save_ifs"
8509 if test "X$pkg" = "X$p"; then
8510 enable_fast_install=yes
8511 fi
8512 done
8513 IFS="$lt_save_ifs"
8514 ;;
8515 esac
8516 else
8517 enable_fast_install=yes
8518 fi
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530 # This can be used to rebuild libtool when needed
8531 LIBTOOL_DEPS="$ltmain"
8532
8533 # Always use our own libtool.
8534 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565 test -z "$LN_S" && LN_S="ln -s"
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580 if test -n "${ZSH_VERSION+set}" ; then
8581 setopt NO_GLOB_SUBST
8582 fi
8583
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8585 $as_echo_n "checking for objdir... " >&6; }
8586 if ${lt_cv_objdir+:} false; then :
8587 $as_echo_n "(cached) " >&6
8588 else
8589 rm -f .libs 2>/dev/null
8590 mkdir .libs 2>/dev/null
8591 if test -d .libs; then
8592 lt_cv_objdir=.libs
8593 else
8594 # MS-DOS does not allow filenames that begin with a dot.
8595 lt_cv_objdir=_libs
8596 fi
8597 rmdir .libs 2>/dev/null
8598 fi
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8600 $as_echo "$lt_cv_objdir" >&6; }
8601 objdir=$lt_cv_objdir
8602
8603
8604
8605
8606
8607 cat >>confdefs.h <<_ACEOF
8608 #define LT_OBJDIR "$lt_cv_objdir/"
8609 _ACEOF
8610
8611
8612
8613
8614 case $host_os in
8615 aix3*)
8616 # AIX sometimes has problems with the GCC collect2 program. For some
8617 # reason, if we set the COLLECT_NAMES environment variable, the problems
8618 # vanish in a puff of smoke.
8619 if test "X${COLLECT_NAMES+set}" != Xset; then
8620 COLLECT_NAMES=
8621 export COLLECT_NAMES
8622 fi
8623 ;;
8624 esac
8625
8626 # Global variables:
8627 ofile=libtool
8628 can_build_shared=yes
8629
8630 # All known linkers require a `.a' archive for static linking (except MSVC,
8631 # which needs '.lib').
8632 libext=a
8633
8634 with_gnu_ld="$lt_cv_prog_gnu_ld"
8635
8636 old_CC="$CC"
8637 old_CFLAGS="$CFLAGS"
8638
8639 # Set sane defaults for various variables
8640 test -z "$CC" && CC=cc
8641 test -z "$LTCC" && LTCC=$CC
8642 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8643 test -z "$LD" && LD=ld
8644 test -z "$ac_objext" && ac_objext=o
8645
8646 for cc_temp in $compiler""; do
8647 case $cc_temp in
8648 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8649 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8650 \-*) ;;
8651 *) break;;
8652 esac
8653 done
8654 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8655
8656
8657 # Only perform the check for file, if the check method requires it
8658 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8659 case $deplibs_check_method in
8660 file_magic*)
8661 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8663 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8664 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8665 $as_echo_n "(cached) " >&6
8666 else
8667 case $MAGIC_CMD in
8668 [\\/*] | ?:[\\/]*)
8669 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8670 ;;
8671 *)
8672 lt_save_MAGIC_CMD="$MAGIC_CMD"
8673 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8674 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8675 for ac_dir in $ac_dummy; do
8676 IFS="$lt_save_ifs"
8677 test -z "$ac_dir" && ac_dir=.
8678 if test -f $ac_dir/${ac_tool_prefix}file; then
8679 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8680 if test -n "$file_magic_test_file"; then
8681 case $deplibs_check_method in
8682 "file_magic "*)
8683 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8684 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8685 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8686 $EGREP "$file_magic_regex" > /dev/null; then
8687 :
8688 else
8689 cat <<_LT_EOF 1>&2
8690
8691 *** Warning: the command libtool uses to detect shared libraries,
8692 *** $file_magic_cmd, produces output that libtool cannot recognize.
8693 *** The result is that libtool may fail to recognize shared libraries
8694 *** as such. This will affect the creation of libtool libraries that
8695 *** depend on shared libraries, but programs linked with such libtool
8696 *** libraries will work regardless of this problem. Nevertheless, you
8697 *** may want to report the problem to your system manager and/or to
8698 *** bug-libtool@gnu.org
8699
8700 _LT_EOF
8701 fi ;;
8702 esac
8703 fi
8704 break
8705 fi
8706 done
8707 IFS="$lt_save_ifs"
8708 MAGIC_CMD="$lt_save_MAGIC_CMD"
8709 ;;
8710 esac
8711 fi
8712
8713 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8714 if test -n "$MAGIC_CMD"; then
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8716 $as_echo "$MAGIC_CMD" >&6; }
8717 else
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8719 $as_echo "no" >&6; }
8720 fi
8721
8722
8723
8724
8725
8726 if test -z "$lt_cv_path_MAGIC_CMD"; then
8727 if test -n "$ac_tool_prefix"; then
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8729 $as_echo_n "checking for file... " >&6; }
8730 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8731 $as_echo_n "(cached) " >&6
8732 else
8733 case $MAGIC_CMD in
8734 [\\/*] | ?:[\\/]*)
8735 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8736 ;;
8737 *)
8738 lt_save_MAGIC_CMD="$MAGIC_CMD"
8739 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8740 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8741 for ac_dir in $ac_dummy; do
8742 IFS="$lt_save_ifs"
8743 test -z "$ac_dir" && ac_dir=.
8744 if test -f $ac_dir/file; then
8745 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8746 if test -n "$file_magic_test_file"; then
8747 case $deplibs_check_method in
8748 "file_magic "*)
8749 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8750 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8751 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8752 $EGREP "$file_magic_regex" > /dev/null; then
8753 :
8754 else
8755 cat <<_LT_EOF 1>&2
8756
8757 *** Warning: the command libtool uses to detect shared libraries,
8758 *** $file_magic_cmd, produces output that libtool cannot recognize.
8759 *** The result is that libtool may fail to recognize shared libraries
8760 *** as such. This will affect the creation of libtool libraries that
8761 *** depend on shared libraries, but programs linked with such libtool
8762 *** libraries will work regardless of this problem. Nevertheless, you
8763 *** may want to report the problem to your system manager and/or to
8764 *** bug-libtool@gnu.org
8765
8766 _LT_EOF
8767 fi ;;
8768 esac
8769 fi
8770 break
8771 fi
8772 done
8773 IFS="$lt_save_ifs"
8774 MAGIC_CMD="$lt_save_MAGIC_CMD"
8775 ;;
8776 esac
8777 fi
8778
8779 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8780 if test -n "$MAGIC_CMD"; then
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8782 $as_echo "$MAGIC_CMD" >&6; }
8783 else
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8785 $as_echo "no" >&6; }
8786 fi
8787
8788
8789 else
8790 MAGIC_CMD=:
8791 fi
8792 fi
8793
8794 fi
8795 ;;
8796 esac
8797
8798 # Use C for the default configuration in the libtool script
8799
8800 lt_save_CC="$CC"
8801 ac_ext=c
8802 ac_cpp='$CPP $CPPFLAGS'
8803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8806
8807
8808 # Source file extension for C test sources.
8809 ac_ext=c
8810
8811 # Object file extension for compiled C test sources.
8812 objext=o
8813 objext=$objext
8814
8815 # Code to be used in simple compile tests
8816 lt_simple_compile_test_code="int some_variable = 0;"
8817
8818 # Code to be used in simple link tests
8819 lt_simple_link_test_code='int main(){return(0);}'
8820
8821
8822
8823
8824
8825
8826
8827 # If no C compiler was specified, use CC.
8828 LTCC=${LTCC-"$CC"}
8829
8830 # If no C compiler flags were specified, use CFLAGS.
8831 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8832
8833 # Allow CC to be a program name with arguments.
8834 compiler=$CC
8835
8836 # Save the default compiler, since it gets overwritten when the other
8837 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8838 compiler_DEFAULT=$CC
8839
8840 # save warnings/boilerplate of simple test code
8841 ac_outfile=conftest.$ac_objext
8842 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8843 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8844 _lt_compiler_boilerplate=`cat conftest.err`
8845 $RM conftest*
8846
8847 ac_outfile=conftest.$ac_objext
8848 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8849 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8850 _lt_linker_boilerplate=`cat conftest.err`
8851 $RM -r conftest*
8852
8853
8854 ## CAVEAT EMPTOR:
8855 ## There is no encapsulation within the following macros, do not change
8856 ## the running order or otherwise move them around unless you know exactly
8857 ## what you are doing...
8858 if test -n "$compiler"; then
8859
8860 lt_prog_compiler_no_builtin_flag=
8861
8862 if test "$GCC" = yes; then
8863 case $cc_basename in
8864 nvcc*)
8865 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8866 *)
8867 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8868 esac
8869
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8871 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8872 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8873 $as_echo_n "(cached) " >&6
8874 else
8875 lt_cv_prog_compiler_rtti_exceptions=no
8876 ac_outfile=conftest.$ac_objext
8877 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8878 lt_compiler_flag="-fno-rtti -fno-exceptions"
8879 # Insert the option either (1) after the last *FLAGS variable, or
8880 # (2) before a word containing "conftest.", or (3) at the end.
8881 # Note that $ac_compile itself does not contain backslashes and begins
8882 # with a dollar sign (not a hyphen), so the echo should work correctly.
8883 # The option is referenced via a variable to avoid confusing sed.
8884 lt_compile=`echo "$ac_compile" | $SED \
8885 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8886 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8887 -e 's:$: $lt_compiler_flag:'`
8888 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8889 (eval "$lt_compile" 2>conftest.err)
8890 ac_status=$?
8891 cat conftest.err >&5
8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893 if (exit $ac_status) && test -s "$ac_outfile"; then
8894 # The compiler can only warn and ignore the option if not recognized
8895 # So say no if there are warnings other than the usual output.
8896 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8897 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8898 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8899 lt_cv_prog_compiler_rtti_exceptions=yes
8900 fi
8901 fi
8902 $RM conftest*
8903
8904 fi
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8906 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8907
8908 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8909 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8910 else
8911 :
8912 fi
8913
8914 fi
8915
8916
8917
8918
8919
8920
8921 lt_prog_compiler_wl=
8922 lt_prog_compiler_pic=
8923 lt_prog_compiler_static=
8924
8925
8926 if test "$GCC" = yes; then
8927 lt_prog_compiler_wl='-Wl,'
8928 lt_prog_compiler_static='-static'
8929
8930 case $host_os in
8931 aix*)
8932 # All AIX code is PIC.
8933 if test "$host_cpu" = ia64; then
8934 # AIX 5 now supports IA64 processor
8935 lt_prog_compiler_static='-Bstatic'
8936 fi
8937 ;;
8938
8939 amigaos*)
8940 case $host_cpu in
8941 powerpc)
8942 # see comment about AmigaOS4 .so support
8943 lt_prog_compiler_pic='-fPIC'
8944 ;;
8945 m68k)
8946 # FIXME: we need at least 68020 code to build shared libraries, but
8947 # adding the `-m68020' flag to GCC prevents building anything better,
8948 # like `-m68040'.
8949 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8950 ;;
8951 esac
8952 ;;
8953
8954 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8955 # PIC is the default for these OSes.
8956 ;;
8957
8958 mingw* | cygwin* | pw32* | os2* | cegcc*)
8959 # This hack is so that the source file can tell whether it is being
8960 # built for inclusion in a dll (and should export symbols for example).
8961 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8962 # (--disable-auto-import) libraries
8963 lt_prog_compiler_pic='-DDLL_EXPORT'
8964 ;;
8965
8966 darwin* | rhapsody*)
8967 # PIC is the default on this platform
8968 # Common symbols not allowed in MH_DYLIB files
8969 lt_prog_compiler_pic='-fno-common'
8970 ;;
8971
8972 haiku*)
8973 # PIC is the default for Haiku.
8974 # The "-static" flag exists, but is broken.
8975 lt_prog_compiler_static=
8976 ;;
8977
8978 hpux*)
8979 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8980 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8981 # sets the default TLS model and affects inlining.
8982 case $host_cpu in
8983 hppa*64*)
8984 # +Z the default
8985 ;;
8986 *)
8987 lt_prog_compiler_pic='-fPIC'
8988 ;;
8989 esac
8990 ;;
8991
8992 interix[3-9]*)
8993 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8994 # Instead, we relocate shared libraries at runtime.
8995 ;;
8996
8997 msdosdjgpp*)
8998 # Just because we use GCC doesn't mean we suddenly get shared libraries
8999 # on systems that don't support them.
9000 lt_prog_compiler_can_build_shared=no
9001 enable_shared=no
9002 ;;
9003
9004 *nto* | *qnx*)
9005 # QNX uses GNU C++, but need to define -shared option too, otherwise
9006 # it will coredump.
9007 lt_prog_compiler_pic='-fPIC -shared'
9008 ;;
9009
9010 sysv4*MP*)
9011 if test -d /usr/nec; then
9012 lt_prog_compiler_pic=-Kconform_pic
9013 fi
9014 ;;
9015
9016 *)
9017 lt_prog_compiler_pic='-fPIC'
9018 ;;
9019 esac
9020
9021 case $cc_basename in
9022 nvcc*) # Cuda Compiler Driver 2.2
9023 lt_prog_compiler_wl='-Xlinker '
9024 if test -n "$lt_prog_compiler_pic"; then
9025 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9026 fi
9027 ;;
9028 esac
9029 else
9030 # PORTME Check for flag to pass linker flags through the system compiler.
9031 case $host_os in
9032 aix*)
9033 lt_prog_compiler_wl='-Wl,'
9034 if test "$host_cpu" = ia64; then
9035 # AIX 5 now supports IA64 processor
9036 lt_prog_compiler_static='-Bstatic'
9037 else
9038 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9039 fi
9040 ;;
9041
9042 mingw* | cygwin* | pw32* | os2* | cegcc*)
9043 # This hack is so that the source file can tell whether it is being
9044 # built for inclusion in a dll (and should export symbols for example).
9045 lt_prog_compiler_pic='-DDLL_EXPORT'
9046 ;;
9047
9048 hpux9* | hpux10* | hpux11*)
9049 lt_prog_compiler_wl='-Wl,'
9050 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9051 # not for PA HP-UX.
9052 case $host_cpu in
9053 hppa*64*|ia64*)
9054 # +Z the default
9055 ;;
9056 *)
9057 lt_prog_compiler_pic='+Z'
9058 ;;
9059 esac
9060 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9061 lt_prog_compiler_static='${wl}-a ${wl}archive'
9062 ;;
9063
9064 irix5* | irix6* | nonstopux*)
9065 lt_prog_compiler_wl='-Wl,'
9066 # PIC (with -KPIC) is the default.
9067 lt_prog_compiler_static='-non_shared'
9068 ;;
9069
9070 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9071 case $cc_basename in
9072 # old Intel for x86_64 which still supported -KPIC.
9073 ecc*)
9074 lt_prog_compiler_wl='-Wl,'
9075 lt_prog_compiler_pic='-KPIC'
9076 lt_prog_compiler_static='-static'
9077 ;;
9078 # icc used to be incompatible with GCC.
9079 # ICC 10 doesn't accept -KPIC any more.
9080 icc* | ifort*)
9081 lt_prog_compiler_wl='-Wl,'
9082 lt_prog_compiler_pic='-fPIC'
9083 lt_prog_compiler_static='-static'
9084 ;;
9085 # Lahey Fortran 8.1.
9086 lf95*)
9087 lt_prog_compiler_wl='-Wl,'
9088 lt_prog_compiler_pic='--shared'
9089 lt_prog_compiler_static='--static'
9090 ;;
9091 nagfor*)
9092 # NAG Fortran compiler
9093 lt_prog_compiler_wl='-Wl,-Wl,,'
9094 lt_prog_compiler_pic='-PIC'
9095 lt_prog_compiler_static='-Bstatic'
9096 ;;
9097 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9098 # Portland Group compilers (*not* the Pentium gcc compiler,
9099 # which looks to be a dead project)
9100 lt_prog_compiler_wl='-Wl,'
9101 lt_prog_compiler_pic='-fpic'
9102 lt_prog_compiler_static='-Bstatic'
9103 ;;
9104 ccc*)
9105 lt_prog_compiler_wl='-Wl,'
9106 # All Alpha code is PIC.
9107 lt_prog_compiler_static='-non_shared'
9108 ;;
9109 xl* | bgxl* | bgf* | mpixl*)
9110 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9111 lt_prog_compiler_wl='-Wl,'
9112 lt_prog_compiler_pic='-qpic'
9113 lt_prog_compiler_static='-qstaticlink'
9114 ;;
9115 *)
9116 case `$CC -V 2>&1 | sed 5q` in
9117 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9118 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9119 lt_prog_compiler_pic='-KPIC'
9120 lt_prog_compiler_static='-Bstatic'
9121 lt_prog_compiler_wl=''
9122 ;;
9123 *Sun\ F* | *Sun*Fortran*)
9124 lt_prog_compiler_pic='-KPIC'
9125 lt_prog_compiler_static='-Bstatic'
9126 lt_prog_compiler_wl='-Qoption ld '
9127 ;;
9128 *Sun\ C*)
9129 # Sun C 5.9
9130 lt_prog_compiler_pic='-KPIC'
9131 lt_prog_compiler_static='-Bstatic'
9132 lt_prog_compiler_wl='-Wl,'
9133 ;;
9134 *Intel*\ [CF]*Compiler*)
9135 lt_prog_compiler_wl='-Wl,'
9136 lt_prog_compiler_pic='-fPIC'
9137 lt_prog_compiler_static='-static'
9138 ;;
9139 *Portland\ Group*)
9140 lt_prog_compiler_wl='-Wl,'
9141 lt_prog_compiler_pic='-fpic'
9142 lt_prog_compiler_static='-Bstatic'
9143 ;;
9144 esac
9145 ;;
9146 esac
9147 ;;
9148
9149 newsos6)
9150 lt_prog_compiler_pic='-KPIC'
9151 lt_prog_compiler_static='-Bstatic'
9152 ;;
9153
9154 *nto* | *qnx*)
9155 # QNX uses GNU C++, but need to define -shared option too, otherwise
9156 # it will coredump.
9157 lt_prog_compiler_pic='-fPIC -shared'
9158 ;;
9159
9160 osf3* | osf4* | osf5*)
9161 lt_prog_compiler_wl='-Wl,'
9162 # All OSF/1 code is PIC.
9163 lt_prog_compiler_static='-non_shared'
9164 ;;
9165
9166 rdos*)
9167 lt_prog_compiler_static='-non_shared'
9168 ;;
9169
9170 solaris*)
9171 lt_prog_compiler_pic='-KPIC'
9172 lt_prog_compiler_static='-Bstatic'
9173 case $cc_basename in
9174 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9175 lt_prog_compiler_wl='-Qoption ld ';;
9176 *)
9177 lt_prog_compiler_wl='-Wl,';;
9178 esac
9179 ;;
9180
9181 sunos4*)
9182 lt_prog_compiler_wl='-Qoption ld '
9183 lt_prog_compiler_pic='-PIC'
9184 lt_prog_compiler_static='-Bstatic'
9185 ;;
9186
9187 sysv4 | sysv4.2uw2* | sysv4.3*)
9188 lt_prog_compiler_wl='-Wl,'
9189 lt_prog_compiler_pic='-KPIC'
9190 lt_prog_compiler_static='-Bstatic'
9191 ;;
9192
9193 sysv4*MP*)
9194 if test -d /usr/nec ;then
9195 lt_prog_compiler_pic='-Kconform_pic'
9196 lt_prog_compiler_static='-Bstatic'
9197 fi
9198 ;;
9199
9200 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9201 lt_prog_compiler_wl='-Wl,'
9202 lt_prog_compiler_pic='-KPIC'
9203 lt_prog_compiler_static='-Bstatic'
9204 ;;
9205
9206 unicos*)
9207 lt_prog_compiler_wl='-Wl,'
9208 lt_prog_compiler_can_build_shared=no
9209 ;;
9210
9211 uts4*)
9212 lt_prog_compiler_pic='-pic'
9213 lt_prog_compiler_static='-Bstatic'
9214 ;;
9215
9216 *)
9217 lt_prog_compiler_can_build_shared=no
9218 ;;
9219 esac
9220 fi
9221
9222 case $host_os in
9223 # For platforms which do not support PIC, -DPIC is meaningless:
9224 *djgpp*)
9225 lt_prog_compiler_pic=
9226 ;;
9227 *)
9228 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9229 ;;
9230 esac
9231
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9233 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9234 if ${lt_cv_prog_compiler_pic+:} false; then :
9235 $as_echo_n "(cached) " >&6
9236 else
9237 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9238 fi
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9240 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9241 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9242
9243 #
9244 # Check to make sure the PIC flag actually works.
9245 #
9246 if test -n "$lt_prog_compiler_pic"; then
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9248 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9249 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9250 $as_echo_n "(cached) " >&6
9251 else
9252 lt_cv_prog_compiler_pic_works=no
9253 ac_outfile=conftest.$ac_objext
9254 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9255 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9256 # Insert the option either (1) after the last *FLAGS variable, or
9257 # (2) before a word containing "conftest.", or (3) at the end.
9258 # Note that $ac_compile itself does not contain backslashes and begins
9259 # with a dollar sign (not a hyphen), so the echo should work correctly.
9260 # The option is referenced via a variable to avoid confusing sed.
9261 lt_compile=`echo "$ac_compile" | $SED \
9262 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9263 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9264 -e 's:$: $lt_compiler_flag:'`
9265 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9266 (eval "$lt_compile" 2>conftest.err)
9267 ac_status=$?
9268 cat conftest.err >&5
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 if (exit $ac_status) && test -s "$ac_outfile"; then
9271 # The compiler can only warn and ignore the option if not recognized
9272 # So say no if there are warnings other than the usual output.
9273 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9274 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9275 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9276 lt_cv_prog_compiler_pic_works=yes
9277 fi
9278 fi
9279 $RM conftest*
9280
9281 fi
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9283 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9284
9285 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9286 case $lt_prog_compiler_pic in
9287 "" | " "*) ;;
9288 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9289 esac
9290 else
9291 lt_prog_compiler_pic=
9292 lt_prog_compiler_can_build_shared=no
9293 fi
9294
9295 fi
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307 #
9308 # Check to make sure the static flag actually works.
9309 #
9310 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9312 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9313 if ${lt_cv_prog_compiler_static_works+:} false; then :
9314 $as_echo_n "(cached) " >&6
9315 else
9316 lt_cv_prog_compiler_static_works=no
9317 save_LDFLAGS="$LDFLAGS"
9318 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9319 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9320 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9321 # The linker can only warn and ignore the option if not recognized
9322 # So say no if there are warnings
9323 if test -s conftest.err; then
9324 # Append any errors to the config.log.
9325 cat conftest.err 1>&5
9326 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9327 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9328 if diff conftest.exp conftest.er2 >/dev/null; then
9329 lt_cv_prog_compiler_static_works=yes
9330 fi
9331 else
9332 lt_cv_prog_compiler_static_works=yes
9333 fi
9334 fi
9335 $RM -r conftest*
9336 LDFLAGS="$save_LDFLAGS"
9337
9338 fi
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9340 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9341
9342 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9343 :
9344 else
9345 lt_prog_compiler_static=
9346 fi
9347
9348
9349
9350
9351
9352
9353
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9355 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9356 if ${lt_cv_prog_compiler_c_o+:} false; then :
9357 $as_echo_n "(cached) " >&6
9358 else
9359 lt_cv_prog_compiler_c_o=no
9360 $RM -r conftest 2>/dev/null
9361 mkdir conftest
9362 cd conftest
9363 mkdir out
9364 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9365
9366 lt_compiler_flag="-o out/conftest2.$ac_objext"
9367 # Insert the option either (1) after the last *FLAGS variable, or
9368 # (2) before a word containing "conftest.", or (3) at the end.
9369 # Note that $ac_compile itself does not contain backslashes and begins
9370 # with a dollar sign (not a hyphen), so the echo should work correctly.
9371 lt_compile=`echo "$ac_compile" | $SED \
9372 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9373 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9374 -e 's:$: $lt_compiler_flag:'`
9375 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9376 (eval "$lt_compile" 2>out/conftest.err)
9377 ac_status=$?
9378 cat out/conftest.err >&5
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9381 then
9382 # The compiler can only warn and ignore the option if not recognized
9383 # So say no if there are warnings
9384 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9385 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9386 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9387 lt_cv_prog_compiler_c_o=yes
9388 fi
9389 fi
9390 chmod u+w . 2>&5
9391 $RM conftest*
9392 # SGI C++ compiler will create directory out/ii_files/ for
9393 # template instantiation
9394 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9395 $RM out/* && rmdir out
9396 cd ..
9397 $RM -r conftest
9398 $RM conftest*
9399
9400 fi
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9402 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9403
9404
9405
9406
9407
9408
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9410 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9411 if ${lt_cv_prog_compiler_c_o+:} false; then :
9412 $as_echo_n "(cached) " >&6
9413 else
9414 lt_cv_prog_compiler_c_o=no
9415 $RM -r conftest 2>/dev/null
9416 mkdir conftest
9417 cd conftest
9418 mkdir out
9419 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9420
9421 lt_compiler_flag="-o out/conftest2.$ac_objext"
9422 # Insert the option either (1) after the last *FLAGS variable, or
9423 # (2) before a word containing "conftest.", or (3) at the end.
9424 # Note that $ac_compile itself does not contain backslashes and begins
9425 # with a dollar sign (not a hyphen), so the echo should work correctly.
9426 lt_compile=`echo "$ac_compile" | $SED \
9427 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9428 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9429 -e 's:$: $lt_compiler_flag:'`
9430 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9431 (eval "$lt_compile" 2>out/conftest.err)
9432 ac_status=$?
9433 cat out/conftest.err >&5
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9436 then
9437 # The compiler can only warn and ignore the option if not recognized
9438 # So say no if there are warnings
9439 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9440 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9441 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9442 lt_cv_prog_compiler_c_o=yes
9443 fi
9444 fi
9445 chmod u+w . 2>&5
9446 $RM conftest*
9447 # SGI C++ compiler will create directory out/ii_files/ for
9448 # template instantiation
9449 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9450 $RM out/* && rmdir out
9451 cd ..
9452 $RM -r conftest
9453 $RM conftest*
9454
9455 fi
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9457 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9458
9459
9460
9461
9462 hard_links="nottested"
9463 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9464 # do not overwrite the value of need_locks provided by the user
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9466 $as_echo_n "checking if we can lock with hard links... " >&6; }
9467 hard_links=yes
9468 $RM conftest*
9469 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9470 touch conftest.a
9471 ln conftest.a conftest.b 2>&5 || hard_links=no
9472 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9474 $as_echo "$hard_links" >&6; }
9475 if test "$hard_links" = no; then
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9477 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9478 need_locks=warn
9479 fi
9480 else
9481 need_locks=no
9482 fi
9483
9484
9485
9486
9487
9488
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9490 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9491
9492 runpath_var=
9493 allow_undefined_flag=
9494 always_export_symbols=no
9495 archive_cmds=
9496 archive_expsym_cmds=
9497 compiler_needs_object=no
9498 enable_shared_with_static_runtimes=no
9499 export_dynamic_flag_spec=
9500 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9501 hardcode_automatic=no
9502 hardcode_direct=no
9503 hardcode_direct_absolute=no
9504 hardcode_libdir_flag_spec=
9505 hardcode_libdir_separator=
9506 hardcode_minus_L=no
9507 hardcode_shlibpath_var=unsupported
9508 inherit_rpath=no
9509 link_all_deplibs=unknown
9510 module_cmds=
9511 module_expsym_cmds=
9512 old_archive_from_new_cmds=
9513 old_archive_from_expsyms_cmds=
9514 thread_safe_flag_spec=
9515 whole_archive_flag_spec=
9516 # include_expsyms should be a list of space-separated symbols to be *always*
9517 # included in the symbol list
9518 include_expsyms=
9519 # exclude_expsyms can be an extended regexp of symbols to exclude
9520 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9521 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9522 # as well as any symbol that contains `d'.
9523 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9524 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9525 # platforms (ab)use it in PIC code, but their linkers get confused if
9526 # the symbol is explicitly referenced. Since portable code cannot
9527 # rely on this symbol name, it's probably fine to never include it in
9528 # preloaded symbol tables.
9529 # Exclude shared library initialization/finalization symbols.
9530 extract_expsyms_cmds=
9531
9532 case $host_os in
9533 cygwin* | mingw* | pw32* | cegcc*)
9534 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9535 # When not using gcc, we currently assume that we are using
9536 # Microsoft Visual C++.
9537 if test "$GCC" != yes; then
9538 with_gnu_ld=no
9539 fi
9540 ;;
9541 interix*)
9542 # we just hope/assume this is gcc and not c89 (= MSVC++)
9543 with_gnu_ld=yes
9544 ;;
9545 openbsd*)
9546 with_gnu_ld=no
9547 ;;
9548 linux* | k*bsd*-gnu | gnu*)
9549 link_all_deplibs=no
9550 ;;
9551 esac
9552
9553 ld_shlibs=yes
9554
9555 # On some targets, GNU ld is compatible enough with the native linker
9556 # that we're better off using the native interface for both.
9557 lt_use_gnu_ld_interface=no
9558 if test "$with_gnu_ld" = yes; then
9559 case $host_os in
9560 aix*)
9561 # The AIX port of GNU ld has always aspired to compatibility
9562 # with the native linker. However, as the warning in the GNU ld
9563 # block says, versions before 2.19.5* couldn't really create working
9564 # shared libraries, regardless of the interface used.
9565 case `$LD -v 2>&1` in
9566 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9567 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9568 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9569 *)
9570 lt_use_gnu_ld_interface=yes
9571 ;;
9572 esac
9573 ;;
9574 *)
9575 lt_use_gnu_ld_interface=yes
9576 ;;
9577 esac
9578 fi
9579
9580 if test "$lt_use_gnu_ld_interface" = yes; then
9581 # If archive_cmds runs LD, not CC, wlarc should be empty
9582 wlarc='${wl}'
9583
9584 # Set some defaults for GNU ld with shared library support. These
9585 # are reset later if shared libraries are not supported. Putting them
9586 # here allows them to be overridden if necessary.
9587 runpath_var=LD_RUN_PATH
9588 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9589 export_dynamic_flag_spec='${wl}--export-dynamic'
9590 # ancient GNU ld didn't support --whole-archive et. al.
9591 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9592 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9593 else
9594 whole_archive_flag_spec=
9595 fi
9596 supports_anon_versioning=no
9597 case `$LD -v 2>&1` in
9598 *GNU\ gold*) supports_anon_versioning=yes ;;
9599 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9600 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9601 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9602 *\ 2.11.*) ;; # other 2.11 versions
9603 *) supports_anon_versioning=yes ;;
9604 esac
9605
9606 # See if GNU ld supports shared libraries.
9607 case $host_os in
9608 aix[3-9]*)
9609 # On AIX/PPC, the GNU linker is very broken
9610 if test "$host_cpu" != ia64; then
9611 ld_shlibs=no
9612 cat <<_LT_EOF 1>&2
9613
9614 *** Warning: the GNU linker, at least up to release 2.19, is reported
9615 *** to be unable to reliably create shared libraries on AIX.
9616 *** Therefore, libtool is disabling shared libraries support. If you
9617 *** really care for shared libraries, you may want to install binutils
9618 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9619 *** You will then need to restart the configuration process.
9620
9621 _LT_EOF
9622 fi
9623 ;;
9624
9625 amigaos*)
9626 case $host_cpu in
9627 powerpc)
9628 # see comment about AmigaOS4 .so support
9629 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9630 archive_expsym_cmds=''
9631 ;;
9632 m68k)
9633 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)'
9634 hardcode_libdir_flag_spec='-L$libdir'
9635 hardcode_minus_L=yes
9636 ;;
9637 esac
9638 ;;
9639
9640 beos*)
9641 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9642 allow_undefined_flag=unsupported
9643 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9644 # support --undefined. This deserves some investigation. FIXME
9645 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9646 else
9647 ld_shlibs=no
9648 fi
9649 ;;
9650
9651 cygwin* | mingw* | pw32* | cegcc*)
9652 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9653 # as there is no search path for DLLs.
9654 hardcode_libdir_flag_spec='-L$libdir'
9655 export_dynamic_flag_spec='${wl}--export-all-symbols'
9656 allow_undefined_flag=unsupported
9657 always_export_symbols=no
9658 enable_shared_with_static_runtimes=yes
9659 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'
9660 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9661
9662 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9663 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9664 # If the export-symbols file already is a .def file (1st line
9665 # is EXPORTS), use it as is; otherwise, prepend...
9666 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9667 cp $export_symbols $output_objdir/$soname.def;
9668 else
9669 echo EXPORTS > $output_objdir/$soname.def;
9670 cat $export_symbols >> $output_objdir/$soname.def;
9671 fi~
9672 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9673 else
9674 ld_shlibs=no
9675 fi
9676 ;;
9677
9678 haiku*)
9679 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9680 link_all_deplibs=yes
9681 ;;
9682
9683 interix[3-9]*)
9684 hardcode_direct=no
9685 hardcode_shlibpath_var=no
9686 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9687 export_dynamic_flag_spec='${wl}-E'
9688 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9689 # Instead, shared libraries are loaded at an image base (0x10000000 by
9690 # default) and relocated if they conflict, which is a slow very memory
9691 # consuming and fragmenting process. To avoid this, we pick a random,
9692 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9693 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9694 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9695 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'
9696 ;;
9697
9698 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9699 tmp_diet=no
9700 if test "$host_os" = linux-dietlibc; then
9701 case $cc_basename in
9702 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9703 esac
9704 fi
9705 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9706 && test "$tmp_diet" = no
9707 then
9708 tmp_addflag=' $pic_flag'
9709 tmp_sharedflag='-shared'
9710 case $cc_basename,$host_cpu in
9711 pgcc*) # Portland Group C compiler
9712 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'
9713 tmp_addflag=' $pic_flag'
9714 ;;
9715 pgf77* | pgf90* | pgf95* | pgfortran*)
9716 # Portland Group f77 and f90 compilers
9717 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'
9718 tmp_addflag=' $pic_flag -Mnomain' ;;
9719 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9720 tmp_addflag=' -i_dynamic' ;;
9721 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9722 tmp_addflag=' -i_dynamic -nofor_main' ;;
9723 ifc* | ifort*) # Intel Fortran compiler
9724 tmp_addflag=' -nofor_main' ;;
9725 lf95*) # Lahey Fortran 8.1
9726 whole_archive_flag_spec=
9727 tmp_sharedflag='--shared' ;;
9728 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9729 tmp_sharedflag='-qmkshrobj'
9730 tmp_addflag= ;;
9731 nvcc*) # Cuda Compiler Driver 2.2
9732 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'
9733 compiler_needs_object=yes
9734 ;;
9735 esac
9736 case `$CC -V 2>&1 | sed 5q` in
9737 *Sun\ C*) # Sun C 5.9
9738 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'
9739 compiler_needs_object=yes
9740 tmp_sharedflag='-G' ;;
9741 *Sun\ F*) # Sun Fortran 8.3
9742 tmp_sharedflag='-G' ;;
9743 esac
9744 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9745
9746 if test "x$supports_anon_versioning" = xyes; then
9747 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9748 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9749 echo "local: *; };" >> $output_objdir/$libname.ver~
9750 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9751 fi
9752
9753 case $cc_basename in
9754 xlf* | bgf* | bgxlf* | mpixlf*)
9755 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9756 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9757 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9758 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9759 if test "x$supports_anon_versioning" = xyes; then
9760 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9761 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9762 echo "local: *; };" >> $output_objdir/$libname.ver~
9763 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9764 fi
9765 ;;
9766 esac
9767 else
9768 ld_shlibs=no
9769 fi
9770 ;;
9771
9772 netbsd* | netbsdelf*-gnu)
9773 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9774 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9775 wlarc=
9776 else
9777 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9778 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9779 fi
9780 ;;
9781
9782 solaris*)
9783 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9784 ld_shlibs=no
9785 cat <<_LT_EOF 1>&2
9786
9787 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9788 *** create shared libraries on Solaris systems. Therefore, libtool
9789 *** is disabling shared libraries support. We urge you to upgrade GNU
9790 *** binutils to release 2.9.1 or newer. Another option is to modify
9791 *** your PATH or compiler configuration so that the native linker is
9792 *** used, and then restart.
9793
9794 _LT_EOF
9795 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9796 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9797 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9798 else
9799 ld_shlibs=no
9800 fi
9801 ;;
9802
9803 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9804 case `$LD -v 2>&1` in
9805 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9806 ld_shlibs=no
9807 cat <<_LT_EOF 1>&2
9808
9809 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9810 *** reliably create shared libraries on SCO systems. Therefore, libtool
9811 *** is disabling shared libraries support. We urge you to upgrade GNU
9812 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9813 *** your PATH or compiler configuration so that the native linker is
9814 *** used, and then restart.
9815
9816 _LT_EOF
9817 ;;
9818 *)
9819 # For security reasons, it is highly recommended that you always
9820 # use absolute paths for naming shared libraries, and exclude the
9821 # DT_RUNPATH tag from executables and libraries. But doing so
9822 # requires that you compile everything twice, which is a pain.
9823 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9824 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9825 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9826 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9827 else
9828 ld_shlibs=no
9829 fi
9830 ;;
9831 esac
9832 ;;
9833
9834 sunos4*)
9835 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9836 wlarc=
9837 hardcode_direct=yes
9838 hardcode_shlibpath_var=no
9839 ;;
9840
9841 *)
9842 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9843 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9844 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9845 else
9846 ld_shlibs=no
9847 fi
9848 ;;
9849 esac
9850
9851 if test "$ld_shlibs" = no; then
9852 runpath_var=
9853 hardcode_libdir_flag_spec=
9854 export_dynamic_flag_spec=
9855 whole_archive_flag_spec=
9856 fi
9857 else
9858 # PORTME fill in a description of your system's linker (not GNU ld)
9859 case $host_os in
9860 aix3*)
9861 allow_undefined_flag=unsupported
9862 always_export_symbols=yes
9863 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'
9864 # Note: this linker hardcodes the directories in LIBPATH if there
9865 # are no directories specified by -L.
9866 hardcode_minus_L=yes
9867 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9868 # Neither direct hardcoding nor static linking is supported with a
9869 # broken collect2.
9870 hardcode_direct=unsupported
9871 fi
9872 ;;
9873
9874 aix[4-9]*)
9875 if test "$host_cpu" = ia64; then
9876 # On IA64, the linker does run time linking by default, so we don't
9877 # have to do anything special.
9878 aix_use_runtimelinking=no
9879 exp_sym_flag='-Bexport'
9880 no_entry_flag=""
9881 else
9882 # If we're using GNU nm, then we don't want the "-C" option.
9883 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9884 # Also, AIX nm treats weak defined symbols like other global
9885 # defined symbols, whereas GNU nm marks them as "W".
9886 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9887 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'
9888 else
9889 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'
9890 fi
9891 aix_use_runtimelinking=no
9892
9893 # Test if we are trying to use run time linking or normal
9894 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9895 # need to do runtime linking.
9896 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9897 for ld_flag in $LDFLAGS; do
9898 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9899 aix_use_runtimelinking=yes
9900 break
9901 fi
9902 done
9903 ;;
9904 esac
9905
9906 exp_sym_flag='-bexport'
9907 no_entry_flag='-bnoentry'
9908 fi
9909
9910 # When large executables or shared objects are built, AIX ld can
9911 # have problems creating the table of contents. If linking a library
9912 # or program results in "error TOC overflow" add -mminimal-toc to
9913 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9914 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9915
9916 archive_cmds=''
9917 hardcode_direct=yes
9918 hardcode_direct_absolute=yes
9919 hardcode_libdir_separator=':'
9920 link_all_deplibs=yes
9921 file_list_spec='${wl}-f,'
9922
9923 if test "$GCC" = yes; then
9924 case $host_os in aix4.[012]|aix4.[012].*)
9925 # We only want to do this on AIX 4.2 and lower, the check
9926 # below for broken collect2 doesn't work under 4.3+
9927 collect2name=`${CC} -print-prog-name=collect2`
9928 if test -f "$collect2name" &&
9929 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9930 then
9931 # We have reworked collect2
9932 :
9933 else
9934 # We have old collect2
9935 hardcode_direct=unsupported
9936 # It fails to find uninstalled libraries when the uninstalled
9937 # path is not listed in the libpath. Setting hardcode_minus_L
9938 # to unsupported forces relinking
9939 hardcode_minus_L=yes
9940 hardcode_libdir_flag_spec='-L$libdir'
9941 hardcode_libdir_separator=
9942 fi
9943 ;;
9944 esac
9945 shared_flag='-shared'
9946 if test "$aix_use_runtimelinking" = yes; then
9947 shared_flag="$shared_flag "'${wl}-G'
9948 fi
9949 link_all_deplibs=no
9950 else
9951 # not using gcc
9952 if test "$host_cpu" = ia64; then
9953 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9954 # chokes on -Wl,-G. The following line is correct:
9955 shared_flag='-G'
9956 else
9957 if test "$aix_use_runtimelinking" = yes; then
9958 shared_flag='${wl}-G'
9959 else
9960 shared_flag='${wl}-bM:SRE'
9961 fi
9962 fi
9963 fi
9964
9965 export_dynamic_flag_spec='${wl}-bexpall'
9966 # It seems that -bexpall does not export symbols beginning with
9967 # underscore (_), so it is better to generate a list of symbols to export.
9968 always_export_symbols=yes
9969 if test "$aix_use_runtimelinking" = yes; then
9970 # Warning - without using the other runtime loading flags (-brtl),
9971 # -berok will link without error, but may produce a broken library.
9972 allow_undefined_flag='-berok'
9973 # Determine the default libpath from the value encoded in an
9974 # empty executable.
9975 if test "${lt_cv_aix_libpath+set}" = set; then
9976 aix_libpath=$lt_cv_aix_libpath
9977 else
9978 if ${lt_cv_aix_libpath_+:} false; then :
9979 $as_echo_n "(cached) " >&6
9980 else
9981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9982 /* end confdefs.h. */
9983
9984 int
9985 main ()
9986 {
9987
9988 ;
9989 return 0;
9990 }
9991 _ACEOF
9992 if ac_fn_c_try_link "$LINENO"; then :
9993
9994 lt_aix_libpath_sed='
9995 /Import File Strings/,/^$/ {
9996 /^0/ {
9997 s/^0 *\([^ ]*\) *$/\1/
9998 p
9999 }
10000 }'
10001 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10002 # Check for a 64-bit object if we didn't find anything.
10003 if test -z "$lt_cv_aix_libpath_"; then
10004 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10005 fi
10006 fi
10007 rm -f core conftest.err conftest.$ac_objext \
10008 conftest$ac_exeext conftest.$ac_ext
10009 if test -z "$lt_cv_aix_libpath_"; then
10010 lt_cv_aix_libpath_="/usr/lib:/lib"
10011 fi
10012
10013 fi
10014
10015 aix_libpath=$lt_cv_aix_libpath_
10016 fi
10017
10018 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10019 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"
10020 else
10021 if test "$host_cpu" = ia64; then
10022 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10023 allow_undefined_flag="-z nodefs"
10024 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"
10025 else
10026 # Determine the default libpath from the value encoded in an
10027 # empty executable.
10028 if test "${lt_cv_aix_libpath+set}" = set; then
10029 aix_libpath=$lt_cv_aix_libpath
10030 else
10031 if ${lt_cv_aix_libpath_+:} false; then :
10032 $as_echo_n "(cached) " >&6
10033 else
10034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10035 /* end confdefs.h. */
10036
10037 int
10038 main ()
10039 {
10040
10041 ;
10042 return 0;
10043 }
10044 _ACEOF
10045 if ac_fn_c_try_link "$LINENO"; then :
10046
10047 lt_aix_libpath_sed='
10048 /Import File Strings/,/^$/ {
10049 /^0/ {
10050 s/^0 *\([^ ]*\) *$/\1/
10051 p
10052 }
10053 }'
10054 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10055 # Check for a 64-bit object if we didn't find anything.
10056 if test -z "$lt_cv_aix_libpath_"; then
10057 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10058 fi
10059 fi
10060 rm -f core conftest.err conftest.$ac_objext \
10061 conftest$ac_exeext conftest.$ac_ext
10062 if test -z "$lt_cv_aix_libpath_"; then
10063 lt_cv_aix_libpath_="/usr/lib:/lib"
10064 fi
10065
10066 fi
10067
10068 aix_libpath=$lt_cv_aix_libpath_
10069 fi
10070
10071 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10072 # Warning - without using the other run time loading flags,
10073 # -berok will link without error, but may produce a broken library.
10074 no_undefined_flag=' ${wl}-bernotok'
10075 allow_undefined_flag=' ${wl}-berok'
10076 if test "$with_gnu_ld" = yes; then
10077 # We only use this code for GNU lds that support --whole-archive.
10078 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10079 else
10080 # Exported symbols can be pulled into shared objects from archives
10081 whole_archive_flag_spec='$convenience'
10082 fi
10083 archive_cmds_need_lc=yes
10084 # This is similar to how AIX traditionally builds its shared libraries.
10085 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'
10086 fi
10087 fi
10088 ;;
10089
10090 amigaos*)
10091 case $host_cpu in
10092 powerpc)
10093 # see comment about AmigaOS4 .so support
10094 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10095 archive_expsym_cmds=''
10096 ;;
10097 m68k)
10098 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)'
10099 hardcode_libdir_flag_spec='-L$libdir'
10100 hardcode_minus_L=yes
10101 ;;
10102 esac
10103 ;;
10104
10105 bsdi[45]*)
10106 export_dynamic_flag_spec=-rdynamic
10107 ;;
10108
10109 cygwin* | mingw* | pw32* | cegcc*)
10110 # When not using gcc, we currently assume that we are using
10111 # Microsoft Visual C++.
10112 # hardcode_libdir_flag_spec is actually meaningless, as there is
10113 # no search path for DLLs.
10114 case $cc_basename in
10115 cl*)
10116 # Native MSVC
10117 hardcode_libdir_flag_spec=' '
10118 allow_undefined_flag=unsupported
10119 always_export_symbols=yes
10120 file_list_spec='@'
10121 # Tell ltmain to make .lib files, not .a files.
10122 libext=lib
10123 # Tell ltmain to make .dll files, not .so files.
10124 shrext_cmds=".dll"
10125 # FIXME: Setting linknames here is a bad hack.
10126 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10127 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10128 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10129 else
10130 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10131 fi~
10132 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10133 linknames='
10134 # The linker will not automatically build a static lib if we build a DLL.
10135 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10136 enable_shared_with_static_runtimes=yes
10137 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10138 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10139 # Don't use ranlib
10140 old_postinstall_cmds='chmod 644 $oldlib'
10141 postlink_cmds='lt_outputfile="@OUTPUT@"~
10142 lt_tool_outputfile="@TOOL_OUTPUT@"~
10143 case $lt_outputfile in
10144 *.exe|*.EXE) ;;
10145 *)
10146 lt_outputfile="$lt_outputfile.exe"
10147 lt_tool_outputfile="$lt_tool_outputfile.exe"
10148 ;;
10149 esac~
10150 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10151 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10152 $RM "$lt_outputfile.manifest";
10153 fi'
10154 ;;
10155 *)
10156 # Assume MSVC wrapper
10157 hardcode_libdir_flag_spec=' '
10158 allow_undefined_flag=unsupported
10159 # Tell ltmain to make .lib files, not .a files.
10160 libext=lib
10161 # Tell ltmain to make .dll files, not .so files.
10162 shrext_cmds=".dll"
10163 # FIXME: Setting linknames here is a bad hack.
10164 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10165 # The linker will automatically build a .lib file if we build a DLL.
10166 old_archive_from_new_cmds='true'
10167 # FIXME: Should let the user specify the lib program.
10168 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10169 enable_shared_with_static_runtimes=yes
10170 ;;
10171 esac
10172 ;;
10173
10174 darwin* | rhapsody*)
10175
10176
10177 archive_cmds_need_lc=no
10178 hardcode_direct=no
10179 hardcode_automatic=yes
10180 hardcode_shlibpath_var=unsupported
10181 if test "$lt_cv_ld_force_load" = "yes"; then
10182 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\"`'
10183
10184 else
10185 whole_archive_flag_spec=''
10186 fi
10187 link_all_deplibs=yes
10188 allow_undefined_flag="$_lt_dar_allow_undefined"
10189 case $cc_basename in
10190 ifort*) _lt_dar_can_shared=yes ;;
10191 *) _lt_dar_can_shared=$GCC ;;
10192 esac
10193 if test "$_lt_dar_can_shared" = "yes"; then
10194 output_verbose_link_cmd=func_echo_all
10195 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10196 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10197 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}"
10198 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}"
10199
10200 else
10201 ld_shlibs=no
10202 fi
10203
10204 ;;
10205
10206 dgux*)
10207 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10208 hardcode_libdir_flag_spec='-L$libdir'
10209 hardcode_shlibpath_var=no
10210 ;;
10211
10212 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10213 # support. Future versions do this automatically, but an explicit c++rt0.o
10214 # does not break anything, and helps significantly (at the cost of a little
10215 # extra space).
10216 freebsd2.2*)
10217 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10218 hardcode_libdir_flag_spec='-R$libdir'
10219 hardcode_direct=yes
10220 hardcode_shlibpath_var=no
10221 ;;
10222
10223 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10224 freebsd2.*)
10225 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10226 hardcode_direct=yes
10227 hardcode_minus_L=yes
10228 hardcode_shlibpath_var=no
10229 ;;
10230
10231 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10232 freebsd* | dragonfly*)
10233 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10234 hardcode_libdir_flag_spec='-R$libdir'
10235 hardcode_direct=yes
10236 hardcode_shlibpath_var=no
10237 ;;
10238
10239 hpux9*)
10240 if test "$GCC" = yes; then
10241 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'
10242 else
10243 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'
10244 fi
10245 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10246 hardcode_libdir_separator=:
10247 hardcode_direct=yes
10248
10249 # hardcode_minus_L: Not really in the search PATH,
10250 # but as the default location of the library.
10251 hardcode_minus_L=yes
10252 export_dynamic_flag_spec='${wl}-E'
10253 ;;
10254
10255 hpux10*)
10256 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10257 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10258 else
10259 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10260 fi
10261 if test "$with_gnu_ld" = no; then
10262 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10263 hardcode_libdir_separator=:
10264 hardcode_direct=yes
10265 hardcode_direct_absolute=yes
10266 export_dynamic_flag_spec='${wl}-E'
10267 # hardcode_minus_L: Not really in the search PATH,
10268 # but as the default location of the library.
10269 hardcode_minus_L=yes
10270 fi
10271 ;;
10272
10273 hpux11*)
10274 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10275 case $host_cpu in
10276 hppa*64*)
10277 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10278 ;;
10279 ia64*)
10280 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10281 ;;
10282 *)
10283 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10284 ;;
10285 esac
10286 else
10287 case $host_cpu in
10288 hppa*64*)
10289 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10290 ;;
10291 ia64*)
10292 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10293 ;;
10294 *)
10295
10296 # Older versions of the 11.00 compiler do not understand -b yet
10297 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10299 $as_echo_n "checking if $CC understands -b... " >&6; }
10300 if ${lt_cv_prog_compiler__b+:} false; then :
10301 $as_echo_n "(cached) " >&6
10302 else
10303 lt_cv_prog_compiler__b=no
10304 save_LDFLAGS="$LDFLAGS"
10305 LDFLAGS="$LDFLAGS -b"
10306 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10307 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10308 # The linker can only warn and ignore the option if not recognized
10309 # So say no if there are warnings
10310 if test -s conftest.err; then
10311 # Append any errors to the config.log.
10312 cat conftest.err 1>&5
10313 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10314 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10315 if diff conftest.exp conftest.er2 >/dev/null; then
10316 lt_cv_prog_compiler__b=yes
10317 fi
10318 else
10319 lt_cv_prog_compiler__b=yes
10320 fi
10321 fi
10322 $RM -r conftest*
10323 LDFLAGS="$save_LDFLAGS"
10324
10325 fi
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10327 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10328
10329 if test x"$lt_cv_prog_compiler__b" = xyes; then
10330 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10331 else
10332 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10333 fi
10334
10335 ;;
10336 esac
10337 fi
10338 if test "$with_gnu_ld" = no; then
10339 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10340 hardcode_libdir_separator=:
10341
10342 case $host_cpu in
10343 hppa*64*|ia64*)
10344 hardcode_direct=no
10345 hardcode_shlibpath_var=no
10346 ;;
10347 *)
10348 hardcode_direct=yes
10349 hardcode_direct_absolute=yes
10350 export_dynamic_flag_spec='${wl}-E'
10351
10352 # hardcode_minus_L: Not really in the search PATH,
10353 # but as the default location of the library.
10354 hardcode_minus_L=yes
10355 ;;
10356 esac
10357 fi
10358 ;;
10359
10360 irix5* | irix6* | nonstopux*)
10361 if test "$GCC" = yes; then
10362 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'
10363 # Try to use the -exported_symbol ld option, if it does not
10364 # work, assume that -exports_file does not work either and
10365 # implicitly export all symbols.
10366 # This should be the same for all languages, so no per-tag cache variable.
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10368 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10369 if ${lt_cv_irix_exported_symbol+:} false; then :
10370 $as_echo_n "(cached) " >&6
10371 else
10372 save_LDFLAGS="$LDFLAGS"
10373 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10375 /* end confdefs.h. */
10376 int foo (void) { return 0; }
10377 _ACEOF
10378 if ac_fn_c_try_link "$LINENO"; then :
10379 lt_cv_irix_exported_symbol=yes
10380 else
10381 lt_cv_irix_exported_symbol=no
10382 fi
10383 rm -f core conftest.err conftest.$ac_objext \
10384 conftest$ac_exeext conftest.$ac_ext
10385 LDFLAGS="$save_LDFLAGS"
10386 fi
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10388 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10389 if test "$lt_cv_irix_exported_symbol" = yes; then
10390 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'
10391 fi
10392 else
10393 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'
10394 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'
10395 fi
10396 archive_cmds_need_lc='no'
10397 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10398 hardcode_libdir_separator=:
10399 inherit_rpath=yes
10400 link_all_deplibs=yes
10401 ;;
10402
10403 netbsd* | netbsdelf*-gnu)
10404 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10405 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10406 else
10407 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10408 fi
10409 hardcode_libdir_flag_spec='-R$libdir'
10410 hardcode_direct=yes
10411 hardcode_shlibpath_var=no
10412 ;;
10413
10414 newsos6)
10415 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10416 hardcode_direct=yes
10417 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10418 hardcode_libdir_separator=:
10419 hardcode_shlibpath_var=no
10420 ;;
10421
10422 *nto* | *qnx*)
10423 ;;
10424
10425 openbsd*)
10426 if test -f /usr/libexec/ld.so; then
10427 hardcode_direct=yes
10428 hardcode_shlibpath_var=no
10429 hardcode_direct_absolute=yes
10430 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10431 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10432 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10433 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10434 export_dynamic_flag_spec='${wl}-E'
10435 else
10436 case $host_os in
10437 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10438 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10439 hardcode_libdir_flag_spec='-R$libdir'
10440 ;;
10441 *)
10442 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10443 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10444 ;;
10445 esac
10446 fi
10447 else
10448 ld_shlibs=no
10449 fi
10450 ;;
10451
10452 os2*)
10453 hardcode_libdir_flag_spec='-L$libdir'
10454 hardcode_minus_L=yes
10455 allow_undefined_flag=unsupported
10456 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'
10457 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10458 ;;
10459
10460 osf3*)
10461 if test "$GCC" = yes; then
10462 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10463 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'
10464 else
10465 allow_undefined_flag=' -expect_unresolved \*'
10466 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'
10467 fi
10468 archive_cmds_need_lc='no'
10469 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10470 hardcode_libdir_separator=:
10471 ;;
10472
10473 osf4* | osf5*) # as osf3* with the addition of -msym flag
10474 if test "$GCC" = yes; then
10475 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10476 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'
10477 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10478 else
10479 allow_undefined_flag=' -expect_unresolved \*'
10480 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'
10481 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~
10482 $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'
10483
10484 # Both c and cxx compiler support -rpath directly
10485 hardcode_libdir_flag_spec='-rpath $libdir'
10486 fi
10487 archive_cmds_need_lc='no'
10488 hardcode_libdir_separator=:
10489 ;;
10490
10491 solaris*)
10492 no_undefined_flag=' -z defs'
10493 if test "$GCC" = yes; then
10494 wlarc='${wl}'
10495 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10496 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10497 $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'
10498 else
10499 case `$CC -V 2>&1` in
10500 *"Compilers 5.0"*)
10501 wlarc=''
10502 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10503 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10504 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10505 ;;
10506 *)
10507 wlarc='${wl}'
10508 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10509 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10510 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10511 ;;
10512 esac
10513 fi
10514 hardcode_libdir_flag_spec='-R$libdir'
10515 hardcode_shlibpath_var=no
10516 case $host_os in
10517 solaris2.[0-5] | solaris2.[0-5].*) ;;
10518 *)
10519 # The compiler driver will combine and reorder linker options,
10520 # but understands `-z linker_flag'. GCC discards it without `$wl',
10521 # but is careful enough not to reorder.
10522 # Supported since Solaris 2.6 (maybe 2.5.1?)
10523 if test "$GCC" = yes; then
10524 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10525 else
10526 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10527 fi
10528 ;;
10529 esac
10530 link_all_deplibs=yes
10531 ;;
10532
10533 sunos4*)
10534 if test "x$host_vendor" = xsequent; then
10535 # Use $CC to link under sequent, because it throws in some extra .o
10536 # files that make .init and .fini sections work.
10537 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10538 else
10539 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10540 fi
10541 hardcode_libdir_flag_spec='-L$libdir'
10542 hardcode_direct=yes
10543 hardcode_minus_L=yes
10544 hardcode_shlibpath_var=no
10545 ;;
10546
10547 sysv4)
10548 case $host_vendor in
10549 sni)
10550 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10551 hardcode_direct=yes # is this really true???
10552 ;;
10553 siemens)
10554 ## LD is ld it makes a PLAMLIB
10555 ## CC just makes a GrossModule.
10556 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10557 reload_cmds='$CC -r -o $output$reload_objs'
10558 hardcode_direct=no
10559 ;;
10560 motorola)
10561 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10562 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10563 ;;
10564 esac
10565 runpath_var='LD_RUN_PATH'
10566 hardcode_shlibpath_var=no
10567 ;;
10568
10569 sysv4.3*)
10570 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10571 hardcode_shlibpath_var=no
10572 export_dynamic_flag_spec='-Bexport'
10573 ;;
10574
10575 sysv4*MP*)
10576 if test -d /usr/nec; then
10577 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10578 hardcode_shlibpath_var=no
10579 runpath_var=LD_RUN_PATH
10580 hardcode_runpath_var=yes
10581 ld_shlibs=yes
10582 fi
10583 ;;
10584
10585 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10586 no_undefined_flag='${wl}-z,text'
10587 archive_cmds_need_lc=no
10588 hardcode_shlibpath_var=no
10589 runpath_var='LD_RUN_PATH'
10590
10591 if test "$GCC" = yes; then
10592 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10593 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10594 else
10595 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10596 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10597 fi
10598 ;;
10599
10600 sysv5* | sco3.2v5* | sco5v6*)
10601 # Note: We can NOT use -z defs as we might desire, because we do not
10602 # link with -lc, and that would cause any symbols used from libc to
10603 # always be unresolved, which means just about no library would
10604 # ever link correctly. If we're not using GNU ld we use -z text
10605 # though, which does catch some bad symbols but isn't as heavy-handed
10606 # as -z defs.
10607 no_undefined_flag='${wl}-z,text'
10608 allow_undefined_flag='${wl}-z,nodefs'
10609 archive_cmds_need_lc=no
10610 hardcode_shlibpath_var=no
10611 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10612 hardcode_libdir_separator=':'
10613 link_all_deplibs=yes
10614 export_dynamic_flag_spec='${wl}-Bexport'
10615 runpath_var='LD_RUN_PATH'
10616
10617 if test "$GCC" = yes; then
10618 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10619 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10620 else
10621 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10622 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10623 fi
10624 ;;
10625
10626 uts4*)
10627 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10628 hardcode_libdir_flag_spec='-L$libdir'
10629 hardcode_shlibpath_var=no
10630 ;;
10631
10632 *)
10633 ld_shlibs=no
10634 ;;
10635 esac
10636
10637 if test x$host_vendor = xsni; then
10638 case $host in
10639 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10640 export_dynamic_flag_spec='${wl}-Blargedynsym'
10641 ;;
10642 esac
10643 fi
10644 fi
10645
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10647 $as_echo "$ld_shlibs" >&6; }
10648 test "$ld_shlibs" = no && can_build_shared=no
10649
10650 with_gnu_ld=$with_gnu_ld
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666 #
10667 # Do we need to explicitly link libc?
10668 #
10669 case "x$archive_cmds_need_lc" in
10670 x|xyes)
10671 # Assume -lc should be added
10672 archive_cmds_need_lc=yes
10673
10674 if test "$enable_shared" = yes && test "$GCC" = yes; then
10675 case $archive_cmds in
10676 *'~'*)
10677 # FIXME: we may have to deal with multi-command sequences.
10678 ;;
10679 '$CC '*)
10680 # Test whether the compiler implicitly links with -lc since on some
10681 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10682 # to ld, don't add -lc before -lgcc.
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10684 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10685 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10686 $as_echo_n "(cached) " >&6
10687 else
10688 $RM conftest*
10689 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10690
10691 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10692 (eval $ac_compile) 2>&5
10693 ac_status=$?
10694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10695 test $ac_status = 0; } 2>conftest.err; then
10696 soname=conftest
10697 lib=conftest
10698 libobjs=conftest.$ac_objext
10699 deplibs=
10700 wl=$lt_prog_compiler_wl
10701 pic_flag=$lt_prog_compiler_pic
10702 compiler_flags=-v
10703 linker_flags=-v
10704 verstring=
10705 output_objdir=.
10706 libname=conftest
10707 lt_save_allow_undefined_flag=$allow_undefined_flag
10708 allow_undefined_flag=
10709 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10710 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10711 ac_status=$?
10712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10713 test $ac_status = 0; }
10714 then
10715 lt_cv_archive_cmds_need_lc=no
10716 else
10717 lt_cv_archive_cmds_need_lc=yes
10718 fi
10719 allow_undefined_flag=$lt_save_allow_undefined_flag
10720 else
10721 cat conftest.err 1>&5
10722 fi
10723 $RM conftest*
10724
10725 fi
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10727 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10728 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10729 ;;
10730 esac
10731 fi
10732 ;;
10733 esac
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10887 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10888
10889 if test "$GCC" = yes; then
10890 case $host_os in
10891 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10892 *) lt_awk_arg="/^libraries:/" ;;
10893 esac
10894 case $host_os in
10895 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10896 *) lt_sed_strip_eq="s,=/,/,g" ;;
10897 esac
10898 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10899 case $lt_search_path_spec in
10900 *\;*)
10901 # if the path contains ";" then we assume it to be the separator
10902 # otherwise default to the standard path separator (i.e. ":") - it is
10903 # assumed that no part of a normal pathname contains ";" but that should
10904 # okay in the real world where ";" in dirpaths is itself problematic.
10905 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10906 ;;
10907 *)
10908 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10909 ;;
10910 esac
10911 # Ok, now we have the path, separated by spaces, we can step through it
10912 # and add multilib dir if necessary.
10913 lt_tmp_lt_search_path_spec=
10914 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10915 for lt_sys_path in $lt_search_path_spec; do
10916 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10917 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10918 else
10919 test -d "$lt_sys_path" && \
10920 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10921 fi
10922 done
10923 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10924 BEGIN {RS=" "; FS="/|\n";} {
10925 lt_foo="";
10926 lt_count=0;
10927 for (lt_i = NF; lt_i > 0; lt_i--) {
10928 if ($lt_i != "" && $lt_i != ".") {
10929 if ($lt_i == "..") {
10930 lt_count++;
10931 } else {
10932 if (lt_count == 0) {
10933 lt_foo="/" $lt_i lt_foo;
10934 } else {
10935 lt_count--;
10936 }
10937 }
10938 }
10939 }
10940 if (lt_foo != "") { lt_freq[lt_foo]++; }
10941 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10942 }'`
10943 # AWK program above erroneously prepends '/' to C:/dos/paths
10944 # for these hosts.
10945 case $host_os in
10946 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10947 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10948 esac
10949 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10950 else
10951 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10952 fi
10953 library_names_spec=
10954 libname_spec='lib$name'
10955 soname_spec=
10956 shrext_cmds=".so"
10957 postinstall_cmds=
10958 postuninstall_cmds=
10959 finish_cmds=
10960 finish_eval=
10961 shlibpath_var=
10962 shlibpath_overrides_runpath=unknown
10963 version_type=none
10964 dynamic_linker="$host_os ld.so"
10965 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10966 need_lib_prefix=unknown
10967 hardcode_into_libs=no
10968
10969 # when you set need_version to no, make sure it does not cause -set_version
10970 # flags to be left without arguments
10971 need_version=unknown
10972
10973 case $host_os in
10974 aix3*)
10975 version_type=linux # correct to gnu/linux during the next big refactor
10976 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10977 shlibpath_var=LIBPATH
10978
10979 # AIX 3 has no versioning support, so we append a major version to the name.
10980 soname_spec='${libname}${release}${shared_ext}$major'
10981 ;;
10982
10983 aix[4-9]*)
10984 version_type=linux # correct to gnu/linux during the next big refactor
10985 need_lib_prefix=no
10986 need_version=no
10987 hardcode_into_libs=yes
10988 if test "$host_cpu" = ia64; then
10989 # AIX 5 supports IA64
10990 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10991 shlibpath_var=LD_LIBRARY_PATH
10992 else
10993 # With GCC up to 2.95.x, collect2 would create an import file
10994 # for dependence libraries. The import file would start with
10995 # the line `#! .'. This would cause the generated library to
10996 # depend on `.', always an invalid library. This was fixed in
10997 # development snapshots of GCC prior to 3.0.
10998 case $host_os in
10999 aix4 | aix4.[01] | aix4.[01].*)
11000 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11001 echo ' yes '
11002 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11003 :
11004 else
11005 can_build_shared=no
11006 fi
11007 ;;
11008 esac
11009 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11010 # soname into executable. Probably we can add versioning support to
11011 # collect2, so additional links can be useful in future.
11012 if test "$aix_use_runtimelinking" = yes; then
11013 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11014 # instead of lib<name>.a to let people know that these are not
11015 # typical AIX shared libraries.
11016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11017 else
11018 # We preserve .a as extension for shared libraries through AIX4.2
11019 # and later when we are not doing run time linking.
11020 library_names_spec='${libname}${release}.a $libname.a'
11021 soname_spec='${libname}${release}${shared_ext}$major'
11022 fi
11023 shlibpath_var=LIBPATH
11024 fi
11025 ;;
11026
11027 amigaos*)
11028 case $host_cpu in
11029 powerpc)
11030 # Since July 2007 AmigaOS4 officially supports .so libraries.
11031 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11033 ;;
11034 m68k)
11035 library_names_spec='$libname.ixlibrary $libname.a'
11036 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11037 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'
11038 ;;
11039 esac
11040 ;;
11041
11042 beos*)
11043 library_names_spec='${libname}${shared_ext}'
11044 dynamic_linker="$host_os ld.so"
11045 shlibpath_var=LIBRARY_PATH
11046 ;;
11047
11048 bsdi[45]*)
11049 version_type=linux # correct to gnu/linux during the next big refactor
11050 need_version=no
11051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11052 soname_spec='${libname}${release}${shared_ext}$major'
11053 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11054 shlibpath_var=LD_LIBRARY_PATH
11055 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11056 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11057 # the default ld.so.conf also contains /usr/contrib/lib and
11058 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11059 # libtool to hard-code these into programs
11060 ;;
11061
11062 cygwin* | mingw* | pw32* | cegcc*)
11063 version_type=windows
11064 shrext_cmds=".dll"
11065 need_version=no
11066 need_lib_prefix=no
11067
11068 case $GCC,$cc_basename in
11069 yes,*)
11070 # gcc
11071 library_names_spec='$libname.dll.a'
11072 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11073 postinstall_cmds='base_file=`basename \${file}`~
11074 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11075 dldir=$destdir/`dirname \$dlpath`~
11076 test -d \$dldir || mkdir -p \$dldir~
11077 $install_prog $dir/$dlname \$dldir/$dlname~
11078 chmod a+x \$dldir/$dlname~
11079 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11080 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11081 fi'
11082 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11083 dlpath=$dir/\$dldll~
11084 $RM \$dlpath'
11085 shlibpath_overrides_runpath=yes
11086
11087 case $host_os in
11088 cygwin*)
11089 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11090 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11091
11092 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11093 ;;
11094 mingw* | cegcc*)
11095 # MinGW DLLs use traditional 'lib' prefix
11096 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11097 ;;
11098 pw32*)
11099 # pw32 DLLs use 'pw' prefix rather than 'lib'
11100 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11101 ;;
11102 esac
11103 dynamic_linker='Win32 ld.exe'
11104 ;;
11105
11106 *,cl*)
11107 # Native MSVC
11108 libname_spec='$name'
11109 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11110 library_names_spec='${libname}.dll.lib'
11111
11112 case $build_os in
11113 mingw*)
11114 sys_lib_search_path_spec=
11115 lt_save_ifs=$IFS
11116 IFS=';'
11117 for lt_path in $LIB
11118 do
11119 IFS=$lt_save_ifs
11120 # Let DOS variable expansion print the short 8.3 style file name.
11121 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11122 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11123 done
11124 IFS=$lt_save_ifs
11125 # Convert to MSYS style.
11126 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11127 ;;
11128 cygwin*)
11129 # Convert to unix form, then to dos form, then back to unix form
11130 # but this time dos style (no spaces!) so that the unix form looks
11131 # like /cygdrive/c/PROGRA~1:/cygdr...
11132 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11133 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11134 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11135 ;;
11136 *)
11137 sys_lib_search_path_spec="$LIB"
11138 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11139 # It is most probably a Windows format PATH.
11140 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11141 else
11142 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11143 fi
11144 # FIXME: find the short name or the path components, as spaces are
11145 # common. (e.g. "Program Files" -> "PROGRA~1")
11146 ;;
11147 esac
11148
11149 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11150 postinstall_cmds='base_file=`basename \${file}`~
11151 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11152 dldir=$destdir/`dirname \$dlpath`~
11153 test -d \$dldir || mkdir -p \$dldir~
11154 $install_prog $dir/$dlname \$dldir/$dlname'
11155 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11156 dlpath=$dir/\$dldll~
11157 $RM \$dlpath'
11158 shlibpath_overrides_runpath=yes
11159 dynamic_linker='Win32 link.exe'
11160 ;;
11161
11162 *)
11163 # Assume MSVC wrapper
11164 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11165 dynamic_linker='Win32 ld.exe'
11166 ;;
11167 esac
11168 # FIXME: first we should search . and the directory the executable is in
11169 shlibpath_var=PATH
11170 ;;
11171
11172 darwin* | rhapsody*)
11173 dynamic_linker="$host_os dyld"
11174 version_type=darwin
11175 need_lib_prefix=no
11176 need_version=no
11177 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11178 soname_spec='${libname}${release}${major}$shared_ext'
11179 shlibpath_overrides_runpath=yes
11180 shlibpath_var=DYLD_LIBRARY_PATH
11181 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11182
11183 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11184 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11185 ;;
11186
11187 dgux*)
11188 version_type=linux # correct to gnu/linux during the next big refactor
11189 need_lib_prefix=no
11190 need_version=no
11191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11192 soname_spec='${libname}${release}${shared_ext}$major'
11193 shlibpath_var=LD_LIBRARY_PATH
11194 ;;
11195
11196 freebsd* | dragonfly*)
11197 # DragonFly does not have aout. When/if they implement a new
11198 # versioning mechanism, adjust this.
11199 if test -x /usr/bin/objformat; then
11200 objformat=`/usr/bin/objformat`
11201 else
11202 case $host_os in
11203 freebsd[23].*) objformat=aout ;;
11204 *) objformat=elf ;;
11205 esac
11206 fi
11207 version_type=freebsd-$objformat
11208 case $version_type in
11209 freebsd-elf*)
11210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11211 need_version=no
11212 need_lib_prefix=no
11213 ;;
11214 freebsd-*)
11215 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11216 need_version=yes
11217 ;;
11218 esac
11219 shlibpath_var=LD_LIBRARY_PATH
11220 case $host_os in
11221 freebsd2.*)
11222 shlibpath_overrides_runpath=yes
11223 ;;
11224 freebsd3.[01]* | freebsdelf3.[01]*)
11225 shlibpath_overrides_runpath=yes
11226 hardcode_into_libs=yes
11227 ;;
11228 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11229 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11230 shlibpath_overrides_runpath=no
11231 hardcode_into_libs=yes
11232 ;;
11233 *) # from 4.6 on, and DragonFly
11234 shlibpath_overrides_runpath=yes
11235 hardcode_into_libs=yes
11236 ;;
11237 esac
11238 ;;
11239
11240 haiku*)
11241 version_type=linux # correct to gnu/linux during the next big refactor
11242 need_lib_prefix=no
11243 need_version=no
11244 dynamic_linker="$host_os runtime_loader"
11245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11246 soname_spec='${libname}${release}${shared_ext}$major'
11247 shlibpath_var=LIBRARY_PATH
11248 shlibpath_overrides_runpath=yes
11249 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11250 hardcode_into_libs=yes
11251 ;;
11252
11253 hpux9* | hpux10* | hpux11*)
11254 # Give a soname corresponding to the major version so that dld.sl refuses to
11255 # link against other versions.
11256 version_type=sunos
11257 need_lib_prefix=no
11258 need_version=no
11259 case $host_cpu in
11260 ia64*)
11261 shrext_cmds='.so'
11262 hardcode_into_libs=yes
11263 dynamic_linker="$host_os dld.so"
11264 shlibpath_var=LD_LIBRARY_PATH
11265 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11267 soname_spec='${libname}${release}${shared_ext}$major'
11268 if test "X$HPUX_IA64_MODE" = X32; then
11269 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11270 else
11271 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11272 fi
11273 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11274 ;;
11275 hppa*64*)
11276 shrext_cmds='.sl'
11277 hardcode_into_libs=yes
11278 dynamic_linker="$host_os dld.sl"
11279 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11280 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11282 soname_spec='${libname}${release}${shared_ext}$major'
11283 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11284 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11285 ;;
11286 *)
11287 shrext_cmds='.sl'
11288 dynamic_linker="$host_os dld.sl"
11289 shlibpath_var=SHLIB_PATH
11290 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11292 soname_spec='${libname}${release}${shared_ext}$major'
11293 ;;
11294 esac
11295 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11296 postinstall_cmds='chmod 555 $lib'
11297 # or fails outright, so override atomically:
11298 install_override_mode=555
11299 ;;
11300
11301 interix[3-9]*)
11302 version_type=linux # correct to gnu/linux during the next big refactor
11303 need_lib_prefix=no
11304 need_version=no
11305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11306 soname_spec='${libname}${release}${shared_ext}$major'
11307 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11308 shlibpath_var=LD_LIBRARY_PATH
11309 shlibpath_overrides_runpath=no
11310 hardcode_into_libs=yes
11311 ;;
11312
11313 irix5* | irix6* | nonstopux*)
11314 case $host_os in
11315 nonstopux*) version_type=nonstopux ;;
11316 *)
11317 if test "$lt_cv_prog_gnu_ld" = yes; then
11318 version_type=linux # correct to gnu/linux during the next big refactor
11319 else
11320 version_type=irix
11321 fi ;;
11322 esac
11323 need_lib_prefix=no
11324 need_version=no
11325 soname_spec='${libname}${release}${shared_ext}$major'
11326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11327 case $host_os in
11328 irix5* | nonstopux*)
11329 libsuff= shlibsuff=
11330 ;;
11331 *)
11332 case $LD in # libtool.m4 will add one of these switches to LD
11333 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11334 libsuff= shlibsuff= libmagic=32-bit;;
11335 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11336 libsuff=32 shlibsuff=N32 libmagic=N32;;
11337 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11338 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11339 *) libsuff= shlibsuff= libmagic=never-match;;
11340 esac
11341 ;;
11342 esac
11343 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11344 shlibpath_overrides_runpath=no
11345 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11346 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11347 hardcode_into_libs=yes
11348 ;;
11349
11350 # No shared lib support for Linux oldld, aout, or coff.
11351 linux*oldld* | linux*aout* | linux*coff*)
11352 dynamic_linker=no
11353 ;;
11354
11355 # This must be glibc/ELF.
11356 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11357 version_type=linux # correct to gnu/linux during the next big refactor
11358 need_lib_prefix=no
11359 need_version=no
11360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11361 soname_spec='${libname}${release}${shared_ext}$major'
11362 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11363 shlibpath_var=LD_LIBRARY_PATH
11364 shlibpath_overrides_runpath=no
11365
11366 # Some binutils ld are patched to set DT_RUNPATH
11367 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11368 $as_echo_n "(cached) " >&6
11369 else
11370 lt_cv_shlibpath_overrides_runpath=no
11371 save_LDFLAGS=$LDFLAGS
11372 save_libdir=$libdir
11373 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11374 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11376 /* end confdefs.h. */
11377
11378 int
11379 main ()
11380 {
11381
11382 ;
11383 return 0;
11384 }
11385 _ACEOF
11386 if ac_fn_c_try_link "$LINENO"; then :
11387 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11388 lt_cv_shlibpath_overrides_runpath=yes
11389 fi
11390 fi
11391 rm -f core conftest.err conftest.$ac_objext \
11392 conftest$ac_exeext conftest.$ac_ext
11393 LDFLAGS=$save_LDFLAGS
11394 libdir=$save_libdir
11395
11396 fi
11397
11398 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11399
11400 # This implies no fast_install, which is unacceptable.
11401 # Some rework will be needed to allow for fast_install
11402 # before this can be enabled.
11403 hardcode_into_libs=yes
11404
11405 # Append ld.so.conf contents to the search path
11406 if test -f /etc/ld.so.conf; then
11407 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' ' '`
11408 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11409 fi
11410
11411 # We used to test for /lib/ld.so.1 and disable shared libraries on
11412 # powerpc, because MkLinux only supported shared libraries with the
11413 # GNU dynamic linker. Since this was broken with cross compilers,
11414 # most powerpc-linux boxes support dynamic linking these days and
11415 # people can always --disable-shared, the test was removed, and we
11416 # assume the GNU/Linux dynamic linker is in use.
11417 dynamic_linker='GNU/Linux ld.so'
11418 ;;
11419
11420 netbsdelf*-gnu)
11421 version_type=linux
11422 need_lib_prefix=no
11423 need_version=no
11424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11425 soname_spec='${libname}${release}${shared_ext}$major'
11426 shlibpath_var=LD_LIBRARY_PATH
11427 shlibpath_overrides_runpath=no
11428 hardcode_into_libs=yes
11429 dynamic_linker='NetBSD ld.elf_so'
11430 ;;
11431
11432 netbsd*)
11433 version_type=sunos
11434 need_lib_prefix=no
11435 need_version=no
11436 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11438 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11439 dynamic_linker='NetBSD (a.out) ld.so'
11440 else
11441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11442 soname_spec='${libname}${release}${shared_ext}$major'
11443 dynamic_linker='NetBSD ld.elf_so'
11444 fi
11445 shlibpath_var=LD_LIBRARY_PATH
11446 shlibpath_overrides_runpath=yes
11447 hardcode_into_libs=yes
11448 ;;
11449
11450 newsos6)
11451 version_type=linux # correct to gnu/linux during the next big refactor
11452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11453 shlibpath_var=LD_LIBRARY_PATH
11454 shlibpath_overrides_runpath=yes
11455 ;;
11456
11457 *nto* | *qnx*)
11458 version_type=qnx
11459 need_lib_prefix=no
11460 need_version=no
11461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11462 soname_spec='${libname}${release}${shared_ext}$major'
11463 shlibpath_var=LD_LIBRARY_PATH
11464 shlibpath_overrides_runpath=no
11465 hardcode_into_libs=yes
11466 dynamic_linker='ldqnx.so'
11467 ;;
11468
11469 openbsd*)
11470 version_type=sunos
11471 sys_lib_dlsearch_path_spec="/usr/lib"
11472 need_lib_prefix=no
11473 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11474 case $host_os in
11475 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11476 *) need_version=no ;;
11477 esac
11478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11479 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11480 shlibpath_var=LD_LIBRARY_PATH
11481 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11482 case $host_os in
11483 openbsd2.[89] | openbsd2.[89].*)
11484 shlibpath_overrides_runpath=no
11485 ;;
11486 *)
11487 shlibpath_overrides_runpath=yes
11488 ;;
11489 esac
11490 else
11491 shlibpath_overrides_runpath=yes
11492 fi
11493 ;;
11494
11495 os2*)
11496 libname_spec='$name'
11497 shrext_cmds=".dll"
11498 need_lib_prefix=no
11499 library_names_spec='$libname${shared_ext} $libname.a'
11500 dynamic_linker='OS/2 ld.exe'
11501 shlibpath_var=LIBPATH
11502 ;;
11503
11504 osf3* | osf4* | osf5*)
11505 version_type=osf
11506 need_lib_prefix=no
11507 need_version=no
11508 soname_spec='${libname}${release}${shared_ext}$major'
11509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11510 shlibpath_var=LD_LIBRARY_PATH
11511 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11512 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11513 ;;
11514
11515 rdos*)
11516 dynamic_linker=no
11517 ;;
11518
11519 solaris*)
11520 version_type=linux # correct to gnu/linux during the next big refactor
11521 need_lib_prefix=no
11522 need_version=no
11523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11524 soname_spec='${libname}${release}${shared_ext}$major'
11525 shlibpath_var=LD_LIBRARY_PATH
11526 shlibpath_overrides_runpath=yes
11527 hardcode_into_libs=yes
11528 # ldd complains unless libraries are executable
11529 postinstall_cmds='chmod +x $lib'
11530 ;;
11531
11532 sunos4*)
11533 version_type=sunos
11534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11535 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11536 shlibpath_var=LD_LIBRARY_PATH
11537 shlibpath_overrides_runpath=yes
11538 if test "$with_gnu_ld" = yes; then
11539 need_lib_prefix=no
11540 fi
11541 need_version=yes
11542 ;;
11543
11544 sysv4 | sysv4.3*)
11545 version_type=linux # correct to gnu/linux during the next big refactor
11546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11547 soname_spec='${libname}${release}${shared_ext}$major'
11548 shlibpath_var=LD_LIBRARY_PATH
11549 case $host_vendor in
11550 sni)
11551 shlibpath_overrides_runpath=no
11552 need_lib_prefix=no
11553 runpath_var=LD_RUN_PATH
11554 ;;
11555 siemens)
11556 need_lib_prefix=no
11557 ;;
11558 motorola)
11559 need_lib_prefix=no
11560 need_version=no
11561 shlibpath_overrides_runpath=no
11562 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11563 ;;
11564 esac
11565 ;;
11566
11567 sysv4*MP*)
11568 if test -d /usr/nec ;then
11569 version_type=linux # correct to gnu/linux during the next big refactor
11570 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11571 soname_spec='$libname${shared_ext}.$major'
11572 shlibpath_var=LD_LIBRARY_PATH
11573 fi
11574 ;;
11575
11576 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11577 version_type=freebsd-elf
11578 need_lib_prefix=no
11579 need_version=no
11580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11581 soname_spec='${libname}${release}${shared_ext}$major'
11582 shlibpath_var=LD_LIBRARY_PATH
11583 shlibpath_overrides_runpath=yes
11584 hardcode_into_libs=yes
11585 if test "$with_gnu_ld" = yes; then
11586 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11587 else
11588 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11589 case $host_os in
11590 sco3.2v5*)
11591 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11592 ;;
11593 esac
11594 fi
11595 sys_lib_dlsearch_path_spec='/usr/lib'
11596 ;;
11597
11598 tpf*)
11599 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11600 version_type=linux # correct to gnu/linux during the next big refactor
11601 need_lib_prefix=no
11602 need_version=no
11603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11604 shlibpath_var=LD_LIBRARY_PATH
11605 shlibpath_overrides_runpath=no
11606 hardcode_into_libs=yes
11607 ;;
11608
11609 uts4*)
11610 version_type=linux # correct to gnu/linux during the next big refactor
11611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11612 soname_spec='${libname}${release}${shared_ext}$major'
11613 shlibpath_var=LD_LIBRARY_PATH
11614 ;;
11615
11616 *)
11617 dynamic_linker=no
11618 ;;
11619 esac
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11621 $as_echo "$dynamic_linker" >&6; }
11622 test "$dynamic_linker" = no && can_build_shared=no
11623
11624 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11625 if test "$GCC" = yes; then
11626 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11627 fi
11628
11629 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11630 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11631 fi
11632 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11633 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11634 fi
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11728 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11729 hardcode_action=
11730 if test -n "$hardcode_libdir_flag_spec" ||
11731 test -n "$runpath_var" ||
11732 test "X$hardcode_automatic" = "Xyes" ; then
11733
11734 # We can hardcode non-existent directories.
11735 if test "$hardcode_direct" != no &&
11736 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11737 # have to relink, otherwise we might link with an installed library
11738 # when we should be linking with a yet-to-be-installed one
11739 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11740 test "$hardcode_minus_L" != no; then
11741 # Linking always hardcodes the temporary library directory.
11742 hardcode_action=relink
11743 else
11744 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11745 hardcode_action=immediate
11746 fi
11747 else
11748 # We cannot hardcode anything, or else we can only hardcode existing
11749 # directories.
11750 hardcode_action=unsupported
11751 fi
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11753 $as_echo "$hardcode_action" >&6; }
11754
11755 if test "$hardcode_action" = relink ||
11756 test "$inherit_rpath" = yes; then
11757 # Fast installation is not supported
11758 enable_fast_install=no
11759 elif test "$shlibpath_overrides_runpath" = yes ||
11760 test "$enable_shared" = no; then
11761 # Fast installation is not necessary
11762 enable_fast_install=needless
11763 fi
11764
11765
11766
11767
11768
11769
11770 if test "x$enable_dlopen" != xyes; then
11771 enable_dlopen=unknown
11772 enable_dlopen_self=unknown
11773 enable_dlopen_self_static=unknown
11774 else
11775 lt_cv_dlopen=no
11776 lt_cv_dlopen_libs=
11777
11778 case $host_os in
11779 beos*)
11780 lt_cv_dlopen="load_add_on"
11781 lt_cv_dlopen_libs=
11782 lt_cv_dlopen_self=yes
11783 ;;
11784
11785 mingw* | pw32* | cegcc*)
11786 lt_cv_dlopen="LoadLibrary"
11787 lt_cv_dlopen_libs=
11788 ;;
11789
11790 cygwin*)
11791 lt_cv_dlopen="dlopen"
11792 lt_cv_dlopen_libs=
11793 ;;
11794
11795 darwin*)
11796 # if libdl is installed we need to link against it
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11798 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11799 if ${ac_cv_lib_dl_dlopen+:} false; then :
11800 $as_echo_n "(cached) " >&6
11801 else
11802 ac_check_lib_save_LIBS=$LIBS
11803 LIBS="-ldl $LIBS"
11804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11805 /* end confdefs.h. */
11806
11807 /* Override any GCC internal prototype to avoid an error.
11808 Use char because int might match the return type of a GCC
11809 builtin and then its argument prototype would still apply. */
11810 #ifdef __cplusplus
11811 extern "C"
11812 #endif
11813 char dlopen ();
11814 int
11815 main ()
11816 {
11817 return dlopen ();
11818 ;
11819 return 0;
11820 }
11821 _ACEOF
11822 if ac_fn_c_try_link "$LINENO"; then :
11823 ac_cv_lib_dl_dlopen=yes
11824 else
11825 ac_cv_lib_dl_dlopen=no
11826 fi
11827 rm -f core conftest.err conftest.$ac_objext \
11828 conftest$ac_exeext conftest.$ac_ext
11829 LIBS=$ac_check_lib_save_LIBS
11830 fi
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11832 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11833 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11834 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11835 else
11836
11837 lt_cv_dlopen="dyld"
11838 lt_cv_dlopen_libs=
11839 lt_cv_dlopen_self=yes
11840
11841 fi
11842
11843 ;;
11844
11845 *)
11846 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11847 if test "x$ac_cv_func_shl_load" = xyes; then :
11848 lt_cv_dlopen="shl_load"
11849 else
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11851 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11852 if ${ac_cv_lib_dld_shl_load+:} false; then :
11853 $as_echo_n "(cached) " >&6
11854 else
11855 ac_check_lib_save_LIBS=$LIBS
11856 LIBS="-ldld $LIBS"
11857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11858 /* end confdefs.h. */
11859
11860 /* Override any GCC internal prototype to avoid an error.
11861 Use char because int might match the return type of a GCC
11862 builtin and then its argument prototype would still apply. */
11863 #ifdef __cplusplus
11864 extern "C"
11865 #endif
11866 char shl_load ();
11867 int
11868 main ()
11869 {
11870 return shl_load ();
11871 ;
11872 return 0;
11873 }
11874 _ACEOF
11875 if ac_fn_c_try_link "$LINENO"; then :
11876 ac_cv_lib_dld_shl_load=yes
11877 else
11878 ac_cv_lib_dld_shl_load=no
11879 fi
11880 rm -f core conftest.err conftest.$ac_objext \
11881 conftest$ac_exeext conftest.$ac_ext
11882 LIBS=$ac_check_lib_save_LIBS
11883 fi
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11885 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11886 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11887 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11888 else
11889 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11890 if test "x$ac_cv_func_dlopen" = xyes; then :
11891 lt_cv_dlopen="dlopen"
11892 else
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11894 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11895 if ${ac_cv_lib_dl_dlopen+:} false; then :
11896 $as_echo_n "(cached) " >&6
11897 else
11898 ac_check_lib_save_LIBS=$LIBS
11899 LIBS="-ldl $LIBS"
11900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11901 /* end confdefs.h. */
11902
11903 /* Override any GCC internal prototype to avoid an error.
11904 Use char because int might match the return type of a GCC
11905 builtin and then its argument prototype would still apply. */
11906 #ifdef __cplusplus
11907 extern "C"
11908 #endif
11909 char dlopen ();
11910 int
11911 main ()
11912 {
11913 return dlopen ();
11914 ;
11915 return 0;
11916 }
11917 _ACEOF
11918 if ac_fn_c_try_link "$LINENO"; then :
11919 ac_cv_lib_dl_dlopen=yes
11920 else
11921 ac_cv_lib_dl_dlopen=no
11922 fi
11923 rm -f core conftest.err conftest.$ac_objext \
11924 conftest$ac_exeext conftest.$ac_ext
11925 LIBS=$ac_check_lib_save_LIBS
11926 fi
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11928 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11929 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11930 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11931 else
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11933 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11934 if ${ac_cv_lib_svld_dlopen+:} false; then :
11935 $as_echo_n "(cached) " >&6
11936 else
11937 ac_check_lib_save_LIBS=$LIBS
11938 LIBS="-lsvld $LIBS"
11939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11940 /* end confdefs.h. */
11941
11942 /* Override any GCC internal prototype to avoid an error.
11943 Use char because int might match the return type of a GCC
11944 builtin and then its argument prototype would still apply. */
11945 #ifdef __cplusplus
11946 extern "C"
11947 #endif
11948 char dlopen ();
11949 int
11950 main ()
11951 {
11952 return dlopen ();
11953 ;
11954 return 0;
11955 }
11956 _ACEOF
11957 if ac_fn_c_try_link "$LINENO"; then :
11958 ac_cv_lib_svld_dlopen=yes
11959 else
11960 ac_cv_lib_svld_dlopen=no
11961 fi
11962 rm -f core conftest.err conftest.$ac_objext \
11963 conftest$ac_exeext conftest.$ac_ext
11964 LIBS=$ac_check_lib_save_LIBS
11965 fi
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11967 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11968 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11969 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11970 else
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11972 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11973 if ${ac_cv_lib_dld_dld_link+:} false; then :
11974 $as_echo_n "(cached) " >&6
11975 else
11976 ac_check_lib_save_LIBS=$LIBS
11977 LIBS="-ldld $LIBS"
11978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11979 /* end confdefs.h. */
11980
11981 /* Override any GCC internal prototype to avoid an error.
11982 Use char because int might match the return type of a GCC
11983 builtin and then its argument prototype would still apply. */
11984 #ifdef __cplusplus
11985 extern "C"
11986 #endif
11987 char dld_link ();
11988 int
11989 main ()
11990 {
11991 return dld_link ();
11992 ;
11993 return 0;
11994 }
11995 _ACEOF
11996 if ac_fn_c_try_link "$LINENO"; then :
11997 ac_cv_lib_dld_dld_link=yes
11998 else
11999 ac_cv_lib_dld_dld_link=no
12000 fi
12001 rm -f core conftest.err conftest.$ac_objext \
12002 conftest$ac_exeext conftest.$ac_ext
12003 LIBS=$ac_check_lib_save_LIBS
12004 fi
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12006 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12007 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12008 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12009 fi
12010
12011
12012 fi
12013
12014
12015 fi
12016
12017
12018 fi
12019
12020
12021 fi
12022
12023
12024 fi
12025
12026 ;;
12027 esac
12028
12029 if test "x$lt_cv_dlopen" != xno; then
12030 enable_dlopen=yes
12031 else
12032 enable_dlopen=no
12033 fi
12034
12035 case $lt_cv_dlopen in
12036 dlopen)
12037 save_CPPFLAGS="$CPPFLAGS"
12038 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12039
12040 save_LDFLAGS="$LDFLAGS"
12041 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12042
12043 save_LIBS="$LIBS"
12044 LIBS="$lt_cv_dlopen_libs $LIBS"
12045
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12047 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12048 if ${lt_cv_dlopen_self+:} false; then :
12049 $as_echo_n "(cached) " >&6
12050 else
12051 if test "$cross_compiling" = yes; then :
12052 lt_cv_dlopen_self=cross
12053 else
12054 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12055 lt_status=$lt_dlunknown
12056 cat > conftest.$ac_ext <<_LT_EOF
12057 #line $LINENO "configure"
12058 #include "confdefs.h"
12059
12060 #if HAVE_DLFCN_H
12061 #include <dlfcn.h>
12062 #endif
12063
12064 #include <stdio.h>
12065
12066 #ifdef RTLD_GLOBAL
12067 # define LT_DLGLOBAL RTLD_GLOBAL
12068 #else
12069 # ifdef DL_GLOBAL
12070 # define LT_DLGLOBAL DL_GLOBAL
12071 # else
12072 # define LT_DLGLOBAL 0
12073 # endif
12074 #endif
12075
12076 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12077 find out it does not work in some platform. */
12078 #ifndef LT_DLLAZY_OR_NOW
12079 # ifdef RTLD_LAZY
12080 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12081 # else
12082 # ifdef DL_LAZY
12083 # define LT_DLLAZY_OR_NOW DL_LAZY
12084 # else
12085 # ifdef RTLD_NOW
12086 # define LT_DLLAZY_OR_NOW RTLD_NOW
12087 # else
12088 # ifdef DL_NOW
12089 # define LT_DLLAZY_OR_NOW DL_NOW
12090 # else
12091 # define LT_DLLAZY_OR_NOW 0
12092 # endif
12093 # endif
12094 # endif
12095 # endif
12096 #endif
12097
12098 /* When -fvisbility=hidden is used, assume the code has been annotated
12099 correspondingly for the symbols needed. */
12100 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12101 int fnord () __attribute__((visibility("default")));
12102 #endif
12103
12104 int fnord () { return 42; }
12105 int main ()
12106 {
12107 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12108 int status = $lt_dlunknown;
12109
12110 if (self)
12111 {
12112 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12113 else
12114 {
12115 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12116 else puts (dlerror ());
12117 }
12118 /* dlclose (self); */
12119 }
12120 else
12121 puts (dlerror ());
12122
12123 return status;
12124 }
12125 _LT_EOF
12126 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12127 (eval $ac_link) 2>&5
12128 ac_status=$?
12129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12130 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12131 (./conftest; exit; ) >&5 2>/dev/null
12132 lt_status=$?
12133 case x$lt_status in
12134 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12135 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12136 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12137 esac
12138 else :
12139 # compilation failed
12140 lt_cv_dlopen_self=no
12141 fi
12142 fi
12143 rm -fr conftest*
12144
12145
12146 fi
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12148 $as_echo "$lt_cv_dlopen_self" >&6; }
12149
12150 if test "x$lt_cv_dlopen_self" = xyes; then
12151 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12153 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12154 if ${lt_cv_dlopen_self_static+:} false; then :
12155 $as_echo_n "(cached) " >&6
12156 else
12157 if test "$cross_compiling" = yes; then :
12158 lt_cv_dlopen_self_static=cross
12159 else
12160 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12161 lt_status=$lt_dlunknown
12162 cat > conftest.$ac_ext <<_LT_EOF
12163 #line $LINENO "configure"
12164 #include "confdefs.h"
12165
12166 #if HAVE_DLFCN_H
12167 #include <dlfcn.h>
12168 #endif
12169
12170 #include <stdio.h>
12171
12172 #ifdef RTLD_GLOBAL
12173 # define LT_DLGLOBAL RTLD_GLOBAL
12174 #else
12175 # ifdef DL_GLOBAL
12176 # define LT_DLGLOBAL DL_GLOBAL
12177 # else
12178 # define LT_DLGLOBAL 0
12179 # endif
12180 #endif
12181
12182 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12183 find out it does not work in some platform. */
12184 #ifndef LT_DLLAZY_OR_NOW
12185 # ifdef RTLD_LAZY
12186 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12187 # else
12188 # ifdef DL_LAZY
12189 # define LT_DLLAZY_OR_NOW DL_LAZY
12190 # else
12191 # ifdef RTLD_NOW
12192 # define LT_DLLAZY_OR_NOW RTLD_NOW
12193 # else
12194 # ifdef DL_NOW
12195 # define LT_DLLAZY_OR_NOW DL_NOW
12196 # else
12197 # define LT_DLLAZY_OR_NOW 0
12198 # endif
12199 # endif
12200 # endif
12201 # endif
12202 #endif
12203
12204 /* When -fvisbility=hidden is used, assume the code has been annotated
12205 correspondingly for the symbols needed. */
12206 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12207 int fnord () __attribute__((visibility("default")));
12208 #endif
12209
12210 int fnord () { return 42; }
12211 int main ()
12212 {
12213 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12214 int status = $lt_dlunknown;
12215
12216 if (self)
12217 {
12218 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12219 else
12220 {
12221 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12222 else puts (dlerror ());
12223 }
12224 /* dlclose (self); */
12225 }
12226 else
12227 puts (dlerror ());
12228
12229 return status;
12230 }
12231 _LT_EOF
12232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12233 (eval $ac_link) 2>&5
12234 ac_status=$?
12235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12236 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12237 (./conftest; exit; ) >&5 2>/dev/null
12238 lt_status=$?
12239 case x$lt_status in
12240 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12241 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12242 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12243 esac
12244 else :
12245 # compilation failed
12246 lt_cv_dlopen_self_static=no
12247 fi
12248 fi
12249 rm -fr conftest*
12250
12251
12252 fi
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12254 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12255 fi
12256
12257 CPPFLAGS="$save_CPPFLAGS"
12258 LDFLAGS="$save_LDFLAGS"
12259 LIBS="$save_LIBS"
12260 ;;
12261 esac
12262
12263 case $lt_cv_dlopen_self in
12264 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12265 *) enable_dlopen_self=unknown ;;
12266 esac
12267
12268 case $lt_cv_dlopen_self_static in
12269 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12270 *) enable_dlopen_self_static=unknown ;;
12271 esac
12272 fi
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290 striplib=
12291 old_striplib=
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12293 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12294 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12295 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12296 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12298 $as_echo "yes" >&6; }
12299 else
12300 # FIXME - insert some real tests, host_os isn't really good enough
12301 case $host_os in
12302 darwin*)
12303 if test -n "$STRIP" ; then
12304 striplib="$STRIP -x"
12305 old_striplib="$STRIP -S"
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12307 $as_echo "yes" >&6; }
12308 else
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12310 $as_echo "no" >&6; }
12311 fi
12312 ;;
12313 *)
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12315 $as_echo "no" >&6; }
12316 ;;
12317 esac
12318 fi
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331 # Report which library types will actually be built
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12333 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12335 $as_echo "$can_build_shared" >&6; }
12336
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12338 $as_echo_n "checking whether to build shared libraries... " >&6; }
12339 test "$can_build_shared" = "no" && enable_shared=no
12340
12341 # On AIX, shared libraries and static libraries use the same namespace, and
12342 # are all built from PIC.
12343 case $host_os in
12344 aix3*)
12345 test "$enable_shared" = yes && enable_static=no
12346 if test -n "$RANLIB"; then
12347 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12348 postinstall_cmds='$RANLIB $lib'
12349 fi
12350 ;;
12351
12352 aix[4-9]*)
12353 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12354 test "$enable_shared" = yes && enable_static=no
12355 fi
12356 ;;
12357 esac
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12359 $as_echo "$enable_shared" >&6; }
12360
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12362 $as_echo_n "checking whether to build static libraries... " >&6; }
12363 # Make sure either enable_shared or enable_static is yes.
12364 test "$enable_shared" = yes || enable_static=yes
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12366 $as_echo "$enable_static" >&6; }
12367
12368
12369
12370
12371 fi
12372 ac_ext=c
12373 ac_cpp='$CPP $CPPFLAGS'
12374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12377
12378 CC="$lt_save_CC"
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394 ac_config_commands="$ac_config_commands libtool"
12395
12396
12397
12398
12399 # Only expand once:
12400
12401
12402
12403 # Require xorg-macros minimum of 1.18 - Initial version
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
12416 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12417 if ${ac_cv_prog_cc_c99+:} false; then :
12418 $as_echo_n "(cached) " >&6
12419 else
12420 ac_cv_prog_cc_c99=no
12421 ac_save_CC=$CC
12422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12423 /* end confdefs.h. */
12424 #include <stdarg.h>
12425 #include <stdbool.h>
12426 #include <stdlib.h>
12427 #include <wchar.h>
12428 #include <stdio.h>
12429
12430 // Check varargs macros. These examples are taken from C99 6.10.3.5.
12431 #define debug(...) fprintf (stderr, __VA_ARGS__)
12432 #define showlist(...) puts (#__VA_ARGS__)
12433 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12434 static void
12435 test_varargs_macros (void)
12436 {
12437 int x = 1234;
12438 int y = 5678;
12439 debug ("Flag");
12440 debug ("X = %d\n", x);
12441 showlist (The first, second, and third items.);
12442 report (x>y, "x is %d but y is %d", x, y);
12443 }
12444
12445 // Check long long types.
12446 #define BIG64 18446744073709551615ull
12447 #define BIG32 4294967295ul
12448 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12449 #if !BIG_OK
12450 your preprocessor is broken;
12451 #endif
12452 #if BIG_OK
12453 #else
12454 your preprocessor is broken;
12455 #endif
12456 static long long int bignum = -9223372036854775807LL;
12457 static unsigned long long int ubignum = BIG64;
12458
12459 struct incomplete_array
12460 {
12461 int datasize;
12462 double data[];
12463 };
12464
12465 struct named_init {
12466 int number;
12467 const wchar_t *name;
12468 double average;
12469 };
12470
12471 typedef const char *ccp;
12472
12473 static inline int
12474 test_restrict (ccp restrict text)
12475 {
12476 // See if C++-style comments work.
12477 // Iterate through items via the restricted pointer.
12478 // Also check for declarations in for loops.
12479 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12480 continue;
12481 return 0;
12482 }
12483
12484 // Check varargs and va_copy.
12485 static void
12486 test_varargs (const char *format, ...)
12487 {
12488 va_list args;
12489 va_start (args, format);
12490 va_list args_copy;
12491 va_copy (args_copy, args);
12492
12493 const char *str;
12494 int number;
12495 float fnumber;
12496
12497 while (*format)
12498 {
12499 switch (*format++)
12500 {
12501 case 's': // string
12502 str = va_arg (args_copy, const char *);
12503 break;
12504 case 'd': // int
12505 number = va_arg (args_copy, int);
12506 break;
12507 case 'f': // float
12508 fnumber = va_arg (args_copy, double);
12509 break;
12510 default:
12511 break;
12512 }
12513 }
12514 va_end (args_copy);
12515 va_end (args);
12516 }
12517
12518 int
12519 main ()
12520 {
12521
12522 // Check bool.
12523 _Bool success = false;
12524
12525 // Check restrict.
12526 if (test_restrict ("String literal") == 0)
12527 success = true;
12528 char *restrict newvar = "Another string";
12529
12530 // Check varargs.
12531 test_varargs ("s, d' f .", "string", 65, 34.234);
12532 test_varargs_macros ();
12533
12534 // Check flexible array members.
12535 struct incomplete_array *ia =
12536 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12537 ia->datasize = 10;
12538 for (int i = 0; i < ia->datasize; ++i)
12539 ia->data[i] = i * 1.234;
12540
12541 // Check named initializers.
12542 struct named_init ni = {
12543 .number = 34,
12544 .name = L"Test wide string",
12545 .average = 543.34343,
12546 };
12547
12548 ni.number = 58;
12549
12550 int dynamic_array[ni.number];
12551 dynamic_array[ni.number - 1] = 543;
12552
12553 // work around unused variable warnings
12554 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12555 || dynamic_array[ni.number - 1] != 543);
12556
12557 ;
12558 return 0;
12559 }
12560 _ACEOF
12561 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12562 do
12563 CC="$ac_save_CC $ac_arg"
12564 if ac_fn_c_try_compile "$LINENO"; then :
12565 ac_cv_prog_cc_c99=$ac_arg
12566 fi
12567 rm -f core conftest.err conftest.$ac_objext
12568 test "x$ac_cv_prog_cc_c99" != "xno" && break
12569 done
12570 rm -f conftest.$ac_ext
12571 CC=$ac_save_CC
12572
12573 fi
12574 # AC_CACHE_VAL
12575 case "x$ac_cv_prog_cc_c99" in
12576 x)
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12578 $as_echo "none needed" >&6; } ;;
12579 xno)
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12581 $as_echo "unsupported" >&6; } ;;
12582 *)
12583 CC="$CC $ac_cv_prog_cc_c99"
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12585 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12586 esac
12587 if test "x$ac_cv_prog_cc_c99" != xno; then :
12588
12589 fi
12590
12591
12592
12593
12594
12595
12596 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12597 if test "x$ac_cv_have_decl___clang__" = xyes; then :
12598 CLANGCC="yes"
12599 else
12600 CLANGCC="no"
12601 fi
12602
12603 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12604 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12605 INTELCC="yes"
12606 else
12607 INTELCC="no"
12608 fi
12609
12610 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12611 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12612 SUNCC="yes"
12613 else
12614 SUNCC="no"
12615 fi
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12626 if test -n "$ac_tool_prefix"; then
12627 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12628 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12630 $as_echo_n "checking for $ac_word... " >&6; }
12631 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12632 $as_echo_n "(cached) " >&6
12633 else
12634 case $PKG_CONFIG in
12635 [\\/]* | ?:[\\/]*)
12636 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12637 ;;
12638 *)
12639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12640 for as_dir in $PATH
12641 do
12642 IFS=$as_save_IFS
12643 test -z "$as_dir" && as_dir=.
12644 for ac_exec_ext in '' $ac_executable_extensions; do
12645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12646 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12648 break 2
12649 fi
12650 done
12651 done
12652 IFS=$as_save_IFS
12653
12654 ;;
12655 esac
12656 fi
12657 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12658 if test -n "$PKG_CONFIG"; then
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12660 $as_echo "$PKG_CONFIG" >&6; }
12661 else
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12663 $as_echo "no" >&6; }
12664 fi
12665
12666
12667 fi
12668 if test -z "$ac_cv_path_PKG_CONFIG"; then
12669 ac_pt_PKG_CONFIG=$PKG_CONFIG
12670 # Extract the first word of "pkg-config", so it can be a program name with args.
12671 set dummy pkg-config; ac_word=$2
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12673 $as_echo_n "checking for $ac_word... " >&6; }
12674 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12675 $as_echo_n "(cached) " >&6
12676 else
12677 case $ac_pt_PKG_CONFIG in
12678 [\\/]* | ?:[\\/]*)
12679 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12680 ;;
12681 *)
12682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12683 for as_dir in $PATH
12684 do
12685 IFS=$as_save_IFS
12686 test -z "$as_dir" && as_dir=.
12687 for ac_exec_ext in '' $ac_executable_extensions; do
12688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12689 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12691 break 2
12692 fi
12693 done
12694 done
12695 IFS=$as_save_IFS
12696
12697 ;;
12698 esac
12699 fi
12700 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12701 if test -n "$ac_pt_PKG_CONFIG"; then
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12703 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12704 else
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12706 $as_echo "no" >&6; }
12707 fi
12708
12709 if test "x$ac_pt_PKG_CONFIG" = x; then
12710 PKG_CONFIG=""
12711 else
12712 case $cross_compiling:$ac_tool_warned in
12713 yes:)
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12716 ac_tool_warned=yes ;;
12717 esac
12718 PKG_CONFIG=$ac_pt_PKG_CONFIG
12719 fi
12720 else
12721 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12722 fi
12723
12724 fi
12725 if test -n "$PKG_CONFIG"; then
12726 _pkg_min_version=0.9.0
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12728 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12729 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12731 $as_echo "yes" >&6; }
12732 else
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12734 $as_echo "no" >&6; }
12735 PKG_CONFIG=""
12736 fi
12737 fi
12738
12739
12740
12741
12742
12743 # Check whether --enable-selective-werror was given.
12744 if test "${enable_selective_werror+set}" = set; then :
12745 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12746 else
12747 SELECTIVE_WERROR=yes
12748 fi
12749
12750
12751
12752
12753
12754 # -v is too short to test reliably with XORG_TESTSET_CFLAG
12755 if test "x$SUNCC" = "xyes"; then
12756 BASE_CFLAGS="-v"
12757 else
12758 BASE_CFLAGS=""
12759 fi
12760
12761 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775 xorg_testset_save_CFLAGS="$CFLAGS"
12776
12777 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12778 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12780 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12781 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12782 $as_echo_n "(cached) " >&6
12783 else
12784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12785 /* end confdefs.h. */
12786 int i;
12787 _ACEOF
12788 if ac_fn_c_try_compile "$LINENO"; then :
12789 xorg_cv_cc_flag_unknown_warning_option=yes
12790 else
12791 xorg_cv_cc_flag_unknown_warning_option=no
12792 fi
12793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12794 fi
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12796 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12797 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12798 CFLAGS="$xorg_testset_save_CFLAGS"
12799 fi
12800
12801 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12803 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12804 fi
12805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12807 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12808 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12809 $as_echo_n "(cached) " >&6
12810 else
12811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12812 /* end confdefs.h. */
12813 int i;
12814 _ACEOF
12815 if ac_fn_c_try_compile "$LINENO"; then :
12816 xorg_cv_cc_flag_unused_command_line_argument=yes
12817 else
12818 xorg_cv_cc_flag_unused_command_line_argument=no
12819 fi
12820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12821 fi
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12823 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12824 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12825 CFLAGS="$xorg_testset_save_CFLAGS"
12826 fi
12827
12828 found="no"
12829
12830 if test $found = "no" ; then
12831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12833 fi
12834
12835 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12837 fi
12838
12839 CFLAGS="$CFLAGS -Wall"
12840
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12842 $as_echo_n "checking if $CC supports -Wall... " >&6; }
12843 cacheid=xorg_cv_cc_flag__Wall
12844 if eval \${$cacheid+:} false; then :
12845 $as_echo_n "(cached) " >&6
12846 else
12847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12848 /* end confdefs.h. */
12849 int i;
12850 int
12851 main ()
12852 {
12853
12854 ;
12855 return 0;
12856 }
12857 _ACEOF
12858 if ac_fn_c_try_link "$LINENO"; then :
12859 eval $cacheid=yes
12860 else
12861 eval $cacheid=no
12862 fi
12863 rm -f core conftest.err conftest.$ac_objext \
12864 conftest$ac_exeext conftest.$ac_ext
12865 fi
12866
12867
12868 CFLAGS="$xorg_testset_save_CFLAGS"
12869
12870 eval supported=\$$cacheid
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12872 $as_echo "$supported" >&6; }
12873 if test "$supported" = "yes" ; then
12874 BASE_CFLAGS="$BASE_CFLAGS -Wall"
12875 found="yes"
12876 fi
12877 fi
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893 xorg_testset_save_CFLAGS="$CFLAGS"
12894
12895 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12896 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12898 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12899 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12900 $as_echo_n "(cached) " >&6
12901 else
12902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12903 /* end confdefs.h. */
12904 int i;
12905 _ACEOF
12906 if ac_fn_c_try_compile "$LINENO"; then :
12907 xorg_cv_cc_flag_unknown_warning_option=yes
12908 else
12909 xorg_cv_cc_flag_unknown_warning_option=no
12910 fi
12911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12912 fi
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12914 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12915 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12916 CFLAGS="$xorg_testset_save_CFLAGS"
12917 fi
12918
12919 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12920 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12921 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12922 fi
12923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12925 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12926 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12927 $as_echo_n "(cached) " >&6
12928 else
12929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12930 /* end confdefs.h. */
12931 int i;
12932 _ACEOF
12933 if ac_fn_c_try_compile "$LINENO"; then :
12934 xorg_cv_cc_flag_unused_command_line_argument=yes
12935 else
12936 xorg_cv_cc_flag_unused_command_line_argument=no
12937 fi
12938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12939 fi
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12941 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12942 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12943 CFLAGS="$xorg_testset_save_CFLAGS"
12944 fi
12945
12946 found="no"
12947
12948 if test $found = "no" ; then
12949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12951 fi
12952
12953 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12955 fi
12956
12957 CFLAGS="$CFLAGS -Wpointer-arith"
12958
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12960 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12961 cacheid=xorg_cv_cc_flag__Wpointer_arith
12962 if eval \${$cacheid+:} false; then :
12963 $as_echo_n "(cached) " >&6
12964 else
12965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12966 /* end confdefs.h. */
12967 int i;
12968 int
12969 main ()
12970 {
12971
12972 ;
12973 return 0;
12974 }
12975 _ACEOF
12976 if ac_fn_c_try_link "$LINENO"; then :
12977 eval $cacheid=yes
12978 else
12979 eval $cacheid=no
12980 fi
12981 rm -f core conftest.err conftest.$ac_objext \
12982 conftest$ac_exeext conftest.$ac_ext
12983 fi
12984
12985
12986 CFLAGS="$xorg_testset_save_CFLAGS"
12987
12988 eval supported=\$$cacheid
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12990 $as_echo "$supported" >&6; }
12991 if test "$supported" = "yes" ; then
12992 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12993 found="yes"
12994 fi
12995 fi
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011 xorg_testset_save_CFLAGS="$CFLAGS"
13012
13013 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13014 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13016 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13017 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13018 $as_echo_n "(cached) " >&6
13019 else
13020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13021 /* end confdefs.h. */
13022 int i;
13023 _ACEOF
13024 if ac_fn_c_try_compile "$LINENO"; then :
13025 xorg_cv_cc_flag_unknown_warning_option=yes
13026 else
13027 xorg_cv_cc_flag_unknown_warning_option=no
13028 fi
13029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13030 fi
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13032 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13033 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13034 CFLAGS="$xorg_testset_save_CFLAGS"
13035 fi
13036
13037 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13038 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13039 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13040 fi
13041 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13043 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13044 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13045 $as_echo_n "(cached) " >&6
13046 else
13047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13048 /* end confdefs.h. */
13049 int i;
13050 _ACEOF
13051 if ac_fn_c_try_compile "$LINENO"; then :
13052 xorg_cv_cc_flag_unused_command_line_argument=yes
13053 else
13054 xorg_cv_cc_flag_unused_command_line_argument=no
13055 fi
13056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13057 fi
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13059 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13060 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13061 CFLAGS="$xorg_testset_save_CFLAGS"
13062 fi
13063
13064 found="no"
13065
13066 if test $found = "no" ; then
13067 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13068 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13069 fi
13070
13071 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13073 fi
13074
13075 CFLAGS="$CFLAGS -Wmissing-declarations"
13076
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13078 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
13079 cacheid=xorg_cv_cc_flag__Wmissing_declarations
13080 if eval \${$cacheid+:} false; then :
13081 $as_echo_n "(cached) " >&6
13082 else
13083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13084 /* end confdefs.h. */
13085 int i;
13086 int
13087 main ()
13088 {
13089
13090 ;
13091 return 0;
13092 }
13093 _ACEOF
13094 if ac_fn_c_try_link "$LINENO"; then :
13095 eval $cacheid=yes
13096 else
13097 eval $cacheid=no
13098 fi
13099 rm -f core conftest.err conftest.$ac_objext \
13100 conftest$ac_exeext conftest.$ac_ext
13101 fi
13102
13103
13104 CFLAGS="$xorg_testset_save_CFLAGS"
13105
13106 eval supported=\$$cacheid
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13108 $as_echo "$supported" >&6; }
13109 if test "$supported" = "yes" ; then
13110 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13111 found="yes"
13112 fi
13113 fi
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129 xorg_testset_save_CFLAGS="$CFLAGS"
13130
13131 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13132 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13134 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13135 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13136 $as_echo_n "(cached) " >&6
13137 else
13138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13139 /* end confdefs.h. */
13140 int i;
13141 _ACEOF
13142 if ac_fn_c_try_compile "$LINENO"; then :
13143 xorg_cv_cc_flag_unknown_warning_option=yes
13144 else
13145 xorg_cv_cc_flag_unknown_warning_option=no
13146 fi
13147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13148 fi
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13150 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13151 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13152 CFLAGS="$xorg_testset_save_CFLAGS"
13153 fi
13154
13155 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13156 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13157 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13158 fi
13159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13161 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13162 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13163 $as_echo_n "(cached) " >&6
13164 else
13165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13166 /* end confdefs.h. */
13167 int i;
13168 _ACEOF
13169 if ac_fn_c_try_compile "$LINENO"; then :
13170 xorg_cv_cc_flag_unused_command_line_argument=yes
13171 else
13172 xorg_cv_cc_flag_unused_command_line_argument=no
13173 fi
13174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13175 fi
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13177 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13178 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13179 CFLAGS="$xorg_testset_save_CFLAGS"
13180 fi
13181
13182 found="no"
13183
13184 if test $found = "no" ; then
13185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13186 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13187 fi
13188
13189 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13191 fi
13192
13193 CFLAGS="$CFLAGS -Wformat=2"
13194
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13196 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
13197 cacheid=xorg_cv_cc_flag__Wformat_2
13198 if eval \${$cacheid+:} false; then :
13199 $as_echo_n "(cached) " >&6
13200 else
13201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13202 /* end confdefs.h. */
13203 int i;
13204 int
13205 main ()
13206 {
13207
13208 ;
13209 return 0;
13210 }
13211 _ACEOF
13212 if ac_fn_c_try_link "$LINENO"; then :
13213 eval $cacheid=yes
13214 else
13215 eval $cacheid=no
13216 fi
13217 rm -f core conftest.err conftest.$ac_objext \
13218 conftest$ac_exeext conftest.$ac_ext
13219 fi
13220
13221
13222 CFLAGS="$xorg_testset_save_CFLAGS"
13223
13224 eval supported=\$$cacheid
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13226 $as_echo "$supported" >&6; }
13227 if test "$supported" = "yes" ; then
13228 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13229 found="yes"
13230 fi
13231 fi
13232
13233 if test $found = "no" ; then
13234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13235 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13236 fi
13237
13238 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13240 fi
13241
13242 CFLAGS="$CFLAGS -Wformat"
13243
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13245 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
13246 cacheid=xorg_cv_cc_flag__Wformat
13247 if eval \${$cacheid+:} false; then :
13248 $as_echo_n "(cached) " >&6
13249 else
13250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13251 /* end confdefs.h. */
13252 int i;
13253 int
13254 main ()
13255 {
13256
13257 ;
13258 return 0;
13259 }
13260 _ACEOF
13261 if ac_fn_c_try_link "$LINENO"; then :
13262 eval $cacheid=yes
13263 else
13264 eval $cacheid=no
13265 fi
13266 rm -f core conftest.err conftest.$ac_objext \
13267 conftest$ac_exeext conftest.$ac_ext
13268 fi
13269
13270
13271 CFLAGS="$xorg_testset_save_CFLAGS"
13272
13273 eval supported=\$$cacheid
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13275 $as_echo "$supported" >&6; }
13276 if test "$supported" = "yes" ; then
13277 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13278 found="yes"
13279 fi
13280 fi
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298 xorg_testset_save_CFLAGS="$CFLAGS"
13299
13300 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13301 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13303 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13304 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13305 $as_echo_n "(cached) " >&6
13306 else
13307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13308 /* end confdefs.h. */
13309 int i;
13310 _ACEOF
13311 if ac_fn_c_try_compile "$LINENO"; then :
13312 xorg_cv_cc_flag_unknown_warning_option=yes
13313 else
13314 xorg_cv_cc_flag_unknown_warning_option=no
13315 fi
13316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13317 fi
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13319 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13320 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13321 CFLAGS="$xorg_testset_save_CFLAGS"
13322 fi
13323
13324 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13326 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13327 fi
13328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13330 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13331 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13332 $as_echo_n "(cached) " >&6
13333 else
13334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13335 /* end confdefs.h. */
13336 int i;
13337 _ACEOF
13338 if ac_fn_c_try_compile "$LINENO"; then :
13339 xorg_cv_cc_flag_unused_command_line_argument=yes
13340 else
13341 xorg_cv_cc_flag_unused_command_line_argument=no
13342 fi
13343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13344 fi
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13346 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13347 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13348 CFLAGS="$xorg_testset_save_CFLAGS"
13349 fi
13350
13351 found="no"
13352
13353 if test $found = "no" ; then
13354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13355 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13356 fi
13357
13358 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13360 fi
13361
13362 CFLAGS="$CFLAGS -Wstrict-prototypes"
13363
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13365 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
13366 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13367 if eval \${$cacheid+:} false; then :
13368 $as_echo_n "(cached) " >&6
13369 else
13370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13371 /* end confdefs.h. */
13372 int i;
13373 int
13374 main ()
13375 {
13376
13377 ;
13378 return 0;
13379 }
13380 _ACEOF
13381 if ac_fn_c_try_link "$LINENO"; then :
13382 eval $cacheid=yes
13383 else
13384 eval $cacheid=no
13385 fi
13386 rm -f core conftest.err conftest.$ac_objext \
13387 conftest$ac_exeext conftest.$ac_ext
13388 fi
13389
13390
13391 CFLAGS="$xorg_testset_save_CFLAGS"
13392
13393 eval supported=\$$cacheid
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13395 $as_echo "$supported" >&6; }
13396 if test "$supported" = "yes" ; then
13397 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13398 found="yes"
13399 fi
13400 fi
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416 xorg_testset_save_CFLAGS="$CFLAGS"
13417
13418 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13419 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13421 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13422 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13423 $as_echo_n "(cached) " >&6
13424 else
13425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13426 /* end confdefs.h. */
13427 int i;
13428 _ACEOF
13429 if ac_fn_c_try_compile "$LINENO"; then :
13430 xorg_cv_cc_flag_unknown_warning_option=yes
13431 else
13432 xorg_cv_cc_flag_unknown_warning_option=no
13433 fi
13434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13435 fi
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13437 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13438 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13439 CFLAGS="$xorg_testset_save_CFLAGS"
13440 fi
13441
13442 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13445 fi
13446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13448 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13449 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13450 $as_echo_n "(cached) " >&6
13451 else
13452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13453 /* end confdefs.h. */
13454 int i;
13455 _ACEOF
13456 if ac_fn_c_try_compile "$LINENO"; then :
13457 xorg_cv_cc_flag_unused_command_line_argument=yes
13458 else
13459 xorg_cv_cc_flag_unused_command_line_argument=no
13460 fi
13461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13462 fi
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13464 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13465 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13466 CFLAGS="$xorg_testset_save_CFLAGS"
13467 fi
13468
13469 found="no"
13470
13471 if test $found = "no" ; then
13472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13473 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13474 fi
13475
13476 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13478 fi
13479
13480 CFLAGS="$CFLAGS -Wmissing-prototypes"
13481
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13483 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
13484 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13485 if eval \${$cacheid+:} false; then :
13486 $as_echo_n "(cached) " >&6
13487 else
13488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13489 /* end confdefs.h. */
13490 int i;
13491 int
13492 main ()
13493 {
13494
13495 ;
13496 return 0;
13497 }
13498 _ACEOF
13499 if ac_fn_c_try_link "$LINENO"; then :
13500 eval $cacheid=yes
13501 else
13502 eval $cacheid=no
13503 fi
13504 rm -f core conftest.err conftest.$ac_objext \
13505 conftest$ac_exeext conftest.$ac_ext
13506 fi
13507
13508
13509 CFLAGS="$xorg_testset_save_CFLAGS"
13510
13511 eval supported=\$$cacheid
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13513 $as_echo "$supported" >&6; }
13514 if test "$supported" = "yes" ; then
13515 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13516 found="yes"
13517 fi
13518 fi
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534 xorg_testset_save_CFLAGS="$CFLAGS"
13535
13536 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13537 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13539 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13540 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13541 $as_echo_n "(cached) " >&6
13542 else
13543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13544 /* end confdefs.h. */
13545 int i;
13546 _ACEOF
13547 if ac_fn_c_try_compile "$LINENO"; then :
13548 xorg_cv_cc_flag_unknown_warning_option=yes
13549 else
13550 xorg_cv_cc_flag_unknown_warning_option=no
13551 fi
13552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13553 fi
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13555 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13556 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13557 CFLAGS="$xorg_testset_save_CFLAGS"
13558 fi
13559
13560 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13563 fi
13564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13566 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13567 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13568 $as_echo_n "(cached) " >&6
13569 else
13570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13571 /* end confdefs.h. */
13572 int i;
13573 _ACEOF
13574 if ac_fn_c_try_compile "$LINENO"; then :
13575 xorg_cv_cc_flag_unused_command_line_argument=yes
13576 else
13577 xorg_cv_cc_flag_unused_command_line_argument=no
13578 fi
13579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13580 fi
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13582 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13583 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13584 CFLAGS="$xorg_testset_save_CFLAGS"
13585 fi
13586
13587 found="no"
13588
13589 if test $found = "no" ; then
13590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13591 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13592 fi
13593
13594 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13596 fi
13597
13598 CFLAGS="$CFLAGS -Wnested-externs"
13599
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13601 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13602 cacheid=xorg_cv_cc_flag__Wnested_externs
13603 if eval \${$cacheid+:} false; then :
13604 $as_echo_n "(cached) " >&6
13605 else
13606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13607 /* end confdefs.h. */
13608 int i;
13609 int
13610 main ()
13611 {
13612
13613 ;
13614 return 0;
13615 }
13616 _ACEOF
13617 if ac_fn_c_try_link "$LINENO"; then :
13618 eval $cacheid=yes
13619 else
13620 eval $cacheid=no
13621 fi
13622 rm -f core conftest.err conftest.$ac_objext \
13623 conftest$ac_exeext conftest.$ac_ext
13624 fi
13625
13626
13627 CFLAGS="$xorg_testset_save_CFLAGS"
13628
13629 eval supported=\$$cacheid
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13631 $as_echo "$supported" >&6; }
13632 if test "$supported" = "yes" ; then
13633 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13634 found="yes"
13635 fi
13636 fi
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652 xorg_testset_save_CFLAGS="$CFLAGS"
13653
13654 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13655 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13657 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13658 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13659 $as_echo_n "(cached) " >&6
13660 else
13661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13662 /* end confdefs.h. */
13663 int i;
13664 _ACEOF
13665 if ac_fn_c_try_compile "$LINENO"; then :
13666 xorg_cv_cc_flag_unknown_warning_option=yes
13667 else
13668 xorg_cv_cc_flag_unknown_warning_option=no
13669 fi
13670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13671 fi
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13673 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13674 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13675 CFLAGS="$xorg_testset_save_CFLAGS"
13676 fi
13677
13678 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13680 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13681 fi
13682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13684 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13685 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13686 $as_echo_n "(cached) " >&6
13687 else
13688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13689 /* end confdefs.h. */
13690 int i;
13691 _ACEOF
13692 if ac_fn_c_try_compile "$LINENO"; then :
13693 xorg_cv_cc_flag_unused_command_line_argument=yes
13694 else
13695 xorg_cv_cc_flag_unused_command_line_argument=no
13696 fi
13697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13698 fi
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13700 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13701 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13702 CFLAGS="$xorg_testset_save_CFLAGS"
13703 fi
13704
13705 found="no"
13706
13707 if test $found = "no" ; then
13708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13709 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13710 fi
13711
13712 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13714 fi
13715
13716 CFLAGS="$CFLAGS -Wbad-function-cast"
13717
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13719 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13720 cacheid=xorg_cv_cc_flag__Wbad_function_cast
13721 if eval \${$cacheid+:} false; then :
13722 $as_echo_n "(cached) " >&6
13723 else
13724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13725 /* end confdefs.h. */
13726 int i;
13727 int
13728 main ()
13729 {
13730
13731 ;
13732 return 0;
13733 }
13734 _ACEOF
13735 if ac_fn_c_try_link "$LINENO"; then :
13736 eval $cacheid=yes
13737 else
13738 eval $cacheid=no
13739 fi
13740 rm -f core conftest.err conftest.$ac_objext \
13741 conftest$ac_exeext conftest.$ac_ext
13742 fi
13743
13744
13745 CFLAGS="$xorg_testset_save_CFLAGS"
13746
13747 eval supported=\$$cacheid
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13749 $as_echo "$supported" >&6; }
13750 if test "$supported" = "yes" ; then
13751 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13752 found="yes"
13753 fi
13754 fi
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770 xorg_testset_save_CFLAGS="$CFLAGS"
13771
13772 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13773 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13775 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13776 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13777 $as_echo_n "(cached) " >&6
13778 else
13779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13780 /* end confdefs.h. */
13781 int i;
13782 _ACEOF
13783 if ac_fn_c_try_compile "$LINENO"; then :
13784 xorg_cv_cc_flag_unknown_warning_option=yes
13785 else
13786 xorg_cv_cc_flag_unknown_warning_option=no
13787 fi
13788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13789 fi
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13791 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13792 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13793 CFLAGS="$xorg_testset_save_CFLAGS"
13794 fi
13795
13796 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13798 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13799 fi
13800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13802 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13803 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13804 $as_echo_n "(cached) " >&6
13805 else
13806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13807 /* end confdefs.h. */
13808 int i;
13809 _ACEOF
13810 if ac_fn_c_try_compile "$LINENO"; then :
13811 xorg_cv_cc_flag_unused_command_line_argument=yes
13812 else
13813 xorg_cv_cc_flag_unused_command_line_argument=no
13814 fi
13815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13816 fi
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13818 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13819 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13820 CFLAGS="$xorg_testset_save_CFLAGS"
13821 fi
13822
13823 found="no"
13824
13825 if test $found = "no" ; then
13826 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13827 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13828 fi
13829
13830 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13832 fi
13833
13834 CFLAGS="$CFLAGS -Wold-style-definition"
13835
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13837 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13838 cacheid=xorg_cv_cc_flag__Wold_style_definition
13839 if eval \${$cacheid+:} false; then :
13840 $as_echo_n "(cached) " >&6
13841 else
13842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13843 /* end confdefs.h. */
13844 int i;
13845 int
13846 main ()
13847 {
13848
13849 ;
13850 return 0;
13851 }
13852 _ACEOF
13853 if ac_fn_c_try_link "$LINENO"; then :
13854 eval $cacheid=yes
13855 else
13856 eval $cacheid=no
13857 fi
13858 rm -f core conftest.err conftest.$ac_objext \
13859 conftest$ac_exeext conftest.$ac_ext
13860 fi
13861
13862
13863 CFLAGS="$xorg_testset_save_CFLAGS"
13864
13865 eval supported=\$$cacheid
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13867 $as_echo "$supported" >&6; }
13868 if test "$supported" = "yes" ; then
13869 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13870 found="yes"
13871 fi
13872 fi
13873
13874 if test $found = "no" ; then
13875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13876 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13877 fi
13878
13879 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13881 fi
13882
13883 CFLAGS="$CFLAGS -fd"
13884
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13886 $as_echo_n "checking if $CC supports -fd... " >&6; }
13887 cacheid=xorg_cv_cc_flag__fd
13888 if eval \${$cacheid+:} false; then :
13889 $as_echo_n "(cached) " >&6
13890 else
13891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13892 /* end confdefs.h. */
13893 int i;
13894 int
13895 main ()
13896 {
13897
13898 ;
13899 return 0;
13900 }
13901 _ACEOF
13902 if ac_fn_c_try_link "$LINENO"; then :
13903 eval $cacheid=yes
13904 else
13905 eval $cacheid=no
13906 fi
13907 rm -f core conftest.err conftest.$ac_objext \
13908 conftest$ac_exeext conftest.$ac_ext
13909 fi
13910
13911
13912 CFLAGS="$xorg_testset_save_CFLAGS"
13913
13914 eval supported=\$$cacheid
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13916 $as_echo "$supported" >&6; }
13917 if test "$supported" = "yes" ; then
13918 BASE_CFLAGS="$BASE_CFLAGS -fd"
13919 found="yes"
13920 fi
13921 fi
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937 xorg_testset_save_CFLAGS="$CFLAGS"
13938
13939 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13940 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13942 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13943 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13944 $as_echo_n "(cached) " >&6
13945 else
13946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13947 /* end confdefs.h. */
13948 int i;
13949 _ACEOF
13950 if ac_fn_c_try_compile "$LINENO"; then :
13951 xorg_cv_cc_flag_unknown_warning_option=yes
13952 else
13953 xorg_cv_cc_flag_unknown_warning_option=no
13954 fi
13955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13956 fi
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13958 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13959 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13960 CFLAGS="$xorg_testset_save_CFLAGS"
13961 fi
13962
13963 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13965 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13966 fi
13967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13969 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13970 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13971 $as_echo_n "(cached) " >&6
13972 else
13973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13974 /* end confdefs.h. */
13975 int i;
13976 _ACEOF
13977 if ac_fn_c_try_compile "$LINENO"; then :
13978 xorg_cv_cc_flag_unused_command_line_argument=yes
13979 else
13980 xorg_cv_cc_flag_unused_command_line_argument=no
13981 fi
13982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13983 fi
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13985 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13986 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13987 CFLAGS="$xorg_testset_save_CFLAGS"
13988 fi
13989
13990 found="no"
13991
13992 if test $found = "no" ; then
13993 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13994 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13995 fi
13996
13997 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13999 fi
14000
14001 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14002
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14004 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14005 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14006 if eval \${$cacheid+:} false; then :
14007 $as_echo_n "(cached) " >&6
14008 else
14009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14010 /* end confdefs.h. */
14011 int i;
14012 int
14013 main ()
14014 {
14015
14016 ;
14017 return 0;
14018 }
14019 _ACEOF
14020 if ac_fn_c_try_link "$LINENO"; then :
14021 eval $cacheid=yes
14022 else
14023 eval $cacheid=no
14024 fi
14025 rm -f core conftest.err conftest.$ac_objext \
14026 conftest$ac_exeext conftest.$ac_ext
14027 fi
14028
14029
14030 CFLAGS="$xorg_testset_save_CFLAGS"
14031
14032 eval supported=\$$cacheid
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14034 $as_echo "$supported" >&6; }
14035 if test "$supported" = "yes" ; then
14036 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14037 found="yes"
14038 fi
14039 fi
14040
14041
14042
14043
14044
14045 # This chunk adds additional warnings that could catch undesired effects.
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059 xorg_testset_save_CFLAGS="$CFLAGS"
14060
14061 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14062 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14064 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14065 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14066 $as_echo_n "(cached) " >&6
14067 else
14068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14069 /* end confdefs.h. */
14070 int i;
14071 _ACEOF
14072 if ac_fn_c_try_compile "$LINENO"; then :
14073 xorg_cv_cc_flag_unknown_warning_option=yes
14074 else
14075 xorg_cv_cc_flag_unknown_warning_option=no
14076 fi
14077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14078 fi
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14080 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14081 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14082 CFLAGS="$xorg_testset_save_CFLAGS"
14083 fi
14084
14085 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14086 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14087 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14088 fi
14089 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14091 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14092 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14093 $as_echo_n "(cached) " >&6
14094 else
14095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14096 /* end confdefs.h. */
14097 int i;
14098 _ACEOF
14099 if ac_fn_c_try_compile "$LINENO"; then :
14100 xorg_cv_cc_flag_unused_command_line_argument=yes
14101 else
14102 xorg_cv_cc_flag_unused_command_line_argument=no
14103 fi
14104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14105 fi
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14107 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14108 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14109 CFLAGS="$xorg_testset_save_CFLAGS"
14110 fi
14111
14112 found="no"
14113
14114 if test $found = "no" ; then
14115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14116 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14117 fi
14118
14119 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14121 fi
14122
14123 CFLAGS="$CFLAGS -Wunused"
14124
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14126 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
14127 cacheid=xorg_cv_cc_flag__Wunused
14128 if eval \${$cacheid+:} false; then :
14129 $as_echo_n "(cached) " >&6
14130 else
14131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14132 /* end confdefs.h. */
14133 int i;
14134 int
14135 main ()
14136 {
14137
14138 ;
14139 return 0;
14140 }
14141 _ACEOF
14142 if ac_fn_c_try_link "$LINENO"; then :
14143 eval $cacheid=yes
14144 else
14145 eval $cacheid=no
14146 fi
14147 rm -f core conftest.err conftest.$ac_objext \
14148 conftest$ac_exeext conftest.$ac_ext
14149 fi
14150
14151
14152 CFLAGS="$xorg_testset_save_CFLAGS"
14153
14154 eval supported=\$$cacheid
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14156 $as_echo "$supported" >&6; }
14157 if test "$supported" = "yes" ; then
14158 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14159 found="yes"
14160 fi
14161 fi
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177 xorg_testset_save_CFLAGS="$CFLAGS"
14178
14179 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14180 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14182 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14183 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14184 $as_echo_n "(cached) " >&6
14185 else
14186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14187 /* end confdefs.h. */
14188 int i;
14189 _ACEOF
14190 if ac_fn_c_try_compile "$LINENO"; then :
14191 xorg_cv_cc_flag_unknown_warning_option=yes
14192 else
14193 xorg_cv_cc_flag_unknown_warning_option=no
14194 fi
14195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14196 fi
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14198 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14199 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14200 CFLAGS="$xorg_testset_save_CFLAGS"
14201 fi
14202
14203 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14205 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14206 fi
14207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14209 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14210 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14211 $as_echo_n "(cached) " >&6
14212 else
14213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14214 /* end confdefs.h. */
14215 int i;
14216 _ACEOF
14217 if ac_fn_c_try_compile "$LINENO"; then :
14218 xorg_cv_cc_flag_unused_command_line_argument=yes
14219 else
14220 xorg_cv_cc_flag_unused_command_line_argument=no
14221 fi
14222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14223 fi
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14225 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14226 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14227 CFLAGS="$xorg_testset_save_CFLAGS"
14228 fi
14229
14230 found="no"
14231
14232 if test $found = "no" ; then
14233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14234 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14235 fi
14236
14237 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14239 fi
14240
14241 CFLAGS="$CFLAGS -Wuninitialized"
14242
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14244 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
14245 cacheid=xorg_cv_cc_flag__Wuninitialized
14246 if eval \${$cacheid+:} false; then :
14247 $as_echo_n "(cached) " >&6
14248 else
14249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14250 /* end confdefs.h. */
14251 int i;
14252 int
14253 main ()
14254 {
14255
14256 ;
14257 return 0;
14258 }
14259 _ACEOF
14260 if ac_fn_c_try_link "$LINENO"; then :
14261 eval $cacheid=yes
14262 else
14263 eval $cacheid=no
14264 fi
14265 rm -f core conftest.err conftest.$ac_objext \
14266 conftest$ac_exeext conftest.$ac_ext
14267 fi
14268
14269
14270 CFLAGS="$xorg_testset_save_CFLAGS"
14271
14272 eval supported=\$$cacheid
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14274 $as_echo "$supported" >&6; }
14275 if test "$supported" = "yes" ; then
14276 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14277 found="yes"
14278 fi
14279 fi
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295 xorg_testset_save_CFLAGS="$CFLAGS"
14296
14297 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14298 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14300 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14301 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14302 $as_echo_n "(cached) " >&6
14303 else
14304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14305 /* end confdefs.h. */
14306 int i;
14307 _ACEOF
14308 if ac_fn_c_try_compile "$LINENO"; then :
14309 xorg_cv_cc_flag_unknown_warning_option=yes
14310 else
14311 xorg_cv_cc_flag_unknown_warning_option=no
14312 fi
14313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14314 fi
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14316 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14317 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14318 CFLAGS="$xorg_testset_save_CFLAGS"
14319 fi
14320
14321 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14322 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14323 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14324 fi
14325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14327 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14328 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14329 $as_echo_n "(cached) " >&6
14330 else
14331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14332 /* end confdefs.h. */
14333 int i;
14334 _ACEOF
14335 if ac_fn_c_try_compile "$LINENO"; then :
14336 xorg_cv_cc_flag_unused_command_line_argument=yes
14337 else
14338 xorg_cv_cc_flag_unused_command_line_argument=no
14339 fi
14340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14341 fi
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14343 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14344 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14345 CFLAGS="$xorg_testset_save_CFLAGS"
14346 fi
14347
14348 found="no"
14349
14350 if test $found = "no" ; then
14351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14352 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14353 fi
14354
14355 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14357 fi
14358
14359 CFLAGS="$CFLAGS -Wshadow"
14360
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14362 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
14363 cacheid=xorg_cv_cc_flag__Wshadow
14364 if eval \${$cacheid+:} false; then :
14365 $as_echo_n "(cached) " >&6
14366 else
14367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14368 /* end confdefs.h. */
14369 int i;
14370 int
14371 main ()
14372 {
14373
14374 ;
14375 return 0;
14376 }
14377 _ACEOF
14378 if ac_fn_c_try_link "$LINENO"; then :
14379 eval $cacheid=yes
14380 else
14381 eval $cacheid=no
14382 fi
14383 rm -f core conftest.err conftest.$ac_objext \
14384 conftest$ac_exeext conftest.$ac_ext
14385 fi
14386
14387
14388 CFLAGS="$xorg_testset_save_CFLAGS"
14389
14390 eval supported=\$$cacheid
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14392 $as_echo "$supported" >&6; }
14393 if test "$supported" = "yes" ; then
14394 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14395 found="yes"
14396 fi
14397 fi
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413 xorg_testset_save_CFLAGS="$CFLAGS"
14414
14415 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14416 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14418 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14419 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14420 $as_echo_n "(cached) " >&6
14421 else
14422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14423 /* end confdefs.h. */
14424 int i;
14425 _ACEOF
14426 if ac_fn_c_try_compile "$LINENO"; then :
14427 xorg_cv_cc_flag_unknown_warning_option=yes
14428 else
14429 xorg_cv_cc_flag_unknown_warning_option=no
14430 fi
14431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14432 fi
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14434 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14435 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14436 CFLAGS="$xorg_testset_save_CFLAGS"
14437 fi
14438
14439 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14440 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14441 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14442 fi
14443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14445 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14446 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14447 $as_echo_n "(cached) " >&6
14448 else
14449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14450 /* end confdefs.h. */
14451 int i;
14452 _ACEOF
14453 if ac_fn_c_try_compile "$LINENO"; then :
14454 xorg_cv_cc_flag_unused_command_line_argument=yes
14455 else
14456 xorg_cv_cc_flag_unused_command_line_argument=no
14457 fi
14458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14459 fi
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14461 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14462 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14463 CFLAGS="$xorg_testset_save_CFLAGS"
14464 fi
14465
14466 found="no"
14467
14468 if test $found = "no" ; then
14469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14470 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14471 fi
14472
14473 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14475 fi
14476
14477 CFLAGS="$CFLAGS -Wmissing-noreturn"
14478
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14480 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
14481 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14482 if eval \${$cacheid+:} false; then :
14483 $as_echo_n "(cached) " >&6
14484 else
14485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14486 /* end confdefs.h. */
14487 int i;
14488 int
14489 main ()
14490 {
14491
14492 ;
14493 return 0;
14494 }
14495 _ACEOF
14496 if ac_fn_c_try_link "$LINENO"; then :
14497 eval $cacheid=yes
14498 else
14499 eval $cacheid=no
14500 fi
14501 rm -f core conftest.err conftest.$ac_objext \
14502 conftest$ac_exeext conftest.$ac_ext
14503 fi
14504
14505
14506 CFLAGS="$xorg_testset_save_CFLAGS"
14507
14508 eval supported=\$$cacheid
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14510 $as_echo "$supported" >&6; }
14511 if test "$supported" = "yes" ; then
14512 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14513 found="yes"
14514 fi
14515 fi
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531 xorg_testset_save_CFLAGS="$CFLAGS"
14532
14533 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14534 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14536 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14537 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14538 $as_echo_n "(cached) " >&6
14539 else
14540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14541 /* end confdefs.h. */
14542 int i;
14543 _ACEOF
14544 if ac_fn_c_try_compile "$LINENO"; then :
14545 xorg_cv_cc_flag_unknown_warning_option=yes
14546 else
14547 xorg_cv_cc_flag_unknown_warning_option=no
14548 fi
14549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14550 fi
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14552 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14553 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14554 CFLAGS="$xorg_testset_save_CFLAGS"
14555 fi
14556
14557 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14558 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14559 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14560 fi
14561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14563 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14564 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14565 $as_echo_n "(cached) " >&6
14566 else
14567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14568 /* end confdefs.h. */
14569 int i;
14570 _ACEOF
14571 if ac_fn_c_try_compile "$LINENO"; then :
14572 xorg_cv_cc_flag_unused_command_line_argument=yes
14573 else
14574 xorg_cv_cc_flag_unused_command_line_argument=no
14575 fi
14576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14577 fi
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14579 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14580 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14581 CFLAGS="$xorg_testset_save_CFLAGS"
14582 fi
14583
14584 found="no"
14585
14586 if test $found = "no" ; then
14587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14588 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14589 fi
14590
14591 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14593 fi
14594
14595 CFLAGS="$CFLAGS -Wmissing-format-attribute"
14596
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14598 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14599 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14600 if eval \${$cacheid+:} false; then :
14601 $as_echo_n "(cached) " >&6
14602 else
14603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14604 /* end confdefs.h. */
14605 int i;
14606 int
14607 main ()
14608 {
14609
14610 ;
14611 return 0;
14612 }
14613 _ACEOF
14614 if ac_fn_c_try_link "$LINENO"; then :
14615 eval $cacheid=yes
14616 else
14617 eval $cacheid=no
14618 fi
14619 rm -f core conftest.err conftest.$ac_objext \
14620 conftest$ac_exeext conftest.$ac_ext
14621 fi
14622
14623
14624 CFLAGS="$xorg_testset_save_CFLAGS"
14625
14626 eval supported=\$$cacheid
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14628 $as_echo "$supported" >&6; }
14629 if test "$supported" = "yes" ; then
14630 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14631 found="yes"
14632 fi
14633 fi
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649 xorg_testset_save_CFLAGS="$CFLAGS"
14650
14651 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14652 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14654 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14655 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14656 $as_echo_n "(cached) " >&6
14657 else
14658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14659 /* end confdefs.h. */
14660 int i;
14661 _ACEOF
14662 if ac_fn_c_try_compile "$LINENO"; then :
14663 xorg_cv_cc_flag_unknown_warning_option=yes
14664 else
14665 xorg_cv_cc_flag_unknown_warning_option=no
14666 fi
14667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14668 fi
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14670 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14671 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14672 CFLAGS="$xorg_testset_save_CFLAGS"
14673 fi
14674
14675 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14676 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14677 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14678 fi
14679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14681 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14682 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14683 $as_echo_n "(cached) " >&6
14684 else
14685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14686 /* end confdefs.h. */
14687 int i;
14688 _ACEOF
14689 if ac_fn_c_try_compile "$LINENO"; then :
14690 xorg_cv_cc_flag_unused_command_line_argument=yes
14691 else
14692 xorg_cv_cc_flag_unused_command_line_argument=no
14693 fi
14694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14695 fi
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14697 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14698 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14699 CFLAGS="$xorg_testset_save_CFLAGS"
14700 fi
14701
14702 found="no"
14703
14704 if test $found = "no" ; then
14705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14706 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14707 fi
14708
14709 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14711 fi
14712
14713 CFLAGS="$CFLAGS -Wredundant-decls"
14714
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14716 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14717 cacheid=xorg_cv_cc_flag__Wredundant_decls
14718 if eval \${$cacheid+:} false; then :
14719 $as_echo_n "(cached) " >&6
14720 else
14721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14722 /* end confdefs.h. */
14723 int i;
14724 int
14725 main ()
14726 {
14727
14728 ;
14729 return 0;
14730 }
14731 _ACEOF
14732 if ac_fn_c_try_link "$LINENO"; then :
14733 eval $cacheid=yes
14734 else
14735 eval $cacheid=no
14736 fi
14737 rm -f core conftest.err conftest.$ac_objext \
14738 conftest$ac_exeext conftest.$ac_ext
14739 fi
14740
14741
14742 CFLAGS="$xorg_testset_save_CFLAGS"
14743
14744 eval supported=\$$cacheid
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14746 $as_echo "$supported" >&6; }
14747 if test "$supported" = "yes" ; then
14748 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14749 found="yes"
14750 fi
14751 fi
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767 xorg_testset_save_CFLAGS="$CFLAGS"
14768
14769 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14770 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14772 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14773 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14774 $as_echo_n "(cached) " >&6
14775 else
14776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14777 /* end confdefs.h. */
14778 int i;
14779 _ACEOF
14780 if ac_fn_c_try_compile "$LINENO"; then :
14781 xorg_cv_cc_flag_unknown_warning_option=yes
14782 else
14783 xorg_cv_cc_flag_unknown_warning_option=no
14784 fi
14785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14786 fi
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14788 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14789 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14790 CFLAGS="$xorg_testset_save_CFLAGS"
14791 fi
14792
14793 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14794 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14796 fi
14797 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14799 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14800 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14801 $as_echo_n "(cached) " >&6
14802 else
14803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14804 /* end confdefs.h. */
14805 int i;
14806 _ACEOF
14807 if ac_fn_c_try_compile "$LINENO"; then :
14808 xorg_cv_cc_flag_unused_command_line_argument=yes
14809 else
14810 xorg_cv_cc_flag_unused_command_line_argument=no
14811 fi
14812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14813 fi
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14815 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14816 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14817 CFLAGS="$xorg_testset_save_CFLAGS"
14818 fi
14819
14820 found="no"
14821
14822 if test $found = "no" ; then
14823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14825 fi
14826
14827 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14829 fi
14830
14831 CFLAGS="$CFLAGS -Wlogical-op"
14832
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14834 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14835 cacheid=xorg_cv_cc_flag__Wlogical_op
14836 if eval \${$cacheid+:} false; then :
14837 $as_echo_n "(cached) " >&6
14838 else
14839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14840 /* end confdefs.h. */
14841 int i;
14842 int
14843 main ()
14844 {
14845
14846 ;
14847 return 0;
14848 }
14849 _ACEOF
14850 if ac_fn_c_try_link "$LINENO"; then :
14851 eval $cacheid=yes
14852 else
14853 eval $cacheid=no
14854 fi
14855 rm -f core conftest.err conftest.$ac_objext \
14856 conftest$ac_exeext conftest.$ac_ext
14857 fi
14858
14859
14860 CFLAGS="$xorg_testset_save_CFLAGS"
14861
14862 eval supported=\$$cacheid
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14864 $as_echo "$supported" >&6; }
14865 if test "$supported" = "yes" ; then
14866 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14867 found="yes"
14868 fi
14869 fi
14870
14871
14872
14873 # These are currently disabled because they are noisy. They will be enabled
14874 # in the future once the codebase is sufficiently modernized to silence
14875 # them. For now, I don't want them to drown out the other warnings.
14876 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14877 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14878 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14879
14880 # Turn some warnings into errors, so we don't accidently get successful builds
14881 # when there are problems that should be fixed.
14882
14883 if test "x$SELECTIVE_WERROR" = "xyes" ; then
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897 xorg_testset_save_CFLAGS="$CFLAGS"
14898
14899 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14900 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14902 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14903 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14904 $as_echo_n "(cached) " >&6
14905 else
14906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14907 /* end confdefs.h. */
14908 int i;
14909 _ACEOF
14910 if ac_fn_c_try_compile "$LINENO"; then :
14911 xorg_cv_cc_flag_unknown_warning_option=yes
14912 else
14913 xorg_cv_cc_flag_unknown_warning_option=no
14914 fi
14915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14916 fi
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14918 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14919 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14920 CFLAGS="$xorg_testset_save_CFLAGS"
14921 fi
14922
14923 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14924 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14925 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14926 fi
14927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14929 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14930 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14931 $as_echo_n "(cached) " >&6
14932 else
14933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14934 /* end confdefs.h. */
14935 int i;
14936 _ACEOF
14937 if ac_fn_c_try_compile "$LINENO"; then :
14938 xorg_cv_cc_flag_unused_command_line_argument=yes
14939 else
14940 xorg_cv_cc_flag_unused_command_line_argument=no
14941 fi
14942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14943 fi
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14945 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14946 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14947 CFLAGS="$xorg_testset_save_CFLAGS"
14948 fi
14949
14950 found="no"
14951
14952 if test $found = "no" ; then
14953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14954 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14955 fi
14956
14957 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14959 fi
14960
14961 CFLAGS="$CFLAGS -Werror=implicit"
14962
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14964 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14965 cacheid=xorg_cv_cc_flag__Werror_implicit
14966 if eval \${$cacheid+:} false; then :
14967 $as_echo_n "(cached) " >&6
14968 else
14969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14970 /* end confdefs.h. */
14971 int i;
14972 int
14973 main ()
14974 {
14975
14976 ;
14977 return 0;
14978 }
14979 _ACEOF
14980 if ac_fn_c_try_link "$LINENO"; then :
14981 eval $cacheid=yes
14982 else
14983 eval $cacheid=no
14984 fi
14985 rm -f core conftest.err conftest.$ac_objext \
14986 conftest$ac_exeext conftest.$ac_ext
14987 fi
14988
14989
14990 CFLAGS="$xorg_testset_save_CFLAGS"
14991
14992 eval supported=\$$cacheid
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14994 $as_echo "$supported" >&6; }
14995 if test "$supported" = "yes" ; then
14996 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14997 found="yes"
14998 fi
14999 fi
15000
15001 if test $found = "no" ; then
15002 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15003 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15004 fi
15005
15006 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15008 fi
15009
15010 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15011
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
15013 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15014 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15015 if eval \${$cacheid+:} false; then :
15016 $as_echo_n "(cached) " >&6
15017 else
15018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15019 /* end confdefs.h. */
15020 int i;
15021 int
15022 main ()
15023 {
15024
15025 ;
15026 return 0;
15027 }
15028 _ACEOF
15029 if ac_fn_c_try_link "$LINENO"; then :
15030 eval $cacheid=yes
15031 else
15032 eval $cacheid=no
15033 fi
15034 rm -f core conftest.err conftest.$ac_objext \
15035 conftest$ac_exeext conftest.$ac_ext
15036 fi
15037
15038
15039 CFLAGS="$xorg_testset_save_CFLAGS"
15040
15041 eval supported=\$$cacheid
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15043 $as_echo "$supported" >&6; }
15044 if test "$supported" = "yes" ; then
15045 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15046 found="yes"
15047 fi
15048 fi
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064 xorg_testset_save_CFLAGS="$CFLAGS"
15065
15066 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15067 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15069 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15070 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15071 $as_echo_n "(cached) " >&6
15072 else
15073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15074 /* end confdefs.h. */
15075 int i;
15076 _ACEOF
15077 if ac_fn_c_try_compile "$LINENO"; then :
15078 xorg_cv_cc_flag_unknown_warning_option=yes
15079 else
15080 xorg_cv_cc_flag_unknown_warning_option=no
15081 fi
15082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15083 fi
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15085 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15086 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15087 CFLAGS="$xorg_testset_save_CFLAGS"
15088 fi
15089
15090 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15092 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15093 fi
15094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15096 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15097 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15098 $as_echo_n "(cached) " >&6
15099 else
15100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15101 /* end confdefs.h. */
15102 int i;
15103 _ACEOF
15104 if ac_fn_c_try_compile "$LINENO"; then :
15105 xorg_cv_cc_flag_unused_command_line_argument=yes
15106 else
15107 xorg_cv_cc_flag_unused_command_line_argument=no
15108 fi
15109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15110 fi
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15112 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15113 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15114 CFLAGS="$xorg_testset_save_CFLAGS"
15115 fi
15116
15117 found="no"
15118
15119 if test $found = "no" ; then
15120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15121 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15122 fi
15123
15124 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15126 fi
15127
15128 CFLAGS="$CFLAGS -Werror=nonnull"
15129
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15131 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
15132 cacheid=xorg_cv_cc_flag__Werror_nonnull
15133 if eval \${$cacheid+:} false; then :
15134 $as_echo_n "(cached) " >&6
15135 else
15136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15137 /* end confdefs.h. */
15138 int i;
15139 int
15140 main ()
15141 {
15142
15143 ;
15144 return 0;
15145 }
15146 _ACEOF
15147 if ac_fn_c_try_link "$LINENO"; then :
15148 eval $cacheid=yes
15149 else
15150 eval $cacheid=no
15151 fi
15152 rm -f core conftest.err conftest.$ac_objext \
15153 conftest$ac_exeext conftest.$ac_ext
15154 fi
15155
15156
15157 CFLAGS="$xorg_testset_save_CFLAGS"
15158
15159 eval supported=\$$cacheid
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15161 $as_echo "$supported" >&6; }
15162 if test "$supported" = "yes" ; then
15163 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15164 found="yes"
15165 fi
15166 fi
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182 xorg_testset_save_CFLAGS="$CFLAGS"
15183
15184 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15185 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15187 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15188 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15189 $as_echo_n "(cached) " >&6
15190 else
15191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15192 /* end confdefs.h. */
15193 int i;
15194 _ACEOF
15195 if ac_fn_c_try_compile "$LINENO"; then :
15196 xorg_cv_cc_flag_unknown_warning_option=yes
15197 else
15198 xorg_cv_cc_flag_unknown_warning_option=no
15199 fi
15200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15201 fi
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15203 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15204 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15205 CFLAGS="$xorg_testset_save_CFLAGS"
15206 fi
15207
15208 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15210 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15211 fi
15212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15214 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15215 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15216 $as_echo_n "(cached) " >&6
15217 else
15218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15219 /* end confdefs.h. */
15220 int i;
15221 _ACEOF
15222 if ac_fn_c_try_compile "$LINENO"; then :
15223 xorg_cv_cc_flag_unused_command_line_argument=yes
15224 else
15225 xorg_cv_cc_flag_unused_command_line_argument=no
15226 fi
15227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15228 fi
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15230 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15231 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15232 CFLAGS="$xorg_testset_save_CFLAGS"
15233 fi
15234
15235 found="no"
15236
15237 if test $found = "no" ; then
15238 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15239 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15240 fi
15241
15242 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15244 fi
15245
15246 CFLAGS="$CFLAGS -Werror=init-self"
15247
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15249 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
15250 cacheid=xorg_cv_cc_flag__Werror_init_self
15251 if eval \${$cacheid+:} false; then :
15252 $as_echo_n "(cached) " >&6
15253 else
15254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15255 /* end confdefs.h. */
15256 int i;
15257 int
15258 main ()
15259 {
15260
15261 ;
15262 return 0;
15263 }
15264 _ACEOF
15265 if ac_fn_c_try_link "$LINENO"; then :
15266 eval $cacheid=yes
15267 else
15268 eval $cacheid=no
15269 fi
15270 rm -f core conftest.err conftest.$ac_objext \
15271 conftest$ac_exeext conftest.$ac_ext
15272 fi
15273
15274
15275 CFLAGS="$xorg_testset_save_CFLAGS"
15276
15277 eval supported=\$$cacheid
15278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15279 $as_echo "$supported" >&6; }
15280 if test "$supported" = "yes" ; then
15281 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15282 found="yes"
15283 fi
15284 fi
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300 xorg_testset_save_CFLAGS="$CFLAGS"
15301
15302 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15303 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15305 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15306 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15307 $as_echo_n "(cached) " >&6
15308 else
15309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15310 /* end confdefs.h. */
15311 int i;
15312 _ACEOF
15313 if ac_fn_c_try_compile "$LINENO"; then :
15314 xorg_cv_cc_flag_unknown_warning_option=yes
15315 else
15316 xorg_cv_cc_flag_unknown_warning_option=no
15317 fi
15318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15319 fi
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15321 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15322 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15323 CFLAGS="$xorg_testset_save_CFLAGS"
15324 fi
15325
15326 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15328 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15329 fi
15330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15332 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15333 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15334 $as_echo_n "(cached) " >&6
15335 else
15336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15337 /* end confdefs.h. */
15338 int i;
15339 _ACEOF
15340 if ac_fn_c_try_compile "$LINENO"; then :
15341 xorg_cv_cc_flag_unused_command_line_argument=yes
15342 else
15343 xorg_cv_cc_flag_unused_command_line_argument=no
15344 fi
15345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15346 fi
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15348 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15349 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15350 CFLAGS="$xorg_testset_save_CFLAGS"
15351 fi
15352
15353 found="no"
15354
15355 if test $found = "no" ; then
15356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15357 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15358 fi
15359
15360 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15362 fi
15363
15364 CFLAGS="$CFLAGS -Werror=main"
15365
15366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15367 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
15368 cacheid=xorg_cv_cc_flag__Werror_main
15369 if eval \${$cacheid+:} false; then :
15370 $as_echo_n "(cached) " >&6
15371 else
15372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15373 /* end confdefs.h. */
15374 int i;
15375 int
15376 main ()
15377 {
15378
15379 ;
15380 return 0;
15381 }
15382 _ACEOF
15383 if ac_fn_c_try_link "$LINENO"; then :
15384 eval $cacheid=yes
15385 else
15386 eval $cacheid=no
15387 fi
15388 rm -f core conftest.err conftest.$ac_objext \
15389 conftest$ac_exeext conftest.$ac_ext
15390 fi
15391
15392
15393 CFLAGS="$xorg_testset_save_CFLAGS"
15394
15395 eval supported=\$$cacheid
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15397 $as_echo "$supported" >&6; }
15398 if test "$supported" = "yes" ; then
15399 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15400 found="yes"
15401 fi
15402 fi
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418 xorg_testset_save_CFLAGS="$CFLAGS"
15419
15420 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15421 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15423 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15424 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15425 $as_echo_n "(cached) " >&6
15426 else
15427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15428 /* end confdefs.h. */
15429 int i;
15430 _ACEOF
15431 if ac_fn_c_try_compile "$LINENO"; then :
15432 xorg_cv_cc_flag_unknown_warning_option=yes
15433 else
15434 xorg_cv_cc_flag_unknown_warning_option=no
15435 fi
15436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15437 fi
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15439 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15440 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15441 CFLAGS="$xorg_testset_save_CFLAGS"
15442 fi
15443
15444 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15446 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15447 fi
15448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15450 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15451 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15452 $as_echo_n "(cached) " >&6
15453 else
15454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15455 /* end confdefs.h. */
15456 int i;
15457 _ACEOF
15458 if ac_fn_c_try_compile "$LINENO"; then :
15459 xorg_cv_cc_flag_unused_command_line_argument=yes
15460 else
15461 xorg_cv_cc_flag_unused_command_line_argument=no
15462 fi
15463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15464 fi
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15466 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15467 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15468 CFLAGS="$xorg_testset_save_CFLAGS"
15469 fi
15470
15471 found="no"
15472
15473 if test $found = "no" ; then
15474 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15475 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15476 fi
15477
15478 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15480 fi
15481
15482 CFLAGS="$CFLAGS -Werror=missing-braces"
15483
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15485 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
15486 cacheid=xorg_cv_cc_flag__Werror_missing_braces
15487 if eval \${$cacheid+:} false; then :
15488 $as_echo_n "(cached) " >&6
15489 else
15490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15491 /* end confdefs.h. */
15492 int i;
15493 int
15494 main ()
15495 {
15496
15497 ;
15498 return 0;
15499 }
15500 _ACEOF
15501 if ac_fn_c_try_link "$LINENO"; then :
15502 eval $cacheid=yes
15503 else
15504 eval $cacheid=no
15505 fi
15506 rm -f core conftest.err conftest.$ac_objext \
15507 conftest$ac_exeext conftest.$ac_ext
15508 fi
15509
15510
15511 CFLAGS="$xorg_testset_save_CFLAGS"
15512
15513 eval supported=\$$cacheid
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15515 $as_echo "$supported" >&6; }
15516 if test "$supported" = "yes" ; then
15517 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15518 found="yes"
15519 fi
15520 fi
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536 xorg_testset_save_CFLAGS="$CFLAGS"
15537
15538 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15539 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15541 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15542 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15543 $as_echo_n "(cached) " >&6
15544 else
15545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15546 /* end confdefs.h. */
15547 int i;
15548 _ACEOF
15549 if ac_fn_c_try_compile "$LINENO"; then :
15550 xorg_cv_cc_flag_unknown_warning_option=yes
15551 else
15552 xorg_cv_cc_flag_unknown_warning_option=no
15553 fi
15554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15555 fi
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15557 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15558 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15559 CFLAGS="$xorg_testset_save_CFLAGS"
15560 fi
15561
15562 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15564 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15565 fi
15566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15568 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15569 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15570 $as_echo_n "(cached) " >&6
15571 else
15572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15573 /* end confdefs.h. */
15574 int i;
15575 _ACEOF
15576 if ac_fn_c_try_compile "$LINENO"; then :
15577 xorg_cv_cc_flag_unused_command_line_argument=yes
15578 else
15579 xorg_cv_cc_flag_unused_command_line_argument=no
15580 fi
15581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15582 fi
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15584 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15585 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15586 CFLAGS="$xorg_testset_save_CFLAGS"
15587 fi
15588
15589 found="no"
15590
15591 if test $found = "no" ; then
15592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15593 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15594 fi
15595
15596 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15598 fi
15599
15600 CFLAGS="$CFLAGS -Werror=sequence-point"
15601
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15603 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15604 cacheid=xorg_cv_cc_flag__Werror_sequence_point
15605 if eval \${$cacheid+:} false; then :
15606 $as_echo_n "(cached) " >&6
15607 else
15608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15609 /* end confdefs.h. */
15610 int i;
15611 int
15612 main ()
15613 {
15614
15615 ;
15616 return 0;
15617 }
15618 _ACEOF
15619 if ac_fn_c_try_link "$LINENO"; then :
15620 eval $cacheid=yes
15621 else
15622 eval $cacheid=no
15623 fi
15624 rm -f core conftest.err conftest.$ac_objext \
15625 conftest$ac_exeext conftest.$ac_ext
15626 fi
15627
15628
15629 CFLAGS="$xorg_testset_save_CFLAGS"
15630
15631 eval supported=\$$cacheid
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15633 $as_echo "$supported" >&6; }
15634 if test "$supported" = "yes" ; then
15635 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15636 found="yes"
15637 fi
15638 fi
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654 xorg_testset_save_CFLAGS="$CFLAGS"
15655
15656 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15657 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15659 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15660 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15661 $as_echo_n "(cached) " >&6
15662 else
15663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15664 /* end confdefs.h. */
15665 int i;
15666 _ACEOF
15667 if ac_fn_c_try_compile "$LINENO"; then :
15668 xorg_cv_cc_flag_unknown_warning_option=yes
15669 else
15670 xorg_cv_cc_flag_unknown_warning_option=no
15671 fi
15672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15673 fi
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15675 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15676 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15677 CFLAGS="$xorg_testset_save_CFLAGS"
15678 fi
15679
15680 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15681 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15682 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15683 fi
15684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15686 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15687 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15688 $as_echo_n "(cached) " >&6
15689 else
15690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15691 /* end confdefs.h. */
15692 int i;
15693 _ACEOF
15694 if ac_fn_c_try_compile "$LINENO"; then :
15695 xorg_cv_cc_flag_unused_command_line_argument=yes
15696 else
15697 xorg_cv_cc_flag_unused_command_line_argument=no
15698 fi
15699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15700 fi
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15702 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15703 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15704 CFLAGS="$xorg_testset_save_CFLAGS"
15705 fi
15706
15707 found="no"
15708
15709 if test $found = "no" ; then
15710 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15711 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15712 fi
15713
15714 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15716 fi
15717
15718 CFLAGS="$CFLAGS -Werror=return-type"
15719
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15721 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15722 cacheid=xorg_cv_cc_flag__Werror_return_type
15723 if eval \${$cacheid+:} false; then :
15724 $as_echo_n "(cached) " >&6
15725 else
15726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15727 /* end confdefs.h. */
15728 int i;
15729 int
15730 main ()
15731 {
15732
15733 ;
15734 return 0;
15735 }
15736 _ACEOF
15737 if ac_fn_c_try_link "$LINENO"; then :
15738 eval $cacheid=yes
15739 else
15740 eval $cacheid=no
15741 fi
15742 rm -f core conftest.err conftest.$ac_objext \
15743 conftest$ac_exeext conftest.$ac_ext
15744 fi
15745
15746
15747 CFLAGS="$xorg_testset_save_CFLAGS"
15748
15749 eval supported=\$$cacheid
15750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15751 $as_echo "$supported" >&6; }
15752 if test "$supported" = "yes" ; then
15753 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15754 found="yes"
15755 fi
15756 fi
15757
15758 if test $found = "no" ; then
15759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15760 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15761 fi
15762
15763 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15765 fi
15766
15767 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15768
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15770 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15771 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
15772 if eval \${$cacheid+:} false; then :
15773 $as_echo_n "(cached) " >&6
15774 else
15775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15776 /* end confdefs.h. */
15777 int i;
15778 int
15779 main ()
15780 {
15781
15782 ;
15783 return 0;
15784 }
15785 _ACEOF
15786 if ac_fn_c_try_link "$LINENO"; then :
15787 eval $cacheid=yes
15788 else
15789 eval $cacheid=no
15790 fi
15791 rm -f core conftest.err conftest.$ac_objext \
15792 conftest$ac_exeext conftest.$ac_ext
15793 fi
15794
15795
15796 CFLAGS="$xorg_testset_save_CFLAGS"
15797
15798 eval supported=\$$cacheid
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15800 $as_echo "$supported" >&6; }
15801 if test "$supported" = "yes" ; then
15802 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15803 found="yes"
15804 fi
15805 fi
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821 xorg_testset_save_CFLAGS="$CFLAGS"
15822
15823 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15826 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15827 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15828 $as_echo_n "(cached) " >&6
15829 else
15830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15831 /* end confdefs.h. */
15832 int i;
15833 _ACEOF
15834 if ac_fn_c_try_compile "$LINENO"; then :
15835 xorg_cv_cc_flag_unknown_warning_option=yes
15836 else
15837 xorg_cv_cc_flag_unknown_warning_option=no
15838 fi
15839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15840 fi
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15842 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15843 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15844 CFLAGS="$xorg_testset_save_CFLAGS"
15845 fi
15846
15847 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15849 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15850 fi
15851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15853 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15854 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15855 $as_echo_n "(cached) " >&6
15856 else
15857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15858 /* end confdefs.h. */
15859 int i;
15860 _ACEOF
15861 if ac_fn_c_try_compile "$LINENO"; then :
15862 xorg_cv_cc_flag_unused_command_line_argument=yes
15863 else
15864 xorg_cv_cc_flag_unused_command_line_argument=no
15865 fi
15866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15867 fi
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15869 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15870 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15871 CFLAGS="$xorg_testset_save_CFLAGS"
15872 fi
15873
15874 found="no"
15875
15876 if test $found = "no" ; then
15877 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15878 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15879 fi
15880
15881 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15883 fi
15884
15885 CFLAGS="$CFLAGS -Werror=trigraphs"
15886
15887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15888 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15889 cacheid=xorg_cv_cc_flag__Werror_trigraphs
15890 if eval \${$cacheid+:} false; then :
15891 $as_echo_n "(cached) " >&6
15892 else
15893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15894 /* end confdefs.h. */
15895 int i;
15896 int
15897 main ()
15898 {
15899
15900 ;
15901 return 0;
15902 }
15903 _ACEOF
15904 if ac_fn_c_try_link "$LINENO"; then :
15905 eval $cacheid=yes
15906 else
15907 eval $cacheid=no
15908 fi
15909 rm -f core conftest.err conftest.$ac_objext \
15910 conftest$ac_exeext conftest.$ac_ext
15911 fi
15912
15913
15914 CFLAGS="$xorg_testset_save_CFLAGS"
15915
15916 eval supported=\$$cacheid
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15918 $as_echo "$supported" >&6; }
15919 if test "$supported" = "yes" ; then
15920 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15921 found="yes"
15922 fi
15923 fi
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939 xorg_testset_save_CFLAGS="$CFLAGS"
15940
15941 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15942 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15944 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15945 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15946 $as_echo_n "(cached) " >&6
15947 else
15948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15949 /* end confdefs.h. */
15950 int i;
15951 _ACEOF
15952 if ac_fn_c_try_compile "$LINENO"; then :
15953 xorg_cv_cc_flag_unknown_warning_option=yes
15954 else
15955 xorg_cv_cc_flag_unknown_warning_option=no
15956 fi
15957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15958 fi
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15960 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15961 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15962 CFLAGS="$xorg_testset_save_CFLAGS"
15963 fi
15964
15965 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15967 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15968 fi
15969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15971 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15972 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15973 $as_echo_n "(cached) " >&6
15974 else
15975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15976 /* end confdefs.h. */
15977 int i;
15978 _ACEOF
15979 if ac_fn_c_try_compile "$LINENO"; then :
15980 xorg_cv_cc_flag_unused_command_line_argument=yes
15981 else
15982 xorg_cv_cc_flag_unused_command_line_argument=no
15983 fi
15984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15985 fi
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15987 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15988 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15989 CFLAGS="$xorg_testset_save_CFLAGS"
15990 fi
15991
15992 found="no"
15993
15994 if test $found = "no" ; then
15995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15996 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15997 fi
15998
15999 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16001 fi
16002
16003 CFLAGS="$CFLAGS -Werror=array-bounds"
16004
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16006 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
16007 cacheid=xorg_cv_cc_flag__Werror_array_bounds
16008 if eval \${$cacheid+:} false; then :
16009 $as_echo_n "(cached) " >&6
16010 else
16011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16012 /* end confdefs.h. */
16013 int i;
16014 int
16015 main ()
16016 {
16017
16018 ;
16019 return 0;
16020 }
16021 _ACEOF
16022 if ac_fn_c_try_link "$LINENO"; then :
16023 eval $cacheid=yes
16024 else
16025 eval $cacheid=no
16026 fi
16027 rm -f core conftest.err conftest.$ac_objext \
16028 conftest$ac_exeext conftest.$ac_ext
16029 fi
16030
16031
16032 CFLAGS="$xorg_testset_save_CFLAGS"
16033
16034 eval supported=\$$cacheid
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16036 $as_echo "$supported" >&6; }
16037 if test "$supported" = "yes" ; then
16038 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16039 found="yes"
16040 fi
16041 fi
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057 xorg_testset_save_CFLAGS="$CFLAGS"
16058
16059 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16060 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16062 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16063 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16064 $as_echo_n "(cached) " >&6
16065 else
16066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16067 /* end confdefs.h. */
16068 int i;
16069 _ACEOF
16070 if ac_fn_c_try_compile "$LINENO"; then :
16071 xorg_cv_cc_flag_unknown_warning_option=yes
16072 else
16073 xorg_cv_cc_flag_unknown_warning_option=no
16074 fi
16075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16076 fi
16077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16078 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16079 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16080 CFLAGS="$xorg_testset_save_CFLAGS"
16081 fi
16082
16083 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16084 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16086 fi
16087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16089 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16090 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16091 $as_echo_n "(cached) " >&6
16092 else
16093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16094 /* end confdefs.h. */
16095 int i;
16096 _ACEOF
16097 if ac_fn_c_try_compile "$LINENO"; then :
16098 xorg_cv_cc_flag_unused_command_line_argument=yes
16099 else
16100 xorg_cv_cc_flag_unused_command_line_argument=no
16101 fi
16102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16103 fi
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16105 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16106 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16107 CFLAGS="$xorg_testset_save_CFLAGS"
16108 fi
16109
16110 found="no"
16111
16112 if test $found = "no" ; then
16113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16114 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16115 fi
16116
16117 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16119 fi
16120
16121 CFLAGS="$CFLAGS -Werror=write-strings"
16122
16123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16124 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
16125 cacheid=xorg_cv_cc_flag__Werror_write_strings
16126 if eval \${$cacheid+:} false; then :
16127 $as_echo_n "(cached) " >&6
16128 else
16129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16130 /* end confdefs.h. */
16131 int i;
16132 int
16133 main ()
16134 {
16135
16136 ;
16137 return 0;
16138 }
16139 _ACEOF
16140 if ac_fn_c_try_link "$LINENO"; then :
16141 eval $cacheid=yes
16142 else
16143 eval $cacheid=no
16144 fi
16145 rm -f core conftest.err conftest.$ac_objext \
16146 conftest$ac_exeext conftest.$ac_ext
16147 fi
16148
16149
16150 CFLAGS="$xorg_testset_save_CFLAGS"
16151
16152 eval supported=\$$cacheid
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16154 $as_echo "$supported" >&6; }
16155 if test "$supported" = "yes" ; then
16156 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16157 found="yes"
16158 fi
16159 fi
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175 xorg_testset_save_CFLAGS="$CFLAGS"
16176
16177 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16178 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16180 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16181 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16182 $as_echo_n "(cached) " >&6
16183 else
16184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16185 /* end confdefs.h. */
16186 int i;
16187 _ACEOF
16188 if ac_fn_c_try_compile "$LINENO"; then :
16189 xorg_cv_cc_flag_unknown_warning_option=yes
16190 else
16191 xorg_cv_cc_flag_unknown_warning_option=no
16192 fi
16193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16194 fi
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16196 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16197 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16198 CFLAGS="$xorg_testset_save_CFLAGS"
16199 fi
16200
16201 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16204 fi
16205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16207 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16208 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16209 $as_echo_n "(cached) " >&6
16210 else
16211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16212 /* end confdefs.h. */
16213 int i;
16214 _ACEOF
16215 if ac_fn_c_try_compile "$LINENO"; then :
16216 xorg_cv_cc_flag_unused_command_line_argument=yes
16217 else
16218 xorg_cv_cc_flag_unused_command_line_argument=no
16219 fi
16220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16221 fi
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16223 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16224 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16225 CFLAGS="$xorg_testset_save_CFLAGS"
16226 fi
16227
16228 found="no"
16229
16230 if test $found = "no" ; then
16231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16232 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16233 fi
16234
16235 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16237 fi
16238
16239 CFLAGS="$CFLAGS -Werror=address"
16240
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16242 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
16243 cacheid=xorg_cv_cc_flag__Werror_address
16244 if eval \${$cacheid+:} false; then :
16245 $as_echo_n "(cached) " >&6
16246 else
16247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16248 /* end confdefs.h. */
16249 int i;
16250 int
16251 main ()
16252 {
16253
16254 ;
16255 return 0;
16256 }
16257 _ACEOF
16258 if ac_fn_c_try_link "$LINENO"; then :
16259 eval $cacheid=yes
16260 else
16261 eval $cacheid=no
16262 fi
16263 rm -f core conftest.err conftest.$ac_objext \
16264 conftest$ac_exeext conftest.$ac_ext
16265 fi
16266
16267
16268 CFLAGS="$xorg_testset_save_CFLAGS"
16269
16270 eval supported=\$$cacheid
16271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16272 $as_echo "$supported" >&6; }
16273 if test "$supported" = "yes" ; then
16274 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16275 found="yes"
16276 fi
16277 fi
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293 xorg_testset_save_CFLAGS="$CFLAGS"
16294
16295 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16296 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16298 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16299 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16300 $as_echo_n "(cached) " >&6
16301 else
16302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16303 /* end confdefs.h. */
16304 int i;
16305 _ACEOF
16306 if ac_fn_c_try_compile "$LINENO"; then :
16307 xorg_cv_cc_flag_unknown_warning_option=yes
16308 else
16309 xorg_cv_cc_flag_unknown_warning_option=no
16310 fi
16311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16312 fi
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16314 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16315 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16316 CFLAGS="$xorg_testset_save_CFLAGS"
16317 fi
16318
16319 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16320 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16321 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16322 fi
16323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16325 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16326 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16327 $as_echo_n "(cached) " >&6
16328 else
16329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16330 /* end confdefs.h. */
16331 int i;
16332 _ACEOF
16333 if ac_fn_c_try_compile "$LINENO"; then :
16334 xorg_cv_cc_flag_unused_command_line_argument=yes
16335 else
16336 xorg_cv_cc_flag_unused_command_line_argument=no
16337 fi
16338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16339 fi
16340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16341 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16342 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16343 CFLAGS="$xorg_testset_save_CFLAGS"
16344 fi
16345
16346 found="no"
16347
16348 if test $found = "no" ; then
16349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16350 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16351 fi
16352
16353 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16355 fi
16356
16357 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16358
16359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16360 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16361 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16362 if eval \${$cacheid+:} false; then :
16363 $as_echo_n "(cached) " >&6
16364 else
16365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16366 /* end confdefs.h. */
16367 int i;
16368 int
16369 main ()
16370 {
16371
16372 ;
16373 return 0;
16374 }
16375 _ACEOF
16376 if ac_fn_c_try_link "$LINENO"; then :
16377 eval $cacheid=yes
16378 else
16379 eval $cacheid=no
16380 fi
16381 rm -f core conftest.err conftest.$ac_objext \
16382 conftest$ac_exeext conftest.$ac_ext
16383 fi
16384
16385
16386 CFLAGS="$xorg_testset_save_CFLAGS"
16387
16388 eval supported=\$$cacheid
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16390 $as_echo "$supported" >&6; }
16391 if test "$supported" = "yes" ; then
16392 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16393 found="yes"
16394 fi
16395 fi
16396
16397 if test $found = "no" ; then
16398 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16399 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16400 fi
16401
16402 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16404 fi
16405
16406 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16407
16408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16409 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16410 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16411 if eval \${$cacheid+:} false; then :
16412 $as_echo_n "(cached) " >&6
16413 else
16414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16415 /* end confdefs.h. */
16416 int i;
16417 int
16418 main ()
16419 {
16420
16421 ;
16422 return 0;
16423 }
16424 _ACEOF
16425 if ac_fn_c_try_link "$LINENO"; then :
16426 eval $cacheid=yes
16427 else
16428 eval $cacheid=no
16429 fi
16430 rm -f core conftest.err conftest.$ac_objext \
16431 conftest$ac_exeext conftest.$ac_ext
16432 fi
16433
16434
16435 CFLAGS="$xorg_testset_save_CFLAGS"
16436
16437 eval supported=\$$cacheid
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16439 $as_echo "$supported" >&6; }
16440 if test "$supported" = "yes" ; then
16441 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16442 found="yes"
16443 fi
16444 fi
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460 xorg_testset_save_CFLAGS="$CFLAGS"
16461
16462 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16463 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16465 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16466 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16467 $as_echo_n "(cached) " >&6
16468 else
16469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16470 /* end confdefs.h. */
16471 int i;
16472 _ACEOF
16473 if ac_fn_c_try_compile "$LINENO"; then :
16474 xorg_cv_cc_flag_unknown_warning_option=yes
16475 else
16476 xorg_cv_cc_flag_unknown_warning_option=no
16477 fi
16478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16479 fi
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16481 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16482 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16483 CFLAGS="$xorg_testset_save_CFLAGS"
16484 fi
16485
16486 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16487 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16488 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16489 fi
16490 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16492 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16493 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16494 $as_echo_n "(cached) " >&6
16495 else
16496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16497 /* end confdefs.h. */
16498 int i;
16499 _ACEOF
16500 if ac_fn_c_try_compile "$LINENO"; then :
16501 xorg_cv_cc_flag_unused_command_line_argument=yes
16502 else
16503 xorg_cv_cc_flag_unused_command_line_argument=no
16504 fi
16505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16506 fi
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16508 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16509 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16510 CFLAGS="$xorg_testset_save_CFLAGS"
16511 fi
16512
16513 found="no"
16514
16515 if test $found = "no" ; then
16516 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16517 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16518 fi
16519
16520 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16522 fi
16523
16524 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16525
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16527 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16528 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16529 if eval \${$cacheid+:} false; then :
16530 $as_echo_n "(cached) " >&6
16531 else
16532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16533 /* end confdefs.h. */
16534 int i;
16535 int
16536 main ()
16537 {
16538
16539 ;
16540 return 0;
16541 }
16542 _ACEOF
16543 if ac_fn_c_try_link "$LINENO"; then :
16544 eval $cacheid=yes
16545 else
16546 eval $cacheid=no
16547 fi
16548 rm -f core conftest.err conftest.$ac_objext \
16549 conftest$ac_exeext conftest.$ac_ext
16550 fi
16551
16552
16553 CFLAGS="$xorg_testset_save_CFLAGS"
16554
16555 eval supported=\$$cacheid
16556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16557 $as_echo "$supported" >&6; }
16558 if test "$supported" = "yes" ; then
16559 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16560 found="yes"
16561 fi
16562 fi
16563
16564 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16565 else
16566 { $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
16567 $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;}
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581 xorg_testset_save_CFLAGS="$CFLAGS"
16582
16583 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16584 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16586 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16587 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16588 $as_echo_n "(cached) " >&6
16589 else
16590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16591 /* end confdefs.h. */
16592 int i;
16593 _ACEOF
16594 if ac_fn_c_try_compile "$LINENO"; then :
16595 xorg_cv_cc_flag_unknown_warning_option=yes
16596 else
16597 xorg_cv_cc_flag_unknown_warning_option=no
16598 fi
16599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16600 fi
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16602 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16603 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16604 CFLAGS="$xorg_testset_save_CFLAGS"
16605 fi
16606
16607 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16609 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16610 fi
16611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16613 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16614 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16615 $as_echo_n "(cached) " >&6
16616 else
16617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16618 /* end confdefs.h. */
16619 int i;
16620 _ACEOF
16621 if ac_fn_c_try_compile "$LINENO"; then :
16622 xorg_cv_cc_flag_unused_command_line_argument=yes
16623 else
16624 xorg_cv_cc_flag_unused_command_line_argument=no
16625 fi
16626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16627 fi
16628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16629 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16630 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16631 CFLAGS="$xorg_testset_save_CFLAGS"
16632 fi
16633
16634 found="no"
16635
16636 if test $found = "no" ; then
16637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16638 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16639 fi
16640
16641 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16643 fi
16644
16645 CFLAGS="$CFLAGS -Wimplicit"
16646
16647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16648 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16649 cacheid=xorg_cv_cc_flag__Wimplicit
16650 if eval \${$cacheid+:} false; then :
16651 $as_echo_n "(cached) " >&6
16652 else
16653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16654 /* end confdefs.h. */
16655 int i;
16656 int
16657 main ()
16658 {
16659
16660 ;
16661 return 0;
16662 }
16663 _ACEOF
16664 if ac_fn_c_try_link "$LINENO"; then :
16665 eval $cacheid=yes
16666 else
16667 eval $cacheid=no
16668 fi
16669 rm -f core conftest.err conftest.$ac_objext \
16670 conftest$ac_exeext conftest.$ac_ext
16671 fi
16672
16673
16674 CFLAGS="$xorg_testset_save_CFLAGS"
16675
16676 eval supported=\$$cacheid
16677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16678 $as_echo "$supported" >&6; }
16679 if test "$supported" = "yes" ; then
16680 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16681 found="yes"
16682 fi
16683 fi
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699 xorg_testset_save_CFLAGS="$CFLAGS"
16700
16701 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16702 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16704 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16705 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16706 $as_echo_n "(cached) " >&6
16707 else
16708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16709 /* end confdefs.h. */
16710 int i;
16711 _ACEOF
16712 if ac_fn_c_try_compile "$LINENO"; then :
16713 xorg_cv_cc_flag_unknown_warning_option=yes
16714 else
16715 xorg_cv_cc_flag_unknown_warning_option=no
16716 fi
16717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16718 fi
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16720 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16721 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16722 CFLAGS="$xorg_testset_save_CFLAGS"
16723 fi
16724
16725 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16728 fi
16729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16731 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16732 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16733 $as_echo_n "(cached) " >&6
16734 else
16735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16736 /* end confdefs.h. */
16737 int i;
16738 _ACEOF
16739 if ac_fn_c_try_compile "$LINENO"; then :
16740 xorg_cv_cc_flag_unused_command_line_argument=yes
16741 else
16742 xorg_cv_cc_flag_unused_command_line_argument=no
16743 fi
16744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16745 fi
16746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16747 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16748 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16749 CFLAGS="$xorg_testset_save_CFLAGS"
16750 fi
16751
16752 found="no"
16753
16754 if test $found = "no" ; then
16755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16756 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16757 fi
16758
16759 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16761 fi
16762
16763 CFLAGS="$CFLAGS -Wnonnull"
16764
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16766 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16767 cacheid=xorg_cv_cc_flag__Wnonnull
16768 if eval \${$cacheid+:} false; then :
16769 $as_echo_n "(cached) " >&6
16770 else
16771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16772 /* end confdefs.h. */
16773 int i;
16774 int
16775 main ()
16776 {
16777
16778 ;
16779 return 0;
16780 }
16781 _ACEOF
16782 if ac_fn_c_try_link "$LINENO"; then :
16783 eval $cacheid=yes
16784 else
16785 eval $cacheid=no
16786 fi
16787 rm -f core conftest.err conftest.$ac_objext \
16788 conftest$ac_exeext conftest.$ac_ext
16789 fi
16790
16791
16792 CFLAGS="$xorg_testset_save_CFLAGS"
16793
16794 eval supported=\$$cacheid
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16796 $as_echo "$supported" >&6; }
16797 if test "$supported" = "yes" ; then
16798 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16799 found="yes"
16800 fi
16801 fi
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817 xorg_testset_save_CFLAGS="$CFLAGS"
16818
16819 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16820 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16822 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16823 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16824 $as_echo_n "(cached) " >&6
16825 else
16826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16827 /* end confdefs.h. */
16828 int i;
16829 _ACEOF
16830 if ac_fn_c_try_compile "$LINENO"; then :
16831 xorg_cv_cc_flag_unknown_warning_option=yes
16832 else
16833 xorg_cv_cc_flag_unknown_warning_option=no
16834 fi
16835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16836 fi
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16838 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16839 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16840 CFLAGS="$xorg_testset_save_CFLAGS"
16841 fi
16842
16843 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16846 fi
16847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16849 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16850 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16851 $as_echo_n "(cached) " >&6
16852 else
16853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16854 /* end confdefs.h. */
16855 int i;
16856 _ACEOF
16857 if ac_fn_c_try_compile "$LINENO"; then :
16858 xorg_cv_cc_flag_unused_command_line_argument=yes
16859 else
16860 xorg_cv_cc_flag_unused_command_line_argument=no
16861 fi
16862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16863 fi
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16865 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16866 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16867 CFLAGS="$xorg_testset_save_CFLAGS"
16868 fi
16869
16870 found="no"
16871
16872 if test $found = "no" ; then
16873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16874 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16875 fi
16876
16877 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16879 fi
16880
16881 CFLAGS="$CFLAGS -Winit-self"
16882
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16884 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16885 cacheid=xorg_cv_cc_flag__Winit_self
16886 if eval \${$cacheid+:} false; then :
16887 $as_echo_n "(cached) " >&6
16888 else
16889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16890 /* end confdefs.h. */
16891 int i;
16892 int
16893 main ()
16894 {
16895
16896 ;
16897 return 0;
16898 }
16899 _ACEOF
16900 if ac_fn_c_try_link "$LINENO"; then :
16901 eval $cacheid=yes
16902 else
16903 eval $cacheid=no
16904 fi
16905 rm -f core conftest.err conftest.$ac_objext \
16906 conftest$ac_exeext conftest.$ac_ext
16907 fi
16908
16909
16910 CFLAGS="$xorg_testset_save_CFLAGS"
16911
16912 eval supported=\$$cacheid
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16914 $as_echo "$supported" >&6; }
16915 if test "$supported" = "yes" ; then
16916 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16917 found="yes"
16918 fi
16919 fi
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935 xorg_testset_save_CFLAGS="$CFLAGS"
16936
16937 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16938 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16940 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16941 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16942 $as_echo_n "(cached) " >&6
16943 else
16944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16945 /* end confdefs.h. */
16946 int i;
16947 _ACEOF
16948 if ac_fn_c_try_compile "$LINENO"; then :
16949 xorg_cv_cc_flag_unknown_warning_option=yes
16950 else
16951 xorg_cv_cc_flag_unknown_warning_option=no
16952 fi
16953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16954 fi
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16956 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16957 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16958 CFLAGS="$xorg_testset_save_CFLAGS"
16959 fi
16960
16961 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16963 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16964 fi
16965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16967 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16968 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16969 $as_echo_n "(cached) " >&6
16970 else
16971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16972 /* end confdefs.h. */
16973 int i;
16974 _ACEOF
16975 if ac_fn_c_try_compile "$LINENO"; then :
16976 xorg_cv_cc_flag_unused_command_line_argument=yes
16977 else
16978 xorg_cv_cc_flag_unused_command_line_argument=no
16979 fi
16980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16981 fi
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16983 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16984 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16985 CFLAGS="$xorg_testset_save_CFLAGS"
16986 fi
16987
16988 found="no"
16989
16990 if test $found = "no" ; then
16991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16993 fi
16994
16995 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16997 fi
16998
16999 CFLAGS="$CFLAGS -Wmain"
17000
17001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17002 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
17003 cacheid=xorg_cv_cc_flag__Wmain
17004 if eval \${$cacheid+:} false; then :
17005 $as_echo_n "(cached) " >&6
17006 else
17007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17008 /* end confdefs.h. */
17009 int i;
17010 int
17011 main ()
17012 {
17013
17014 ;
17015 return 0;
17016 }
17017 _ACEOF
17018 if ac_fn_c_try_link "$LINENO"; then :
17019 eval $cacheid=yes
17020 else
17021 eval $cacheid=no
17022 fi
17023 rm -f core conftest.err conftest.$ac_objext \
17024 conftest$ac_exeext conftest.$ac_ext
17025 fi
17026
17027
17028 CFLAGS="$xorg_testset_save_CFLAGS"
17029
17030 eval supported=\$$cacheid
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17032 $as_echo "$supported" >&6; }
17033 if test "$supported" = "yes" ; then
17034 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17035 found="yes"
17036 fi
17037 fi
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053 xorg_testset_save_CFLAGS="$CFLAGS"
17054
17055 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17058 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17059 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17060 $as_echo_n "(cached) " >&6
17061 else
17062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17063 /* end confdefs.h. */
17064 int i;
17065 _ACEOF
17066 if ac_fn_c_try_compile "$LINENO"; then :
17067 xorg_cv_cc_flag_unknown_warning_option=yes
17068 else
17069 xorg_cv_cc_flag_unknown_warning_option=no
17070 fi
17071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17072 fi
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17074 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17075 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17076 CFLAGS="$xorg_testset_save_CFLAGS"
17077 fi
17078
17079 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17082 fi
17083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17085 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17086 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17087 $as_echo_n "(cached) " >&6
17088 else
17089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17090 /* end confdefs.h. */
17091 int i;
17092 _ACEOF
17093 if ac_fn_c_try_compile "$LINENO"; then :
17094 xorg_cv_cc_flag_unused_command_line_argument=yes
17095 else
17096 xorg_cv_cc_flag_unused_command_line_argument=no
17097 fi
17098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17099 fi
17100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17101 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17102 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17103 CFLAGS="$xorg_testset_save_CFLAGS"
17104 fi
17105
17106 found="no"
17107
17108 if test $found = "no" ; then
17109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17110 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17111 fi
17112
17113 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17115 fi
17116
17117 CFLAGS="$CFLAGS -Wmissing-braces"
17118
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17120 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
17121 cacheid=xorg_cv_cc_flag__Wmissing_braces
17122 if eval \${$cacheid+:} false; then :
17123 $as_echo_n "(cached) " >&6
17124 else
17125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17126 /* end confdefs.h. */
17127 int i;
17128 int
17129 main ()
17130 {
17131
17132 ;
17133 return 0;
17134 }
17135 _ACEOF
17136 if ac_fn_c_try_link "$LINENO"; then :
17137 eval $cacheid=yes
17138 else
17139 eval $cacheid=no
17140 fi
17141 rm -f core conftest.err conftest.$ac_objext \
17142 conftest$ac_exeext conftest.$ac_ext
17143 fi
17144
17145
17146 CFLAGS="$xorg_testset_save_CFLAGS"
17147
17148 eval supported=\$$cacheid
17149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17150 $as_echo "$supported" >&6; }
17151 if test "$supported" = "yes" ; then
17152 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17153 found="yes"
17154 fi
17155 fi
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171 xorg_testset_save_CFLAGS="$CFLAGS"
17172
17173 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17174 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17176 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17177 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17178 $as_echo_n "(cached) " >&6
17179 else
17180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17181 /* end confdefs.h. */
17182 int i;
17183 _ACEOF
17184 if ac_fn_c_try_compile "$LINENO"; then :
17185 xorg_cv_cc_flag_unknown_warning_option=yes
17186 else
17187 xorg_cv_cc_flag_unknown_warning_option=no
17188 fi
17189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17190 fi
17191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17192 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17193 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17194 CFLAGS="$xorg_testset_save_CFLAGS"
17195 fi
17196
17197 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17198 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17199 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17200 fi
17201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17203 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17204 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17205 $as_echo_n "(cached) " >&6
17206 else
17207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17208 /* end confdefs.h. */
17209 int i;
17210 _ACEOF
17211 if ac_fn_c_try_compile "$LINENO"; then :
17212 xorg_cv_cc_flag_unused_command_line_argument=yes
17213 else
17214 xorg_cv_cc_flag_unused_command_line_argument=no
17215 fi
17216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17217 fi
17218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17219 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17220 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17221 CFLAGS="$xorg_testset_save_CFLAGS"
17222 fi
17223
17224 found="no"
17225
17226 if test $found = "no" ; then
17227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17228 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17229 fi
17230
17231 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17233 fi
17234
17235 CFLAGS="$CFLAGS -Wsequence-point"
17236
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17238 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
17239 cacheid=xorg_cv_cc_flag__Wsequence_point
17240 if eval \${$cacheid+:} false; then :
17241 $as_echo_n "(cached) " >&6
17242 else
17243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17244 /* end confdefs.h. */
17245 int i;
17246 int
17247 main ()
17248 {
17249
17250 ;
17251 return 0;
17252 }
17253 _ACEOF
17254 if ac_fn_c_try_link "$LINENO"; then :
17255 eval $cacheid=yes
17256 else
17257 eval $cacheid=no
17258 fi
17259 rm -f core conftest.err conftest.$ac_objext \
17260 conftest$ac_exeext conftest.$ac_ext
17261 fi
17262
17263
17264 CFLAGS="$xorg_testset_save_CFLAGS"
17265
17266 eval supported=\$$cacheid
17267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17268 $as_echo "$supported" >&6; }
17269 if test "$supported" = "yes" ; then
17270 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17271 found="yes"
17272 fi
17273 fi
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289 xorg_testset_save_CFLAGS="$CFLAGS"
17290
17291 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17292 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17294 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17295 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17296 $as_echo_n "(cached) " >&6
17297 else
17298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17299 /* end confdefs.h. */
17300 int i;
17301 _ACEOF
17302 if ac_fn_c_try_compile "$LINENO"; then :
17303 xorg_cv_cc_flag_unknown_warning_option=yes
17304 else
17305 xorg_cv_cc_flag_unknown_warning_option=no
17306 fi
17307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17308 fi
17309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17310 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17311 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17312 CFLAGS="$xorg_testset_save_CFLAGS"
17313 fi
17314
17315 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17316 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17317 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17318 fi
17319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17321 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17322 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17323 $as_echo_n "(cached) " >&6
17324 else
17325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17326 /* end confdefs.h. */
17327 int i;
17328 _ACEOF
17329 if ac_fn_c_try_compile "$LINENO"; then :
17330 xorg_cv_cc_flag_unused_command_line_argument=yes
17331 else
17332 xorg_cv_cc_flag_unused_command_line_argument=no
17333 fi
17334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17335 fi
17336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17337 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17338 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17339 CFLAGS="$xorg_testset_save_CFLAGS"
17340 fi
17341
17342 found="no"
17343
17344 if test $found = "no" ; then
17345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17346 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17347 fi
17348
17349 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17351 fi
17352
17353 CFLAGS="$CFLAGS -Wreturn-type"
17354
17355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17356 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
17357 cacheid=xorg_cv_cc_flag__Wreturn_type
17358 if eval \${$cacheid+:} false; then :
17359 $as_echo_n "(cached) " >&6
17360 else
17361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17362 /* end confdefs.h. */
17363 int i;
17364 int
17365 main ()
17366 {
17367
17368 ;
17369 return 0;
17370 }
17371 _ACEOF
17372 if ac_fn_c_try_link "$LINENO"; then :
17373 eval $cacheid=yes
17374 else
17375 eval $cacheid=no
17376 fi
17377 rm -f core conftest.err conftest.$ac_objext \
17378 conftest$ac_exeext conftest.$ac_ext
17379 fi
17380
17381
17382 CFLAGS="$xorg_testset_save_CFLAGS"
17383
17384 eval supported=\$$cacheid
17385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17386 $as_echo "$supported" >&6; }
17387 if test "$supported" = "yes" ; then
17388 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17389 found="yes"
17390 fi
17391 fi
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407 xorg_testset_save_CFLAGS="$CFLAGS"
17408
17409 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17410 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17412 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17413 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17414 $as_echo_n "(cached) " >&6
17415 else
17416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17417 /* end confdefs.h. */
17418 int i;
17419 _ACEOF
17420 if ac_fn_c_try_compile "$LINENO"; then :
17421 xorg_cv_cc_flag_unknown_warning_option=yes
17422 else
17423 xorg_cv_cc_flag_unknown_warning_option=no
17424 fi
17425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17426 fi
17427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17428 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17429 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17430 CFLAGS="$xorg_testset_save_CFLAGS"
17431 fi
17432
17433 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17434 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17435 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17436 fi
17437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17439 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17440 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17441 $as_echo_n "(cached) " >&6
17442 else
17443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17444 /* end confdefs.h. */
17445 int i;
17446 _ACEOF
17447 if ac_fn_c_try_compile "$LINENO"; then :
17448 xorg_cv_cc_flag_unused_command_line_argument=yes
17449 else
17450 xorg_cv_cc_flag_unused_command_line_argument=no
17451 fi
17452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17453 fi
17454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17455 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17456 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17457 CFLAGS="$xorg_testset_save_CFLAGS"
17458 fi
17459
17460 found="no"
17461
17462 if test $found = "no" ; then
17463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17464 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17465 fi
17466
17467 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17469 fi
17470
17471 CFLAGS="$CFLAGS -Wtrigraphs"
17472
17473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17474 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
17475 cacheid=xorg_cv_cc_flag__Wtrigraphs
17476 if eval \${$cacheid+:} false; then :
17477 $as_echo_n "(cached) " >&6
17478 else
17479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17480 /* end confdefs.h. */
17481 int i;
17482 int
17483 main ()
17484 {
17485
17486 ;
17487 return 0;
17488 }
17489 _ACEOF
17490 if ac_fn_c_try_link "$LINENO"; then :
17491 eval $cacheid=yes
17492 else
17493 eval $cacheid=no
17494 fi
17495 rm -f core conftest.err conftest.$ac_objext \
17496 conftest$ac_exeext conftest.$ac_ext
17497 fi
17498
17499
17500 CFLAGS="$xorg_testset_save_CFLAGS"
17501
17502 eval supported=\$$cacheid
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17504 $as_echo "$supported" >&6; }
17505 if test "$supported" = "yes" ; then
17506 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17507 found="yes"
17508 fi
17509 fi
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525 xorg_testset_save_CFLAGS="$CFLAGS"
17526
17527 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17528 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17530 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17531 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17532 $as_echo_n "(cached) " >&6
17533 else
17534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17535 /* end confdefs.h. */
17536 int i;
17537 _ACEOF
17538 if ac_fn_c_try_compile "$LINENO"; then :
17539 xorg_cv_cc_flag_unknown_warning_option=yes
17540 else
17541 xorg_cv_cc_flag_unknown_warning_option=no
17542 fi
17543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17544 fi
17545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17546 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17547 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17548 CFLAGS="$xorg_testset_save_CFLAGS"
17549 fi
17550
17551 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17553 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17554 fi
17555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17557 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17558 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17559 $as_echo_n "(cached) " >&6
17560 else
17561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17562 /* end confdefs.h. */
17563 int i;
17564 _ACEOF
17565 if ac_fn_c_try_compile "$LINENO"; then :
17566 xorg_cv_cc_flag_unused_command_line_argument=yes
17567 else
17568 xorg_cv_cc_flag_unused_command_line_argument=no
17569 fi
17570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17571 fi
17572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17573 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17574 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17575 CFLAGS="$xorg_testset_save_CFLAGS"
17576 fi
17577
17578 found="no"
17579
17580 if test $found = "no" ; then
17581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17583 fi
17584
17585 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17587 fi
17588
17589 CFLAGS="$CFLAGS -Warray-bounds"
17590
17591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17592 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17593 cacheid=xorg_cv_cc_flag__Warray_bounds
17594 if eval \${$cacheid+:} false; then :
17595 $as_echo_n "(cached) " >&6
17596 else
17597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17598 /* end confdefs.h. */
17599 int i;
17600 int
17601 main ()
17602 {
17603
17604 ;
17605 return 0;
17606 }
17607 _ACEOF
17608 if ac_fn_c_try_link "$LINENO"; then :
17609 eval $cacheid=yes
17610 else
17611 eval $cacheid=no
17612 fi
17613 rm -f core conftest.err conftest.$ac_objext \
17614 conftest$ac_exeext conftest.$ac_ext
17615 fi
17616
17617
17618 CFLAGS="$xorg_testset_save_CFLAGS"
17619
17620 eval supported=\$$cacheid
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17622 $as_echo "$supported" >&6; }
17623 if test "$supported" = "yes" ; then
17624 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17625 found="yes"
17626 fi
17627 fi
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643 xorg_testset_save_CFLAGS="$CFLAGS"
17644
17645 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17646 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17648 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17649 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17650 $as_echo_n "(cached) " >&6
17651 else
17652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17653 /* end confdefs.h. */
17654 int i;
17655 _ACEOF
17656 if ac_fn_c_try_compile "$LINENO"; then :
17657 xorg_cv_cc_flag_unknown_warning_option=yes
17658 else
17659 xorg_cv_cc_flag_unknown_warning_option=no
17660 fi
17661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17662 fi
17663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17664 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17665 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17666 CFLAGS="$xorg_testset_save_CFLAGS"
17667 fi
17668
17669 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17670 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17671 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17672 fi
17673 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17675 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17676 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17677 $as_echo_n "(cached) " >&6
17678 else
17679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17680 /* end confdefs.h. */
17681 int i;
17682 _ACEOF
17683 if ac_fn_c_try_compile "$LINENO"; then :
17684 xorg_cv_cc_flag_unused_command_line_argument=yes
17685 else
17686 xorg_cv_cc_flag_unused_command_line_argument=no
17687 fi
17688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17689 fi
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17691 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17692 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17693 CFLAGS="$xorg_testset_save_CFLAGS"
17694 fi
17695
17696 found="no"
17697
17698 if test $found = "no" ; then
17699 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17700 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17701 fi
17702
17703 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17705 fi
17706
17707 CFLAGS="$CFLAGS -Wwrite-strings"
17708
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17710 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17711 cacheid=xorg_cv_cc_flag__Wwrite_strings
17712 if eval \${$cacheid+:} false; then :
17713 $as_echo_n "(cached) " >&6
17714 else
17715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17716 /* end confdefs.h. */
17717 int i;
17718 int
17719 main ()
17720 {
17721
17722 ;
17723 return 0;
17724 }
17725 _ACEOF
17726 if ac_fn_c_try_link "$LINENO"; then :
17727 eval $cacheid=yes
17728 else
17729 eval $cacheid=no
17730 fi
17731 rm -f core conftest.err conftest.$ac_objext \
17732 conftest$ac_exeext conftest.$ac_ext
17733 fi
17734
17735
17736 CFLAGS="$xorg_testset_save_CFLAGS"
17737
17738 eval supported=\$$cacheid
17739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17740 $as_echo "$supported" >&6; }
17741 if test "$supported" = "yes" ; then
17742 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17743 found="yes"
17744 fi
17745 fi
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761 xorg_testset_save_CFLAGS="$CFLAGS"
17762
17763 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17764 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17766 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17767 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17768 $as_echo_n "(cached) " >&6
17769 else
17770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17771 /* end confdefs.h. */
17772 int i;
17773 _ACEOF
17774 if ac_fn_c_try_compile "$LINENO"; then :
17775 xorg_cv_cc_flag_unknown_warning_option=yes
17776 else
17777 xorg_cv_cc_flag_unknown_warning_option=no
17778 fi
17779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17780 fi
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17782 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17783 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17784 CFLAGS="$xorg_testset_save_CFLAGS"
17785 fi
17786
17787 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17788 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17789 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17790 fi
17791 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17793 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17794 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17795 $as_echo_n "(cached) " >&6
17796 else
17797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17798 /* end confdefs.h. */
17799 int i;
17800 _ACEOF
17801 if ac_fn_c_try_compile "$LINENO"; then :
17802 xorg_cv_cc_flag_unused_command_line_argument=yes
17803 else
17804 xorg_cv_cc_flag_unused_command_line_argument=no
17805 fi
17806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17807 fi
17808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17809 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17810 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17811 CFLAGS="$xorg_testset_save_CFLAGS"
17812 fi
17813
17814 found="no"
17815
17816 if test $found = "no" ; then
17817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17818 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17819 fi
17820
17821 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17823 fi
17824
17825 CFLAGS="$CFLAGS -Waddress"
17826
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17828 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
17829 cacheid=xorg_cv_cc_flag__Waddress
17830 if eval \${$cacheid+:} false; then :
17831 $as_echo_n "(cached) " >&6
17832 else
17833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17834 /* end confdefs.h. */
17835 int i;
17836 int
17837 main ()
17838 {
17839
17840 ;
17841 return 0;
17842 }
17843 _ACEOF
17844 if ac_fn_c_try_link "$LINENO"; then :
17845 eval $cacheid=yes
17846 else
17847 eval $cacheid=no
17848 fi
17849 rm -f core conftest.err conftest.$ac_objext \
17850 conftest$ac_exeext conftest.$ac_ext
17851 fi
17852
17853
17854 CFLAGS="$xorg_testset_save_CFLAGS"
17855
17856 eval supported=\$$cacheid
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17858 $as_echo "$supported" >&6; }
17859 if test "$supported" = "yes" ; then
17860 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17861 found="yes"
17862 fi
17863 fi
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879 xorg_testset_save_CFLAGS="$CFLAGS"
17880
17881 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17882 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17884 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17885 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17886 $as_echo_n "(cached) " >&6
17887 else
17888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17889 /* end confdefs.h. */
17890 int i;
17891 _ACEOF
17892 if ac_fn_c_try_compile "$LINENO"; then :
17893 xorg_cv_cc_flag_unknown_warning_option=yes
17894 else
17895 xorg_cv_cc_flag_unknown_warning_option=no
17896 fi
17897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17898 fi
17899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17900 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17901 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17902 CFLAGS="$xorg_testset_save_CFLAGS"
17903 fi
17904
17905 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17907 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17908 fi
17909 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17911 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17912 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17913 $as_echo_n "(cached) " >&6
17914 else
17915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17916 /* end confdefs.h. */
17917 int i;
17918 _ACEOF
17919 if ac_fn_c_try_compile "$LINENO"; then :
17920 xorg_cv_cc_flag_unused_command_line_argument=yes
17921 else
17922 xorg_cv_cc_flag_unused_command_line_argument=no
17923 fi
17924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17925 fi
17926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17927 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17928 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17929 CFLAGS="$xorg_testset_save_CFLAGS"
17930 fi
17931
17932 found="no"
17933
17934 if test $found = "no" ; then
17935 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17936 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17937 fi
17938
17939 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17941 fi
17942
17943 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17944
17945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17946 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17947 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17948 if eval \${$cacheid+:} false; then :
17949 $as_echo_n "(cached) " >&6
17950 else
17951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17952 /* end confdefs.h. */
17953 int i;
17954 int
17955 main ()
17956 {
17957
17958 ;
17959 return 0;
17960 }
17961 _ACEOF
17962 if ac_fn_c_try_link "$LINENO"; then :
17963 eval $cacheid=yes
17964 else
17965 eval $cacheid=no
17966 fi
17967 rm -f core conftest.err conftest.$ac_objext \
17968 conftest$ac_exeext conftest.$ac_ext
17969 fi
17970
17971
17972 CFLAGS="$xorg_testset_save_CFLAGS"
17973
17974 eval supported=\$$cacheid
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17976 $as_echo "$supported" >&6; }
17977 if test "$supported" = "yes" ; then
17978 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17979 found="yes"
17980 fi
17981 fi
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997 xorg_testset_save_CFLAGS="$CFLAGS"
17998
17999 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18000 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18002 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18003 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18004 $as_echo_n "(cached) " >&6
18005 else
18006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18007 /* end confdefs.h. */
18008 int i;
18009 _ACEOF
18010 if ac_fn_c_try_compile "$LINENO"; then :
18011 xorg_cv_cc_flag_unknown_warning_option=yes
18012 else
18013 xorg_cv_cc_flag_unknown_warning_option=no
18014 fi
18015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18016 fi
18017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18018 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18019 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18020 CFLAGS="$xorg_testset_save_CFLAGS"
18021 fi
18022
18023 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18025 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18026 fi
18027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18029 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18030 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18031 $as_echo_n "(cached) " >&6
18032 else
18033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18034 /* end confdefs.h. */
18035 int i;
18036 _ACEOF
18037 if ac_fn_c_try_compile "$LINENO"; then :
18038 xorg_cv_cc_flag_unused_command_line_argument=yes
18039 else
18040 xorg_cv_cc_flag_unused_command_line_argument=no
18041 fi
18042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18043 fi
18044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18045 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18046 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18047 CFLAGS="$xorg_testset_save_CFLAGS"
18048 fi
18049
18050 found="no"
18051
18052 if test $found = "no" ; then
18053 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18054 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18055 fi
18056
18057 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18059 fi
18060
18061 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18062
18063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18064 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18065 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18066 if eval \${$cacheid+:} false; then :
18067 $as_echo_n "(cached) " >&6
18068 else
18069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18070 /* end confdefs.h. */
18071 int i;
18072 int
18073 main ()
18074 {
18075
18076 ;
18077 return 0;
18078 }
18079 _ACEOF
18080 if ac_fn_c_try_link "$LINENO"; then :
18081 eval $cacheid=yes
18082 else
18083 eval $cacheid=no
18084 fi
18085 rm -f core conftest.err conftest.$ac_objext \
18086 conftest$ac_exeext conftest.$ac_ext
18087 fi
18088
18089
18090 CFLAGS="$xorg_testset_save_CFLAGS"
18091
18092 eval supported=\$$cacheid
18093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18094 $as_echo "$supported" >&6; }
18095 if test "$supported" = "yes" ; then
18096 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18097 found="yes"
18098 fi
18099 fi
18100
18101
18102 fi
18103
18104
18105
18106
18107
18108
18109
18110 CWARNFLAGS="$BASE_CFLAGS"
18111 if test "x$GCC" = xyes ; then
18112 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18113 fi
18114
18115
18116
18117
18118
18119
18120
18121
18122 # Check whether --enable-strict-compilation was given.
18123 if test "${enable_strict_compilation+set}" = set; then :
18124 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18125 else
18126 STRICT_COMPILE=no
18127 fi
18128
18129
18130
18131
18132
18133
18134 STRICT_CFLAGS=""
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148 xorg_testset_save_CFLAGS="$CFLAGS"
18149
18150 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18151 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18153 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18154 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18155 $as_echo_n "(cached) " >&6
18156 else
18157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18158 /* end confdefs.h. */
18159 int i;
18160 _ACEOF
18161 if ac_fn_c_try_compile "$LINENO"; then :
18162 xorg_cv_cc_flag_unknown_warning_option=yes
18163 else
18164 xorg_cv_cc_flag_unknown_warning_option=no
18165 fi
18166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18167 fi
18168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18169 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18170 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18171 CFLAGS="$xorg_testset_save_CFLAGS"
18172 fi
18173
18174 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18176 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18177 fi
18178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18180 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18181 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18182 $as_echo_n "(cached) " >&6
18183 else
18184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18185 /* end confdefs.h. */
18186 int i;
18187 _ACEOF
18188 if ac_fn_c_try_compile "$LINENO"; then :
18189 xorg_cv_cc_flag_unused_command_line_argument=yes
18190 else
18191 xorg_cv_cc_flag_unused_command_line_argument=no
18192 fi
18193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18194 fi
18195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18196 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18197 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18198 CFLAGS="$xorg_testset_save_CFLAGS"
18199 fi
18200
18201 found="no"
18202
18203 if test $found = "no" ; then
18204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18205 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18206 fi
18207
18208 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18210 fi
18211
18212 CFLAGS="$CFLAGS -pedantic"
18213
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18215 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
18216 cacheid=xorg_cv_cc_flag__pedantic
18217 if eval \${$cacheid+:} false; then :
18218 $as_echo_n "(cached) " >&6
18219 else
18220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18221 /* end confdefs.h. */
18222 int i;
18223 int
18224 main ()
18225 {
18226
18227 ;
18228 return 0;
18229 }
18230 _ACEOF
18231 if ac_fn_c_try_link "$LINENO"; then :
18232 eval $cacheid=yes
18233 else
18234 eval $cacheid=no
18235 fi
18236 rm -f core conftest.err conftest.$ac_objext \
18237 conftest$ac_exeext conftest.$ac_ext
18238 fi
18239
18240
18241 CFLAGS="$xorg_testset_save_CFLAGS"
18242
18243 eval supported=\$$cacheid
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18245 $as_echo "$supported" >&6; }
18246 if test "$supported" = "yes" ; then
18247 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18248 found="yes"
18249 fi
18250 fi
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266 xorg_testset_save_CFLAGS="$CFLAGS"
18267
18268 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18269 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18271 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18272 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18273 $as_echo_n "(cached) " >&6
18274 else
18275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18276 /* end confdefs.h. */
18277 int i;
18278 _ACEOF
18279 if ac_fn_c_try_compile "$LINENO"; then :
18280 xorg_cv_cc_flag_unknown_warning_option=yes
18281 else
18282 xorg_cv_cc_flag_unknown_warning_option=no
18283 fi
18284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18285 fi
18286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18287 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18288 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18289 CFLAGS="$xorg_testset_save_CFLAGS"
18290 fi
18291
18292 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18294 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18295 fi
18296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18298 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18299 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18300 $as_echo_n "(cached) " >&6
18301 else
18302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18303 /* end confdefs.h. */
18304 int i;
18305 _ACEOF
18306 if ac_fn_c_try_compile "$LINENO"; then :
18307 xorg_cv_cc_flag_unused_command_line_argument=yes
18308 else
18309 xorg_cv_cc_flag_unused_command_line_argument=no
18310 fi
18311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18312 fi
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18314 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18315 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18316 CFLAGS="$xorg_testset_save_CFLAGS"
18317 fi
18318
18319 found="no"
18320
18321 if test $found = "no" ; then
18322 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18323 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18324 fi
18325
18326 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18328 fi
18329
18330 CFLAGS="$CFLAGS -Werror"
18331
18332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18333 $as_echo_n "checking if $CC supports -Werror... " >&6; }
18334 cacheid=xorg_cv_cc_flag__Werror
18335 if eval \${$cacheid+:} false; then :
18336 $as_echo_n "(cached) " >&6
18337 else
18338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18339 /* end confdefs.h. */
18340 int i;
18341 int
18342 main ()
18343 {
18344
18345 ;
18346 return 0;
18347 }
18348 _ACEOF
18349 if ac_fn_c_try_link "$LINENO"; then :
18350 eval $cacheid=yes
18351 else
18352 eval $cacheid=no
18353 fi
18354 rm -f core conftest.err conftest.$ac_objext \
18355 conftest$ac_exeext conftest.$ac_ext
18356 fi
18357
18358
18359 CFLAGS="$xorg_testset_save_CFLAGS"
18360
18361 eval supported=\$$cacheid
18362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18363 $as_echo "$supported" >&6; }
18364 if test "$supported" = "yes" ; then
18365 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18366 found="yes"
18367 fi
18368 fi
18369
18370 if test $found = "no" ; then
18371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18372 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18373 fi
18374
18375 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18377 fi
18378
18379 CFLAGS="$CFLAGS -errwarn"
18380
18381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18382 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
18383 cacheid=xorg_cv_cc_flag__errwarn
18384 if eval \${$cacheid+:} false; then :
18385 $as_echo_n "(cached) " >&6
18386 else
18387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18388 /* end confdefs.h. */
18389 int i;
18390 int
18391 main ()
18392 {
18393
18394 ;
18395 return 0;
18396 }
18397 _ACEOF
18398 if ac_fn_c_try_link "$LINENO"; then :
18399 eval $cacheid=yes
18400 else
18401 eval $cacheid=no
18402 fi
18403 rm -f core conftest.err conftest.$ac_objext \
18404 conftest$ac_exeext conftest.$ac_ext
18405 fi
18406
18407
18408 CFLAGS="$xorg_testset_save_CFLAGS"
18409
18410 eval supported=\$$cacheid
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18412 $as_echo "$supported" >&6; }
18413 if test "$supported" = "yes" ; then
18414 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18415 found="yes"
18416 fi
18417 fi
18418
18419
18420
18421 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18422 # activate it with -Werror, so we add it here explicitly.
18423
18424
18425
18426
18427
18428
18429
18430
18431
18432
18433
18434
18435
18436 xorg_testset_save_CFLAGS="$CFLAGS"
18437
18438 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18439 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18441 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18442 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18443 $as_echo_n "(cached) " >&6
18444 else
18445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18446 /* end confdefs.h. */
18447 int i;
18448 _ACEOF
18449 if ac_fn_c_try_compile "$LINENO"; then :
18450 xorg_cv_cc_flag_unknown_warning_option=yes
18451 else
18452 xorg_cv_cc_flag_unknown_warning_option=no
18453 fi
18454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18455 fi
18456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18457 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18458 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18459 CFLAGS="$xorg_testset_save_CFLAGS"
18460 fi
18461
18462 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18464 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18465 fi
18466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18468 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18469 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18470 $as_echo_n "(cached) " >&6
18471 else
18472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18473 /* end confdefs.h. */
18474 int i;
18475 _ACEOF
18476 if ac_fn_c_try_compile "$LINENO"; then :
18477 xorg_cv_cc_flag_unused_command_line_argument=yes
18478 else
18479 xorg_cv_cc_flag_unused_command_line_argument=no
18480 fi
18481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18482 fi
18483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18484 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18485 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18486 CFLAGS="$xorg_testset_save_CFLAGS"
18487 fi
18488
18489 found="no"
18490
18491 if test $found = "no" ; then
18492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18493 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18494 fi
18495
18496 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18498 fi
18499
18500 CFLAGS="$CFLAGS -Werror=attributes"
18501
18502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18503 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
18504 cacheid=xorg_cv_cc_flag__Werror_attributes
18505 if eval \${$cacheid+:} false; then :
18506 $as_echo_n "(cached) " >&6
18507 else
18508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18509 /* end confdefs.h. */
18510 int i;
18511 int
18512 main ()
18513 {
18514
18515 ;
18516 return 0;
18517 }
18518 _ACEOF
18519 if ac_fn_c_try_link "$LINENO"; then :
18520 eval $cacheid=yes
18521 else
18522 eval $cacheid=no
18523 fi
18524 rm -f core conftest.err conftest.$ac_objext \
18525 conftest$ac_exeext conftest.$ac_ext
18526 fi
18527
18528
18529 CFLAGS="$xorg_testset_save_CFLAGS"
18530
18531 eval supported=\$$cacheid
18532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18533 $as_echo "$supported" >&6; }
18534 if test "$supported" = "yes" ; then
18535 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18536 found="yes"
18537 fi
18538 fi
18539
18540
18541
18542 if test "x$STRICT_COMPILE" = "xyes"; then
18543 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18544 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18545 fi
18546
18547
18548
18549
18550
18551
18552 cat >>confdefs.h <<_ACEOF
18553 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18554 _ACEOF
18555
18556 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18557 if test "x$PVM" = "x"; then
18558 PVM="0"
18559 fi
18560
18561 cat >>confdefs.h <<_ACEOF
18562 #define PACKAGE_VERSION_MINOR $PVM
18563 _ACEOF
18564
18565 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18566 if test "x$PVP" = "x"; then
18567 PVP="0"
18568 fi
18569
18570 cat >>confdefs.h <<_ACEOF
18571 #define PACKAGE_VERSION_PATCHLEVEL $PVP
18572 _ACEOF
18573
18574
18575
18576 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
18577 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
18578 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
18579 echo 'git directory not found: installing possibly empty changelog.' >&2)"
18580
18581
18582
18583
18584 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
18585 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
18586 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18587 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
18588 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
18589
18590
18591
18592
18593
18594
18595 if test x$APP_MAN_SUFFIX = x ; then
18596 APP_MAN_SUFFIX=1
18597 fi
18598 if test x$APP_MAN_DIR = x ; then
18599 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18600 fi
18601
18602 if test x$LIB_MAN_SUFFIX = x ; then
18603 LIB_MAN_SUFFIX=3
18604 fi
18605 if test x$LIB_MAN_DIR = x ; then
18606 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18607 fi
18608
18609 if test x$FILE_MAN_SUFFIX = x ; then
18610 case $host_os in
18611 solaris*) FILE_MAN_SUFFIX=4 ;;
18612 *) FILE_MAN_SUFFIX=5 ;;
18613 esac
18614 fi
18615 if test x$FILE_MAN_DIR = x ; then
18616 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18617 fi
18618
18619 if test x$MISC_MAN_SUFFIX = x ; then
18620 case $host_os in
18621 solaris*) MISC_MAN_SUFFIX=5 ;;
18622 *) MISC_MAN_SUFFIX=7 ;;
18623 esac
18624 fi
18625 if test x$MISC_MAN_DIR = x ; then
18626 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18627 fi
18628
18629 if test x$DRIVER_MAN_SUFFIX = x ; then
18630 case $host_os in
18631 solaris*) DRIVER_MAN_SUFFIX=7 ;;
18632 *) DRIVER_MAN_SUFFIX=4 ;;
18633 esac
18634 fi
18635 if test x$DRIVER_MAN_DIR = x ; then
18636 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18637 fi
18638
18639 if test x$ADMIN_MAN_SUFFIX = x ; then
18640 case $host_os in
18641 solaris*) ADMIN_MAN_SUFFIX=1m ;;
18642 *) ADMIN_MAN_SUFFIX=8 ;;
18643 esac
18644 fi
18645 if test x$ADMIN_MAN_DIR = x ; then
18646 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18647 fi
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663 XORG_MAN_PAGE="X Version 11"
18664
18665 MAN_SUBSTS="\
18666 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18667 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18668 -e 's|__xservername__|Xorg|g' \
18669 -e 's|__xconfigfile__|xorg.conf|g' \
18670 -e 's|__projectroot__|\$(prefix)|g' \
18671 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
18672 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18673 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18674 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18675 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18676 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18677 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18678
18679
18680
18681 # Check whether --enable-silent-rules was given.
18682 if test "${enable_silent_rules+set}" = set; then :
18683 enableval=$enable_silent_rules;
18684 fi
18685
18686 case $enable_silent_rules in # (((
18687 yes) AM_DEFAULT_VERBOSITY=0;;
18688 no) AM_DEFAULT_VERBOSITY=1;;
18689 *) AM_DEFAULT_VERBOSITY=0;;
18690 esac
18691 am_make=${MAKE-make}
18692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18693 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18694 if ${am_cv_make_support_nested_variables+:} false; then :
18695 $as_echo_n "(cached) " >&6
18696 else
18697 if $as_echo 'TRUE=$(BAR$(V))
18698 BAR0=false
18699 BAR1=true
18700 V=1
18701 am__doit:
18702 @$(TRUE)
18703 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18704 am_cv_make_support_nested_variables=yes
18705 else
18706 am_cv_make_support_nested_variables=no
18707 fi
18708 fi
18709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18710 $as_echo "$am_cv_make_support_nested_variables" >&6; }
18711 if test $am_cv_make_support_nested_variables = yes; then
18712 AM_V='$(V)'
18713 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18714 else
18715 AM_V=$AM_DEFAULT_VERBOSITY
18716 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18717 fi
18718 AM_BACKSLASH='\'
18719
18720
18721
18722
18723 # Check whether --enable-devel-docs was given.
18724 if test "${enable_devel_docs+set}" = set; then :
18725 enableval=$enable_devel_docs; build_devel_docs=$enableval
18726 else
18727 build_devel_docs=yes
18728 fi
18729
18730
18731 if test x$build_devel_docs = xyes; then
18732 ENABLE_DEVEL_DOCS_TRUE=
18733 ENABLE_DEVEL_DOCS_FALSE='#'
18734 else
18735 ENABLE_DEVEL_DOCS_TRUE='#'
18736 ENABLE_DEVEL_DOCS_FALSE=
18737 fi
18738
18739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5
18740 $as_echo_n "checking whether to build developer documentation... " >&6; }
18741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5
18742 $as_echo "$build_devel_docs" >&6; }
18743
18744
18745
18746
18747
18748
18749 # Check whether --with-doxygen was given.
18750 if test "${with_doxygen+set}" = set; then :
18751 withval=$with_doxygen; use_doxygen=$withval
18752 else
18753 use_doxygen=auto
18754 fi
18755
18756
18757
18758 if test "x$use_doxygen" = x"auto"; then
18759 # Extract the first word of "doxygen", so it can be a program name with args.
18760 set dummy doxygen; ac_word=$2
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18762 $as_echo_n "checking for $ac_word... " >&6; }
18763 if ${ac_cv_path_DOXYGEN+:} false; then :
18764 $as_echo_n "(cached) " >&6
18765 else
18766 case $DOXYGEN in
18767 [\\/]* | ?:[\\/]*)
18768 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
18769 ;;
18770 *)
18771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18772 for as_dir in $PATH
18773 do
18774 IFS=$as_save_IFS
18775 test -z "$as_dir" && as_dir=.
18776 for ac_exec_ext in '' $ac_executable_extensions; do
18777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18778 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
18779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18780 break 2
18781 fi
18782 done
18783 done
18784 IFS=$as_save_IFS
18785
18786 ;;
18787 esac
18788 fi
18789 DOXYGEN=$ac_cv_path_DOXYGEN
18790 if test -n "$DOXYGEN"; then
18791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
18792 $as_echo "$DOXYGEN" >&6; }
18793 else
18794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18795 $as_echo "no" >&6; }
18796 fi
18797
18798
18799 if test "x$DOXYGEN" = "x"; then
18800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - documentation targets will be skipped" >&5
18801 $as_echo "$as_me: WARNING: doxygen not found - documentation targets will be skipped" >&2;}
18802 have_doxygen=no
18803 else
18804 have_doxygen=yes
18805 fi
18806 elif test "x$use_doxygen" = x"yes" ; then
18807 # Extract the first word of "doxygen", so it can be a program name with args.
18808 set dummy doxygen; ac_word=$2
18809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18810 $as_echo_n "checking for $ac_word... " >&6; }
18811 if ${ac_cv_path_DOXYGEN+:} false; then :
18812 $as_echo_n "(cached) " >&6
18813 else
18814 case $DOXYGEN in
18815 [\\/]* | ?:[\\/]*)
18816 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
18817 ;;
18818 *)
18819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18820 for as_dir in $PATH
18821 do
18822 IFS=$as_save_IFS
18823 test -z "$as_dir" && as_dir=.
18824 for ac_exec_ext in '' $ac_executable_extensions; do
18825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18826 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
18827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18828 break 2
18829 fi
18830 done
18831 done
18832 IFS=$as_save_IFS
18833
18834 ;;
18835 esac
18836 fi
18837 DOXYGEN=$ac_cv_path_DOXYGEN
18838 if test -n "$DOXYGEN"; then
18839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
18840 $as_echo "$DOXYGEN" >&6; }
18841 else
18842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18843 $as_echo "no" >&6; }
18844 fi
18845
18846
18847 if test "x$DOXYGEN" = "x"; then
18848 as_fn_error $? "--with-doxygen=yes specified but doxygen not found in PATH" "$LINENO" 5
18849 fi
18850 have_doxygen=yes
18851 elif test "x$use_doxygen" = x"no" ; then
18852 if test "x$DOXYGEN" != "x"; then
18853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&5
18854 $as_echo "$as_me: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&2;}
18855 fi
18856 have_doxygen=no
18857 else
18858 as_fn_error $? "--with-doxygen expects 'yes' or 'no'" "$LINENO" 5
18859 fi
18860
18861
18862 HAVE_DOT=no
18863 if test "x$have_doxygen" = "xyes"; then
18864 # Extract the first word of "dot", so it can be a program name with args.
18865 set dummy dot; ac_word=$2
18866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18867 $as_echo_n "checking for $ac_word... " >&6; }
18868 if ${ac_cv_path_DOT+:} false; then :
18869 $as_echo_n "(cached) " >&6
18870 else
18871 case $DOT in
18872 [\\/]* | ?:[\\/]*)
18873 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18874 ;;
18875 *)
18876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18877 for as_dir in $PATH
18878 do
18879 IFS=$as_save_IFS
18880 test -z "$as_dir" && as_dir=.
18881 for ac_exec_ext in '' $ac_executable_extensions; do
18882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18883 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18885 break 2
18886 fi
18887 done
18888 done
18889 IFS=$as_save_IFS
18890
18891 ;;
18892 esac
18893 fi
18894 DOT=$ac_cv_path_DOT
18895 if test -n "$DOT"; then
18896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
18897 $as_echo "$DOT" >&6; }
18898 else
18899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18900 $as_echo "no" >&6; }
18901 fi
18902
18903
18904 if test "x$DOT" != "x"; then
18905 HAVE_DOT=yes
18906 fi
18907 fi
18908
18909
18910 if test "$HAVE_DOT" = "yes"; then
18911 HAVE_DOT_TRUE=
18912 HAVE_DOT_FALSE='#'
18913 else
18914 HAVE_DOT_TRUE='#'
18915 HAVE_DOT_FALSE=
18916 fi
18917
18918 if test "$have_doxygen" = yes; then
18919 HAVE_DOXYGEN_TRUE=
18920 HAVE_DOXYGEN_FALSE='#'
18921 else
18922 HAVE_DOXYGEN_TRUE='#'
18923 HAVE_DOXYGEN_FALSE=
18924 fi
18925
18926
18927
18928 # The dot drawing tool is checked by XORG_WITH_DOXYGEN, needed for xcb manual
18929 if test x"$HAVE_DOT" = xno; then
18930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - doxygen targets will be skipped" >&5
18931 $as_echo "$as_me: WARNING: dot not found - doxygen targets will be skipped" >&2;}
18932 fi
18933
18934
18935 pkg_failed=no
18936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
18937 $as_echo_n "checking for CHECK... " >&6; }
18938
18939 if test -n "$CHECK_CFLAGS"; then
18940 pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
18941 elif test -n "$PKG_CONFIG"; then
18942 if test -n "$PKG_CONFIG" && \
18943 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
18944 ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
18945 ac_status=$?
18946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18947 test $ac_status = 0; }; then
18948 pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null`
18949 test "x$?" != "x0" && pkg_failed=yes
18950 else
18951 pkg_failed=yes
18952 fi
18953 else
18954 pkg_failed=untried
18955 fi
18956 if test -n "$CHECK_LIBS"; then
18957 pkg_cv_CHECK_LIBS="$CHECK_LIBS"
18958 elif test -n "$PKG_CONFIG"; then
18959 if test -n "$PKG_CONFIG" && \
18960 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
18961 ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
18962 ac_status=$?
18963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18964 test $ac_status = 0; }; then
18965 pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null`
18966 test "x$?" != "x0" && pkg_failed=yes
18967 else
18968 pkg_failed=yes
18969 fi
18970 else
18971 pkg_failed=untried
18972 fi
18973
18974
18975
18976 if test $pkg_failed = yes; then
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18978 $as_echo "no" >&6; }
18979
18980 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18981 _pkg_short_errors_supported=yes
18982 else
18983 _pkg_short_errors_supported=no
18984 fi
18985 if test $_pkg_short_errors_supported = yes; then
18986 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
18987 else
18988 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
18989 fi
18990 # Put the nasty error message in config.log where it belongs
18991 echo "$CHECK_PKG_ERRORS" >&5
18992
18993 HAVE_CHECK=no
18994 elif test $pkg_failed = untried; then
18995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18996 $as_echo "no" >&6; }
18997 HAVE_CHECK=no
18998 else
18999 CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
19000 CHECK_LIBS=$pkg_cv_CHECK_LIBS
19001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19002 $as_echo "yes" >&6; }
19003 HAVE_CHECK=yes
19004 fi
19005 if test x$HAVE_CHECK = xyes; then
19006 HAVE_CHECK_TRUE=
19007 HAVE_CHECK_FALSE='#'
19008 else
19009 HAVE_CHECK_TRUE='#'
19010 HAVE_CHECK_FALSE=
19011 fi
19012
19013
19014 XSLTPROC=no
19015 HTML_CHECK_RESULT=no
19016 if test x"$HAVE_CHECK" = xyes; then
19017 # Extract the first word of "xsltproc", so it can be a program name with args.
19018 set dummy xsltproc; ac_word=$2
19019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19020 $as_echo_n "checking for $ac_word... " >&6; }
19021 if ${ac_cv_path_XSLTPROC+:} false; then :
19022 $as_echo_n "(cached) " >&6
19023 else
19024 case $XSLTPROC in
19025 [\\/]* | ?:[\\/]*)
19026 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
19027 ;;
19028 *)
19029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19030 for as_dir in $PATH
19031 do
19032 IFS=$as_save_IFS
19033 test -z "$as_dir" && as_dir=.
19034 for ac_exec_ext in '' $ac_executable_extensions; do
19035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19036 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
19037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19038 break 2
19039 fi
19040 done
19041 done
19042 IFS=$as_save_IFS
19043
19044 test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="no"
19045 ;;
19046 esac
19047 fi
19048 XSLTPROC=$ac_cv_path_XSLTPROC
19049 if test -n "$XSLTPROC"; then
19050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19051 $as_echo "$XSLTPROC" >&6; }
19052 else
19053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19054 $as_echo "no" >&6; }
19055 fi
19056
19057
19058 if test x"$XSLTPROC" != xno; then
19059 HTML_CHECK_RESULT=yes
19060 fi
19061 fi
19062
19063
19064 # Checks for pkg-config packages
19065
19066 pkg_failed=no
19067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCBPROTO" >&5
19068 $as_echo_n "checking for XCBPROTO... " >&6; }
19069
19070 if test -n "$XCBPROTO_CFLAGS"; then
19071 pkg_cv_XCBPROTO_CFLAGS="$XCBPROTO_CFLAGS"
19072 elif test -n "$PKG_CONFIG"; then
19073 if test -n "$PKG_CONFIG" && \
19074 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-proto >= 1.11\""; } >&5
19075 ($PKG_CONFIG --exists --print-errors "xcb-proto >= 1.11") 2>&5
19076 ac_status=$?
19077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19078 test $ac_status = 0; }; then
19079 pkg_cv_XCBPROTO_CFLAGS=`$PKG_CONFIG --cflags "xcb-proto >= 1.11" 2>/dev/null`
19080 test "x$?" != "x0" && pkg_failed=yes
19081 else
19082 pkg_failed=yes
19083 fi
19084 else
19085 pkg_failed=untried
19086 fi
19087 if test -n "$XCBPROTO_LIBS"; then
19088 pkg_cv_XCBPROTO_LIBS="$XCBPROTO_LIBS"
19089 elif test -n "$PKG_CONFIG"; then
19090 if test -n "$PKG_CONFIG" && \
19091 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-proto >= 1.11\""; } >&5
19092 ($PKG_CONFIG --exists --print-errors "xcb-proto >= 1.11") 2>&5
19093 ac_status=$?
19094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19095 test $ac_status = 0; }; then
19096 pkg_cv_XCBPROTO_LIBS=`$PKG_CONFIG --libs "xcb-proto >= 1.11" 2>/dev/null`
19097 test "x$?" != "x0" && pkg_failed=yes
19098 else
19099 pkg_failed=yes
19100 fi
19101 else
19102 pkg_failed=untried
19103 fi
19104
19105
19106
19107 if test $pkg_failed = yes; then
19108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19109 $as_echo "no" >&6; }
19110
19111 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19112 _pkg_short_errors_supported=yes
19113 else
19114 _pkg_short_errors_supported=no
19115 fi
19116 if test $_pkg_short_errors_supported = yes; then
19117 XCBPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb-proto >= 1.11" 2>&1`
19118 else
19119 XCBPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb-proto >= 1.11" 2>&1`
19120 fi
19121 # Put the nasty error message in config.log where it belongs
19122 echo "$XCBPROTO_PKG_ERRORS" >&5
19123
19124 as_fn_error $? "Package requirements (xcb-proto >= 1.11) were not met:
19125
19126 $XCBPROTO_PKG_ERRORS
19127
19128 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19129 installed software in a non-standard prefix.
19130
19131 Alternatively, you may set the environment variables XCBPROTO_CFLAGS
19132 and XCBPROTO_LIBS to avoid the need to call pkg-config.
19133 See the pkg-config man page for more details." "$LINENO" 5
19134 elif test $pkg_failed = untried; then
19135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19136 $as_echo "no" >&6; }
19137 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19138 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19139 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19140 is in your PATH or set the PKG_CONFIG environment variable to the full
19141 path to pkg-config.
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.
19146
19147 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19148 See \`config.log' for more details" "$LINENO" 5; }
19149 else
19150 XCBPROTO_CFLAGS=$pkg_cv_XCBPROTO_CFLAGS
19151 XCBPROTO_LIBS=$pkg_cv_XCBPROTO_LIBS
19152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19153 $as_echo "yes" >&6; }
19154
19155 fi
19156 NEEDED="pthread-stubs xau >= 0.99.2"
19157
19158 pkg_failed=no
19159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NEEDED" >&5
19160 $as_echo_n "checking for NEEDED... " >&6; }
19161
19162 if test -n "$NEEDED_CFLAGS"; then
19163 pkg_cv_NEEDED_CFLAGS="$NEEDED_CFLAGS"
19164 elif test -n "$PKG_CONFIG"; then
19165 if test -n "$PKG_CONFIG" && \
19166 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$NEEDED\""; } >&5
19167 ($PKG_CONFIG --exists --print-errors "$NEEDED") 2>&5
19168 ac_status=$?
19169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19170 test $ac_status = 0; }; then
19171 pkg_cv_NEEDED_CFLAGS=`$PKG_CONFIG --cflags "$NEEDED" 2>/dev/null`
19172 test "x$?" != "x0" && pkg_failed=yes
19173 else
19174 pkg_failed=yes
19175 fi
19176 else
19177 pkg_failed=untried
19178 fi
19179 if test -n "$NEEDED_LIBS"; then
19180 pkg_cv_NEEDED_LIBS="$NEEDED_LIBS"
19181 elif test -n "$PKG_CONFIG"; then
19182 if test -n "$PKG_CONFIG" && \
19183 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$NEEDED\""; } >&5
19184 ($PKG_CONFIG --exists --print-errors "$NEEDED") 2>&5
19185 ac_status=$?
19186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19187 test $ac_status = 0; }; then
19188 pkg_cv_NEEDED_LIBS=`$PKG_CONFIG --libs "$NEEDED" 2>/dev/null`
19189 test "x$?" != "x0" && pkg_failed=yes
19190 else
19191 pkg_failed=yes
19192 fi
19193 else
19194 pkg_failed=untried
19195 fi
19196
19197
19198
19199 if test $pkg_failed = yes; then
19200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19201 $as_echo "no" >&6; }
19202
19203 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19204 _pkg_short_errors_supported=yes
19205 else
19206 _pkg_short_errors_supported=no
19207 fi
19208 if test $_pkg_short_errors_supported = yes; then
19209 NEEDED_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$NEEDED" 2>&1`
19210 else
19211 NEEDED_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$NEEDED" 2>&1`
19212 fi
19213 # Put the nasty error message in config.log where it belongs
19214 echo "$NEEDED_PKG_ERRORS" >&5
19215
19216 as_fn_error $? "Package requirements ($NEEDED) were not met:
19217
19218 $NEEDED_PKG_ERRORS
19219
19220 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19221 installed software in a non-standard prefix.
19222
19223 Alternatively, you may set the environment variables NEEDED_CFLAGS
19224 and NEEDED_LIBS to avoid the need to call pkg-config.
19225 See the pkg-config man page for more details." "$LINENO" 5
19226 elif test $pkg_failed = untried; then
19227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19228 $as_echo "no" >&6; }
19229 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19231 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19232 is in your PATH or set the PKG_CONFIG environment variable to the full
19233 path to pkg-config.
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.
19238
19239 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19240 See \`config.log' for more details" "$LINENO" 5; }
19241 else
19242 NEEDED_CFLAGS=$pkg_cv_NEEDED_CFLAGS
19243 NEEDED_LIBS=$pkg_cv_NEEDED_LIBS
19244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19245 $as_echo "yes" >&6; }
19246
19247 fi
19248
19249 have_xdmcp="no"
19250
19251 pkg_failed=no
19252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDMCP" >&5
19253 $as_echo_n "checking for XDMCP... " >&6; }
19254
19255 if test -n "$XDMCP_CFLAGS"; then
19256 pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS"
19257 elif test -n "$PKG_CONFIG"; then
19258 if test -n "$PKG_CONFIG" && \
19259 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
19260 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
19261 ac_status=$?
19262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19263 test $ac_status = 0; }; then
19264 pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null`
19265 test "x$?" != "x0" && pkg_failed=yes
19266 else
19267 pkg_failed=yes
19268 fi
19269 else
19270 pkg_failed=untried
19271 fi
19272 if test -n "$XDMCP_LIBS"; then
19273 pkg_cv_XDMCP_LIBS="$XDMCP_LIBS"
19274 elif test -n "$PKG_CONFIG"; then
19275 if test -n "$PKG_CONFIG" && \
19276 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
19277 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
19278 ac_status=$?
19279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19280 test $ac_status = 0; }; then
19281 pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null`
19282 test "x$?" != "x0" && pkg_failed=yes
19283 else
19284 pkg_failed=yes
19285 fi
19286 else
19287 pkg_failed=untried
19288 fi
19289
19290
19291
19292 if test $pkg_failed = yes; then
19293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19294 $as_echo "no" >&6; }
19295
19296 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19297 _pkg_short_errors_supported=yes
19298 else
19299 _pkg_short_errors_supported=no
19300 fi
19301 if test $_pkg_short_errors_supported = yes; then
19302 XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xdmcp" 2>&1`
19303 else
19304 XDMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xdmcp" 2>&1`
19305 fi
19306 # Put the nasty error message in config.log where it belongs
19307 echo "$XDMCP_PKG_ERRORS" >&5
19308
19309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19310 $as_echo "no" >&6; }
19311 elif test $pkg_failed = untried; then
19312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19313 $as_echo "no" >&6; }
19314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19315 $as_echo "no" >&6; }
19316 else
19317 XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS
19318 XDMCP_LIBS=$pkg_cv_XDMCP_LIBS
19319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19320 $as_echo "yes" >&6; }
19321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XdmcpWrap in -lXdmcp" >&5
19322 $as_echo_n "checking for XdmcpWrap in -lXdmcp... " >&6; }
19323 if ${ac_cv_lib_Xdmcp_XdmcpWrap+:} false; then :
19324 $as_echo_n "(cached) " >&6
19325 else
19326 ac_check_lib_save_LIBS=$LIBS
19327 LIBS="-lXdmcp $XDMCP_LIBS $LIBS"
19328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19329 /* end confdefs.h. */
19330
19331 /* Override any GCC internal prototype to avoid an error.
19332 Use char because int might match the return type of a GCC
19333 builtin and then its argument prototype would still apply. */
19334 #ifdef __cplusplus
19335 extern "C"
19336 #endif
19337 char XdmcpWrap ();
19338 int
19339 main ()
19340 {
19341 return XdmcpWrap ();
19342 ;
19343 return 0;
19344 }
19345 _ACEOF
19346 if ac_fn_c_try_link "$LINENO"; then :
19347 ac_cv_lib_Xdmcp_XdmcpWrap=yes
19348 else
19349 ac_cv_lib_Xdmcp_XdmcpWrap=no
19350 fi
19351 rm -f core conftest.err conftest.$ac_objext \
19352 conftest$ac_exeext conftest.$ac_ext
19353 LIBS=$ac_check_lib_save_LIBS
19354 fi
19355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5
19356 $as_echo "$ac_cv_lib_Xdmcp_XdmcpWrap" >&6; }
19357 if test "x$ac_cv_lib_Xdmcp_XdmcpWrap" = xyes; then :
19358
19359
19360 $as_echo "#define HASXDMAUTH 1" >>confdefs.h
19361
19362 NEEDED="$NEEDED xdmcp"
19363 have_xdmcp="yes"
19364
19365 else
19366
19367 XDMCP_CFLAGS=
19368 XDMCP_LIBS=
19369
19370 fi
19371
19372 fi
19373
19374
19375
19376 # Find the xcb-proto protocol descriptions
19377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCBPROTO_XCBINCLUDEDIR" >&5
19378 $as_echo_n "checking XCBPROTO_XCBINCLUDEDIR... " >&6; }
19379 XCBPROTO_XCBINCLUDEDIR=`$PKG_CONFIG --variable=xcbincludedir xcb-proto`
19380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCBPROTO_XCBINCLUDEDIR" >&5
19381 $as_echo "$XCBPROTO_XCBINCLUDEDIR" >&6; }
19382
19383
19384 # Find the xcb-proto version
19385 XCBPROTO_VERSION=`$PKG_CONFIG --modversion xcb-proto`
19386
19387
19388 # Find the xcbgen Python package
19389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCBPROTO_XCBPYTHONDIR" >&5
19390 $as_echo_n "checking XCBPROTO_XCBPYTHONDIR... " >&6; }
19391 XCBPROTO_XCBPYTHONDIR=`$PKG_CONFIG --variable=pythondir xcb-proto`
19392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCBPROTO_XCBPYTHONDIR" >&5
19393 $as_echo "$XCBPROTO_XCBPYTHONDIR" >&6; }
19394
19395
19396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19397 $as_echo_n "checking for ANSI C header files... " >&6; }
19398 if ${ac_cv_header_stdc+:} false; then :
19399 $as_echo_n "(cached) " >&6
19400 else
19401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19402 /* end confdefs.h. */
19403 #include <stdlib.h>
19404 #include <stdarg.h>
19405 #include <string.h>
19406 #include <float.h>
19407
19408 int
19409 main ()
19410 {
19411
19412 ;
19413 return 0;
19414 }
19415 _ACEOF
19416 if ac_fn_c_try_compile "$LINENO"; then :
19417 ac_cv_header_stdc=yes
19418 else
19419 ac_cv_header_stdc=no
19420 fi
19421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19422
19423 if test $ac_cv_header_stdc = yes; then
19424 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19426 /* end confdefs.h. */
19427 #include <string.h>
19428
19429 _ACEOF
19430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19431 $EGREP "memchr" >/dev/null 2>&1; then :
19432
19433 else
19434 ac_cv_header_stdc=no
19435 fi
19436 rm -f conftest*
19437
19438 fi
19439
19440 if test $ac_cv_header_stdc = yes; then
19441 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19443 /* end confdefs.h. */
19444 #include <stdlib.h>
19445
19446 _ACEOF
19447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19448 $EGREP "free" >/dev/null 2>&1; then :
19449
19450 else
19451 ac_cv_header_stdc=no
19452 fi
19453 rm -f conftest*
19454
19455 fi
19456
19457 if test $ac_cv_header_stdc = yes; then
19458 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19459 if test "$cross_compiling" = yes; then :
19460 :
19461 else
19462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19463 /* end confdefs.h. */
19464 #include <ctype.h>
19465 #include <stdlib.h>
19466 #if ((' ' & 0x0FF) == 0x020)
19467 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19468 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19469 #else
19470 # define ISLOWER(c) \
19471 (('a' <= (c) && (c) <= 'i') \
19472 || ('j' <= (c) && (c) <= 'r') \
19473 || ('s' <= (c) && (c) <= 'z'))
19474 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19475 #endif
19476
19477 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19478 int
19479 main ()
19480 {
19481 int i;
19482 for (i = 0; i < 256; i++)
19483 if (XOR (islower (i), ISLOWER (i))
19484 || toupper (i) != TOUPPER (i))
19485 return 2;
19486 return 0;
19487 }
19488 _ACEOF
19489 if ac_fn_c_try_run "$LINENO"; then :
19490
19491 else
19492 ac_cv_header_stdc=no
19493 fi
19494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19495 conftest.$ac_objext conftest.beam conftest.$ac_ext
19496 fi
19497
19498 fi
19499 fi
19500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
19501 $as_echo "$ac_cv_header_stdc" >&6; }
19502 if test $ac_cv_header_stdc = yes; then
19503
19504 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
19505
19506 fi
19507
19508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
19509 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
19510 if ${ac_cv_search_getaddrinfo+:} false; then :
19511 $as_echo_n "(cached) " >&6
19512 else
19513 ac_func_search_save_LIBS=$LIBS
19514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19515 /* end confdefs.h. */
19516
19517 /* Override any GCC internal prototype to avoid an error.
19518 Use char because int might match the return type of a GCC
19519 builtin and then its argument prototype would still apply. */
19520 #ifdef __cplusplus
19521 extern "C"
19522 #endif
19523 char getaddrinfo ();
19524 int
19525 main ()
19526 {
19527 return getaddrinfo ();
19528 ;
19529 return 0;
19530 }
19531 _ACEOF
19532 for ac_lib in '' socket; do
19533 if test -z "$ac_lib"; then
19534 ac_res="none required"
19535 else
19536 ac_res=-l$ac_lib
19537 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19538 fi
19539 if ac_fn_c_try_link "$LINENO"; then :
19540 ac_cv_search_getaddrinfo=$ac_res
19541 fi
19542 rm -f core conftest.err conftest.$ac_objext \
19543 conftest$ac_exeext
19544 if ${ac_cv_search_getaddrinfo+:} false; then :
19545 break
19546 fi
19547 done
19548 if ${ac_cv_search_getaddrinfo+:} false; then :
19549
19550 else
19551 ac_cv_search_getaddrinfo=no
19552 fi
19553 rm conftest.$ac_ext
19554 LIBS=$ac_func_search_save_LIBS
19555 fi
19556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
19557 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
19558 ac_res=$ac_cv_search_getaddrinfo
19559 if test "$ac_res" != no; then :
19560 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19561
19562 fi
19563
19564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
19565 $as_echo_n "checking for library containing connect... " >&6; }
19566 if ${ac_cv_search_connect+:} false; then :
19567 $as_echo_n "(cached) " >&6
19568 else
19569 ac_func_search_save_LIBS=$LIBS
19570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19571 /* end confdefs.h. */
19572
19573 /* Override any GCC internal prototype to avoid an error.
19574 Use char because int might match the return type of a GCC
19575 builtin and then its argument prototype would still apply. */
19576 #ifdef __cplusplus
19577 extern "C"
19578 #endif
19579 char connect ();
19580 int
19581 main ()
19582 {
19583 return connect ();
19584 ;
19585 return 0;
19586 }
19587 _ACEOF
19588 for ac_lib in '' socket; do
19589 if test -z "$ac_lib"; then
19590 ac_res="none required"
19591 else
19592 ac_res=-l$ac_lib
19593 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19594 fi
19595 if ac_fn_c_try_link "$LINENO"; then :
19596 ac_cv_search_connect=$ac_res
19597 fi
19598 rm -f core conftest.err conftest.$ac_objext \
19599 conftest$ac_exeext
19600 if ${ac_cv_search_connect+:} false; then :
19601 break
19602 fi
19603 done
19604 if ${ac_cv_search_connect+:} false; then :
19605
19606 else
19607 ac_cv_search_connect=no
19608 fi
19609 rm conftest.$ac_ext
19610 LIBS=$ac_func_search_save_LIBS
19611 fi
19612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
19613 $as_echo "$ac_cv_search_connect" >&6; }
19614 ac_res=$ac_cv_search_connect
19615 if test "$ac_res" != no; then :
19616 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19617
19618 fi
19619
19620
19621 # Check whether --enable-sendfds was given.
19622 if test "${enable_sendfds+set}" = set; then :
19623 enableval=$enable_sendfds; sendfds=$enableval
19624 else
19625 sendfds=auto
19626 fi
19627
19628
19629 case x$sendfds in
19630 xauto)
19631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendmsg" >&5
19632 $as_echo_n "checking for library containing sendmsg... " >&6; }
19633 if ${ac_cv_search_sendmsg+:} false; then :
19634 $as_echo_n "(cached) " >&6
19635 else
19636 ac_func_search_save_LIBS=$LIBS
19637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19638 /* end confdefs.h. */
19639
19640 /* Override any GCC internal prototype to avoid an error.
19641 Use char because int might match the return type of a GCC
19642 builtin and then its argument prototype would still apply. */
19643 #ifdef __cplusplus
19644 extern "C"
19645 #endif
19646 char sendmsg ();
19647 int
19648 main ()
19649 {
19650 return sendmsg ();
19651 ;
19652 return 0;
19653 }
19654 _ACEOF
19655 for ac_lib in '' socket; do
19656 if test -z "$ac_lib"; then
19657 ac_res="none required"
19658 else
19659 ac_res=-l$ac_lib
19660 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19661 fi
19662 if ac_fn_c_try_link "$LINENO"; then :
19663 ac_cv_search_sendmsg=$ac_res
19664 fi
19665 rm -f core conftest.err conftest.$ac_objext \
19666 conftest$ac_exeext
19667 if ${ac_cv_search_sendmsg+:} false; then :
19668 break
19669 fi
19670 done
19671 if ${ac_cv_search_sendmsg+:} false; then :
19672
19673 else
19674 ac_cv_search_sendmsg=no
19675 fi
19676 rm conftest.$ac_ext
19677 LIBS=$ac_func_search_save_LIBS
19678 fi
19679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendmsg" >&5
19680 $as_echo "$ac_cv_search_sendmsg" >&6; }
19681 ac_res=$ac_cv_search_sendmsg
19682 if test "$ac_res" != no; then :
19683 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19684 sendfds="yes"
19685 else
19686 sendfds="no"
19687 fi
19688
19689 ;;
19690 esac
19691
19692 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
19693 # _XOPEN_SOURCE to get it (such as on Solaris)
19694 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
19695 $ac_includes_default
19696 #include <sys/socket.h>
19697
19698 "
19699 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
19700
19701 fi
19702
19703 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
19704 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
19705 unset ac_cv_member_struct_msghdr_msg_control
19706 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
19707 $as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
19708 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
19709 #define _XOPEN_SOURCE 600
19710 $ac_includes_default
19711 #include <sys/socket.h>
19712
19713 "
19714 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
19715
19716 $as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
19717
19718
19719 fi
19720
19721 fi
19722 # If that didn't work, fall back to XPG5/UNIX98 with C89
19723 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
19724 unset ac_cv_member_struct_msghdr_msg_control
19725 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
19726 $as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
19727 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
19728 #define _XOPEN_SOURCE 500
19729 $ac_includes_default
19730 #include <sys/socket.h>
19731
19732 "
19733 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
19734
19735 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
19736
19737
19738 else
19739 sendfds="no"
19740 fi
19741
19742 fi
19743
19744 case x$sendfds in
19745 xyes)
19746
19747 $as_echo "#define HAVE_SENDMSG 1" >>confdefs.h
19748
19749 ;;
19750 esac
19751
19752 have_win32="no"
19753 lt_enable_auto_import=""
19754 case $host_os in
19755 mingw*)
19756 have_win32="yes"
19757 lt_enable_auto_import="-Wl,--enable-auto-import"
19758 ;;
19759 linux*)
19760
19761 $as_echo "#define HAVE_ABSTRACT_SOCKETS 1" >>confdefs.h
19762
19763 ;;
19764 esac
19765
19766
19767 if test "x${have_win32}" = "xyes"; then
19768 XCB_HAVE_WIN32_TRUE=
19769 XCB_HAVE_WIN32_FALSE='#'
19770 else
19771 XCB_HAVE_WIN32_TRUE='#'
19772 XCB_HAVE_WIN32_FALSE=
19773 fi
19774
19775
19776
19777 # Check whether --with-queue-size was given.
19778 if test "${with_queue_size+set}" = set; then :
19779 withval=$with_queue_size; xcb_queue_buffer_size="$withval"
19780 else
19781 xcb_queue_buffer_size=16384
19782 fi
19783
19784
19785 cat >>confdefs.h <<_ACEOF
19786 #define XCB_QUEUE_BUFFER_SIZE $xcb_queue_buffer_size
19787 _ACEOF
19788
19789
19790 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" " #include <sys/types.h>
19791 #include <sys/un.h>
19792
19793 "
19794 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
19795
19796 $as_echo "#define HAVE_SOCKADDR_SUN_LEN 1" >>confdefs.h
19797
19798 fi
19799
19800
19801 for ac_header in tsol/label.h
19802 do :
19803 ac_fn_c_check_header_mongrel "$LINENO" "tsol/label.h" "ac_cv_header_tsol_label_h" "$ac_includes_default"
19804 if test "x$ac_cv_header_tsol_label_h" = xyes; then :
19805 cat >>confdefs.h <<_ACEOF
19806 #define HAVE_TSOL_LABEL_H 1
19807 _ACEOF
19808
19809 fi
19810
19811 done
19812
19813 for ac_func in is_system_labeled
19814 do :
19815 ac_fn_c_check_func "$LINENO" "is_system_labeled" "ac_cv_func_is_system_labeled"
19816 if test "x$ac_cv_func_is_system_labeled" = xyes; then :
19817 cat >>confdefs.h <<_ACEOF
19818 #define HAVE_IS_SYSTEM_LABELED 1
19819 _ACEOF
19820
19821 fi
19822 done
19823
19824
19825 ac_fn_c_check_decl "$LINENO" "IOV_MAX" "ac_cv_have_decl_IOV_MAX" "#include <limits.h>
19826 "
19827 if test "x$ac_cv_have_decl_IOV_MAX" = xyes; then :
19828
19829 else
19830 ac_fn_c_check_decl "$LINENO" "UIO_MAXIOV" "ac_cv_have_decl_UIO_MAXIOV" "#include <sys/uio.h>
19831 "
19832 if test "x$ac_cv_have_decl_UIO_MAXIOV" = xyes; then :
19833 $as_echo "#define IOV_MAX UIO_MAXIOV" >>confdefs.h
19834
19835 else
19836
19837 $as_echo "#define IOV_MAX 16" >>confdefs.h
19838
19839 fi
19840
19841 fi
19842
19843
19844 xcbincludedir='${includedir}/xcb'
19845
19846
19847
19848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports symbol visibility" >&5
19849 $as_echo_n "checking whether ${CC} supports symbol visibility... " >&6; }
19850
19851 save_CFLAGS=${CFLAGS}
19852 CFLAGS="$CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
19853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19854 /* end confdefs.h. */
19855
19856 #pragma GCC visibility push(hidden)
19857 extern void f(int);
19858 #pragma GCC visibility pop
19859
19860 int
19861 main ()
19862 {
19863
19864
19865 ;
19866 return 0;
19867 }
19868 _ACEOF
19869 if ac_fn_c_try_compile "$LINENO"; then :
19870
19871 $as_echo "#define GCC_HAS_VISIBILITY /**/" >>confdefs.h
19872
19873 :
19874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19875 $as_echo "yes" >&6; }
19876 else
19877 :
19878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19879 $as_echo "no" >&6; }
19880 fi
19881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19882
19883 CFLAGS=${save_CFLAGS}
19884
19885
19886 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
19887 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
19888
19889 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
19890
19891 fi
19892
19893
19894 case $host_os in
19895 # darwin through Snow Leopard has poll() but can't be used to poll character devices.
19896 darwin[789]*|darwin10*) ;;
19897 darwin*)
19898 _ac_xorg_macosx_version_min=""
19899 if echo $CPPFLAGS $CFLAGS | grep -q mmacosx-version-min ; then
19900 _ac_xorg_macosx_version_min=`echo $CPPFLAGS $CFLAGS | sed 's/^.*-mmacosx-version-min=\([^ ]*\).*$/\1/'`
19901 else
19902 _ac_xorg_macosx_version_min=$MACOSX_DEPLOYMENT_TARGET
19903 fi
19904 case $_ac_xorg_macosx_version_min in
19905 10.[0123456]|10.[0123456].*) ;;
19906 *)
19907 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
19908 if test "x$ac_cv_func_poll" = xyes; then :
19909
19910 $as_echo "#define USE_POLL 1" >>confdefs.h
19911
19912 fi
19913
19914 ;;
19915 esac
19916 unset _ac_xorg_macosx_version_min
19917 ;;
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
19929
19930
19931 # Check whether --enable-composite was given.
19932 if test "${enable_composite+set}" = set; then :
19933 enableval=$enable_composite; BUILD_COMPOSITE=$enableval
19934 else
19935 BUILD_COMPOSITE="yes"
19936 fi
19937
19938
19939 if test "x$BUILD_COMPOSITE" = "xyes"; then
19940 BUILD_COMPOSITE_TRUE=
19941 BUILD_COMPOSITE_FALSE='#'
19942 else
19943 BUILD_COMPOSITE_TRUE='#'
19944 BUILD_COMPOSITE_FALSE=
19945 fi
19946
19947
19948
19949
19950 # Check whether --enable-damage was given.
19951 if test "${enable_damage+set}" = set; then :
19952 enableval=$enable_damage; BUILD_DAMAGE=$enableval
19953 else
19954 BUILD_DAMAGE="yes"
19955 fi
19956
19957
19958 if test "x$BUILD_DAMAGE" = "xyes"; then
19959 BUILD_DAMAGE_TRUE=
19960 BUILD_DAMAGE_FALSE='#'
19961 else
19962 BUILD_DAMAGE_TRUE='#'
19963 BUILD_DAMAGE_FALSE=
19964 fi
19965
19966
19967
19968
19969 # Check whether --enable-dpms was given.
19970 if test "${enable_dpms+set}" = set; then :
19971 enableval=$enable_dpms; BUILD_DPMS=$enableval
19972 else
19973 BUILD_DPMS="yes"
19974 fi
19975
19976
19977 if test "x$BUILD_DPMS" = "xyes"; then
19978 BUILD_DPMS_TRUE=
19979 BUILD_DPMS_FALSE='#'
19980 else
19981 BUILD_DPMS_TRUE='#'
19982 BUILD_DPMS_FALSE=
19983 fi
19984
19985
19986
19987
19988 # Check whether --enable-dri2 was given.
19989 if test "${enable_dri2+set}" = set; then :
19990 enableval=$enable_dri2; BUILD_DRI2=$enableval
19991 else
19992 BUILD_DRI2="yes"
19993 fi
19994
19995
19996 if test "x$BUILD_DRI2" = "xyes"; then
19997 BUILD_DRI2_TRUE=
19998 BUILD_DRI2_FALSE='#'
19999 else
20000 BUILD_DRI2_TRUE='#'
20001 BUILD_DRI2_FALSE=
20002 fi
20003
20004
20005
20006
20007 # Check whether --enable-dri3 was given.
20008 if test "${enable_dri3+set}" = set; then :
20009 enableval=$enable_dri3; BUILD_DRI3=$enableval
20010 else
20011 BUILD_DRI3="$sendfds"
20012 fi
20013
20014
20015 if test "x$BUILD_DRI3" = "xyes"; then
20016 BUILD_DRI3_TRUE=
20017 BUILD_DRI3_FALSE='#'
20018 else
20019 BUILD_DRI3_TRUE='#'
20020 BUILD_DRI3_FALSE=
20021 fi
20022
20023
20024
20025
20026 # Check whether --enable-glx was given.
20027 if test "${enable_glx+set}" = set; then :
20028 enableval=$enable_glx; BUILD_GLX=$enableval
20029 else
20030 BUILD_GLX="yes"
20031 fi
20032
20033
20034 if test "x$BUILD_GLX" = "xyes"; then
20035 BUILD_GLX_TRUE=
20036 BUILD_GLX_FALSE='#'
20037 else
20038 BUILD_GLX_TRUE='#'
20039 BUILD_GLX_FALSE=
20040 fi
20041
20042
20043
20044
20045 # Check whether --enable-present was given.
20046 if test "${enable_present+set}" = set; then :
20047 enableval=$enable_present; BUILD_PRESENT=$enableval
20048 else
20049 BUILD_PRESENT="yes"
20050 fi
20051
20052
20053 if test "x$BUILD_PRESENT" = "xyes"; then
20054 BUILD_PRESENT_TRUE=
20055 BUILD_PRESENT_FALSE='#'
20056 else
20057 BUILD_PRESENT_TRUE='#'
20058 BUILD_PRESENT_FALSE=
20059 fi
20060
20061
20062
20063
20064 # Check whether --enable-randr was given.
20065 if test "${enable_randr+set}" = set; then :
20066 enableval=$enable_randr; BUILD_RANDR=$enableval
20067 else
20068 BUILD_RANDR="yes"
20069 fi
20070
20071
20072 if test "x$BUILD_RANDR" = "xyes"; then
20073 BUILD_RANDR_TRUE=
20074 BUILD_RANDR_FALSE='#'
20075 else
20076 BUILD_RANDR_TRUE='#'
20077 BUILD_RANDR_FALSE=
20078 fi
20079
20080
20081
20082
20083 # Check whether --enable-record was given.
20084 if test "${enable_record+set}" = set; then :
20085 enableval=$enable_record; BUILD_RECORD=$enableval
20086 else
20087 BUILD_RECORD="yes"
20088 fi
20089
20090
20091 if test "x$BUILD_RECORD" = "xyes"; then
20092 BUILD_RECORD_TRUE=
20093 BUILD_RECORD_FALSE='#'
20094 else
20095 BUILD_RECORD_TRUE='#'
20096 BUILD_RECORD_FALSE=
20097 fi
20098
20099
20100
20101
20102 # Check whether --enable-render was given.
20103 if test "${enable_render+set}" = set; then :
20104 enableval=$enable_render; BUILD_RENDER=$enableval
20105 else
20106 BUILD_RENDER="yes"
20107 fi
20108
20109
20110 if test "x$BUILD_RENDER" = "xyes"; then
20111 BUILD_RENDER_TRUE=
20112 BUILD_RENDER_FALSE='#'
20113 else
20114 BUILD_RENDER_TRUE='#'
20115 BUILD_RENDER_FALSE=
20116 fi
20117
20118
20119
20120
20121 # Check whether --enable-resource was given.
20122 if test "${enable_resource+set}" = set; then :
20123 enableval=$enable_resource; BUILD_RESOURCE=$enableval
20124 else
20125 BUILD_RESOURCE="yes"
20126 fi
20127
20128
20129 if test "x$BUILD_RESOURCE" = "xyes"; then
20130 BUILD_RESOURCE_TRUE=
20131 BUILD_RESOURCE_FALSE='#'
20132 else
20133 BUILD_RESOURCE_TRUE='#'
20134 BUILD_RESOURCE_FALSE=
20135 fi
20136
20137
20138
20139
20140 # Check whether --enable-screensaver was given.
20141 if test "${enable_screensaver+set}" = set; then :
20142 enableval=$enable_screensaver; BUILD_SCREENSAVER=$enableval
20143 else
20144 BUILD_SCREENSAVER="yes"
20145 fi
20146
20147
20148 if test "x$BUILD_SCREENSAVER" = "xyes"; then
20149 BUILD_SCREENSAVER_TRUE=
20150 BUILD_SCREENSAVER_FALSE='#'
20151 else
20152 BUILD_SCREENSAVER_TRUE='#'
20153 BUILD_SCREENSAVER_FALSE=
20154 fi
20155
20156
20157
20158
20159 # Check whether --enable-shape was given.
20160 if test "${enable_shape+set}" = set; then :
20161 enableval=$enable_shape; BUILD_SHAPE=$enableval
20162 else
20163 BUILD_SHAPE="yes"
20164 fi
20165
20166
20167 if test "x$BUILD_SHAPE" = "xyes"; then
20168 BUILD_SHAPE_TRUE=
20169 BUILD_SHAPE_FALSE='#'
20170 else
20171 BUILD_SHAPE_TRUE='#'
20172 BUILD_SHAPE_FALSE=
20173 fi
20174
20175
20176
20177
20178 # Check whether --enable-shm was given.
20179 if test "${enable_shm+set}" = set; then :
20180 enableval=$enable_shm; BUILD_SHM=$enableval
20181 else
20182 BUILD_SHM="yes"
20183 fi
20184
20185
20186 if test "x$BUILD_SHM" = "xyes"; then
20187 BUILD_SHM_TRUE=
20188 BUILD_SHM_FALSE='#'
20189 else
20190 BUILD_SHM_TRUE='#'
20191 BUILD_SHM_FALSE=
20192 fi
20193
20194
20195
20196
20197 # Check whether --enable-sync was given.
20198 if test "${enable_sync+set}" = set; then :
20199 enableval=$enable_sync; BUILD_SYNC=$enableval
20200 else
20201 BUILD_SYNC="yes"
20202 fi
20203
20204
20205 if test "x$BUILD_SYNC" = "xyes"; then
20206 BUILD_SYNC_TRUE=
20207 BUILD_SYNC_FALSE='#'
20208 else
20209 BUILD_SYNC_TRUE='#'
20210 BUILD_SYNC_FALSE=
20211 fi
20212
20213
20214
20215
20216 # Check whether --enable-xevie was given.
20217 if test "${enable_xevie+set}" = set; then :
20218 enableval=$enable_xevie; BUILD_XEVIE=$enableval
20219 else
20220 BUILD_XEVIE="yes"
20221 fi
20222
20223
20224 if test "x$BUILD_XEVIE" = "xyes"; then
20225 BUILD_XEVIE_TRUE=
20226 BUILD_XEVIE_FALSE='#'
20227 else
20228 BUILD_XEVIE_TRUE='#'
20229 BUILD_XEVIE_FALSE=
20230 fi
20231
20232
20233
20234
20235 # Check whether --enable-xfixes was given.
20236 if test "${enable_xfixes+set}" = set; then :
20237 enableval=$enable_xfixes; BUILD_XFIXES=$enableval
20238 else
20239 BUILD_XFIXES="yes"
20240 fi
20241
20242
20243 if test "x$BUILD_XFIXES" = "xyes"; then
20244 BUILD_XFIXES_TRUE=
20245 BUILD_XFIXES_FALSE='#'
20246 else
20247 BUILD_XFIXES_TRUE='#'
20248 BUILD_XFIXES_FALSE=
20249 fi
20250
20251
20252
20253
20254 # Check whether --enable-xfree86-dri was given.
20255 if test "${enable_xfree86_dri+set}" = set; then :
20256 enableval=$enable_xfree86_dri; BUILD_XFREE86_DRI=$enableval
20257 else
20258 BUILD_XFREE86_DRI="yes"
20259 fi
20260
20261
20262 if test "x$BUILD_XFREE86_DRI" = "xyes"; then
20263 BUILD_XFREE86_DRI_TRUE=
20264 BUILD_XFREE86_DRI_FALSE='#'
20265 else
20266 BUILD_XFREE86_DRI_TRUE='#'
20267 BUILD_XFREE86_DRI_FALSE=
20268 fi
20269
20270
20271
20272
20273 # Check whether --enable-xinerama was given.
20274 if test "${enable_xinerama+set}" = set; then :
20275 enableval=$enable_xinerama; BUILD_XINERAMA=$enableval
20276 else
20277 BUILD_XINERAMA="yes"
20278 fi
20279
20280
20281 if test "x$BUILD_XINERAMA" = "xyes"; then
20282 BUILD_XINERAMA_TRUE=
20283 BUILD_XINERAMA_FALSE='#'
20284 else
20285 BUILD_XINERAMA_TRUE='#'
20286 BUILD_XINERAMA_FALSE=
20287 fi
20288
20289
20290
20291
20292 # Check whether --enable-xinput was given.
20293 if test "${enable_xinput+set}" = set; then :
20294 enableval=$enable_xinput; BUILD_XINPUT=$enableval
20295 else
20296 BUILD_XINPUT="no"
20297 fi
20298
20299
20300 if test "x$BUILD_XINPUT" = "xyes"; then
20301 BUILD_XINPUT_TRUE=
20302 BUILD_XINPUT_FALSE='#'
20303 else
20304 BUILD_XINPUT_TRUE='#'
20305 BUILD_XINPUT_FALSE=
20306 fi
20307
20308
20309
20310
20311 # Check whether --enable-xkb was given.
20312 if test "${enable_xkb+set}" = set; then :
20313 enableval=$enable_xkb; BUILD_XKB=$enableval
20314 else
20315 BUILD_XKB="yes"
20316 fi
20317
20318
20319 if test "x$BUILD_XKB" = "xyes"; then
20320 BUILD_XKB_TRUE=
20321 BUILD_XKB_FALSE='#'
20322 else
20323 BUILD_XKB_TRUE='#'
20324 BUILD_XKB_FALSE=
20325 fi
20326
20327
20328
20329
20330 # Check whether --enable-xprint was given.
20331 if test "${enable_xprint+set}" = set; then :
20332 enableval=$enable_xprint; BUILD_XPRINT=$enableval
20333 else
20334 BUILD_XPRINT="yes"
20335 fi
20336
20337
20338 if test "x$BUILD_XPRINT" = "xyes"; then
20339 BUILD_XPRINT_TRUE=
20340 BUILD_XPRINT_FALSE='#'
20341 else
20342 BUILD_XPRINT_TRUE='#'
20343 BUILD_XPRINT_FALSE=
20344 fi
20345
20346
20347
20348
20349 # Check whether --enable-selinux was given.
20350 if test "${enable_selinux+set}" = set; then :
20351 enableval=$enable_selinux; BUILD_SELINUX=$enableval
20352 else
20353 BUILD_SELINUX="no"
20354 fi
20355
20356
20357 if test "x$BUILD_SELINUX" = "xyes"; then
20358 BUILD_SELINUX_TRUE=
20359 BUILD_SELINUX_FALSE='#'
20360 else
20361 BUILD_SELINUX_TRUE='#'
20362 BUILD_SELINUX_FALSE=
20363 fi
20364
20365
20366
20367
20368 # Check whether --enable-xtest was given.
20369 if test "${enable_xtest+set}" = set; then :
20370 enableval=$enable_xtest; BUILD_XTEST=$enableval
20371 else
20372 BUILD_XTEST="yes"
20373 fi
20374
20375
20376 if test "x$BUILD_XTEST" = "xyes"; then
20377 BUILD_XTEST_TRUE=
20378 BUILD_XTEST_FALSE='#'
20379 else
20380 BUILD_XTEST_TRUE='#'
20381 BUILD_XTEST_FALSE=
20382 fi
20383
20384
20385
20386
20387 # Check whether --enable-xv was given.
20388 if test "${enable_xv+set}" = set; then :
20389 enableval=$enable_xv; BUILD_XV=$enableval
20390 else
20391 BUILD_XV="yes"
20392 fi
20393
20394
20395 if test "x$BUILD_XV" = "xyes"; then
20396 BUILD_XV_TRUE=
20397 BUILD_XV_FALSE='#'
20398 else
20399 BUILD_XV_TRUE='#'
20400 BUILD_XV_FALSE=
20401 fi
20402
20403
20404
20405
20406 # Check whether --enable-xvmc was given.
20407 if test "${enable_xvmc+set}" = set; then :
20408 enableval=$enable_xvmc; BUILD_XVMC=$enableval
20409 else
20410 BUILD_XVMC="yes"
20411 fi
20412
20413
20414 if test "x$BUILD_XVMC" = "xyes"; then
20415 BUILD_XVMC_TRUE=
20416 BUILD_XVMC_FALSE='#'
20417 else
20418 BUILD_XVMC_TRUE='#'
20419 BUILD_XVMC_FALSE=
20420 fi
20421
20422
20423
20424
20425 # Check whether --with-launchd was given.
20426 if test "${with_launchd+set}" = set; then :
20427 withval=$with_launchd; LAUNCHD=$withval
20428 else
20429 LAUNCHD=auto
20430 fi
20431
20432 if test "x$LAUNCHD" = xauto; then
20433 unset LAUNCHD
20434 # Extract the first word of "launchd", so it can be a program name with args.
20435 set dummy launchd; ac_word=$2
20436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20437 $as_echo_n "checking for $ac_word... " >&6; }
20438 if ${ac_cv_prog_LAUNCHD+:} false; then :
20439 $as_echo_n "(cached) " >&6
20440 else
20441 if test -n "$LAUNCHD"; then
20442 ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test.
20443 else
20444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20445 for as_dir in $PATH$PATH_SEPARATOR/sbin
20446 do
20447 IFS=$as_save_IFS
20448 test -z "$as_dir" && as_dir=.
20449 for ac_exec_ext in '' $ac_executable_extensions; do
20450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20451 ac_cv_prog_LAUNCHD="yes"
20452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20453 break 2
20454 fi
20455 done
20456 done
20457 IFS=$as_save_IFS
20458
20459 test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no"
20460 fi
20461 fi
20462 LAUNCHD=$ac_cv_prog_LAUNCHD
20463 if test -n "$LAUNCHD"; then
20464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5
20465 $as_echo "$LAUNCHD" >&6; }
20466 else
20467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20468 $as_echo "no" >&6; }
20469 fi
20470
20471
20472 fi
20473
20474 if test "x$LAUNCHD" = xyes ; then
20475
20476 $as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
20477
20478 fi
20479
20480 ac_config_files="$ac_config_files Makefile doc/Makefile man/Makefile src/Makefile tests/Makefile"
20481
20482
20483 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"
20484
20485
20486 ac_config_files="$ac_config_files doc/xcb.doxygen"
20487
20488
20489 cat >confcache <<\_ACEOF
20490 # This file is a shell script that caches the results of configure
20491 # tests run on this system so they can be shared between configure
20492 # scripts and configure runs, see configure's option --config-cache.
20493 # It is not useful on other systems. If it contains results you don't
20494 # want to keep, you may remove or edit it.
20495 #
20496 # config.status only pays attention to the cache file if you give it
20497 # the --recheck option to rerun configure.
20498 #
20499 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20500 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20501 # following values.
20502
20503 _ACEOF
20504
20505 # The following way of writing the cache mishandles newlines in values,
20506 # but we know of no workaround that is simple, portable, and efficient.
20507 # So, we kill variables containing newlines.
20508 # Ultrix sh set writes to stderr and can't be redirected directly,
20509 # and sets the high bit in the cache file unless we assign to the vars.
20510 (
20511 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20512 eval ac_val=\$$ac_var
20513 case $ac_val in #(
20514 *${as_nl}*)
20515 case $ac_var in #(
20516 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20517 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20518 esac
20519 case $ac_var in #(
20520 _ | IFS | as_nl) ;; #(
20521 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20522 *) { eval $ac_var=; unset $ac_var;} ;;
20523 esac ;;
20524 esac
20525 done
20526
20527 (set) 2>&1 |
20528 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20529 *${as_nl}ac_space=\ *)
20530 # `set' does not quote correctly, so add quotes: double-quote
20531 # substitution turns \\\\ into \\, and sed turns \\ into \.
20532 sed -n \
20533 "s/'/'\\\\''/g;
20534 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20535 ;; #(
20536 *)
20537 # `set' quotes correctly as required by POSIX, so do not add quotes.
20538 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20539 ;;
20540 esac |
20541 sort
20542 ) |
20543 sed '
20544 /^ac_cv_env_/b end
20545 t clear
20546 :clear
20547 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20548 t end
20549 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20550 :end' >>confcache
20551 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20552 if test -w "$cache_file"; then
20553 if test "x$cache_file" != "x/dev/null"; then
20554 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20555 $as_echo "$as_me: updating cache $cache_file" >&6;}
20556 if test ! -f "$cache_file" || test -h "$cache_file"; then
20557 cat confcache >"$cache_file"
20558 else
20559 case $cache_file in #(
20560 */* | ?:*)
20561 mv -f confcache "$cache_file"$$ &&
20562 mv -f "$cache_file"$$ "$cache_file" ;; #(
20563 *)
20564 mv -f confcache "$cache_file" ;;
20565 esac
20566 fi
20567 fi
20568 else
20569 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20570 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20571 fi
20572 fi
20573 rm -f confcache
20574
20575 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20576 # Let make expand exec_prefix.
20577 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20578
20579 DEFS=-DHAVE_CONFIG_H
20580
20581 ac_libobjs=
20582 ac_ltlibobjs=
20583 U=
20584 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20585 # 1. Remove the extension, and $U if already installed.
20586 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20587 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20588 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20589 # will be set to the directory where LIBOBJS objects are built.
20590 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20591 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20592 done
20593 LIBOBJS=$ac_libobjs
20594
20595 LTLIBOBJS=$ac_ltlibobjs
20596
20597
20598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20599 $as_echo_n "checking that generated files are newer than configure... " >&6; }
20600 if test -n "$am_sleep_pid"; then
20601 # Hide warnings about reused PIDs.
20602 wait $am_sleep_pid 2>/dev/null
20603 fi
20604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20605 $as_echo "done" >&6; }
20606 if test -n "$EXEEXT"; then
20607 am__EXEEXT_TRUE=
20608 am__EXEEXT_FALSE='#'
20609 else
20610 am__EXEEXT_TRUE='#'
20611 am__EXEEXT_FALSE=
20612 fi
20613
20614 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20615 as_fn_error $? "conditional \"AMDEP\" was never defined.
20616 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20617 fi
20618 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20619 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20620 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20621 fi
20622 if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then
20623 as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined.
20624 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20625 fi
20626 if test -z "${HAVE_DOT_TRUE}" && test -z "${HAVE_DOT_FALSE}"; then
20627 as_fn_error $? "conditional \"HAVE_DOT\" was never defined.
20628 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20629 fi
20630 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
20631 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
20632 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20633 fi
20634 if test -z "${HAVE_CHECK_TRUE}" && test -z "${HAVE_CHECK_FALSE}"; then
20635 as_fn_error $? "conditional \"HAVE_CHECK\" was never defined.
20636 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20637 fi
20638 if test -z "${XCB_HAVE_WIN32_TRUE}" && test -z "${XCB_HAVE_WIN32_FALSE}"; then
20639 as_fn_error $? "conditional \"XCB_HAVE_WIN32\" was never defined.
20640 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20641 fi
20642 if test -z "${BUILD_COMPOSITE_TRUE}" && test -z "${BUILD_COMPOSITE_FALSE}"; then
20643 as_fn_error $? "conditional \"BUILD_COMPOSITE\" was never defined.
20644 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20645 fi
20646 if test -z "${BUILD_DAMAGE_TRUE}" && test -z "${BUILD_DAMAGE_FALSE}"; then
20647 as_fn_error $? "conditional \"BUILD_DAMAGE\" was never defined.
20648 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20649 fi
20650 if test -z "${BUILD_DPMS_TRUE}" && test -z "${BUILD_DPMS_FALSE}"; then
20651 as_fn_error $? "conditional \"BUILD_DPMS\" was never defined.
20652 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20653 fi
20654 if test -z "${BUILD_DRI2_TRUE}" && test -z "${BUILD_DRI2_FALSE}"; then
20655 as_fn_error $? "conditional \"BUILD_DRI2\" was never defined.
20656 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20657 fi
20658 if test -z "${BUILD_DRI3_TRUE}" && test -z "${BUILD_DRI3_FALSE}"; then
20659 as_fn_error $? "conditional \"BUILD_DRI3\" was never defined.
20660 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20661 fi
20662 if test -z "${BUILD_GLX_TRUE}" && test -z "${BUILD_GLX_FALSE}"; then
20663 as_fn_error $? "conditional \"BUILD_GLX\" was never defined.
20664 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20665 fi
20666 if test -z "${BUILD_PRESENT_TRUE}" && test -z "${BUILD_PRESENT_FALSE}"; then
20667 as_fn_error $? "conditional \"BUILD_PRESENT\" was never defined.
20668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20669 fi
20670 if test -z "${BUILD_RANDR_TRUE}" && test -z "${BUILD_RANDR_FALSE}"; then
20671 as_fn_error $? "conditional \"BUILD_RANDR\" was never defined.
20672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20673 fi
20674 if test -z "${BUILD_RECORD_TRUE}" && test -z "${BUILD_RECORD_FALSE}"; then
20675 as_fn_error $? "conditional \"BUILD_RECORD\" was never defined.
20676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20677 fi
20678 if test -z "${BUILD_RENDER_TRUE}" && test -z "${BUILD_RENDER_FALSE}"; then
20679 as_fn_error $? "conditional \"BUILD_RENDER\" was never defined.
20680 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20681 fi
20682 if test -z "${BUILD_RESOURCE_TRUE}" && test -z "${BUILD_RESOURCE_FALSE}"; then
20683 as_fn_error $? "conditional \"BUILD_RESOURCE\" was never defined.
20684 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20685 fi
20686 if test -z "${BUILD_SCREENSAVER_TRUE}" && test -z "${BUILD_SCREENSAVER_FALSE}"; then
20687 as_fn_error $? "conditional \"BUILD_SCREENSAVER\" was never defined.
20688 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20689 fi
20690 if test -z "${BUILD_SHAPE_TRUE}" && test -z "${BUILD_SHAPE_FALSE}"; then
20691 as_fn_error $? "conditional \"BUILD_SHAPE\" was never defined.
20692 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20693 fi
20694 if test -z "${BUILD_SHM_TRUE}" && test -z "${BUILD_SHM_FALSE}"; then
20695 as_fn_error $? "conditional \"BUILD_SHM\" was never defined.
20696 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20697 fi
20698 if test -z "${BUILD_SYNC_TRUE}" && test -z "${BUILD_SYNC_FALSE}"; then
20699 as_fn_error $? "conditional \"BUILD_SYNC\" was never defined.
20700 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20701 fi
20702 if test -z "${BUILD_XEVIE_TRUE}" && test -z "${BUILD_XEVIE_FALSE}"; then
20703 as_fn_error $? "conditional \"BUILD_XEVIE\" was never defined.
20704 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20705 fi
20706 if test -z "${BUILD_XFIXES_TRUE}" && test -z "${BUILD_XFIXES_FALSE}"; then
20707 as_fn_error $? "conditional \"BUILD_XFIXES\" was never defined.
20708 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20709 fi
20710 if test -z "${BUILD_XFREE86_DRI_TRUE}" && test -z "${BUILD_XFREE86_DRI_FALSE}"; then
20711 as_fn_error $? "conditional \"BUILD_XFREE86_DRI\" was never defined.
20712 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20713 fi
20714 if test -z "${BUILD_XINERAMA_TRUE}" && test -z "${BUILD_XINERAMA_FALSE}"; then
20715 as_fn_error $? "conditional \"BUILD_XINERAMA\" was never defined.
20716 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20717 fi
20718 if test -z "${BUILD_XINPUT_TRUE}" && test -z "${BUILD_XINPUT_FALSE}"; then
20719 as_fn_error $? "conditional \"BUILD_XINPUT\" was never defined.
20720 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20721 fi
20722 if test -z "${BUILD_XKB_TRUE}" && test -z "${BUILD_XKB_FALSE}"; then
20723 as_fn_error $? "conditional \"BUILD_XKB\" was never defined.
20724 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20725 fi
20726 if test -z "${BUILD_XPRINT_TRUE}" && test -z "${BUILD_XPRINT_FALSE}"; then
20727 as_fn_error $? "conditional \"BUILD_XPRINT\" was never defined.
20728 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20729 fi
20730 if test -z "${BUILD_SELINUX_TRUE}" && test -z "${BUILD_SELINUX_FALSE}"; then
20731 as_fn_error $? "conditional \"BUILD_SELINUX\" was never defined.
20732 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20733 fi
20734 if test -z "${BUILD_XTEST_TRUE}" && test -z "${BUILD_XTEST_FALSE}"; then
20735 as_fn_error $? "conditional \"BUILD_XTEST\" was never defined.
20736 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20737 fi
20738 if test -z "${BUILD_XV_TRUE}" && test -z "${BUILD_XV_FALSE}"; then
20739 as_fn_error $? "conditional \"BUILD_XV\" was never defined.
20740 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20741 fi
20742 if test -z "${BUILD_XVMC_TRUE}" && test -z "${BUILD_XVMC_FALSE}"; then
20743 as_fn_error $? "conditional \"BUILD_XVMC\" was never defined.
20744 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20745 fi
20746
20747 : "${CONFIG_STATUS=./config.status}"
20748 ac_write_fail=0
20749 ac_clean_files_save=$ac_clean_files
20750 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20751 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20752 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20753 as_write_fail=0
20754 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20755 #! $SHELL
20756 # Generated by $as_me.
20757 # Run this file to recreate the current configuration.
20758 # Compiler output produced by configure, useful for debugging
20759 # configure, is in config.log if it exists.
20760
20761 debug=false
20762 ac_cs_recheck=false
20763 ac_cs_silent=false
20764
20765 SHELL=\${CONFIG_SHELL-$SHELL}
20766 export SHELL
20767 _ASEOF
20768 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20769 ## -------------------- ##
20770 ## M4sh Initialization. ##
20771 ## -------------------- ##
20772
20773 # Be more Bourne compatible
20774 DUALCASE=1; export DUALCASE # for MKS sh
20775 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20776 emulate sh
20777 NULLCMD=:
20778 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20779 # is contrary to our usage. Disable this feature.
20780 alias -g '${1+"$@"}'='"$@"'
20781 setopt NO_GLOB_SUBST
20782 else
20783 case `(set -o) 2>/dev/null` in #(
20784 *posix*) :
20785 set -o posix ;; #(
20786 *) :
20787 ;;
20788 esac
20789 fi
20790
20791
20792 as_nl='
20793 '
20794 export as_nl
20795 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20796 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20797 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20798 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20799 # Prefer a ksh shell builtin over an external printf program on Solaris,
20800 # but without wasting forks for bash or zsh.
20801 if test -z "$BASH_VERSION$ZSH_VERSION" \
20802 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20803 as_echo='print -r --'
20804 as_echo_n='print -rn --'
20805 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20806 as_echo='printf %s\n'
20807 as_echo_n='printf %s'
20808 else
20809 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20810 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20811 as_echo_n='/usr/ucb/echo -n'
20812 else
20813 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20814 as_echo_n_body='eval
20815 arg=$1;
20816 case $arg in #(
20817 *"$as_nl"*)
20818 expr "X$arg" : "X\\(.*\\)$as_nl";
20819 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20820 esac;
20821 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20822 '
20823 export as_echo_n_body
20824 as_echo_n='sh -c $as_echo_n_body as_echo'
20825 fi
20826 export as_echo_body
20827 as_echo='sh -c $as_echo_body as_echo'
20828 fi
20829
20830 # The user is always right.
20831 if test "${PATH_SEPARATOR+set}" != set; then
20832 PATH_SEPARATOR=:
20833 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20834 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20835 PATH_SEPARATOR=';'
20836 }
20837 fi
20838
20839
20840 # IFS
20841 # We need space, tab and new line, in precisely that order. Quoting is
20842 # there to prevent editors from complaining about space-tab.
20843 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20844 # splitting by setting IFS to empty value.)
20845 IFS=" "" $as_nl"
20846
20847 # Find who we are. Look in the path if we contain no directory separator.
20848 as_myself=
20849 case $0 in #((
20850 *[\\/]* ) as_myself=$0 ;;
20851 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20852 for as_dir in $PATH
20853 do
20854 IFS=$as_save_IFS
20855 test -z "$as_dir" && as_dir=.
20856 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20857 done
20858 IFS=$as_save_IFS
20859
20860 ;;
20861 esac
20862 # We did not find ourselves, most probably we were run as `sh COMMAND'
20863 # in which case we are not to be found in the path.
20864 if test "x$as_myself" = x; then
20865 as_myself=$0
20866 fi
20867 if test ! -f "$as_myself"; then
20868 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20869 exit 1
20870 fi
20871
20872 # Unset variables that we do not need and which cause bugs (e.g. in
20873 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20874 # suppresses any "Segmentation fault" message there. '((' could
20875 # trigger a bug in pdksh 5.2.14.
20876 for as_var in BASH_ENV ENV MAIL MAILPATH
20877 do eval test x\${$as_var+set} = xset \
20878 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20879 done
20880 PS1='$ '
20881 PS2='> '
20882 PS4='+ '
20883
20884 # NLS nuisances.
20885 LC_ALL=C
20886 export LC_ALL
20887 LANGUAGE=C
20888 export LANGUAGE
20889
20890 # CDPATH.
20891 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20892
20893
20894 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20895 # ----------------------------------------
20896 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20897 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20898 # script with STATUS, using 1 if that was 0.
20899 as_fn_error ()
20900 {
20901 as_status=$1; test $as_status -eq 0 && as_status=1
20902 if test "$4"; then
20903 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20904 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20905 fi
20906 $as_echo "$as_me: error: $2" >&2
20907 as_fn_exit $as_status
20908 } # as_fn_error
20909
20910
20911 # as_fn_set_status STATUS
20912 # -----------------------
20913 # Set $? to STATUS, without forking.
20914 as_fn_set_status ()
20915 {
20916 return $1
20917 } # as_fn_set_status
20918
20919 # as_fn_exit STATUS
20920 # -----------------
20921 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20922 as_fn_exit ()
20923 {
20924 set +e
20925 as_fn_set_status $1
20926 exit $1
20927 } # as_fn_exit
20928
20929 # as_fn_unset VAR
20930 # ---------------
20931 # Portably unset VAR.
20932 as_fn_unset ()
20933 {
20934 { eval $1=; unset $1;}
20935 }
20936 as_unset=as_fn_unset
20937 # as_fn_append VAR VALUE
20938 # ----------------------
20939 # Append the text in VALUE to the end of the definition contained in VAR. Take
20940 # advantage of any shell optimizations that allow amortized linear growth over
20941 # repeated appends, instead of the typical quadratic growth present in naive
20942 # implementations.
20943 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20944 eval 'as_fn_append ()
20945 {
20946 eval $1+=\$2
20947 }'
20948 else
20949 as_fn_append ()
20950 {
20951 eval $1=\$$1\$2
20952 }
20953 fi # as_fn_append
20954
20955 # as_fn_arith ARG...
20956 # ------------------
20957 # Perform arithmetic evaluation on the ARGs, and store the result in the
20958 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20959 # must be portable across $(()) and expr.
20960 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20961 eval 'as_fn_arith ()
20962 {
20963 as_val=$(( $* ))
20964 }'
20965 else
20966 as_fn_arith ()
20967 {
20968 as_val=`expr "$@" || test $? -eq 1`
20969 }
20970 fi # as_fn_arith
20971
20972
20973 if expr a : '\(a\)' >/dev/null 2>&1 &&
20974 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20975 as_expr=expr
20976 else
20977 as_expr=false
20978 fi
20979
20980 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20981 as_basename=basename
20982 else
20983 as_basename=false
20984 fi
20985
20986 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20987 as_dirname=dirname
20988 else
20989 as_dirname=false
20990 fi
20991
20992 as_me=`$as_basename -- "$0" ||
20993 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20994 X"$0" : 'X\(//\)$' \| \
20995 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20996 $as_echo X/"$0" |
20997 sed '/^.*\/\([^/][^/]*\)\/*$/{
20998 s//\1/
20999 q
21000 }
21001 /^X\/\(\/\/\)$/{
21002 s//\1/
21003 q
21004 }
21005 /^X\/\(\/\).*/{
21006 s//\1/
21007 q
21008 }
21009 s/.*/./; q'`
21010
21011 # Avoid depending upon Character Ranges.
21012 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21013 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21014 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21015 as_cr_digits='0123456789'
21016 as_cr_alnum=$as_cr_Letters$as_cr_digits
21017
21018 ECHO_C= ECHO_N= ECHO_T=
21019 case `echo -n x` in #(((((
21020 -n*)
21021 case `echo 'xy\c'` in
21022 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21023 xy) ECHO_C='\c';;
21024 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21025 ECHO_T=' ';;
21026 esac;;
21027 *)
21028 ECHO_N='-n';;
21029 esac
21030
21031 rm -f conf$$ conf$$.exe conf$$.file
21032 if test -d conf$$.dir; then
21033 rm -f conf$$.dir/conf$$.file
21034 else
21035 rm -f conf$$.dir
21036 mkdir conf$$.dir 2>/dev/null
21037 fi
21038 if (echo >conf$$.file) 2>/dev/null; then
21039 if ln -s conf$$.file conf$$ 2>/dev/null; then
21040 as_ln_s='ln -s'
21041 # ... but there are two gotchas:
21042 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21043 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21044 # In both cases, we have to default to `cp -pR'.
21045 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21046 as_ln_s='cp -pR'
21047 elif ln conf$$.file conf$$ 2>/dev/null; then
21048 as_ln_s=ln
21049 else
21050 as_ln_s='cp -pR'
21051 fi
21052 else
21053 as_ln_s='cp -pR'
21054 fi
21055 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21056 rmdir conf$$.dir 2>/dev/null
21057
21058
21059 # as_fn_mkdir_p
21060 # -------------
21061 # Create "$as_dir" as a directory, including parents if necessary.
21062 as_fn_mkdir_p ()
21063 {
21064
21065 case $as_dir in #(
21066 -*) as_dir=./$as_dir;;
21067 esac
21068 test -d "$as_dir" || eval $as_mkdir_p || {
21069 as_dirs=
21070 while :; do
21071 case $as_dir in #(
21072 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21073 *) as_qdir=$as_dir;;
21074 esac
21075 as_dirs="'$as_qdir' $as_dirs"
21076 as_dir=`$as_dirname -- "$as_dir" ||
21077 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21078 X"$as_dir" : 'X\(//\)[^/]' \| \
21079 X"$as_dir" : 'X\(//\)$' \| \
21080 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21081 $as_echo X"$as_dir" |
21082 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21083 s//\1/
21084 q
21085 }
21086 /^X\(\/\/\)[^/].*/{
21087 s//\1/
21088 q
21089 }
21090 /^X\(\/\/\)$/{
21091 s//\1/
21092 q
21093 }
21094 /^X\(\/\).*/{
21095 s//\1/
21096 q
21097 }
21098 s/.*/./; q'`
21099 test -d "$as_dir" && break
21100 done
21101 test -z "$as_dirs" || eval "mkdir $as_dirs"
21102 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21103
21104
21105 } # as_fn_mkdir_p
21106 if mkdir -p . 2>/dev/null; then
21107 as_mkdir_p='mkdir -p "$as_dir"'
21108 else
21109 test -d ./-p && rmdir ./-p
21110 as_mkdir_p=false
21111 fi
21112
21113
21114 # as_fn_executable_p FILE
21115 # -----------------------
21116 # Test if FILE is an executable regular file.
21117 as_fn_executable_p ()
21118 {
21119 test -f "$1" && test -x "$1"
21120 } # as_fn_executable_p
21121 as_test_x='test -x'
21122 as_executable_p=as_fn_executable_p
21123
21124 # Sed expression to map a string onto a valid CPP name.
21125 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21126
21127 # Sed expression to map a string onto a valid variable name.
21128 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21129
21130
21131 exec 6>&1
21132 ## ----------------------------------- ##
21133 ## Main body of $CONFIG_STATUS script. ##
21134 ## ----------------------------------- ##
21135 _ASEOF
21136 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21137
21138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21139 # Save the log message, to keep $0 and so on meaningful, and to
21140 # report actual input values of CONFIG_FILES etc. instead of their
21141 # values after options handling.
21142 ac_log="
21143 This file was extended by libxcb $as_me 1.11, which was
21144 generated by GNU Autoconf 2.69. Invocation command line was
21145
21146 CONFIG_FILES = $CONFIG_FILES
21147 CONFIG_HEADERS = $CONFIG_HEADERS
21148 CONFIG_LINKS = $CONFIG_LINKS
21149 CONFIG_COMMANDS = $CONFIG_COMMANDS
21150 $ $0 $@
21151
21152 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21153 "
21154
21155 _ACEOF
21156
21157 case $ac_config_files in *"
21158 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21159 esac
21160
21161 case $ac_config_headers in *"
21162 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21163 esac
21164
21165
21166 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21167 # Files that config.status was made for.
21168 config_files="$ac_config_files"
21169 config_headers="$ac_config_headers"
21170 config_commands="$ac_config_commands"
21171
21172 _ACEOF
21173
21174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21175 ac_cs_usage="\
21176 \`$as_me' instantiates files and other configuration actions
21177 from templates according to the current configuration. Unless the files
21178 and actions are specified as TAGs, all are instantiated by default.
21179
21180 Usage: $0 [OPTION]... [TAG]...
21181
21182 -h, --help print this help, then exit
21183 -V, --version print version number and configuration settings, then exit
21184 --config print configuration, then exit
21185 -q, --quiet, --silent
21186 do not print progress messages
21187 -d, --debug don't remove temporary files
21188 --recheck update $as_me by reconfiguring in the same conditions
21189 --file=FILE[:TEMPLATE]
21190 instantiate the configuration file FILE
21191 --header=FILE[:TEMPLATE]
21192 instantiate the configuration header FILE
21193
21194 Configuration files:
21195 $config_files
21196
21197 Configuration headers:
21198 $config_headers
21199
21200 Configuration commands:
21201 $config_commands
21202
21203 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xcb>."
21204
21205 _ACEOF
21206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21207 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21208 ac_cs_version="\\
21209 libxcb config.status 1.11
21210 configured by $0, generated by GNU Autoconf 2.69,
21211 with options \\"\$ac_cs_config\\"
21212
21213 Copyright (C) 2012 Free Software Foundation, Inc.
21214 This config.status script is free software; the Free Software Foundation
21215 gives unlimited permission to copy, distribute and modify it."
21216
21217 ac_pwd='$ac_pwd'
21218 srcdir='$srcdir'
21219 INSTALL='$INSTALL'
21220 MKDIR_P='$MKDIR_P'
21221 AWK='$AWK'
21222 test -n "\$AWK" || AWK=awk
21223 _ACEOF
21224
21225 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21226 # The default lists apply if the user does not specify any file.
21227 ac_need_defaults=:
21228 while test $# != 0
21229 do
21230 case $1 in
21231 --*=?*)
21232 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21233 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21234 ac_shift=:
21235 ;;
21236 --*=)
21237 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21238 ac_optarg=
21239 ac_shift=:
21240 ;;
21241 *)
21242 ac_option=$1
21243 ac_optarg=$2
21244 ac_shift=shift
21245 ;;
21246 esac
21247
21248 case $ac_option in
21249 # Handling of the options.
21250 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21251 ac_cs_recheck=: ;;
21252 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21253 $as_echo "$ac_cs_version"; exit ;;
21254 --config | --confi | --conf | --con | --co | --c )
21255 $as_echo "$ac_cs_config"; exit ;;
21256 --debug | --debu | --deb | --de | --d | -d )
21257 debug=: ;;
21258 --file | --fil | --fi | --f )
21259 $ac_shift
21260 case $ac_optarg in
21261 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21262 '') as_fn_error $? "missing file argument" ;;
21263 esac
21264 as_fn_append CONFIG_FILES " '$ac_optarg'"
21265 ac_need_defaults=false;;
21266 --header | --heade | --head | --hea )
21267 $ac_shift
21268 case $ac_optarg in
21269 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21270 esac
21271 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21272 ac_need_defaults=false;;
21273 --he | --h)
21274 # Conflict between --help and --header
21275 as_fn_error $? "ambiguous option: \`$1'
21276 Try \`$0 --help' for more information.";;
21277 --help | --hel | -h )
21278 $as_echo "$ac_cs_usage"; exit ;;
21279 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21280 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21281 ac_cs_silent=: ;;
21282
21283 # This is an error.
21284 -*) as_fn_error $? "unrecognized option: \`$1'
21285 Try \`$0 --help' for more information." ;;
21286
21287 *) as_fn_append ac_config_targets " $1"
21288 ac_need_defaults=false ;;
21289
21290 esac
21291 shift
21292 done
21293
21294 ac_configure_extra_args=
21295
21296 if $ac_cs_silent; then
21297 exec 6>/dev/null
21298 ac_configure_extra_args="$ac_configure_extra_args --silent"
21299 fi
21300
21301 _ACEOF
21302 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21303 if \$ac_cs_recheck; then
21304 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21305 shift
21306 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21307 CONFIG_SHELL='$SHELL'
21308 export CONFIG_SHELL
21309 exec "\$@"
21310 fi
21311
21312 _ACEOF
21313 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21314 exec 5>>config.log
21315 {
21316 echo
21317 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21318 ## Running $as_me. ##
21319 _ASBOX
21320 $as_echo "$ac_log"
21321 } >&5
21322
21323 _ACEOF
21324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21325 #
21326 # INIT-COMMANDS
21327 #
21328 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21329
21330
21331 # The HP-UX ksh and POSIX shell print the target directory to stdout
21332 # if CDPATH is set.
21333 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21334
21335 sed_quote_subst='$sed_quote_subst'
21336 double_quote_subst='$double_quote_subst'
21337 delay_variable_subst='$delay_variable_subst'
21338 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21339 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21340 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
21341 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21342 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21343 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21344 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21345 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21346 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21347 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21348 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21349 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21350 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21351 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21352 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21353 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21354 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21355 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21356 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21357 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21358 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21359 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21360 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21361 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21362 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21363 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21364 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21365 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21366 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21367 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21368 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21369 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21370 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21371 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21372 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21373 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21374 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21375 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21376 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21377 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21378 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21379 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21380 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21381 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21382 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21383 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21384 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21385 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21386 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21387 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21388 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21389 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21390 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21391 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21392 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21393 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21394 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21395 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"`'
21396 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21397 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21398 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21399 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21400 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21401 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21402 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21403 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21404 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21405 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21406 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21407 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21408 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21409 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21410 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21411 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21412 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21413 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21414 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21415 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21416 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21417 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21418 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21419 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21420 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21421 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21422 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21423 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21424 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21425 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21426 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21427 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21428 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21429 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21430 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21431 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21432 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21433 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21434 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21435 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21436 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21437 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21438 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21439 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21440 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21441 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21442 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21443 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21444 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21445 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21446 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21447 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21448 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21449 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21450 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21451 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21452 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21453 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21454 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21455 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21456 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21457 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21458 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21459 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21460 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21461 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21462 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
21463 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21464 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21465 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21466 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21467 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21468 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21469
21470 LTCC='$LTCC'
21471 LTCFLAGS='$LTCFLAGS'
21472 compiler='$compiler_DEFAULT'
21473
21474 # A function that is used when there is no print builtin or printf.
21475 func_fallback_echo ()
21476 {
21477 eval 'cat <<_LTECHO_EOF
21478 \$1
21479 _LTECHO_EOF'
21480 }
21481
21482 # Quote evaled strings.
21483 for var in AS \
21484 DLLTOOL \
21485 OBJDUMP \
21486 SHELL \
21487 ECHO \
21488 PATH_SEPARATOR \
21489 SED \
21490 GREP \
21491 EGREP \
21492 FGREP \
21493 LD \
21494 NM \
21495 LN_S \
21496 lt_SP2NL \
21497 lt_NL2SP \
21498 reload_flag \
21499 deplibs_check_method \
21500 file_magic_cmd \
21501 file_magic_glob \
21502 want_nocaseglob \
21503 sharedlib_from_linklib_cmd \
21504 AR \
21505 AR_FLAGS \
21506 archiver_list_spec \
21507 STRIP \
21508 RANLIB \
21509 CC \
21510 CFLAGS \
21511 compiler \
21512 lt_cv_sys_global_symbol_pipe \
21513 lt_cv_sys_global_symbol_to_cdecl \
21514 lt_cv_sys_global_symbol_to_c_name_address \
21515 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21516 nm_file_list_spec \
21517 lt_prog_compiler_no_builtin_flag \
21518 lt_prog_compiler_pic \
21519 lt_prog_compiler_wl \
21520 lt_prog_compiler_static \
21521 lt_cv_prog_compiler_c_o \
21522 need_locks \
21523 MANIFEST_TOOL \
21524 DSYMUTIL \
21525 NMEDIT \
21526 LIPO \
21527 OTOOL \
21528 OTOOL64 \
21529 shrext_cmds \
21530 export_dynamic_flag_spec \
21531 whole_archive_flag_spec \
21532 compiler_needs_object \
21533 with_gnu_ld \
21534 allow_undefined_flag \
21535 no_undefined_flag \
21536 hardcode_libdir_flag_spec \
21537 hardcode_libdir_separator \
21538 exclude_expsyms \
21539 include_expsyms \
21540 file_list_spec \
21541 variables_saved_for_relink \
21542 libname_spec \
21543 library_names_spec \
21544 soname_spec \
21545 install_override_mode \
21546 finish_eval \
21547 old_striplib \
21548 striplib; do
21549 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21550 *[\\\\\\\`\\"\\\$]*)
21551 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21552 ;;
21553 *)
21554 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21555 ;;
21556 esac
21557 done
21558
21559 # Double-quote double-evaled strings.
21560 for var in reload_cmds \
21561 old_postinstall_cmds \
21562 old_postuninstall_cmds \
21563 old_archive_cmds \
21564 extract_expsyms_cmds \
21565 old_archive_from_new_cmds \
21566 old_archive_from_expsyms_cmds \
21567 archive_cmds \
21568 archive_expsym_cmds \
21569 module_cmds \
21570 module_expsym_cmds \
21571 export_symbols_cmds \
21572 prelink_cmds \
21573 postlink_cmds \
21574 postinstall_cmds \
21575 postuninstall_cmds \
21576 finish_cmds \
21577 sys_lib_search_path_spec \
21578 sys_lib_dlsearch_path_spec; do
21579 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21580 *[\\\\\\\`\\"\\\$]*)
21581 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21582 ;;
21583 *)
21584 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21585 ;;
21586 esac
21587 done
21588
21589 ac_aux_dir='$ac_aux_dir'
21590 xsi_shell='$xsi_shell'
21591 lt_shell_append='$lt_shell_append'
21592
21593 # See if we are running on zsh, and set the options which allow our
21594 # commands through without removal of \ escapes INIT.
21595 if test -n "\${ZSH_VERSION+set}" ; then
21596 setopt NO_GLOB_SUBST
21597 fi
21598
21599
21600 PACKAGE='$PACKAGE'
21601 VERSION='$VERSION'
21602 TIMESTAMP='$TIMESTAMP'
21603 RM='$RM'
21604 ofile='$ofile'
21605
21606
21607
21608
21609 _ACEOF
21610
21611 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21612
21613 # Handling of arguments.
21614 for ac_config_target in $ac_config_targets
21615 do
21616 case $ac_config_target in
21617 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
21618 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21619 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21620 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21621 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21622 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21623 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21624 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
21625 "xcb.pc") CONFIG_FILES="$CONFIG_FILES xcb.pc" ;;
21626 "xcb-composite.pc") CONFIG_FILES="$CONFIG_FILES xcb-composite.pc" ;;
21627 "xcb-damage.pc") CONFIG_FILES="$CONFIG_FILES xcb-damage.pc" ;;
21628 "xcb-dpms.pc") CONFIG_FILES="$CONFIG_FILES xcb-dpms.pc" ;;
21629 "xcb-dri2.pc") CONFIG_FILES="$CONFIG_FILES xcb-dri2.pc" ;;
21630 "xcb-dri3.pc") CONFIG_FILES="$CONFIG_FILES xcb-dri3.pc" ;;
21631 "xcb-glx.pc") CONFIG_FILES="$CONFIG_FILES xcb-glx.pc" ;;
21632 "xcb-present.pc") CONFIG_FILES="$CONFIG_FILES xcb-present.pc" ;;
21633 "xcb-randr.pc") CONFIG_FILES="$CONFIG_FILES xcb-randr.pc" ;;
21634 "xcb-record.pc") CONFIG_FILES="$CONFIG_FILES xcb-record.pc" ;;
21635 "xcb-render.pc") CONFIG_FILES="$CONFIG_FILES xcb-render.pc" ;;
21636 "xcb-res.pc") CONFIG_FILES="$CONFIG_FILES xcb-res.pc" ;;
21637 "xcb-screensaver.pc") CONFIG_FILES="$CONFIG_FILES xcb-screensaver.pc" ;;
21638 "xcb-shape.pc") CONFIG_FILES="$CONFIG_FILES xcb-shape.pc" ;;
21639 "xcb-shm.pc") CONFIG_FILES="$CONFIG_FILES xcb-shm.pc" ;;
21640 "xcb-sync.pc") CONFIG_FILES="$CONFIG_FILES xcb-sync.pc" ;;
21641 "xcb-xevie.pc") CONFIG_FILES="$CONFIG_FILES xcb-xevie.pc" ;;
21642 "xcb-xf86dri.pc") CONFIG_FILES="$CONFIG_FILES xcb-xf86dri.pc" ;;
21643 "xcb-xfixes.pc") CONFIG_FILES="$CONFIG_FILES xcb-xfixes.pc" ;;
21644 "xcb-xinerama.pc") CONFIG_FILES="$CONFIG_FILES xcb-xinerama.pc" ;;
21645 "xcb-xinput.pc") CONFIG_FILES="$CONFIG_FILES xcb-xinput.pc" ;;
21646 "xcb-xkb.pc") CONFIG_FILES="$CONFIG_FILES xcb-xkb.pc" ;;
21647 "xcb-xprint.pc") CONFIG_FILES="$CONFIG_FILES xcb-xprint.pc" ;;
21648 "xcb-xselinux.pc") CONFIG_FILES="$CONFIG_FILES xcb-xselinux.pc" ;;
21649 "xcb-xtest.pc") CONFIG_FILES="$CONFIG_FILES xcb-xtest.pc" ;;
21650 "xcb-xv.pc") CONFIG_FILES="$CONFIG_FILES xcb-xv.pc" ;;
21651 "xcb-xvmc.pc") CONFIG_FILES="$CONFIG_FILES xcb-xvmc.pc" ;;
21652 "doc/xcb.doxygen") CONFIG_FILES="$CONFIG_FILES doc/xcb.doxygen" ;;
21653
21654 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21655 esac
21656 done
21657
21658
21659 # If the user did not use the arguments to specify the items to instantiate,
21660 # then the envvar interface is used. Set only those that are not.
21661 # We use the long form for the default assignment because of an extremely
21662 # bizarre bug on SunOS 4.1.3.
21663 if $ac_need_defaults; then
21664 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21665 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21666 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21667 fi
21668
21669 # Have a temporary directory for convenience. Make it in the build tree
21670 # simply because there is no reason against having it here, and in addition,
21671 # creating and moving files from /tmp can sometimes cause problems.
21672 # Hook for its removal unless debugging.
21673 # Note that there is a small window in which the directory will not be cleaned:
21674 # after its creation but before its name has been assigned to `$tmp'.
21675 $debug ||
21676 {
21677 tmp= ac_tmp=
21678 trap 'exit_status=$?
21679 : "${ac_tmp:=$tmp}"
21680 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21681 ' 0
21682 trap 'as_fn_exit 1' 1 2 13 15
21683 }
21684 # Create a (secure) tmp directory for tmp files.
21685
21686 {
21687 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21688 test -d "$tmp"
21689 } ||
21690 {
21691 tmp=./conf$$-$RANDOM
21692 (umask 077 && mkdir "$tmp")
21693 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21694 ac_tmp=$tmp
21695
21696 # Set up the scripts for CONFIG_FILES section.
21697 # No need to generate them if there are no CONFIG_FILES.
21698 # This happens for instance with `./config.status config.h'.
21699 if test -n "$CONFIG_FILES"; then
21700
21701
21702 ac_cr=`echo X | tr X '\015'`
21703 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21704 # But we know of no other shell where ac_cr would be empty at this
21705 # point, so we can use a bashism as a fallback.
21706 if test "x$ac_cr" = x; then
21707 eval ac_cr=\$\'\\r\'
21708 fi
21709 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21710 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21711 ac_cs_awk_cr='\\r'
21712 else
21713 ac_cs_awk_cr=$ac_cr
21714 fi
21715
21716 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21717 _ACEOF
21718
21719
21720 {
21721 echo "cat >conf$$subs.awk <<_ACEOF" &&
21722 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21723 echo "_ACEOF"
21724 } >conf$$subs.sh ||
21725 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21726 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21727 ac_delim='%!_!# '
21728 for ac_last_try in false false false false false :; do
21729 . ./conf$$subs.sh ||
21730 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21731
21732 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21733 if test $ac_delim_n = $ac_delim_num; then
21734 break
21735 elif $ac_last_try; then
21736 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21737 else
21738 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21739 fi
21740 done
21741 rm -f conf$$subs.sh
21742
21743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21744 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21745 _ACEOF
21746 sed -n '
21747 h
21748 s/^/S["/; s/!.*/"]=/
21749 p
21750 g
21751 s/^[^!]*!//
21752 :repl
21753 t repl
21754 s/'"$ac_delim"'$//
21755 t delim
21756 :nl
21757 h
21758 s/\(.\{148\}\)..*/\1/
21759 t more1
21760 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21761 p
21762 n
21763 b repl
21764 :more1
21765 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21766 p
21767 g
21768 s/.\{148\}//
21769 t nl
21770 :delim
21771 h
21772 s/\(.\{148\}\)..*/\1/
21773 t more2
21774 s/["\\]/\\&/g; s/^/"/; s/$/"/
21775 p
21776 b
21777 :more2
21778 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21779 p
21780 g
21781 s/.\{148\}//
21782 t delim
21783 ' <conf$$subs.awk | sed '
21784 /^[^""]/{
21785 N
21786 s/\n//
21787 }
21788 ' >>$CONFIG_STATUS || ac_write_fail=1
21789 rm -f conf$$subs.awk
21790 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21791 _ACAWK
21792 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21793 for (key in S) S_is_set[key] = 1
21794 FS = ""
21795
21796 }
21797 {
21798 line = $ 0
21799 nfields = split(line, field, "@")
21800 substed = 0
21801 len = length(field[1])
21802 for (i = 2; i < nfields; i++) {
21803 key = field[i]
21804 keylen = length(key)
21805 if (S_is_set[key]) {
21806 value = S[key]
21807 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21808 len += length(value) + length(field[++i])
21809 substed = 1
21810 } else
21811 len += 1 + keylen
21812 }
21813
21814 print line
21815 }
21816
21817 _ACAWK
21818 _ACEOF
21819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21820 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21821 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21822 else
21823 cat
21824 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21825 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21826 _ACEOF
21827
21828 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21829 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21830 # trailing colons and then remove the whole line if VPATH becomes empty
21831 # (actually we leave an empty line to preserve line numbers).
21832 if test "x$srcdir" = x.; then
21833 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21834 h
21835 s///
21836 s/^/:/
21837 s/[ ]*$/:/
21838 s/:\$(srcdir):/:/g
21839 s/:\${srcdir}:/:/g
21840 s/:@srcdir@:/:/g
21841 s/^:*//
21842 s/:*$//
21843 x
21844 s/\(=[ ]*\).*/\1/
21845 G
21846 s/\n//
21847 s/^[^=]*=[ ]*$//
21848 }'
21849 fi
21850
21851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21852 fi # test -n "$CONFIG_FILES"
21853
21854 # Set up the scripts for CONFIG_HEADERS section.
21855 # No need to generate them if there are no CONFIG_HEADERS.
21856 # This happens for instance with `./config.status Makefile'.
21857 if test -n "$CONFIG_HEADERS"; then
21858 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21859 BEGIN {
21860 _ACEOF
21861
21862 # Transform confdefs.h into an awk script `defines.awk', embedded as
21863 # here-document in config.status, that substitutes the proper values into
21864 # config.h.in to produce config.h.
21865
21866 # Create a delimiter string that does not exist in confdefs.h, to ease
21867 # handling of long lines.
21868 ac_delim='%!_!# '
21869 for ac_last_try in false false :; do
21870 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21871 if test -z "$ac_tt"; then
21872 break
21873 elif $ac_last_try; then
21874 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21875 else
21876 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21877 fi
21878 done
21879
21880 # For the awk script, D is an array of macro values keyed by name,
21881 # likewise P contains macro parameters if any. Preserve backslash
21882 # newline sequences.
21883
21884 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21885 sed -n '
21886 s/.\{148\}/&'"$ac_delim"'/g
21887 t rset
21888 :rset
21889 s/^[ ]*#[ ]*define[ ][ ]*/ /
21890 t def
21891 d
21892 :def
21893 s/\\$//
21894 t bsnl
21895 s/["\\]/\\&/g
21896 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21897 D["\1"]=" \3"/p
21898 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21899 d
21900 :bsnl
21901 s/["\\]/\\&/g
21902 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21903 D["\1"]=" \3\\\\\\n"\\/p
21904 t cont
21905 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21906 t cont
21907 d
21908 :cont
21909 n
21910 s/.\{148\}/&'"$ac_delim"'/g
21911 t clear
21912 :clear
21913 s/\\$//
21914 t bsnlc
21915 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21916 d
21917 :bsnlc
21918 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21919 b cont
21920 ' <confdefs.h | sed '
21921 s/'"$ac_delim"'/"\\\
21922 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21923
21924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21925 for (key in D) D_is_set[key] = 1
21926 FS = ""
21927 }
21928 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21929 line = \$ 0
21930 split(line, arg, " ")
21931 if (arg[1] == "#") {
21932 defundef = arg[2]
21933 mac1 = arg[3]
21934 } else {
21935 defundef = substr(arg[1], 2)
21936 mac1 = arg[2]
21937 }
21938 split(mac1, mac2, "(") #)
21939 macro = mac2[1]
21940 prefix = substr(line, 1, index(line, defundef) - 1)
21941 if (D_is_set[macro]) {
21942 # Preserve the white space surrounding the "#".
21943 print prefix "define", macro P[macro] D[macro]
21944 next
21945 } else {
21946 # Replace #undef with comments. This is necessary, for example,
21947 # in the case of _POSIX_SOURCE, which is predefined and required
21948 # on some systems where configure will not decide to define it.
21949 if (defundef == "undef") {
21950 print "/*", prefix defundef, macro, "*/"
21951 next
21952 }
21953 }
21954 }
21955 { print }
21956 _ACAWK
21957 _ACEOF
21958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21959 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21960 fi # test -n "$CONFIG_HEADERS"
21961
21962
21963 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21964 shift
21965 for ac_tag
21966 do
21967 case $ac_tag in
21968 :[FHLC]) ac_mode=$ac_tag; continue;;
21969 esac
21970 case $ac_mode$ac_tag in
21971 :[FHL]*:*);;
21972 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21973 :[FH]-) ac_tag=-:-;;
21974 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21975 esac
21976 ac_save_IFS=$IFS
21977 IFS=:
21978 set x $ac_tag
21979 IFS=$ac_save_IFS
21980 shift
21981 ac_file=$1
21982 shift
21983
21984 case $ac_mode in
21985 :L) ac_source=$1;;
21986 :[FH])
21987 ac_file_inputs=
21988 for ac_f
21989 do
21990 case $ac_f in
21991 -) ac_f="$ac_tmp/stdin";;
21992 *) # Look for the file first in the build tree, then in the source tree
21993 # (if the path is not absolute). The absolute path cannot be DOS-style,
21994 # because $ac_f cannot contain `:'.
21995 test -f "$ac_f" ||
21996 case $ac_f in
21997 [\\/$]*) false;;
21998 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21999 esac ||
22000 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22001 esac
22002 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22003 as_fn_append ac_file_inputs " '$ac_f'"
22004 done
22005
22006 # Let's still pretend it is `configure' which instantiates (i.e., don't
22007 # use $as_me), people would be surprised to read:
22008 # /* config.h. Generated by config.status. */
22009 configure_input='Generated from '`
22010 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22011 `' by configure.'
22012 if test x"$ac_file" != x-; then
22013 configure_input="$ac_file. $configure_input"
22014 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22015 $as_echo "$as_me: creating $ac_file" >&6;}
22016 fi
22017 # Neutralize special characters interpreted by sed in replacement strings.
22018 case $configure_input in #(
22019 *\&* | *\|* | *\\* )
22020 ac_sed_conf_input=`$as_echo "$configure_input" |
22021 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22022 *) ac_sed_conf_input=$configure_input;;
22023 esac
22024
22025 case $ac_tag in
22026 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22027 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22028 esac
22029 ;;
22030 esac
22031
22032 ac_dir=`$as_dirname -- "$ac_file" ||
22033 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22034 X"$ac_file" : 'X\(//\)[^/]' \| \
22035 X"$ac_file" : 'X\(//\)$' \| \
22036 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22037 $as_echo X"$ac_file" |
22038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22039 s//\1/
22040 q
22041 }
22042 /^X\(\/\/\)[^/].*/{
22043 s//\1/
22044 q
22045 }
22046 /^X\(\/\/\)$/{
22047 s//\1/
22048 q
22049 }
22050 /^X\(\/\).*/{
22051 s//\1/
22052 q
22053 }
22054 s/.*/./; q'`
22055 as_dir="$ac_dir"; as_fn_mkdir_p
22056 ac_builddir=.
22057
22058 case "$ac_dir" in
22059 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22060 *)
22061 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22062 # A ".." for each directory in $ac_dir_suffix.
22063 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22064 case $ac_top_builddir_sub in
22065 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22066 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22067 esac ;;
22068 esac
22069 ac_abs_top_builddir=$ac_pwd
22070 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22071 # for backward compatibility:
22072 ac_top_builddir=$ac_top_build_prefix
22073
22074 case $srcdir in
22075 .) # We are building in place.
22076 ac_srcdir=.
22077 ac_top_srcdir=$ac_top_builddir_sub
22078 ac_abs_top_srcdir=$ac_pwd ;;
22079 [\\/]* | ?:[\\/]* ) # Absolute name.
22080 ac_srcdir=$srcdir$ac_dir_suffix;
22081 ac_top_srcdir=$srcdir
22082 ac_abs_top_srcdir=$srcdir ;;
22083 *) # Relative name.
22084 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22085 ac_top_srcdir=$ac_top_build_prefix$srcdir
22086 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22087 esac
22088 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22089
22090
22091 case $ac_mode in
22092 :F)
22093 #
22094 # CONFIG_FILE
22095 #
22096
22097 case $INSTALL in
22098 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22099 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22100 esac
22101 ac_MKDIR_P=$MKDIR_P
22102 case $MKDIR_P in
22103 [\\/$]* | ?:[\\/]* ) ;;
22104 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22105 esac
22106 _ACEOF
22107
22108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22109 # If the template does not know about datarootdir, expand it.
22110 # FIXME: This hack should be removed a few years after 2.60.
22111 ac_datarootdir_hack=; ac_datarootdir_seen=
22112 ac_sed_dataroot='
22113 /datarootdir/ {
22114 p
22115 q
22116 }
22117 /@datadir@/p
22118 /@docdir@/p
22119 /@infodir@/p
22120 /@localedir@/p
22121 /@mandir@/p'
22122 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22123 *datarootdir*) ac_datarootdir_seen=yes;;
22124 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22126 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22127 _ACEOF
22128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22129 ac_datarootdir_hack='
22130 s&@datadir@&$datadir&g
22131 s&@docdir@&$docdir&g
22132 s&@infodir@&$infodir&g
22133 s&@localedir@&$localedir&g
22134 s&@mandir@&$mandir&g
22135 s&\\\${datarootdir}&$datarootdir&g' ;;
22136 esac
22137 _ACEOF
22138
22139 # Neutralize VPATH when `$srcdir' = `.'.
22140 # Shell code in configure.ac might set extrasub.
22141 # FIXME: do we really want to maintain this feature?
22142 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22143 ac_sed_extra="$ac_vpsub
22144 $extrasub
22145 _ACEOF
22146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22147 :t
22148 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22149 s|@configure_input@|$ac_sed_conf_input|;t t
22150 s&@top_builddir@&$ac_top_builddir_sub&;t t
22151 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22152 s&@srcdir@&$ac_srcdir&;t t
22153 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22154 s&@top_srcdir@&$ac_top_srcdir&;t t
22155 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22156 s&@builddir@&$ac_builddir&;t t
22157 s&@abs_builddir@&$ac_abs_builddir&;t t
22158 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22159 s&@INSTALL@&$ac_INSTALL&;t t
22160 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22161 $ac_datarootdir_hack
22162 "
22163 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22164 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22165
22166 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22167 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22168 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22169 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22171 which seems to be undefined. Please make sure it is defined" >&5
22172 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22173 which seems to be undefined. Please make sure it is defined" >&2;}
22174
22175 rm -f "$ac_tmp/stdin"
22176 case $ac_file in
22177 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22178 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22179 esac \
22180 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22181 ;;
22182 :H)
22183 #
22184 # CONFIG_HEADER
22185 #
22186 if test x"$ac_file" != x-; then
22187 {
22188 $as_echo "/* $configure_input */" \
22189 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22190 } >"$ac_tmp/config.h" \
22191 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22192 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22193 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22194 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22195 else
22196 rm -f "$ac_file"
22197 mv "$ac_tmp/config.h" "$ac_file" \
22198 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22199 fi
22200 else
22201 $as_echo "/* $configure_input */" \
22202 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22203 || as_fn_error $? "could not create -" "$LINENO" 5
22204 fi
22205 # Compute "$ac_file"'s index in $config_headers.
22206 _am_arg="$ac_file"
22207 _am_stamp_count=1
22208 for _am_header in $config_headers :; do
22209 case $_am_header in
22210 $_am_arg | $_am_arg:* )
22211 break ;;
22212 * )
22213 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22214 esac
22215 done
22216 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22217 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22218 X"$_am_arg" : 'X\(//\)[^/]' \| \
22219 X"$_am_arg" : 'X\(//\)$' \| \
22220 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22221 $as_echo X"$_am_arg" |
22222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22223 s//\1/
22224 q
22225 }
22226 /^X\(\/\/\)[^/].*/{
22227 s//\1/
22228 q
22229 }
22230 /^X\(\/\/\)$/{
22231 s//\1/
22232 q
22233 }
22234 /^X\(\/\).*/{
22235 s//\1/
22236 q
22237 }
22238 s/.*/./; q'`/stamp-h$_am_stamp_count
22239 ;;
22240
22241 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22242 $as_echo "$as_me: executing $ac_file commands" >&6;}
22243 ;;
22244 esac
22245
22246
22247 case $ac_file$ac_mode in
22248 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22249 # Older Autoconf quotes --file arguments for eval, but not when files
22250 # are listed without --file. Let's play safe and only enable the eval
22251 # if we detect the quoting.
22252 case $CONFIG_FILES in
22253 *\'*) eval set x "$CONFIG_FILES" ;;
22254 *) set x $CONFIG_FILES ;;
22255 esac
22256 shift
22257 for mf
22258 do
22259 # Strip MF so we end up with the name of the file.
22260 mf=`echo "$mf" | sed -e 's/:.*$//'`
22261 # Check whether this is an Automake generated Makefile or not.
22262 # We used to match only the files named 'Makefile.in', but
22263 # some people rename them; so instead we look at the file content.
22264 # Grep'ing the first line is not enough: some people post-process
22265 # each Makefile.in and add a new line on top of each file to say so.
22266 # Grep'ing the whole file is not good either: AIX grep has a line
22267 # limit of 2048, but all sed's we know have understand at least 4000.
22268 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22269 dirpart=`$as_dirname -- "$mf" ||
22270 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22271 X"$mf" : 'X\(//\)[^/]' \| \
22272 X"$mf" : 'X\(//\)$' \| \
22273 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22274 $as_echo X"$mf" |
22275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22276 s//\1/
22277 q
22278 }
22279 /^X\(\/\/\)[^/].*/{
22280 s//\1/
22281 q
22282 }
22283 /^X\(\/\/\)$/{
22284 s//\1/
22285 q
22286 }
22287 /^X\(\/\).*/{
22288 s//\1/
22289 q
22290 }
22291 s/.*/./; q'`
22292 else
22293 continue
22294 fi
22295 # Extract the definition of DEPDIR, am__include, and am__quote
22296 # from the Makefile without running 'make'.
22297 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22298 test -z "$DEPDIR" && continue
22299 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22300 test -z "$am__include" && continue
22301 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22302 # Find all dependency output files, they are included files with
22303 # $(DEPDIR) in their names. We invoke sed twice because it is the
22304 # simplest approach to changing $(DEPDIR) to its actual value in the
22305 # expansion.
22306 for file in `sed -n "
22307 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22308 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
22309 # Make sure the directory exists.
22310 test -f "$dirpart/$file" && continue
22311 fdir=`$as_dirname -- "$file" ||
22312 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22313 X"$file" : 'X\(//\)[^/]' \| \
22314 X"$file" : 'X\(//\)$' \| \
22315 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22316 $as_echo X"$file" |
22317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22318 s//\1/
22319 q
22320 }
22321 /^X\(\/\/\)[^/].*/{
22322 s//\1/
22323 q
22324 }
22325 /^X\(\/\/\)$/{
22326 s//\1/
22327 q
22328 }
22329 /^X\(\/\).*/{
22330 s//\1/
22331 q
22332 }
22333 s/.*/./; q'`
22334 as_dir=$dirpart/$fdir; as_fn_mkdir_p
22335 # echo "creating $dirpart/$file"
22336 echo '# dummy' > "$dirpart/$file"
22337 done
22338 done
22339 }
22340 ;;
22341 "libtool":C)
22342
22343 # See if we are running on zsh, and set the options which allow our
22344 # commands through without removal of \ escapes.
22345 if test -n "${ZSH_VERSION+set}" ; then
22346 setopt NO_GLOB_SUBST
22347 fi
22348
22349 cfgfile="${ofile}T"
22350 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22351 $RM "$cfgfile"
22352
22353 cat <<_LT_EOF >> "$cfgfile"
22354 #! $SHELL
22355
22356 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22357 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22358 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22359 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22360 #
22361 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22362 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
22363 # Foundation, Inc.
22364 # Written by Gordon Matzigkeit, 1996
22365 #
22366 # This file is part of GNU Libtool.
22367 #
22368 # GNU Libtool is free software; you can redistribute it and/or
22369 # modify it under the terms of the GNU General Public License as
22370 # published by the Free Software Foundation; either version 2 of
22371 # the License, or (at your option) any later version.
22372 #
22373 # As a special exception to the GNU General Public License,
22374 # if you distribute this file as part of a program or library that
22375 # is built using GNU Libtool, you may include this file under the
22376 # same distribution terms that you use for the rest of that program.
22377 #
22378 # GNU Libtool is distributed in the hope that it will be useful,
22379 # but WITHOUT ANY WARRANTY; without even the implied warranty of
22380 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22381 # GNU General Public License for more details.
22382 #
22383 # You should have received a copy of the GNU General Public License
22384 # along with GNU Libtool; see the file COPYING. If not, a copy
22385 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22386 # obtained by writing to the Free Software Foundation, Inc.,
22387 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22388
22389
22390 # The names of the tagged configurations supported by this script.
22391 available_tags=""
22392
22393 # ### BEGIN LIBTOOL CONFIG
22394
22395 # Which release of libtool.m4 was used?
22396 macro_version=$macro_version
22397 macro_revision=$macro_revision
22398
22399 # Assembler program.
22400 AS=$lt_AS
22401
22402 # DLL creation program.
22403 DLLTOOL=$lt_DLLTOOL
22404
22405 # Object dumper program.
22406 OBJDUMP=$lt_OBJDUMP
22407
22408 # Whether or not to build shared libraries.
22409 build_libtool_libs=$enable_shared
22410
22411 # Whether or not to build static libraries.
22412 build_old_libs=$enable_static
22413
22414 # What type of objects to build.
22415 pic_mode=$pic_mode
22416
22417 # Whether or not to optimize for fast installation.
22418 fast_install=$enable_fast_install
22419
22420 # Shell to use when invoking shell scripts.
22421 SHELL=$lt_SHELL
22422
22423 # An echo program that protects backslashes.
22424 ECHO=$lt_ECHO
22425
22426 # The PATH separator for the build system.
22427 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22428
22429 # The host system.
22430 host_alias=$host_alias
22431 host=$host
22432 host_os=$host_os
22433
22434 # The build system.
22435 build_alias=$build_alias
22436 build=$build
22437 build_os=$build_os
22438
22439 # A sed program that does not truncate output.
22440 SED=$lt_SED
22441
22442 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22443 Xsed="\$SED -e 1s/^X//"
22444
22445 # A grep program that handles long lines.
22446 GREP=$lt_GREP
22447
22448 # An ERE matcher.
22449 EGREP=$lt_EGREP
22450
22451 # A literal string matcher.
22452 FGREP=$lt_FGREP
22453
22454 # A BSD- or MS-compatible name lister.
22455 NM=$lt_NM
22456
22457 # Whether we need soft or hard links.
22458 LN_S=$lt_LN_S
22459
22460 # What is the maximum length of a command?
22461 max_cmd_len=$max_cmd_len
22462
22463 # Object file suffix (normally "o").
22464 objext=$ac_objext
22465
22466 # Executable file suffix (normally "").
22467 exeext=$exeext
22468
22469 # whether the shell understands "unset".
22470 lt_unset=$lt_unset
22471
22472 # turn spaces into newlines.
22473 SP2NL=$lt_lt_SP2NL
22474
22475 # turn newlines into spaces.
22476 NL2SP=$lt_lt_NL2SP
22477
22478 # convert \$build file names to \$host format.
22479 to_host_file_cmd=$lt_cv_to_host_file_cmd
22480
22481 # convert \$build files to toolchain format.
22482 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22483
22484 # Method to check whether dependent libraries are shared objects.
22485 deplibs_check_method=$lt_deplibs_check_method
22486
22487 # Command to use when deplibs_check_method = "file_magic".
22488 file_magic_cmd=$lt_file_magic_cmd
22489
22490 # How to find potential files when deplibs_check_method = "file_magic".
22491 file_magic_glob=$lt_file_magic_glob
22492
22493 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22494 want_nocaseglob=$lt_want_nocaseglob
22495
22496 # Command to associate shared and link libraries.
22497 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22498
22499 # The archiver.
22500 AR=$lt_AR
22501
22502 # Flags to create an archive.
22503 AR_FLAGS=$lt_AR_FLAGS
22504
22505 # How to feed a file listing to the archiver.
22506 archiver_list_spec=$lt_archiver_list_spec
22507
22508 # A symbol stripping program.
22509 STRIP=$lt_STRIP
22510
22511 # Commands used to install an old-style archive.
22512 RANLIB=$lt_RANLIB
22513 old_postinstall_cmds=$lt_old_postinstall_cmds
22514 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22515
22516 # Whether to use a lock for old archive extraction.
22517 lock_old_archive_extraction=$lock_old_archive_extraction
22518
22519 # A C compiler.
22520 LTCC=$lt_CC
22521
22522 # LTCC compiler flags.
22523 LTCFLAGS=$lt_CFLAGS
22524
22525 # Take the output of nm and produce a listing of raw symbols and C names.
22526 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22527
22528 # Transform the output of nm in a proper C declaration.
22529 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22530
22531 # Transform the output of nm in a C name address pair.
22532 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22533
22534 # Transform the output of nm in a C name address pair when lib prefix is needed.
22535 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22536
22537 # Specify filename containing input files for \$NM.
22538 nm_file_list_spec=$lt_nm_file_list_spec
22539
22540 # The root where to search for dependent libraries,and in which our libraries should be installed.
22541 lt_sysroot=$lt_sysroot
22542
22543 # The name of the directory that contains temporary libtool files.
22544 objdir=$objdir
22545
22546 # Used to examine libraries when file_magic_cmd begins with "file".
22547 MAGIC_CMD=$MAGIC_CMD
22548
22549 # Must we lock files when doing compilation?
22550 need_locks=$lt_need_locks
22551
22552 # Manifest tool.
22553 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22554
22555 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22556 DSYMUTIL=$lt_DSYMUTIL
22557
22558 # Tool to change global to local symbols on Mac OS X.
22559 NMEDIT=$lt_NMEDIT
22560
22561 # Tool to manipulate fat objects and archives on Mac OS X.
22562 LIPO=$lt_LIPO
22563
22564 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22565 OTOOL=$lt_OTOOL
22566
22567 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22568 OTOOL64=$lt_OTOOL64
22569
22570 # Old archive suffix (normally "a").
22571 libext=$libext
22572
22573 # Shared library suffix (normally ".so").
22574 shrext_cmds=$lt_shrext_cmds
22575
22576 # The commands to extract the exported symbol list from a shared archive.
22577 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22578
22579 # Variables whose values should be saved in libtool wrapper scripts and
22580 # restored at link time.
22581 variables_saved_for_relink=$lt_variables_saved_for_relink
22582
22583 # Do we need the "lib" prefix for modules?
22584 need_lib_prefix=$need_lib_prefix
22585
22586 # Do we need a version for libraries?
22587 need_version=$need_version
22588
22589 # Library versioning type.
22590 version_type=$version_type
22591
22592 # Shared library runtime path variable.
22593 runpath_var=$runpath_var
22594
22595 # Shared library path variable.
22596 shlibpath_var=$shlibpath_var
22597
22598 # Is shlibpath searched before the hard-coded library search path?
22599 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22600
22601 # Format of library name prefix.
22602 libname_spec=$lt_libname_spec
22603
22604 # List of archive names. First name is the real one, the rest are links.
22605 # The last name is the one that the linker finds with -lNAME
22606 library_names_spec=$lt_library_names_spec
22607
22608 # The coded name of the library, if different from the real name.
22609 soname_spec=$lt_soname_spec
22610
22611 # Permission mode override for installation of shared libraries.
22612 install_override_mode=$lt_install_override_mode
22613
22614 # Command to use after installation of a shared archive.
22615 postinstall_cmds=$lt_postinstall_cmds
22616
22617 # Command to use after uninstallation of a shared archive.
22618 postuninstall_cmds=$lt_postuninstall_cmds
22619
22620 # Commands used to finish a libtool library installation in a directory.
22621 finish_cmds=$lt_finish_cmds
22622
22623 # As "finish_cmds", except a single script fragment to be evaled but
22624 # not shown.
22625 finish_eval=$lt_finish_eval
22626
22627 # Whether we should hardcode library paths into libraries.
22628 hardcode_into_libs=$hardcode_into_libs
22629
22630 # Compile-time system search path for libraries.
22631 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22632
22633 # Run-time system search path for libraries.
22634 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22635
22636 # Whether dlopen is supported.
22637 dlopen_support=$enable_dlopen
22638
22639 # Whether dlopen of programs is supported.
22640 dlopen_self=$enable_dlopen_self
22641
22642 # Whether dlopen of statically linked programs is supported.
22643 dlopen_self_static=$enable_dlopen_self_static
22644
22645 # Commands to strip libraries.
22646 old_striplib=$lt_old_striplib
22647 striplib=$lt_striplib
22648
22649
22650 # The linker used to build libraries.
22651 LD=$lt_LD
22652
22653 # How to create reloadable object files.
22654 reload_flag=$lt_reload_flag
22655 reload_cmds=$lt_reload_cmds
22656
22657 # Commands used to build an old-style archive.
22658 old_archive_cmds=$lt_old_archive_cmds
22659
22660 # A language specific compiler.
22661 CC=$lt_compiler
22662
22663 # Is the compiler the GNU compiler?
22664 with_gcc=$GCC
22665
22666 # Compiler flag to turn off builtin functions.
22667 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22668
22669 # Additional compiler flags for building library objects.
22670 pic_flag=$lt_lt_prog_compiler_pic
22671
22672 # How to pass a linker flag through the compiler.
22673 wl=$lt_lt_prog_compiler_wl
22674
22675 # Compiler flag to prevent dynamic linking.
22676 link_static_flag=$lt_lt_prog_compiler_static
22677
22678 # Does compiler simultaneously support -c and -o options?
22679 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22680
22681 # Whether or not to add -lc for building shared libraries.
22682 build_libtool_need_lc=$archive_cmds_need_lc
22683
22684 # Whether or not to disallow shared libs when runtime libs are static.
22685 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22686
22687 # Compiler flag to allow reflexive dlopens.
22688 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22689
22690 # Compiler flag to generate shared objects directly from archives.
22691 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22692
22693 # Whether the compiler copes with passing no objects directly.
22694 compiler_needs_object=$lt_compiler_needs_object
22695
22696 # Create an old-style archive from a shared archive.
22697 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22698
22699 # Create a temporary old-style archive to link instead of a shared archive.
22700 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22701
22702 # Commands used to build a shared archive.
22703 archive_cmds=$lt_archive_cmds
22704 archive_expsym_cmds=$lt_archive_expsym_cmds
22705
22706 # Commands used to build a loadable module if different from building
22707 # a shared archive.
22708 module_cmds=$lt_module_cmds
22709 module_expsym_cmds=$lt_module_expsym_cmds
22710
22711 # Whether we are building with GNU ld or not.
22712 with_gnu_ld=$lt_with_gnu_ld
22713
22714 # Flag that allows shared libraries with undefined symbols to be built.
22715 allow_undefined_flag=$lt_allow_undefined_flag
22716
22717 # Flag that enforces no undefined symbols.
22718 no_undefined_flag=$lt_no_undefined_flag
22719
22720 # Flag to hardcode \$libdir into a binary during linking.
22721 # This must work even if \$libdir does not exist
22722 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22723
22724 # Whether we need a single "-rpath" flag with a separated argument.
22725 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22726
22727 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22728 # DIR into the resulting binary.
22729 hardcode_direct=$hardcode_direct
22730
22731 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22732 # DIR into the resulting binary and the resulting library dependency is
22733 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22734 # library is relocated.
22735 hardcode_direct_absolute=$hardcode_direct_absolute
22736
22737 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22738 # into the resulting binary.
22739 hardcode_minus_L=$hardcode_minus_L
22740
22741 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22742 # into the resulting binary.
22743 hardcode_shlibpath_var=$hardcode_shlibpath_var
22744
22745 # Set to "yes" if building a shared library automatically hardcodes DIR
22746 # into the library and all subsequent libraries and executables linked
22747 # against it.
22748 hardcode_automatic=$hardcode_automatic
22749
22750 # Set to yes if linker adds runtime paths of dependent libraries
22751 # to runtime path list.
22752 inherit_rpath=$inherit_rpath
22753
22754 # Whether libtool must link a program against all its dependency libraries.
22755 link_all_deplibs=$link_all_deplibs
22756
22757 # Set to "yes" if exported symbols are required.
22758 always_export_symbols=$always_export_symbols
22759
22760 # The commands to list exported symbols.
22761 export_symbols_cmds=$lt_export_symbols_cmds
22762
22763 # Symbols that should not be listed in the preloaded symbols.
22764 exclude_expsyms=$lt_exclude_expsyms
22765
22766 # Symbols that must always be exported.
22767 include_expsyms=$lt_include_expsyms
22768
22769 # Commands necessary for linking programs (against libraries) with templates.
22770 prelink_cmds=$lt_prelink_cmds
22771
22772 # Commands necessary for finishing linking programs.
22773 postlink_cmds=$lt_postlink_cmds
22774
22775 # Specify filename containing input files.
22776 file_list_spec=$lt_file_list_spec
22777
22778 # How to hardcode a shared library path into an executable.
22779 hardcode_action=$hardcode_action
22780
22781 # ### END LIBTOOL CONFIG
22782
22783 _LT_EOF
22784
22785 case $host_os in
22786 aix3*)
22787 cat <<\_LT_EOF >> "$cfgfile"
22788 # AIX sometimes has problems with the GCC collect2 program. For some
22789 # reason, if we set the COLLECT_NAMES environment variable, the problems
22790 # vanish in a puff of smoke.
22791 if test "X${COLLECT_NAMES+set}" != Xset; then
22792 COLLECT_NAMES=
22793 export COLLECT_NAMES
22794 fi
22795 _LT_EOF
22796 ;;
22797 esac
22798
22799
22800 ltmain="$ac_aux_dir/ltmain.sh"
22801
22802
22803 # We use sed instead of cat because bash on DJGPP gets confused if
22804 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22805 # text mode, it properly converts lines to CR/LF. This bash problem
22806 # is reportedly fixed, but why not run on old versions too?
22807 sed '$q' "$ltmain" >> "$cfgfile" \
22808 || (rm -f "$cfgfile"; exit 1)
22809
22810 if test x"$xsi_shell" = xyes; then
22811 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22812 func_dirname ()\
22813 {\
22814 \ case ${1} in\
22815 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22816 \ * ) func_dirname_result="${3}" ;;\
22817 \ esac\
22818 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22819 && mv -f "$cfgfile.tmp" "$cfgfile" \
22820 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22821 test 0 -eq $? || _lt_function_replace_fail=:
22822
22823
22824 sed -e '/^func_basename ()$/,/^} # func_basename /c\
22825 func_basename ()\
22826 {\
22827 \ func_basename_result="${1##*/}"\
22828 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22829 && mv -f "$cfgfile.tmp" "$cfgfile" \
22830 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22831 test 0 -eq $? || _lt_function_replace_fail=:
22832
22833
22834 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22835 func_dirname_and_basename ()\
22836 {\
22837 \ case ${1} in\
22838 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22839 \ * ) func_dirname_result="${3}" ;;\
22840 \ esac\
22841 \ func_basename_result="${1##*/}"\
22842 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22843 && mv -f "$cfgfile.tmp" "$cfgfile" \
22844 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22845 test 0 -eq $? || _lt_function_replace_fail=:
22846
22847
22848 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22849 func_stripname ()\
22850 {\
22851 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22852 \ # positional parameters, so assign one to ordinary parameter first.\
22853 \ func_stripname_result=${3}\
22854 \ func_stripname_result=${func_stripname_result#"${1}"}\
22855 \ func_stripname_result=${func_stripname_result%"${2}"}\
22856 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22857 && mv -f "$cfgfile.tmp" "$cfgfile" \
22858 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22859 test 0 -eq $? || _lt_function_replace_fail=:
22860
22861
22862 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22863 func_split_long_opt ()\
22864 {\
22865 \ func_split_long_opt_name=${1%%=*}\
22866 \ func_split_long_opt_arg=${1#*=}\
22867 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22868 && mv -f "$cfgfile.tmp" "$cfgfile" \
22869 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22870 test 0 -eq $? || _lt_function_replace_fail=:
22871
22872
22873 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22874 func_split_short_opt ()\
22875 {\
22876 \ func_split_short_opt_arg=${1#??}\
22877 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22878 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22879 && mv -f "$cfgfile.tmp" "$cfgfile" \
22880 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22881 test 0 -eq $? || _lt_function_replace_fail=:
22882
22883
22884 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22885 func_lo2o ()\
22886 {\
22887 \ case ${1} in\
22888 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22889 \ *) func_lo2o_result=${1} ;;\
22890 \ esac\
22891 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22892 && mv -f "$cfgfile.tmp" "$cfgfile" \
22893 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22894 test 0 -eq $? || _lt_function_replace_fail=:
22895
22896
22897 sed -e '/^func_xform ()$/,/^} # func_xform /c\
22898 func_xform ()\
22899 {\
22900 func_xform_result=${1%.*}.lo\
22901 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22902 && mv -f "$cfgfile.tmp" "$cfgfile" \
22903 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22904 test 0 -eq $? || _lt_function_replace_fail=:
22905
22906
22907 sed -e '/^func_arith ()$/,/^} # func_arith /c\
22908 func_arith ()\
22909 {\
22910 func_arith_result=$(( $* ))\
22911 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22912 && mv -f "$cfgfile.tmp" "$cfgfile" \
22913 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22914 test 0 -eq $? || _lt_function_replace_fail=:
22915
22916
22917 sed -e '/^func_len ()$/,/^} # func_len /c\
22918 func_len ()\
22919 {\
22920 func_len_result=${#1}\
22921 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22922 && mv -f "$cfgfile.tmp" "$cfgfile" \
22923 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22924 test 0 -eq $? || _lt_function_replace_fail=:
22925
22926 fi
22927
22928 if test x"$lt_shell_append" = xyes; then
22929 sed -e '/^func_append ()$/,/^} # func_append /c\
22930 func_append ()\
22931 {\
22932 eval "${1}+=\\${2}"\
22933 } # Extended-shell func_append 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
22939 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22940 func_append_quoted ()\
22941 {\
22942 \ func_quote_for_eval "${2}"\
22943 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22944 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22945 && mv -f "$cfgfile.tmp" "$cfgfile" \
22946 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22947 test 0 -eq $? || _lt_function_replace_fail=:
22948
22949
22950 # Save a `func_append' function call where possible by direct use of '+='
22951 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22952 && mv -f "$cfgfile.tmp" "$cfgfile" \
22953 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22954 test 0 -eq $? || _lt_function_replace_fail=:
22955 else
22956 # Save a `func_append' function call even when '+=' is not available
22957 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22958 && mv -f "$cfgfile.tmp" "$cfgfile" \
22959 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22960 test 0 -eq $? || _lt_function_replace_fail=:
22961 fi
22962
22963 if test x"$_lt_function_replace_fail" = x":"; then
22964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22965 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22966 fi
22967
22968
22969 mv -f "$cfgfile" "$ofile" ||
22970 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22971 chmod +x "$ofile"
22972
22973 ;;
22974
22975 esac
22976 done # for ac_tag
22977
22978
22979 as_fn_exit 0
22980 _ACEOF
22981 ac_clean_files=$ac_clean_files_save
22982
22983 test $ac_write_fail = 0 ||
22984 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22985
22986
22987 # configure is writing to config.log, and then calls config.status.
22988 # config.status does its own redirection, appending to config.log.
22989 # Unfortunately, on DOS this fails, as config.log is still kept open
22990 # by configure, so config.status won't be able to write to it; its
22991 # output is simply discarded. So we exec the FD to /dev/null,
22992 # effectively closing config.log, so it can be properly (re)opened and
22993 # appended to by config.status. When coming back to configure, we
22994 # need to make the FD available again.
22995 if test "$no_create" != yes; then
22996 ac_cs_success=:
22997 ac_config_status_args=
22998 test "$silent" = yes &&
22999 ac_config_status_args="$ac_config_status_args --quiet"
23000 exec 5>/dev/null
23001 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23002 exec 5>>config.log
23003 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23004 # would make configure fail if this is the last instruction.
23005 $ac_cs_success || as_fn_exit 1
23006 fi
23007 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23009 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23010 fi
23011
23012
23013
23014 echo ""
23015 echo " Package: ${PACKAGE_NAME} ${PACKAGE_VERSION}"
23016 echo ""
23017 echo " Configuration"
23018 echo " XDM support.........: ${have_xdmcp}"
23019 echo " sendmsg fd passing..: ${sendfds}"
23020 echo " Build unit tests....: ${HAVE_CHECK}"
23021 echo " with html results.: ${HTML_CHECK_RESULT}"
23022 echo " XCB buffer size.....: ${xcb_queue_buffer_size}"
23023 echo ""
23024 echo " X11 extensions"
23025 echo " Composite...........: ${BUILD_COMPOSITE}"
23026 echo " Damage..............: ${BUILD_DAMAGE}"
23027 echo " Dpms................: ${BUILD_DPMS}"
23028 echo " Dri2................: ${BUILD_DRI2}"
23029 echo " Dri3................: ${BUILD_DRI3}"
23030 echo " Glx.................: ${BUILD_GLX}"
23031 echo " Randr...............: ${BUILD_RANDR}"
23032 echo " Record..............: ${BUILD_RECORD}"
23033 echo " Render..............: ${BUILD_RENDER}"
23034 echo " Resource............: ${BUILD_RESOURCE}"
23035 echo " Screensaver.........: ${BUILD_SCREENSAVER}"
23036 echo " selinux.............: ${BUILD_SELINUX}"
23037 echo " Shape...............: ${BUILD_SHAPE}"
23038 echo " Shm.................: ${BUILD_SHM}"
23039 echo " Sync................: ${BUILD_SYNC}"
23040 echo " Xevie...............: ${BUILD_XEVIE}"
23041 echo " Xfixes..............: ${BUILD_XFIXES}"
23042 echo " Xfree86-dri.........: ${BUILD_XFREE86_DRI}"
23043 echo " xinerama............: ${BUILD_XINERAMA}"
23044 echo " xinput..............: ${BUILD_XINPUT}"
23045 echo " xkb.................: ${BUILD_XKB}"
23046 echo " xprint..............: ${BUILD_XPRINT}"
23047 echo " xtest...............: ${BUILD_XTEST}"
23048 echo " xv..................: ${BUILD_XV}"
23049 echo " xvmc................: ${BUILD_XVMC}"
23050 echo ""
23051 echo " Used CFLAGS:"
23052 echo " CPPFLAGS............: ${CPPFLAGS}"
23053 echo " CFLAGS..............: ${CFLAGS}"
23054 echo " Warning CFLAGS......: ${BASE_CFLAGS}"
23055 echo ""
23056 echo " Installation:"
23057 echo " Prefix..............: ${prefix}"
23058 echo ""
23059