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 libXcomposite 0.4.5.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXcomposite/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
278 $0: https://gitlab.freedesktop.org/xorg/lib/libXcomposite/issues
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570 as_awk_strverscmp='
571 # Use only awk features that work with 7th edition Unix awk (1978).
572 # My, what an old awk you have, Mr. Solaris!
573 END {
574 while (length(v1) && length(v2)) {
575 # Set d1 to be the next thing to compare from v1, and likewise for d2.
576 # Normally this is a single character, but if v1 and v2 contain digits,
577 # compare them as integers and fractions as strverscmp does.
578 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
579 # Split v1 and v2 into their leading digit string components d1 and d2,
580 # and advance v1 and v2 past the leading digit strings.
581 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
582 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
583 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
584 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
585 if (d1 ~ /^0/) {
586 if (d2 ~ /^0/) {
587 # Compare two fractions.
588 while (d1 ~ /^0/ && d2 ~ /^0/) {
589 d1 = substr(d1, 2); len1--
590 d2 = substr(d2, 2); len2--
591 }
592 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
593 # The two components differ in length, and the common prefix
594 # contains only leading zeros. Consider the longer to be less.
595 d1 = -len1
596 d2 = -len2
597 } else {
598 # Otherwise, compare as strings.
599 d1 = "x" d1
600 d2 = "x" d2
601 }
602 } else {
603 # A fraction is less than an integer.
604 exit 1
605 }
606 } else {
607 if (d2 ~ /^0/) {
608 # An integer is greater than a fraction.
609 exit 2
610 } else {
611 # Compare two integers.
612 d1 += 0
613 d2 += 0
614 }
615 }
616 } else {
617 # The normal case, without worrying about digits.
618 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
619 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
620 }
621 if (d1 < d2) exit 1
622 if (d1 > d2) exit 2
623 }
624 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
625 # which mishandles some comparisons of empty strings to integers.
626 if (length(v2)) exit 1
627 if (length(v1)) exit 2
628 }
629 '
630
631 test -n "$DJDIR" || exec 7<&0 </dev/null
632 exec 6>&1
633
634 # Name of the host.
635 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
636 # so uname gets run too.
637 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
638
639 #
640 # Initializations.
641 #
642 ac_default_prefix=/usr/local
643 ac_clean_files=
644 ac_config_libobj_dir=.
645 LIBOBJS=
646 cross_compiling=no
647 subdirs=
648 MFLAGS=
649 MAKEFLAGS=
650
651 # Identity of this package.
652 PACKAGE_NAME='libXcomposite'
653 PACKAGE_TARNAME='libXcomposite'
654 PACKAGE_VERSION='0.4.5'
655 PACKAGE_STRING='libXcomposite 0.4.5'
656 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libXcomposite/issues'
657 PACKAGE_URL=''
658
659 ac_unique_file="Makefile.am"
660 # Factoring default headers for most tests.
661 ac_includes_default="\
662 #include <stdio.h>
663 #ifdef HAVE_SYS_TYPES_H
664 # include <sys/types.h>
665 #endif
666 #ifdef HAVE_SYS_STAT_H
667 # include <sys/stat.h>
668 #endif
669 #ifdef STDC_HEADERS
670 # include <stdlib.h>
671 # include <stddef.h>
672 #else
673 # ifdef HAVE_STDLIB_H
674 # include <stdlib.h>
675 # endif
676 #endif
677 #ifdef HAVE_STRING_H
678 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
679 # include <memory.h>
680 # endif
681 # include <string.h>
682 #endif
683 #ifdef HAVE_STRINGS_H
684 # include <strings.h>
685 #endif
686 #ifdef HAVE_INTTYPES_H
687 # include <inttypes.h>
688 #endif
689 #ifdef HAVE_STDINT_H
690 # include <stdint.h>
691 #endif
692 #ifdef HAVE_UNISTD_H
693 # include <unistd.h>
694 #endif"
695
696 ac_subst_vars='am__EXEEXT_FALSE
697 am__EXEEXT_TRUE
698 LTLIBOBJS
699 LIBOBJS
700 XFIXES_LIBS
701 XFIXES_CFLAGS
702 XCOMPOSITE_LIBS
703 XCOMPOSITE_CFLAGS
704 COMPOSITEEXT_VERSION
705 INSTALL_MANPAGES_FALSE
706 INSTALL_MANPAGES_TRUE
707 HAVE_XMLTO_FALSE
708 HAVE_XMLTO_TRUE
709 HAVE_XMLTO_TEXT_FALSE
710 HAVE_XMLTO_TEXT_TRUE
711 XMLTO
712 MAN_SUBSTS
713 XORG_MAN_PAGE
714 ADMIN_MAN_DIR
715 DRIVER_MAN_DIR
716 MISC_MAN_DIR
717 FILE_MAN_DIR
718 LIB_MAN_DIR
719 APP_MAN_DIR
720 ADMIN_MAN_SUFFIX
721 DRIVER_MAN_SUFFIX
722 MISC_MAN_SUFFIX
723 FILE_MAN_SUFFIX
724 LIB_MAN_SUFFIX
725 APP_MAN_SUFFIX
726 INSTALL_CMD
727 PKG_CONFIG_LIBDIR
728 PKG_CONFIG_PATH
729 PKG_CONFIG
730 CHANGELOG_CMD
731 STRICT_CFLAGS
732 CWARNFLAGS
733 BASE_CFLAGS
734 CPP
735 LT_SYS_LIBRARY_PATH
736 OTOOL64
737 OTOOL
738 LIPO
739 NMEDIT
740 DSYMUTIL
741 MANIFEST_TOOL
742 RANLIB
743 ac_ct_AR
744 AR
745 DLLTOOL
746 OBJDUMP
747 LN_S
748 NM
749 ac_ct_DUMPBIN
750 DUMPBIN
751 LD
752 FGREP
753 EGREP
754 GREP
755 SED
756 am__fastdepCC_FALSE
757 am__fastdepCC_TRUE
758 CCDEPMODE
759 am__nodep
760 AMDEPBACKSLASH
761 AMDEP_FALSE
762 AMDEP_TRUE
763 am__quote
764 am__include
765 DEPDIR
766 OBJEXT
767 EXEEXT
768 ac_ct_CC
769 CPPFLAGS
770 LDFLAGS
771 CFLAGS
772 CC
773 host_os
774 host_vendor
775 host_cpu
776 host
777 build_os
778 build_vendor
779 build_cpu
780 build
781 LIBTOOL
782 AM_BACKSLASH
783 AM_DEFAULT_VERBOSITY
784 AM_DEFAULT_V
785 AM_V
786 am__untar
787 am__tar
788 AMTAR
789 am__leading_dot
790 SET_MAKE
791 AWK
792 mkdir_p
793 MKDIR_P
794 INSTALL_STRIP_PROGRAM
795 STRIP
796 install_sh
797 MAKEINFO
798 AUTOHEADER
799 AUTOMAKE
800 AUTOCONF
801 ACLOCAL
802 VERSION
803 PACKAGE
804 CYGPATH_W
805 am__isrc
806 INSTALL_DATA
807 INSTALL_SCRIPT
808 INSTALL_PROGRAM
809 target_alias
810 host_alias
811 build_alias
812 LIBS
813 ECHO_T
814 ECHO_N
815 ECHO_C
816 DEFS
817 mandir
818 localedir
819 libdir
820 psdir
821 pdfdir
822 dvidir
823 htmldir
824 infodir
825 docdir
826 oldincludedir
827 includedir
828 localstatedir
829 sharedstatedir
830 sysconfdir
831 datadir
832 datarootdir
833 libexecdir
834 sbindir
835 bindir
836 program_transform_name
837 prefix
838 exec_prefix
839 PACKAGE_URL
840 PACKAGE_BUGREPORT
841 PACKAGE_STRING
842 PACKAGE_VERSION
843 PACKAGE_TARNAME
844 PACKAGE_NAME
845 PATH_SEPARATOR
846 SHELL'
847 ac_subst_files=''
848 ac_user_opts='
849 enable_option_checking
850 enable_silent_rules
851 enable_shared
852 enable_static
853 with_pic
854 enable_fast_install
855 with_aix_soname
856 enable_dependency_tracking
857 with_gnu_ld
858 with_sysroot
859 enable_libtool_lock
860 enable_selective_werror
861 enable_strict_compilation
862 with_xmlto
863 '
864 ac_precious_vars='build_alias
865 host_alias
866 target_alias
867 CC
868 CFLAGS
869 LDFLAGS
870 LIBS
871 CPPFLAGS
872 LT_SYS_LIBRARY_PATH
873 CPP
874 PKG_CONFIG
875 PKG_CONFIG_PATH
876 PKG_CONFIG_LIBDIR
877 XMLTO
878 XCOMPOSITE_CFLAGS
879 XCOMPOSITE_LIBS
880 XFIXES_CFLAGS
881 XFIXES_LIBS'
882
883
884 # Initialize some variables set by options.
885 ac_init_help=
886 ac_init_version=false
887 ac_unrecognized_opts=
888 ac_unrecognized_sep=
889 # The variables have the same names as the options, with
890 # dashes changed to underlines.
891 cache_file=/dev/null
892 exec_prefix=NONE
893 no_create=
894 no_recursion=
895 prefix=NONE
896 program_prefix=NONE
897 program_suffix=NONE
898 program_transform_name=s,x,x,
899 silent=
900 site=
901 srcdir=
902 verbose=
903 x_includes=NONE
904 x_libraries=NONE
905
906 # Installation directory options.
907 # These are left unexpanded so users can "make install exec_prefix=/foo"
908 # and all the variables that are supposed to be based on exec_prefix
909 # by default will actually change.
910 # Use braces instead of parens because sh, perl, etc. also accept them.
911 # (The list follows the same order as the GNU Coding Standards.)
912 bindir='${exec_prefix}/bin'
913 sbindir='${exec_prefix}/sbin'
914 libexecdir='${exec_prefix}/libexec'
915 datarootdir='${prefix}/share'
916 datadir='${datarootdir}'
917 sysconfdir='${prefix}/etc'
918 sharedstatedir='${prefix}/com'
919 localstatedir='${prefix}/var'
920 includedir='${prefix}/include'
921 oldincludedir='/usr/include'
922 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
923 infodir='${datarootdir}/info'
924 htmldir='${docdir}'
925 dvidir='${docdir}'
926 pdfdir='${docdir}'
927 psdir='${docdir}'
928 libdir='${exec_prefix}/lib'
929 localedir='${datarootdir}/locale'
930 mandir='${datarootdir}/man'
931
932 ac_prev=
933 ac_dashdash=
934 for ac_option
935 do
936 # If the previous option needs an argument, assign it.
937 if test -n "$ac_prev"; then
938 eval $ac_prev=\$ac_option
939 ac_prev=
940 continue
941 fi
942
943 case $ac_option in
944 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
945 *=) ac_optarg= ;;
946 *) ac_optarg=yes ;;
947 esac
948
949 # Accept the important Cygnus configure options, so we can diagnose typos.
950
951 case $ac_dashdash$ac_option in
952 --)
953 ac_dashdash=yes ;;
954
955 -bindir | --bindir | --bindi | --bind | --bin | --bi)
956 ac_prev=bindir ;;
957 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
958 bindir=$ac_optarg ;;
959
960 -build | --build | --buil | --bui | --bu)
961 ac_prev=build_alias ;;
962 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
963 build_alias=$ac_optarg ;;
964
965 -cache-file | --cache-file | --cache-fil | --cache-fi \
966 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
967 ac_prev=cache_file ;;
968 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
969 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
970 cache_file=$ac_optarg ;;
971
972 --config-cache | -C)
973 cache_file=config.cache ;;
974
975 -datadir | --datadir | --datadi | --datad)
976 ac_prev=datadir ;;
977 -datadir=* | --datadir=* | --datadi=* | --datad=*)
978 datadir=$ac_optarg ;;
979
980 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
981 | --dataroo | --dataro | --datar)
982 ac_prev=datarootdir ;;
983 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
984 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
985 datarootdir=$ac_optarg ;;
986
987 -disable-* | --disable-*)
988 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
989 # Reject names that are not valid shell variable names.
990 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
991 as_fn_error $? "invalid feature name: $ac_useropt"
992 ac_useropt_orig=$ac_useropt
993 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
994 case $ac_user_opts in
995 *"
996 "enable_$ac_useropt"
997 "*) ;;
998 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
999 ac_unrecognized_sep=', ';;
1000 esac
1001 eval enable_$ac_useropt=no ;;
1002
1003 -docdir | --docdir | --docdi | --doc | --do)
1004 ac_prev=docdir ;;
1005 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1006 docdir=$ac_optarg ;;
1007
1008 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1009 ac_prev=dvidir ;;
1010 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1011 dvidir=$ac_optarg ;;
1012
1013 -enable-* | --enable-*)
1014 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1015 # Reject names that are not valid shell variable names.
1016 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1017 as_fn_error $? "invalid feature name: $ac_useropt"
1018 ac_useropt_orig=$ac_useropt
1019 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1020 case $ac_user_opts in
1021 *"
1022 "enable_$ac_useropt"
1023 "*) ;;
1024 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1025 ac_unrecognized_sep=', ';;
1026 esac
1027 eval enable_$ac_useropt=\$ac_optarg ;;
1028
1029 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1030 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1031 | --exec | --exe | --ex)
1032 ac_prev=exec_prefix ;;
1033 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1034 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1035 | --exec=* | --exe=* | --ex=*)
1036 exec_prefix=$ac_optarg ;;
1037
1038 -gas | --gas | --ga | --g)
1039 # Obsolete; use --with-gas.
1040 with_gas=yes ;;
1041
1042 -help | --help | --hel | --he | -h)
1043 ac_init_help=long ;;
1044 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1045 ac_init_help=recursive ;;
1046 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1047 ac_init_help=short ;;
1048
1049 -host | --host | --hos | --ho)
1050 ac_prev=host_alias ;;
1051 -host=* | --host=* | --hos=* | --ho=*)
1052 host_alias=$ac_optarg ;;
1053
1054 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1055 ac_prev=htmldir ;;
1056 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1057 | --ht=*)
1058 htmldir=$ac_optarg ;;
1059
1060 -includedir | --includedir | --includedi | --included | --include \
1061 | --includ | --inclu | --incl | --inc)
1062 ac_prev=includedir ;;
1063 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1064 | --includ=* | --inclu=* | --incl=* | --inc=*)
1065 includedir=$ac_optarg ;;
1066
1067 -infodir | --infodir | --infodi | --infod | --info | --inf)
1068 ac_prev=infodir ;;
1069 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1070 infodir=$ac_optarg ;;
1071
1072 -libdir | --libdir | --libdi | --libd)
1073 ac_prev=libdir ;;
1074 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1075 libdir=$ac_optarg ;;
1076
1077 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1078 | --libexe | --libex | --libe)
1079 ac_prev=libexecdir ;;
1080 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1081 | --libexe=* | --libex=* | --libe=*)
1082 libexecdir=$ac_optarg ;;
1083
1084 -localedir | --localedir | --localedi | --localed | --locale)
1085 ac_prev=localedir ;;
1086 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1087 localedir=$ac_optarg ;;
1088
1089 -localstatedir | --localstatedir | --localstatedi | --localstated \
1090 | --localstate | --localstat | --localsta | --localst | --locals)
1091 ac_prev=localstatedir ;;
1092 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1093 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1094 localstatedir=$ac_optarg ;;
1095
1096 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1097 ac_prev=mandir ;;
1098 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1099 mandir=$ac_optarg ;;
1100
1101 -nfp | --nfp | --nf)
1102 # Obsolete; use --without-fp.
1103 with_fp=no ;;
1104
1105 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1106 | --no-cr | --no-c | -n)
1107 no_create=yes ;;
1108
1109 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1110 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1111 no_recursion=yes ;;
1112
1113 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1114 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1115 | --oldin | --oldi | --old | --ol | --o)
1116 ac_prev=oldincludedir ;;
1117 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1118 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1119 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1120 oldincludedir=$ac_optarg ;;
1121
1122 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1123 ac_prev=prefix ;;
1124 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1125 prefix=$ac_optarg ;;
1126
1127 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1128 | --program-pre | --program-pr | --program-p)
1129 ac_prev=program_prefix ;;
1130 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1131 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1132 program_prefix=$ac_optarg ;;
1133
1134 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1135 | --program-suf | --program-su | --program-s)
1136 ac_prev=program_suffix ;;
1137 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1138 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1139 program_suffix=$ac_optarg ;;
1140
1141 -program-transform-name | --program-transform-name \
1142 | --program-transform-nam | --program-transform-na \
1143 | --program-transform-n | --program-transform- \
1144 | --program-transform | --program-transfor \
1145 | --program-transfo | --program-transf \
1146 | --program-trans | --program-tran \
1147 | --progr-tra | --program-tr | --program-t)
1148 ac_prev=program_transform_name ;;
1149 -program-transform-name=* | --program-transform-name=* \
1150 | --program-transform-nam=* | --program-transform-na=* \
1151 | --program-transform-n=* | --program-transform-=* \
1152 | --program-transform=* | --program-transfor=* \
1153 | --program-transfo=* | --program-transf=* \
1154 | --program-trans=* | --program-tran=* \
1155 | --progr-tra=* | --program-tr=* | --program-t=*)
1156 program_transform_name=$ac_optarg ;;
1157
1158 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1159 ac_prev=pdfdir ;;
1160 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1161 pdfdir=$ac_optarg ;;
1162
1163 -psdir | --psdir | --psdi | --psd | --ps)
1164 ac_prev=psdir ;;
1165 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1166 psdir=$ac_optarg ;;
1167
1168 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1169 | -silent | --silent | --silen | --sile | --sil)
1170 silent=yes ;;
1171
1172 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1173 ac_prev=sbindir ;;
1174 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1175 | --sbi=* | --sb=*)
1176 sbindir=$ac_optarg ;;
1177
1178 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1179 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1180 | --sharedst | --shareds | --shared | --share | --shar \
1181 | --sha | --sh)
1182 ac_prev=sharedstatedir ;;
1183 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1184 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1185 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1186 | --sha=* | --sh=*)
1187 sharedstatedir=$ac_optarg ;;
1188
1189 -site | --site | --sit)
1190 ac_prev=site ;;
1191 -site=* | --site=* | --sit=*)
1192 site=$ac_optarg ;;
1193
1194 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1195 ac_prev=srcdir ;;
1196 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1197 srcdir=$ac_optarg ;;
1198
1199 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1200 | --syscon | --sysco | --sysc | --sys | --sy)
1201 ac_prev=sysconfdir ;;
1202 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1203 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1204 sysconfdir=$ac_optarg ;;
1205
1206 -target | --target | --targe | --targ | --tar | --ta | --t)
1207 ac_prev=target_alias ;;
1208 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1209 target_alias=$ac_optarg ;;
1210
1211 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1212 verbose=yes ;;
1213
1214 -version | --version | --versio | --versi | --vers | -V)
1215 ac_init_version=: ;;
1216
1217 -with-* | --with-*)
1218 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1219 # Reject names that are not valid shell variable names.
1220 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1221 as_fn_error $? "invalid package name: $ac_useropt"
1222 ac_useropt_orig=$ac_useropt
1223 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1224 case $ac_user_opts in
1225 *"
1226 "with_$ac_useropt"
1227 "*) ;;
1228 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1229 ac_unrecognized_sep=', ';;
1230 esac
1231 eval with_$ac_useropt=\$ac_optarg ;;
1232
1233 -without-* | --without-*)
1234 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1235 # Reject names that are not valid shell variable names.
1236 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1237 as_fn_error $? "invalid package name: $ac_useropt"
1238 ac_useropt_orig=$ac_useropt
1239 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1240 case $ac_user_opts in
1241 *"
1242 "with_$ac_useropt"
1243 "*) ;;
1244 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1245 ac_unrecognized_sep=', ';;
1246 esac
1247 eval with_$ac_useropt=no ;;
1248
1249 --x)
1250 # Obsolete; use --with-x.
1251 with_x=yes ;;
1252
1253 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1254 | --x-incl | --x-inc | --x-in | --x-i)
1255 ac_prev=x_includes ;;
1256 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1257 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1258 x_includes=$ac_optarg ;;
1259
1260 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1261 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1262 ac_prev=x_libraries ;;
1263 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1264 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1265 x_libraries=$ac_optarg ;;
1266
1267 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1268 Try \`$0 --help' for more information"
1269 ;;
1270
1271 *=*)
1272 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1273 # Reject names that are not valid shell variable names.
1274 case $ac_envvar in #(
1275 '' | [0-9]* | *[!_$as_cr_alnum]* )
1276 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1277 esac
1278 eval $ac_envvar=\$ac_optarg
1279 export $ac_envvar ;;
1280
1281 *)
1282 # FIXME: should be removed in autoconf 3.0.
1283 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1284 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1285 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1286 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1287 ;;
1288
1289 esac
1290 done
1291
1292 if test -n "$ac_prev"; then
1293 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1294 as_fn_error $? "missing argument to $ac_option"
1295 fi
1296
1297 if test -n "$ac_unrecognized_opts"; then
1298 case $enable_option_checking in
1299 no) ;;
1300 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1301 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1302 esac
1303 fi
1304
1305 # Check all directory arguments for consistency.
1306 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1307 datadir sysconfdir sharedstatedir localstatedir includedir \
1308 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1309 libdir localedir mandir
1310 do
1311 eval ac_val=\$$ac_var
1312 # Remove trailing slashes.
1313 case $ac_val in
1314 */ )
1315 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1316 eval $ac_var=\$ac_val;;
1317 esac
1318 # Be sure to have absolute directory names.
1319 case $ac_val in
1320 [\\/$]* | ?:[\\/]* ) continue;;
1321 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1322 esac
1323 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1324 done
1325
1326 # There might be people who depend on the old broken behavior: `$host'
1327 # used to hold the argument of --host etc.
1328 # FIXME: To remove some day.
1329 build=$build_alias
1330 host=$host_alias
1331 target=$target_alias
1332
1333 # FIXME: To remove some day.
1334 if test "x$host_alias" != x; then
1335 if test "x$build_alias" = x; then
1336 cross_compiling=maybe
1337 elif test "x$build_alias" != "x$host_alias"; then
1338 cross_compiling=yes
1339 fi
1340 fi
1341
1342 ac_tool_prefix=
1343 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1344
1345 test "$silent" = yes && exec 6>/dev/null
1346
1347
1348 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1349 ac_ls_di=`ls -di .` &&
1350 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1351 as_fn_error $? "working directory cannot be determined"
1352 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1353 as_fn_error $? "pwd does not report name of working directory"
1354
1355
1356 # Find the source files, if location was not specified.
1357 if test -z "$srcdir"; then
1358 ac_srcdir_defaulted=yes
1359 # Try the directory containing this script, then the parent directory.
1360 ac_confdir=`$as_dirname -- "$as_myself" ||
1361 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1362 X"$as_myself" : 'X\(//\)[^/]' \| \
1363 X"$as_myself" : 'X\(//\)$' \| \
1364 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1365 $as_echo X"$as_myself" |
1366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1367 s//\1/
1368 q
1369 }
1370 /^X\(\/\/\)[^/].*/{
1371 s//\1/
1372 q
1373 }
1374 /^X\(\/\/\)$/{
1375 s//\1/
1376 q
1377 }
1378 /^X\(\/\).*/{
1379 s//\1/
1380 q
1381 }
1382 s/.*/./; q'`
1383 srcdir=$ac_confdir
1384 if test ! -r "$srcdir/$ac_unique_file"; then
1385 srcdir=..
1386 fi
1387 else
1388 ac_srcdir_defaulted=no
1389 fi
1390 if test ! -r "$srcdir/$ac_unique_file"; then
1391 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1392 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1393 fi
1394 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1395 ac_abs_confdir=`(
1396 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1397 pwd)`
1398 # When building in place, set srcdir=.
1399 if test "$ac_abs_confdir" = "$ac_pwd"; then
1400 srcdir=.
1401 fi
1402 # Remove unnecessary trailing slashes from srcdir.
1403 # Double slashes in file names in object file debugging info
1404 # mess up M-x gdb in Emacs.
1405 case $srcdir in
1406 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1407 esac
1408 for ac_var in $ac_precious_vars; do
1409 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1410 eval ac_env_${ac_var}_value=\$${ac_var}
1411 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1412 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1413 done
1414
1415 #
1416 # Report the --help message.
1417 #
1418 if test "$ac_init_help" = "long"; then
1419 # Omit some internal or obsolete options to make the list less imposing.
1420 # This message is too long to be a string in the A/UX 3.1 sh.
1421 cat <<_ACEOF
1422 \`configure' configures libXcomposite 0.4.5 to adapt to many kinds of systems.
1423
1424 Usage: $0 [OPTION]... [VAR=VALUE]...
1425
1426 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1427 VAR=VALUE. See below for descriptions of some of the useful variables.
1428
1429 Defaults for the options are specified in brackets.
1430
1431 Configuration:
1432 -h, --help display this help and exit
1433 --help=short display options specific to this package
1434 --help=recursive display the short help of all the included packages
1435 -V, --version display version information and exit
1436 -q, --quiet, --silent do not print \`checking ...' messages
1437 --cache-file=FILE cache test results in FILE [disabled]
1438 -C, --config-cache alias for \`--cache-file=config.cache'
1439 -n, --no-create do not create output files
1440 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1441
1442 Installation directories:
1443 --prefix=PREFIX install architecture-independent files in PREFIX
1444 [$ac_default_prefix]
1445 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1446 [PREFIX]
1447
1448 By default, \`make install' will install all the files in
1449 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1450 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1451 for instance \`--prefix=\$HOME'.
1452
1453 For better control, use the options below.
1454
1455 Fine tuning of the installation directories:
1456 --bindir=DIR user executables [EPREFIX/bin]
1457 --sbindir=DIR system admin executables [EPREFIX/sbin]
1458 --libexecdir=DIR program executables [EPREFIX/libexec]
1459 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1460 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1461 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1462 --libdir=DIR object code libraries [EPREFIX/lib]
1463 --includedir=DIR C header files [PREFIX/include]
1464 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1465 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1466 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1467 --infodir=DIR info documentation [DATAROOTDIR/info]
1468 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1469 --mandir=DIR man documentation [DATAROOTDIR/man]
1470 --docdir=DIR documentation root [DATAROOTDIR/doc/libXcomposite]
1471 --htmldir=DIR html documentation [DOCDIR]
1472 --dvidir=DIR dvi documentation [DOCDIR]
1473 --pdfdir=DIR pdf documentation [DOCDIR]
1474 --psdir=DIR ps documentation [DOCDIR]
1475 _ACEOF
1476
1477 cat <<\_ACEOF
1478
1479 Program names:
1480 --program-prefix=PREFIX prepend PREFIX to installed program names
1481 --program-suffix=SUFFIX append SUFFIX to installed program names
1482 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1483
1484 System types:
1485 --build=BUILD configure for building on BUILD [guessed]
1486 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1487 _ACEOF
1488 fi
1489
1490 if test -n "$ac_init_help"; then
1491 case $ac_init_help in
1492 short | recursive ) echo "Configuration of libXcomposite 0.4.5:";;
1493 esac
1494 cat <<\_ACEOF
1495
1496 Optional Features:
1497 --disable-option-checking ignore unrecognized --enable/--with options
1498 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1499 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1500 --enable-silent-rules less verbose build output (undo: "make V=1")
1501 --disable-silent-rules verbose build output (undo: "make V=0")
1502 --enable-shared[=PKGS] build shared libraries [default=yes]
1503 --enable-static[=PKGS] build static libraries [default=yes]
1504 --enable-fast-install[=PKGS]
1505 optimize for fast installation [default=yes]
1506 --enable-dependency-tracking
1507 do not reject slow dependency extractors
1508 --disable-dependency-tracking
1509 speeds up one-time build
1510 --disable-libtool-lock avoid locking (might break parallel builds)
1511 --disable-selective-werror
1512 Turn off selective compiler errors. (default:
1513 enabled)
1514 --enable-strict-compilation
1515 Enable all warnings from compiler and make them
1516 errors (default: disabled)
1517
1518 Optional Packages:
1519 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1520 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1521 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1522 both]
1523 --with-aix-soname=aix|svr4|both
1524 shared library versioning (aka "SONAME") variant to
1525 provide on AIX, [default=aix].
1526 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1527 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1528 compiler's sysroot if not specified).
1529 --with-xmlto Use xmlto to regenerate documentation (default:
1530 auto)
1531
1532 Some influential environment variables:
1533 CC C compiler command
1534 CFLAGS C compiler flags
1535 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1536 nonstandard directory <lib dir>
1537 LIBS libraries to pass to the linker, e.g. -l<library>
1538 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1539 you have headers in a nonstandard directory <include dir>
1540 LT_SYS_LIBRARY_PATH
1541 User-defined run-time library search path.
1542 CPP C preprocessor
1543 PKG_CONFIG path to pkg-config utility
1544 PKG_CONFIG_PATH
1545 directories to add to pkg-config's search path
1546 PKG_CONFIG_LIBDIR
1547 path overriding pkg-config's built-in search path
1548 XMLTO Path to xmlto command
1549 XCOMPOSITE_CFLAGS
1550 C compiler flags for XCOMPOSITE, overriding pkg-config
1551 XCOMPOSITE_LIBS
1552 linker flags for XCOMPOSITE, overriding pkg-config
1553 XFIXES_CFLAGS
1554 C compiler flags for XFIXES, overriding pkg-config
1555 XFIXES_LIBS linker flags for XFIXES, overriding pkg-config
1556
1557 Use these variables to override the choices made by `configure' or to help
1558 it to find libraries and programs with nonstandard names/locations.
1559
1560 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXcomposite/issues>.
1561 _ACEOF
1562 ac_status=$?
1563 fi
1564
1565 if test "$ac_init_help" = "recursive"; then
1566 # If there are subdirs, report their specific --help.
1567 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1568 test -d "$ac_dir" ||
1569 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1570 continue
1571 ac_builddir=.
1572
1573 case "$ac_dir" in
1574 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1575 *)
1576 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1577 # A ".." for each directory in $ac_dir_suffix.
1578 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1579 case $ac_top_builddir_sub in
1580 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1581 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1582 esac ;;
1583 esac
1584 ac_abs_top_builddir=$ac_pwd
1585 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1586 # for backward compatibility:
1587 ac_top_builddir=$ac_top_build_prefix
1588
1589 case $srcdir in
1590 .) # We are building in place.
1591 ac_srcdir=.
1592 ac_top_srcdir=$ac_top_builddir_sub
1593 ac_abs_top_srcdir=$ac_pwd ;;
1594 [\\/]* | ?:[\\/]* ) # Absolute name.
1595 ac_srcdir=$srcdir$ac_dir_suffix;
1596 ac_top_srcdir=$srcdir
1597 ac_abs_top_srcdir=$srcdir ;;
1598 *) # Relative name.
1599 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1600 ac_top_srcdir=$ac_top_build_prefix$srcdir
1601 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1602 esac
1603 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1604
1605 cd "$ac_dir" || { ac_status=$?; continue; }
1606 # Check for guested configure.
1607 if test -f "$ac_srcdir/configure.gnu"; then
1608 echo &&
1609 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1610 elif test -f "$ac_srcdir/configure"; then
1611 echo &&
1612 $SHELL "$ac_srcdir/configure" --help=recursive
1613 else
1614 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1615 fi || ac_status=$?
1616 cd "$ac_pwd" || { ac_status=$?; break; }
1617 done
1618 fi
1619
1620 test -n "$ac_init_help" && exit $ac_status
1621 if $ac_init_version; then
1622 cat <<\_ACEOF
1623 libXcomposite configure 0.4.5
1624 generated by GNU Autoconf 2.69
1625
1626 Copyright (C) 2012 Free Software Foundation, Inc.
1627 This configure script is free software; the Free Software Foundation
1628 gives unlimited permission to copy, distribute and modify it.
1629 _ACEOF
1630 exit
1631 fi
1632
1633 ## ------------------------ ##
1634 ## Autoconf initialization. ##
1635 ## ------------------------ ##
1636
1637 # ac_fn_c_try_compile LINENO
1638 # --------------------------
1639 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1640 ac_fn_c_try_compile ()
1641 {
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 rm -f conftest.$ac_objext
1644 if { { ac_try="$ac_compile"
1645 case "(($ac_try" in
1646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647 *) ac_try_echo=$ac_try;;
1648 esac
1649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650 $as_echo "$ac_try_echo"; } >&5
1651 (eval "$ac_compile") 2>conftest.err
1652 ac_status=$?
1653 if test -s conftest.err; then
1654 grep -v '^ *+' conftest.err >conftest.er1
1655 cat conftest.er1 >&5
1656 mv -f conftest.er1 conftest.err
1657 fi
1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; } && {
1660 test -z "$ac_c_werror_flag" ||
1661 test ! -s conftest.err
1662 } && test -s conftest.$ac_objext; then :
1663 ac_retval=0
1664 else
1665 $as_echo "$as_me: failed program was:" >&5
1666 sed 's/^/| /' conftest.$ac_ext >&5
1667
1668 ac_retval=1
1669 fi
1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671 as_fn_set_status $ac_retval
1672
1673 } # ac_fn_c_try_compile
1674
1675 # ac_fn_c_try_link LINENO
1676 # -----------------------
1677 # Try to link conftest.$ac_ext, and return whether this succeeded.
1678 ac_fn_c_try_link ()
1679 {
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 rm -f conftest.$ac_objext conftest$ac_exeext
1682 if { { ac_try="$ac_link"
1683 case "(($ac_try" in
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1686 esac
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_link") 2>conftest.err
1690 ac_status=$?
1691 if test -s conftest.err; then
1692 grep -v '^ *+' conftest.err >conftest.er1
1693 cat conftest.er1 >&5
1694 mv -f conftest.er1 conftest.err
1695 fi
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } && {
1698 test -z "$ac_c_werror_flag" ||
1699 test ! -s conftest.err
1700 } && test -s conftest$ac_exeext && {
1701 test "$cross_compiling" = yes ||
1702 test -x conftest$ac_exeext
1703 }; then :
1704 ac_retval=0
1705 else
1706 $as_echo "$as_me: failed program was:" >&5
1707 sed 's/^/| /' conftest.$ac_ext >&5
1708
1709 ac_retval=1
1710 fi
1711 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1712 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1713 # interfere with the next link command; also delete a directory that is
1714 # left behind by Apple's compiler. We do this before executing the actions.
1715 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717 as_fn_set_status $ac_retval
1718
1719 } # ac_fn_c_try_link
1720
1721 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1722 # -------------------------------------------------------
1723 # Tests whether HEADER exists and can be compiled using the include files in
1724 # INCLUDES, setting the cache variable VAR accordingly.
1725 ac_fn_c_check_header_compile ()
1726 {
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729 $as_echo_n "checking for $2... " >&6; }
1730 if eval \${$3+:} false; then :
1731 $as_echo_n "(cached) " >&6
1732 else
1733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734 /* end confdefs.h. */
1735 $4
1736 #include <$2>
1737 _ACEOF
1738 if ac_fn_c_try_compile "$LINENO"; then :
1739 eval "$3=yes"
1740 else
1741 eval "$3=no"
1742 fi
1743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1744 fi
1745 eval ac_res=\$$3
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1747 $as_echo "$ac_res" >&6; }
1748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749
1750 } # ac_fn_c_check_header_compile
1751
1752 # ac_fn_c_try_cpp LINENO
1753 # ----------------------
1754 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1755 ac_fn_c_try_cpp ()
1756 {
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758 if { { ac_try="$ac_cpp conftest.$ac_ext"
1759 case "(($ac_try" in
1760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761 *) ac_try_echo=$ac_try;;
1762 esac
1763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764 $as_echo "$ac_try_echo"; } >&5
1765 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1766 ac_status=$?
1767 if test -s conftest.err; then
1768 grep -v '^ *+' conftest.err >conftest.er1
1769 cat conftest.er1 >&5
1770 mv -f conftest.er1 conftest.err
1771 fi
1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773 test $ac_status = 0; } > conftest.i && {
1774 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1775 test ! -s conftest.err
1776 }; then :
1777 ac_retval=0
1778 else
1779 $as_echo "$as_me: failed program was:" >&5
1780 sed 's/^/| /' conftest.$ac_ext >&5
1781
1782 ac_retval=1
1783 fi
1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785 as_fn_set_status $ac_retval
1786
1787 } # ac_fn_c_try_cpp
1788
1789 # ac_fn_c_try_run LINENO
1790 # ----------------------
1791 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1792 # that executables *can* be run.
1793 ac_fn_c_try_run ()
1794 {
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 if { { ac_try="$ac_link"
1797 case "(($ac_try" in
1798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799 *) ac_try_echo=$ac_try;;
1800 esac
1801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802 $as_echo "$ac_try_echo"; } >&5
1803 (eval "$ac_link") 2>&5
1804 ac_status=$?
1805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1807 { { case "(($ac_try" in
1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1810 esac
1811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 $as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_try") 2>&5
1814 ac_status=$?
1815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816 test $ac_status = 0; }; }; then :
1817 ac_retval=0
1818 else
1819 $as_echo "$as_me: program exited with status $ac_status" >&5
1820 $as_echo "$as_me: failed program was:" >&5
1821 sed 's/^/| /' conftest.$ac_ext >&5
1822
1823 ac_retval=$ac_status
1824 fi
1825 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827 as_fn_set_status $ac_retval
1828
1829 } # ac_fn_c_try_run
1830
1831 # ac_fn_c_check_func LINENO FUNC VAR
1832 # ----------------------------------
1833 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1834 ac_fn_c_check_func ()
1835 {
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1838 $as_echo_n "checking for $2... " >&6; }
1839 if eval \${$3+:} false; then :
1840 $as_echo_n "(cached) " >&6
1841 else
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843 /* end confdefs.h. */
1844 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1846 #define $2 innocuous_$2
1847
1848 /* System header to define __stub macros and hopefully few prototypes,
1849 which can conflict with char $2 (); below.
1850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1851 <limits.h> exists even on freestanding compilers. */
1852
1853 #ifdef __STDC__
1854 # include <limits.h>
1855 #else
1856 # include <assert.h>
1857 #endif
1858
1859 #undef $2
1860
1861 /* Override any GCC internal prototype to avoid an error.
1862 Use char because int might match the return type of a GCC
1863 builtin and then its argument prototype would still apply. */
1864 #ifdef __cplusplus
1865 extern "C"
1866 #endif
1867 char $2 ();
1868 /* The GNU C library defines this for functions which it implements
1869 to always fail with ENOSYS. Some functions are actually named
1870 something starting with __ and the normal name is an alias. */
1871 #if defined __stub_$2 || defined __stub___$2
1872 choke me
1873 #endif
1874
1875 int
1876 main ()
1877 {
1878 return $2 ();
1879 ;
1880 return 0;
1881 }
1882 _ACEOF
1883 if ac_fn_c_try_link "$LINENO"; then :
1884 eval "$3=yes"
1885 else
1886 eval "$3=no"
1887 fi
1888 rm -f core conftest.err conftest.$ac_objext \
1889 conftest$ac_exeext conftest.$ac_ext
1890 fi
1891 eval ac_res=\$$3
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893 $as_echo "$ac_res" >&6; }
1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895
1896 } # ac_fn_c_check_func
1897
1898 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1899 # ---------------------------------------------
1900 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1901 # accordingly.
1902 ac_fn_c_check_decl ()
1903 {
1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905 as_decl_name=`echo $2|sed 's/ *(.*//'`
1906 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1908 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1909 if eval \${$3+:} false; then :
1910 $as_echo_n "(cached) " >&6
1911 else
1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913 /* end confdefs.h. */
1914 $4
1915 int
1916 main ()
1917 {
1918 #ifndef $as_decl_name
1919 #ifdef __cplusplus
1920 (void) $as_decl_use;
1921 #else
1922 (void) $as_decl_name;
1923 #endif
1924 #endif
1925
1926 ;
1927 return 0;
1928 }
1929 _ACEOF
1930 if ac_fn_c_try_compile "$LINENO"; then :
1931 eval "$3=yes"
1932 else
1933 eval "$3=no"
1934 fi
1935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936 fi
1937 eval ac_res=\$$3
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939 $as_echo "$ac_res" >&6; }
1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941
1942 } # ac_fn_c_check_decl
1943 cat >config.log <<_ACEOF
1944 This file contains any messages produced by compilers while
1945 running configure, to aid debugging if configure makes a mistake.
1946
1947 It was created by libXcomposite $as_me 0.4.5, which was
1948 generated by GNU Autoconf 2.69. Invocation command line was
1949
1950 $ $0 $@
1951
1952 _ACEOF
1953 exec 5>>config.log
1954 {
1955 cat <<_ASUNAME
1956 ## --------- ##
1957 ## Platform. ##
1958 ## --------- ##
1959
1960 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1961 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1962 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1963 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1964 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1965
1966 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1967 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1968
1969 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1970 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1971 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1972 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1973 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1974 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1975 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1976
1977 _ASUNAME
1978
1979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1980 for as_dir in $PATH
1981 do
1982 IFS=$as_save_IFS
1983 test -z "$as_dir" && as_dir=.
1984 $as_echo "PATH: $as_dir"
1985 done
1986 IFS=$as_save_IFS
1987
1988 } >&5
1989
1990 cat >&5 <<_ACEOF
1991
1992
1993 ## ----------- ##
1994 ## Core tests. ##
1995 ## ----------- ##
1996
1997 _ACEOF
1998
1999
2000 # Keep a trace of the command line.
2001 # Strip out --no-create and --no-recursion so they do not pile up.
2002 # Strip out --silent because we don't want to record it for future runs.
2003 # Also quote any args containing shell meta-characters.
2004 # Make two passes to allow for proper duplicate-argument suppression.
2005 ac_configure_args=
2006 ac_configure_args0=
2007 ac_configure_args1=
2008 ac_must_keep_next=false
2009 for ac_pass in 1 2
2010 do
2011 for ac_arg
2012 do
2013 case $ac_arg in
2014 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2015 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2016 | -silent | --silent | --silen | --sile | --sil)
2017 continue ;;
2018 *\'*)
2019 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2020 esac
2021 case $ac_pass in
2022 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2023 2)
2024 as_fn_append ac_configure_args1 " '$ac_arg'"
2025 if test $ac_must_keep_next = true; then
2026 ac_must_keep_next=false # Got value, back to normal.
2027 else
2028 case $ac_arg in
2029 *=* | --config-cache | -C | -disable-* | --disable-* \
2030 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2031 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2032 | -with-* | --with-* | -without-* | --without-* | --x)
2033 case "$ac_configure_args0 " in
2034 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2035 esac
2036 ;;
2037 -* ) ac_must_keep_next=true ;;
2038 esac
2039 fi
2040 as_fn_append ac_configure_args " '$ac_arg'"
2041 ;;
2042 esac
2043 done
2044 done
2045 { ac_configure_args0=; unset ac_configure_args0;}
2046 { ac_configure_args1=; unset ac_configure_args1;}
2047
2048 # When interrupted or exit'd, cleanup temporary files, and complete
2049 # config.log. We remove comments because anyway the quotes in there
2050 # would cause problems or look ugly.
2051 # WARNING: Use '\'' to represent an apostrophe within the trap.
2052 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2053 trap 'exit_status=$?
2054 # Save into config.log some information that might help in debugging.
2055 {
2056 echo
2057
2058 $as_echo "## ---------------- ##
2059 ## Cache variables. ##
2060 ## ---------------- ##"
2061 echo
2062 # The following way of writing the cache mishandles newlines in values,
2063 (
2064 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2065 eval ac_val=\$$ac_var
2066 case $ac_val in #(
2067 *${as_nl}*)
2068 case $ac_var in #(
2069 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2070 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2071 esac
2072 case $ac_var in #(
2073 _ | IFS | as_nl) ;; #(
2074 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2075 *) { eval $ac_var=; unset $ac_var;} ;;
2076 esac ;;
2077 esac
2078 done
2079 (set) 2>&1 |
2080 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2081 *${as_nl}ac_space=\ *)
2082 sed -n \
2083 "s/'\''/'\''\\\\'\'''\''/g;
2084 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2085 ;; #(
2086 *)
2087 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2088 ;;
2089 esac |
2090 sort
2091 )
2092 echo
2093
2094 $as_echo "## ----------------- ##
2095 ## Output variables. ##
2096 ## ----------------- ##"
2097 echo
2098 for ac_var in $ac_subst_vars
2099 do
2100 eval ac_val=\$$ac_var
2101 case $ac_val in
2102 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2103 esac
2104 $as_echo "$ac_var='\''$ac_val'\''"
2105 done | sort
2106 echo
2107
2108 if test -n "$ac_subst_files"; then
2109 $as_echo "## ------------------- ##
2110 ## File substitutions. ##
2111 ## ------------------- ##"
2112 echo
2113 for ac_var in $ac_subst_files
2114 do
2115 eval ac_val=\$$ac_var
2116 case $ac_val in
2117 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2118 esac
2119 $as_echo "$ac_var='\''$ac_val'\''"
2120 done | sort
2121 echo
2122 fi
2123
2124 if test -s confdefs.h; then
2125 $as_echo "## ----------- ##
2126 ## confdefs.h. ##
2127 ## ----------- ##"
2128 echo
2129 cat confdefs.h
2130 echo
2131 fi
2132 test "$ac_signal" != 0 &&
2133 $as_echo "$as_me: caught signal $ac_signal"
2134 $as_echo "$as_me: exit $exit_status"
2135 } >&5
2136 rm -f core *.core core.conftest.* &&
2137 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2138 exit $exit_status
2139 ' 0
2140 for ac_signal in 1 2 13 15; do
2141 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2142 done
2143 ac_signal=0
2144
2145 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2146 rm -f -r conftest* confdefs.h
2147
2148 $as_echo "/* confdefs.h */" > confdefs.h
2149
2150 # Predefined preprocessor variables.
2151
2152 cat >>confdefs.h <<_ACEOF
2153 #define PACKAGE_NAME "$PACKAGE_NAME"
2154 _ACEOF
2155
2156 cat >>confdefs.h <<_ACEOF
2157 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2158 _ACEOF
2159
2160 cat >>confdefs.h <<_ACEOF
2161 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2162 _ACEOF
2163
2164 cat >>confdefs.h <<_ACEOF
2165 #define PACKAGE_STRING "$PACKAGE_STRING"
2166 _ACEOF
2167
2168 cat >>confdefs.h <<_ACEOF
2169 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2170 _ACEOF
2171
2172 cat >>confdefs.h <<_ACEOF
2173 #define PACKAGE_URL "$PACKAGE_URL"
2174 _ACEOF
2175
2176
2177 # Let the site file select an alternate cache file if it wants to.
2178 # Prefer an explicitly selected file to automatically selected ones.
2179 ac_site_file1=NONE
2180 ac_site_file2=NONE
2181 if test -n "$CONFIG_SITE"; then
2182 # We do not want a PATH search for config.site.
2183 case $CONFIG_SITE in #((
2184 -*) ac_site_file1=./$CONFIG_SITE;;
2185 */*) ac_site_file1=$CONFIG_SITE;;
2186 *) ac_site_file1=./$CONFIG_SITE;;
2187 esac
2188 elif test "x$prefix" != xNONE; then
2189 ac_site_file1=$prefix/share/config.site
2190 ac_site_file2=$prefix/etc/config.site
2191 else
2192 ac_site_file1=$ac_default_prefix/share/config.site
2193 ac_site_file2=$ac_default_prefix/etc/config.site
2194 fi
2195 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2196 do
2197 test "x$ac_site_file" = xNONE && continue
2198 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2200 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2201 sed 's/^/| /' "$ac_site_file" >&5
2202 . "$ac_site_file" \
2203 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2205 as_fn_error $? "failed to load site script $ac_site_file
2206 See \`config.log' for more details" "$LINENO" 5; }
2207 fi
2208 done
2209
2210 if test -r "$cache_file"; then
2211 # Some versions of bash will fail to source /dev/null (special files
2212 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2213 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2215 $as_echo "$as_me: loading cache $cache_file" >&6;}
2216 case $cache_file in
2217 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2218 *) . "./$cache_file";;
2219 esac
2220 fi
2221 else
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2223 $as_echo "$as_me: creating cache $cache_file" >&6;}
2224 >$cache_file
2225 fi
2226
2227 # Check that the precious variables saved in the cache have kept the same
2228 # value.
2229 ac_cache_corrupted=false
2230 for ac_var in $ac_precious_vars; do
2231 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2232 eval ac_new_set=\$ac_env_${ac_var}_set
2233 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2234 eval ac_new_val=\$ac_env_${ac_var}_value
2235 case $ac_old_set,$ac_new_set in
2236 set,)
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2238 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2239 ac_cache_corrupted=: ;;
2240 ,set)
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2242 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2243 ac_cache_corrupted=: ;;
2244 ,);;
2245 *)
2246 if test "x$ac_old_val" != "x$ac_new_val"; then
2247 # differences in whitespace do not lead to failure.
2248 ac_old_val_w=`echo x $ac_old_val`
2249 ac_new_val_w=`echo x $ac_new_val`
2250 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2252 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2253 ac_cache_corrupted=:
2254 else
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2256 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2257 eval $ac_var=\$ac_old_val
2258 fi
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2260 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2262 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2263 fi;;
2264 esac
2265 # Pass precious variables to config.status.
2266 if test "$ac_new_set" = set; then
2267 case $ac_new_val in
2268 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2269 *) ac_arg=$ac_var=$ac_new_val ;;
2270 esac
2271 case " $ac_configure_args " in
2272 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2273 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2274 esac
2275 fi
2276 done
2277 if $ac_cache_corrupted; then
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2279 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2281 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2282 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2283 fi
2284 ## -------------------- ##
2285 ## Main body of script. ##
2286 ## -------------------- ##
2287
2288 ac_ext=c
2289 ac_cpp='$CPP $CPPFLAGS'
2290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2293
2294
2295
2296 ac_config_headers="$ac_config_headers config.h"
2297
2298
2299 # Initialize Automake
2300 am__api_version='1.15'
2301
2302 ac_aux_dir=
2303 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2304 if test -f "$ac_dir/install-sh"; then
2305 ac_aux_dir=$ac_dir
2306 ac_install_sh="$ac_aux_dir/install-sh -c"
2307 break
2308 elif test -f "$ac_dir/install.sh"; then
2309 ac_aux_dir=$ac_dir
2310 ac_install_sh="$ac_aux_dir/install.sh -c"
2311 break
2312 elif test -f "$ac_dir/shtool"; then
2313 ac_aux_dir=$ac_dir
2314 ac_install_sh="$ac_aux_dir/shtool install -c"
2315 break
2316 fi
2317 done
2318 if test -z "$ac_aux_dir"; then
2319 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2320 fi
2321
2322 # These three variables are undocumented and unsupported,
2323 # and are intended to be withdrawn in a future Autoconf release.
2324 # They can cause serious problems if a builder's source tree is in a directory
2325 # whose full name contains unusual characters.
2326 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2327 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2328 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2329
2330
2331 # Find a good install program. We prefer a C program (faster),
2332 # so one script is as good as another. But avoid the broken or
2333 # incompatible versions:
2334 # SysV /etc/install, /usr/sbin/install
2335 # SunOS /usr/etc/install
2336 # IRIX /sbin/install
2337 # AIX /bin/install
2338 # AmigaOS /C/install, which installs bootblocks on floppy discs
2339 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2340 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2341 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2342 # OS/2's system install, which has a completely different semantic
2343 # ./install, which can be erroneously created by make from ./install.sh.
2344 # Reject install programs that cannot install multiple files.
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2346 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2347 if test -z "$INSTALL"; then
2348 if ${ac_cv_path_install+:} false; then :
2349 $as_echo_n "(cached) " >&6
2350 else
2351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352 for as_dir in $PATH
2353 do
2354 IFS=$as_save_IFS
2355 test -z "$as_dir" && as_dir=.
2356 # Account for people who put trailing slashes in PATH elements.
2357 case $as_dir/ in #((
2358 ./ | .// | /[cC]/* | \
2359 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2360 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2361 /usr/ucb/* ) ;;
2362 *)
2363 # OSF1 and SCO ODT 3.0 have their own names for install.
2364 # Don't use installbsd from OSF since it installs stuff as root
2365 # by default.
2366 for ac_prog in ginstall scoinst install; do
2367 for ac_exec_ext in '' $ac_executable_extensions; do
2368 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2369 if test $ac_prog = install &&
2370 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2371 # AIX install. It has an incompatible calling convention.
2372 :
2373 elif test $ac_prog = install &&
2374 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2375 # program-specific install script used by HP pwplus--don't use.
2376 :
2377 else
2378 rm -rf conftest.one conftest.two conftest.dir
2379 echo one > conftest.one
2380 echo two > conftest.two
2381 mkdir conftest.dir
2382 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2383 test -s conftest.one && test -s conftest.two &&
2384 test -s conftest.dir/conftest.one &&
2385 test -s conftest.dir/conftest.two
2386 then
2387 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2388 break 3
2389 fi
2390 fi
2391 fi
2392 done
2393 done
2394 ;;
2395 esac
2396
2397 done
2398 IFS=$as_save_IFS
2399
2400 rm -rf conftest.one conftest.two conftest.dir
2401
2402 fi
2403 if test "${ac_cv_path_install+set}" = set; then
2404 INSTALL=$ac_cv_path_install
2405 else
2406 # As a last resort, use the slow shell script. Don't cache a
2407 # value for INSTALL within a source directory, because that will
2408 # break other packages using the cache if that directory is
2409 # removed, or if the value is a relative name.
2410 INSTALL=$ac_install_sh
2411 fi
2412 fi
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2414 $as_echo "$INSTALL" >&6; }
2415
2416 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2417 # It thinks the first close brace ends the variable substitution.
2418 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2419
2420 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2421
2422 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2423
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2425 $as_echo_n "checking whether build environment is sane... " >&6; }
2426 # Reject unsafe characters in $srcdir or the absolute working directory
2427 # name. Accept space and tab only in the latter.
2428 am_lf='
2429 '
2430 case `pwd` in
2431 *[\\\"\#\$\&\'\`$am_lf]*)
2432 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2433 esac
2434 case $srcdir in
2435 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2436 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2437 esac
2438
2439 # Do 'set' in a subshell so we don't clobber the current shell's
2440 # arguments. Must try -L first in case configure is actually a
2441 # symlink; some systems play weird games with the mod time of symlinks
2442 # (eg FreeBSD returns the mod time of the symlink's containing
2443 # directory).
2444 if (
2445 am_has_slept=no
2446 for am_try in 1 2; do
2447 echo "timestamp, slept: $am_has_slept" > conftest.file
2448 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2449 if test "$*" = "X"; then
2450 # -L didn't work.
2451 set X `ls -t "$srcdir/configure" conftest.file`
2452 fi
2453 if test "$*" != "X $srcdir/configure conftest.file" \
2454 && test "$*" != "X conftest.file $srcdir/configure"; then
2455
2456 # If neither matched, then we have a broken ls. This can happen
2457 # if, for instance, CONFIG_SHELL is bash and it inherits a
2458 # broken ls alias from the environment. This has actually
2459 # happened. Such a system could not be considered "sane".
2460 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2461 alias in your environment" "$LINENO" 5
2462 fi
2463 if test "$2" = conftest.file || test $am_try -eq 2; then
2464 break
2465 fi
2466 # Just in case.
2467 sleep 1
2468 am_has_slept=yes
2469 done
2470 test "$2" = conftest.file
2471 )
2472 then
2473 # Ok.
2474 :
2475 else
2476 as_fn_error $? "newly created file is older than distributed files!
2477 Check your system clock" "$LINENO" 5
2478 fi
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2480 $as_echo "yes" >&6; }
2481 # If we didn't sleep, we still need to ensure time stamps of config.status and
2482 # generated files are strictly newer.
2483 am_sleep_pid=
2484 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2485 ( sleep 1 ) &
2486 am_sleep_pid=$!
2487 fi
2488
2489 rm -f conftest.file
2490
2491 test "$program_prefix" != NONE &&
2492 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2493 # Use a double $ so make ignores it.
2494 test "$program_suffix" != NONE &&
2495 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2496 # Double any \ or $.
2497 # By default was `s,x,x', remove it if useless.
2498 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2499 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2500
2501 # Expand $ac_aux_dir to an absolute path.
2502 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2503
2504 if test x"${MISSING+set}" != xset; then
2505 case $am_aux_dir in
2506 *\ * | *\ *)
2507 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2508 *)
2509 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2510 esac
2511 fi
2512 # Use eval to expand $SHELL
2513 if eval "$MISSING --is-lightweight"; then
2514 am_missing_run="$MISSING "
2515 else
2516 am_missing_run=
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2518 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2519 fi
2520
2521 if test x"${install_sh+set}" != xset; then
2522 case $am_aux_dir in
2523 *\ * | *\ *)
2524 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2525 *)
2526 install_sh="\${SHELL} $am_aux_dir/install-sh"
2527 esac
2528 fi
2529
2530 # Installed binaries are usually stripped using 'strip' when the user
2531 # run "make install-strip". However 'strip' might not be the right
2532 # tool to use in cross-compilation environments, therefore Automake
2533 # will honor the 'STRIP' environment variable to overrule this program.
2534 if test "$cross_compiling" != no; then
2535 if test -n "$ac_tool_prefix"; then
2536 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2537 set dummy ${ac_tool_prefix}strip; ac_word=$2
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2539 $as_echo_n "checking for $ac_word... " >&6; }
2540 if ${ac_cv_prog_STRIP+:} false; then :
2541 $as_echo_n "(cached) " >&6
2542 else
2543 if test -n "$STRIP"; then
2544 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2545 else
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 for as_dir in $PATH
2548 do
2549 IFS=$as_save_IFS
2550 test -z "$as_dir" && as_dir=.
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2553 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2555 break 2
2556 fi
2557 done
2558 done
2559 IFS=$as_save_IFS
2560
2561 fi
2562 fi
2563 STRIP=$ac_cv_prog_STRIP
2564 if test -n "$STRIP"; then
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2566 $as_echo "$STRIP" >&6; }
2567 else
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2569 $as_echo "no" >&6; }
2570 fi
2571
2572
2573 fi
2574 if test -z "$ac_cv_prog_STRIP"; then
2575 ac_ct_STRIP=$STRIP
2576 # Extract the first word of "strip", so it can be a program name with args.
2577 set dummy strip; ac_word=$2
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2579 $as_echo_n "checking for $ac_word... " >&6; }
2580 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2581 $as_echo_n "(cached) " >&6
2582 else
2583 if test -n "$ac_ct_STRIP"; then
2584 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2585 else
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 for as_dir in $PATH
2588 do
2589 IFS=$as_save_IFS
2590 test -z "$as_dir" && as_dir=.
2591 for ac_exec_ext in '' $ac_executable_extensions; do
2592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2593 ac_cv_prog_ac_ct_STRIP="strip"
2594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2595 break 2
2596 fi
2597 done
2598 done
2599 IFS=$as_save_IFS
2600
2601 fi
2602 fi
2603 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2604 if test -n "$ac_ct_STRIP"; then
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2606 $as_echo "$ac_ct_STRIP" >&6; }
2607 else
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2609 $as_echo "no" >&6; }
2610 fi
2611
2612 if test "x$ac_ct_STRIP" = x; then
2613 STRIP=":"
2614 else
2615 case $cross_compiling:$ac_tool_warned in
2616 yes:)
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2619 ac_tool_warned=yes ;;
2620 esac
2621 STRIP=$ac_ct_STRIP
2622 fi
2623 else
2624 STRIP="$ac_cv_prog_STRIP"
2625 fi
2626
2627 fi
2628 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2629
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2631 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2632 if test -z "$MKDIR_P"; then
2633 if ${ac_cv_path_mkdir+:} false; then :
2634 $as_echo_n "(cached) " >&6
2635 else
2636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2638 do
2639 IFS=$as_save_IFS
2640 test -z "$as_dir" && as_dir=.
2641 for ac_prog in mkdir gmkdir; do
2642 for ac_exec_ext in '' $ac_executable_extensions; do
2643 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2644 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2645 'mkdir (GNU coreutils) '* | \
2646 'mkdir (coreutils) '* | \
2647 'mkdir (fileutils) '4.1*)
2648 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2649 break 3;;
2650 esac
2651 done
2652 done
2653 done
2654 IFS=$as_save_IFS
2655
2656 fi
2657
2658 test -d ./--version && rmdir ./--version
2659 if test "${ac_cv_path_mkdir+set}" = set; then
2660 MKDIR_P="$ac_cv_path_mkdir -p"
2661 else
2662 # As a last resort, use the slow shell script. Don't cache a
2663 # value for MKDIR_P within a source directory, because that will
2664 # break other packages using the cache if that directory is
2665 # removed, or if the value is a relative name.
2666 MKDIR_P="$ac_install_sh -d"
2667 fi
2668 fi
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2670 $as_echo "$MKDIR_P" >&6; }
2671
2672 for ac_prog in gawk mawk nawk awk
2673 do
2674 # Extract the first word of "$ac_prog", so it can be a program name with args.
2675 set dummy $ac_prog; ac_word=$2
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2677 $as_echo_n "checking for $ac_word... " >&6; }
2678 if ${ac_cv_prog_AWK+:} false; then :
2679 $as_echo_n "(cached) " >&6
2680 else
2681 if test -n "$AWK"; then
2682 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2683 else
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 for as_dir in $PATH
2686 do
2687 IFS=$as_save_IFS
2688 test -z "$as_dir" && as_dir=.
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2691 ac_cv_prog_AWK="$ac_prog"
2692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 break 2
2694 fi
2695 done
2696 done
2697 IFS=$as_save_IFS
2698
2699 fi
2700 fi
2701 AWK=$ac_cv_prog_AWK
2702 if test -n "$AWK"; then
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2704 $as_echo "$AWK" >&6; }
2705 else
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2707 $as_echo "no" >&6; }
2708 fi
2709
2710
2711 test -n "$AWK" && break
2712 done
2713
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2715 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2716 set x ${MAKE-make}
2717 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2718 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2719 $as_echo_n "(cached) " >&6
2720 else
2721 cat >conftest.make <<\_ACEOF
2722 SHELL = /bin/sh
2723 all:
2724 @echo '@@@%%%=$(MAKE)=@@@%%%'
2725 _ACEOF
2726 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2727 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2728 *@@@%%%=?*=@@@%%%*)
2729 eval ac_cv_prog_make_${ac_make}_set=yes;;
2730 *)
2731 eval ac_cv_prog_make_${ac_make}_set=no;;
2732 esac
2733 rm -f conftest.make
2734 fi
2735 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2737 $as_echo "yes" >&6; }
2738 SET_MAKE=
2739 else
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2741 $as_echo "no" >&6; }
2742 SET_MAKE="MAKE=${MAKE-make}"
2743 fi
2744
2745 rm -rf .tst 2>/dev/null
2746 mkdir .tst 2>/dev/null
2747 if test -d .tst; then
2748 am__leading_dot=.
2749 else
2750 am__leading_dot=_
2751 fi
2752 rmdir .tst 2>/dev/null
2753
2754 # Check whether --enable-silent-rules was given.
2755 if test "${enable_silent_rules+set}" = set; then :
2756 enableval=$enable_silent_rules;
2757 fi
2758
2759 case $enable_silent_rules in # (((
2760 yes) AM_DEFAULT_VERBOSITY=0;;
2761 no) AM_DEFAULT_VERBOSITY=1;;
2762 *) AM_DEFAULT_VERBOSITY=1;;
2763 esac
2764 am_make=${MAKE-make}
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2766 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2767 if ${am_cv_make_support_nested_variables+:} false; then :
2768 $as_echo_n "(cached) " >&6
2769 else
2770 if $as_echo 'TRUE=$(BAR$(V))
2771 BAR0=false
2772 BAR1=true
2773 V=1
2774 am__doit:
2775 @$(TRUE)
2776 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2777 am_cv_make_support_nested_variables=yes
2778 else
2779 am_cv_make_support_nested_variables=no
2780 fi
2781 fi
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2783 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2784 if test $am_cv_make_support_nested_variables = yes; then
2785 AM_V='$(V)'
2786 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2787 else
2788 AM_V=$AM_DEFAULT_VERBOSITY
2789 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2790 fi
2791 AM_BACKSLASH='\'
2792
2793 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2794 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2795 # is not polluted with repeated "-I."
2796 am__isrc=' -I$(srcdir)'
2797 # test to see if srcdir already configured
2798 if test -f $srcdir/config.status; then
2799 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2800 fi
2801 fi
2802
2803 # test whether we have cygpath
2804 if test -z "$CYGPATH_W"; then
2805 if (cygpath --version) >/dev/null 2>/dev/null; then
2806 CYGPATH_W='cygpath -w'
2807 else
2808 CYGPATH_W=echo
2809 fi
2810 fi
2811
2812
2813 # Define the identity of the package.
2814 PACKAGE='libXcomposite'
2815 VERSION='0.4.5'
2816
2817
2818 cat >>confdefs.h <<_ACEOF
2819 #define PACKAGE "$PACKAGE"
2820 _ACEOF
2821
2822
2823 cat >>confdefs.h <<_ACEOF
2824 #define VERSION "$VERSION"
2825 _ACEOF
2826
2827 # Some tools Automake needs.
2828
2829 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2830
2831
2832 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2833
2834
2835 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2836
2837
2838 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2839
2840
2841 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2842
2843 # For better backward compatibility. To be removed once Automake 1.9.x
2844 # dies out for good. For more background, see:
2845 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2846 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2847 mkdir_p='$(MKDIR_P)'
2848
2849 # We need awk for the "check" target (and possibly the TAP driver). The
2850 # system "awk" is bad on some platforms.
2851 # Always define AMTAR for backward compatibility. Yes, it's still used
2852 # in the wild :-( We should find a proper way to deprecate it ...
2853 AMTAR='$${TAR-tar}'
2854
2855
2856 # We'll loop over all known methods to create a tar archive until one works.
2857 _am_tools='gnutar pax cpio none'
2858
2859 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2860
2861
2862
2863
2864
2865
2866 # POSIX will say in a future version that running "rm -f" with no argument
2867 # is OK; and we want to be able to make that assumption in our Makefile
2868 # recipes. So use an aggressive probe to check that the usage we want is
2869 # actually supported "in the wild" to an acceptable degree.
2870 # See automake bug#10828.
2871 # To make any issue more visible, cause the running configure to be aborted
2872 # by default if the 'rm' program in use doesn't match our expectations; the
2873 # user can still override this though.
2874 if rm -f && rm -fr && rm -rf; then : OK; else
2875 cat >&2 <<'END'
2876 Oops!
2877
2878 Your 'rm' program seems unable to run without file operands specified
2879 on the command line, even when the '-f' option is present. This is contrary
2880 to the behaviour of most rm programs out there, and not conforming with
2881 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2882
2883 Please tell bug-automake@gnu.org about your system, including the value
2884 of your $PATH and any error possibly output before this message. This
2885 can help us improve future automake versions.
2886
2887 END
2888 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2889 echo 'Configuration will proceed anyway, since you have set the' >&2
2890 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2891 echo >&2
2892 else
2893 cat >&2 <<'END'
2894 Aborting the configuration process, to ensure you take notice of the issue.
2895
2896 You can download and install GNU coreutils to get an 'rm' implementation
2897 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2898
2899 If you want to complete the configuration process using your problematic
2900 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2901 to "yes", and re-run configure.
2902
2903 END
2904 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2905 fi
2906 fi
2907
2908
2909 # Initialize libtool
2910 case `pwd` in
2911 *\ * | *\ *)
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2913 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2914 esac
2915
2916
2917
2918 macro_version='2.4.6'
2919 macro_revision='2.4.6'
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933 ltmain=$ac_aux_dir/ltmain.sh
2934
2935 # Make sure we can run config.sub.
2936 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2937 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2938
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2940 $as_echo_n "checking build system type... " >&6; }
2941 if ${ac_cv_build+:} false; then :
2942 $as_echo_n "(cached) " >&6
2943 else
2944 ac_build_alias=$build_alias
2945 test "x$ac_build_alias" = x &&
2946 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2947 test "x$ac_build_alias" = x &&
2948 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2949 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2950 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2951
2952 fi
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2954 $as_echo "$ac_cv_build" >&6; }
2955 case $ac_cv_build in
2956 *-*-*) ;;
2957 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2958 esac
2959 build=$ac_cv_build
2960 ac_save_IFS=$IFS; IFS='-'
2961 set x $ac_cv_build
2962 shift
2963 build_cpu=$1
2964 build_vendor=$2
2965 shift; shift
2966 # Remember, the first character of IFS is used to create $*,
2967 # except with old shells:
2968 build_os=$*
2969 IFS=$ac_save_IFS
2970 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2971
2972
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2974 $as_echo_n "checking host system type... " >&6; }
2975 if ${ac_cv_host+:} false; then :
2976 $as_echo_n "(cached) " >&6
2977 else
2978 if test "x$host_alias" = x; then
2979 ac_cv_host=$ac_cv_build
2980 else
2981 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2982 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2983 fi
2984
2985 fi
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2987 $as_echo "$ac_cv_host" >&6; }
2988 case $ac_cv_host in
2989 *-*-*) ;;
2990 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2991 esac
2992 host=$ac_cv_host
2993 ac_save_IFS=$IFS; IFS='-'
2994 set x $ac_cv_host
2995 shift
2996 host_cpu=$1
2997 host_vendor=$2
2998 shift; shift
2999 # Remember, the first character of IFS is used to create $*,
3000 # except with old shells:
3001 host_os=$*
3002 IFS=$ac_save_IFS
3003 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3004
3005
3006 # Backslashify metacharacters that are still active within
3007 # double-quoted strings.
3008 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3009
3010 # Same as above, but do not quote variable references.
3011 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3012
3013 # Sed substitution to delay expansion of an escaped shell variable in a
3014 # double_quote_subst'ed string.
3015 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3016
3017 # Sed substitution to delay expansion of an escaped single quote.
3018 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3019
3020 # Sed substitution to avoid accidental globbing in evaled expressions
3021 no_glob_subst='s/\*/\\\*/g'
3022
3023 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3024 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3025 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3026
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3028 $as_echo_n "checking how to print strings... " >&6; }
3029 # Test print first, because it will be a builtin if present.
3030 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3031 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3032 ECHO='print -r --'
3033 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3034 ECHO='printf %s\n'
3035 else
3036 # Use this function as a fallback that always works.
3037 func_fallback_echo ()
3038 {
3039 eval 'cat <<_LTECHO_EOF
3040 $1
3041 _LTECHO_EOF'
3042 }
3043 ECHO='func_fallback_echo'
3044 fi
3045
3046 # func_echo_all arg...
3047 # Invoke $ECHO with all args, space-separated.
3048 func_echo_all ()
3049 {
3050 $ECHO ""
3051 }
3052
3053 case $ECHO in
3054 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3055 $as_echo "printf" >&6; } ;;
3056 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3057 $as_echo "print -r" >&6; } ;;
3058 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3059 $as_echo "cat" >&6; } ;;
3060 esac
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075 DEPDIR="${am__leading_dot}deps"
3076
3077 ac_config_commands="$ac_config_commands depfiles"
3078
3079
3080 am_make=${MAKE-make}
3081 cat > confinc << 'END'
3082 am__doit:
3083 @echo this is the am__doit target
3084 .PHONY: am__doit
3085 END
3086 # If we don't find an include directive, just comment out the code.
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3088 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3089 am__include="#"
3090 am__quote=
3091 _am_result=none
3092 # First try GNU make style include.
3093 echo "include confinc" > confmf
3094 # Ignore all kinds of additional output from 'make'.
3095 case `$am_make -s -f confmf 2> /dev/null` in #(
3096 *the\ am__doit\ target*)
3097 am__include=include
3098 am__quote=
3099 _am_result=GNU
3100 ;;
3101 esac
3102 # Now try BSD make style include.
3103 if test "$am__include" = "#"; then
3104 echo '.include "confinc"' > confmf
3105 case `$am_make -s -f confmf 2> /dev/null` in #(
3106 *the\ am__doit\ target*)
3107 am__include=.include
3108 am__quote="\""
3109 _am_result=BSD
3110 ;;
3111 esac
3112 fi
3113
3114
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3116 $as_echo "$_am_result" >&6; }
3117 rm -f confinc confmf
3118
3119 # Check whether --enable-dependency-tracking was given.
3120 if test "${enable_dependency_tracking+set}" = set; then :
3121 enableval=$enable_dependency_tracking;
3122 fi
3123
3124 if test "x$enable_dependency_tracking" != xno; then
3125 am_depcomp="$ac_aux_dir/depcomp"
3126 AMDEPBACKSLASH='\'
3127 am__nodep='_no'
3128 fi
3129 if test "x$enable_dependency_tracking" != xno; then
3130 AMDEP_TRUE=
3131 AMDEP_FALSE='#'
3132 else
3133 AMDEP_TRUE='#'
3134 AMDEP_FALSE=
3135 fi
3136
3137
3138 ac_ext=c
3139 ac_cpp='$CPP $CPPFLAGS'
3140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3143 if test -n "$ac_tool_prefix"; then
3144 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3145 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3147 $as_echo_n "checking for $ac_word... " >&6; }
3148 if ${ac_cv_prog_CC+:} false; then :
3149 $as_echo_n "(cached) " >&6
3150 else
3151 if test -n "$CC"; then
3152 ac_cv_prog_CC="$CC" # Let the user override the test.
3153 else
3154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155 for as_dir in $PATH
3156 do
3157 IFS=$as_save_IFS
3158 test -z "$as_dir" && as_dir=.
3159 for ac_exec_ext in '' $ac_executable_extensions; do
3160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3161 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3163 break 2
3164 fi
3165 done
3166 done
3167 IFS=$as_save_IFS
3168
3169 fi
3170 fi
3171 CC=$ac_cv_prog_CC
3172 if test -n "$CC"; then
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3174 $as_echo "$CC" >&6; }
3175 else
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3177 $as_echo "no" >&6; }
3178 fi
3179
3180
3181 fi
3182 if test -z "$ac_cv_prog_CC"; then
3183 ac_ct_CC=$CC
3184 # Extract the first word of "gcc", so it can be a program name with args.
3185 set dummy gcc; ac_word=$2
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3187 $as_echo_n "checking for $ac_word... " >&6; }
3188 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3189 $as_echo_n "(cached) " >&6
3190 else
3191 if test -n "$ac_ct_CC"; then
3192 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3193 else
3194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3195 for as_dir in $PATH
3196 do
3197 IFS=$as_save_IFS
3198 test -z "$as_dir" && as_dir=.
3199 for ac_exec_ext in '' $ac_executable_extensions; do
3200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3201 ac_cv_prog_ac_ct_CC="gcc"
3202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3203 break 2
3204 fi
3205 done
3206 done
3207 IFS=$as_save_IFS
3208
3209 fi
3210 fi
3211 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3212 if test -n "$ac_ct_CC"; then
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3214 $as_echo "$ac_ct_CC" >&6; }
3215 else
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217 $as_echo "no" >&6; }
3218 fi
3219
3220 if test "x$ac_ct_CC" = x; then
3221 CC=""
3222 else
3223 case $cross_compiling:$ac_tool_warned in
3224 yes:)
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3227 ac_tool_warned=yes ;;
3228 esac
3229 CC=$ac_ct_CC
3230 fi
3231 else
3232 CC="$ac_cv_prog_CC"
3233 fi
3234
3235 if test -z "$CC"; then
3236 if test -n "$ac_tool_prefix"; then
3237 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3238 set dummy ${ac_tool_prefix}cc; ac_word=$2
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3240 $as_echo_n "checking for $ac_word... " >&6; }
3241 if ${ac_cv_prog_CC+:} false; then :
3242 $as_echo_n "(cached) " >&6
3243 else
3244 if test -n "$CC"; then
3245 ac_cv_prog_CC="$CC" # Let the user override the test.
3246 else
3247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 for as_dir in $PATH
3249 do
3250 IFS=$as_save_IFS
3251 test -z "$as_dir" && as_dir=.
3252 for ac_exec_ext in '' $ac_executable_extensions; do
3253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3254 ac_cv_prog_CC="${ac_tool_prefix}cc"
3255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3256 break 2
3257 fi
3258 done
3259 done
3260 IFS=$as_save_IFS
3261
3262 fi
3263 fi
3264 CC=$ac_cv_prog_CC
3265 if test -n "$CC"; then
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3267 $as_echo "$CC" >&6; }
3268 else
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3270 $as_echo "no" >&6; }
3271 fi
3272
3273
3274 fi
3275 fi
3276 if test -z "$CC"; then
3277 # Extract the first word of "cc", so it can be a program name with args.
3278 set dummy cc; ac_word=$2
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3280 $as_echo_n "checking for $ac_word... " >&6; }
3281 if ${ac_cv_prog_CC+:} false; then :
3282 $as_echo_n "(cached) " >&6
3283 else
3284 if test -n "$CC"; then
3285 ac_cv_prog_CC="$CC" # Let the user override the test.
3286 else
3287 ac_prog_rejected=no
3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289 for as_dir in $PATH
3290 do
3291 IFS=$as_save_IFS
3292 test -z "$as_dir" && as_dir=.
3293 for ac_exec_ext in '' $ac_executable_extensions; do
3294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3295 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3296 ac_prog_rejected=yes
3297 continue
3298 fi
3299 ac_cv_prog_CC="cc"
3300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3301 break 2
3302 fi
3303 done
3304 done
3305 IFS=$as_save_IFS
3306
3307 if test $ac_prog_rejected = yes; then
3308 # We found a bogon in the path, so make sure we never use it.
3309 set dummy $ac_cv_prog_CC
3310 shift
3311 if test $# != 0; then
3312 # We chose a different compiler from the bogus one.
3313 # However, it has the same basename, so the bogon will be chosen
3314 # first if we set CC to just the basename; use the full file name.
3315 shift
3316 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3317 fi
3318 fi
3319 fi
3320 fi
3321 CC=$ac_cv_prog_CC
3322 if test -n "$CC"; then
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3324 $as_echo "$CC" >&6; }
3325 else
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3327 $as_echo "no" >&6; }
3328 fi
3329
3330
3331 fi
3332 if test -z "$CC"; then
3333 if test -n "$ac_tool_prefix"; then
3334 for ac_prog in cl.exe
3335 do
3336 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3337 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3339 $as_echo_n "checking for $ac_word... " >&6; }
3340 if ${ac_cv_prog_CC+:} false; then :
3341 $as_echo_n "(cached) " >&6
3342 else
3343 if test -n "$CC"; then
3344 ac_cv_prog_CC="$CC" # Let the user override the test.
3345 else
3346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347 for as_dir in $PATH
3348 do
3349 IFS=$as_save_IFS
3350 test -z "$as_dir" && as_dir=.
3351 for ac_exec_ext in '' $ac_executable_extensions; do
3352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3353 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3355 break 2
3356 fi
3357 done
3358 done
3359 IFS=$as_save_IFS
3360
3361 fi
3362 fi
3363 CC=$ac_cv_prog_CC
3364 if test -n "$CC"; then
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3366 $as_echo "$CC" >&6; }
3367 else
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3369 $as_echo "no" >&6; }
3370 fi
3371
3372
3373 test -n "$CC" && break
3374 done
3375 fi
3376 if test -z "$CC"; then
3377 ac_ct_CC=$CC
3378 for ac_prog in cl.exe
3379 do
3380 # Extract the first word of "$ac_prog", so it can be a program name with args.
3381 set dummy $ac_prog; ac_word=$2
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3383 $as_echo_n "checking for $ac_word... " >&6; }
3384 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3385 $as_echo_n "(cached) " >&6
3386 else
3387 if test -n "$ac_ct_CC"; then
3388 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3389 else
3390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391 for as_dir in $PATH
3392 do
3393 IFS=$as_save_IFS
3394 test -z "$as_dir" && as_dir=.
3395 for ac_exec_ext in '' $ac_executable_extensions; do
3396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3397 ac_cv_prog_ac_ct_CC="$ac_prog"
3398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3399 break 2
3400 fi
3401 done
3402 done
3403 IFS=$as_save_IFS
3404
3405 fi
3406 fi
3407 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3408 if test -n "$ac_ct_CC"; then
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3410 $as_echo "$ac_ct_CC" >&6; }
3411 else
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3413 $as_echo "no" >&6; }
3414 fi
3415
3416
3417 test -n "$ac_ct_CC" && break
3418 done
3419
3420 if test "x$ac_ct_CC" = x; then
3421 CC=""
3422 else
3423 case $cross_compiling:$ac_tool_warned in
3424 yes:)
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3427 ac_tool_warned=yes ;;
3428 esac
3429 CC=$ac_ct_CC
3430 fi
3431 fi
3432
3433 fi
3434
3435
3436 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3438 as_fn_error $? "no acceptable C compiler found in \$PATH
3439 See \`config.log' for more details" "$LINENO" 5; }
3440
3441 # Provide some information about the compiler.
3442 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3443 set X $ac_compile
3444 ac_compiler=$2
3445 for ac_option in --version -v -V -qversion; do
3446 { { ac_try="$ac_compiler $ac_option >&5"
3447 case "(($ac_try" in
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3450 esac
3451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3452 $as_echo "$ac_try_echo"; } >&5
3453 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3454 ac_status=$?
3455 if test -s conftest.err; then
3456 sed '10a\
3457 ... rest of stderr output deleted ...
3458 10q' conftest.err >conftest.er1
3459 cat conftest.er1 >&5
3460 fi
3461 rm -f conftest.er1 conftest.err
3462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3463 test $ac_status = 0; }
3464 done
3465
3466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467 /* end confdefs.h. */
3468
3469 int
3470 main ()
3471 {
3472
3473 ;
3474 return 0;
3475 }
3476 _ACEOF
3477 ac_clean_files_save=$ac_clean_files
3478 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3479 # Try to create an executable without -o first, disregard a.out.
3480 # It will help us diagnose broken compilers, and finding out an intuition
3481 # of exeext.
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3483 $as_echo_n "checking whether the C compiler works... " >&6; }
3484 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3485
3486 # The possible output files:
3487 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3488
3489 ac_rmfiles=
3490 for ac_file in $ac_files
3491 do
3492 case $ac_file in
3493 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3494 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3495 esac
3496 done
3497 rm -f $ac_rmfiles
3498
3499 if { { ac_try="$ac_link_default"
3500 case "(($ac_try" in
3501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502 *) ac_try_echo=$ac_try;;
3503 esac
3504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3505 $as_echo "$ac_try_echo"; } >&5
3506 (eval "$ac_link_default") 2>&5
3507 ac_status=$?
3508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3509 test $ac_status = 0; }; then :
3510 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3511 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3512 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3513 # so that the user can short-circuit this test for compilers unknown to
3514 # Autoconf.
3515 for ac_file in $ac_files ''
3516 do
3517 test -f "$ac_file" || continue
3518 case $ac_file in
3519 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3520 ;;
3521 [ab].out )
3522 # We found the default executable, but exeext='' is most
3523 # certainly right.
3524 break;;
3525 *.* )
3526 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3527 then :; else
3528 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3529 fi
3530 # We set ac_cv_exeext here because the later test for it is not
3531 # safe: cross compilers may not add the suffix if given an `-o'
3532 # argument, so we may need to know it at that point already.
3533 # Even if this section looks crufty: it has the advantage of
3534 # actually working.
3535 break;;
3536 * )
3537 break;;
3538 esac
3539 done
3540 test "$ac_cv_exeext" = no && ac_cv_exeext=
3541
3542 else
3543 ac_file=''
3544 fi
3545 if test -z "$ac_file"; then :
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3547 $as_echo "no" >&6; }
3548 $as_echo "$as_me: failed program was:" >&5
3549 sed 's/^/| /' conftest.$ac_ext >&5
3550
3551 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3553 as_fn_error 77 "C compiler cannot create executables
3554 See \`config.log' for more details" "$LINENO" 5; }
3555 else
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3557 $as_echo "yes" >&6; }
3558 fi
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3560 $as_echo_n "checking for C compiler default output file name... " >&6; }
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3562 $as_echo "$ac_file" >&6; }
3563 ac_exeext=$ac_cv_exeext
3564
3565 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3566 ac_clean_files=$ac_clean_files_save
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3568 $as_echo_n "checking for suffix of executables... " >&6; }
3569 if { { ac_try="$ac_link"
3570 case "(($ac_try" in
3571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572 *) ac_try_echo=$ac_try;;
3573 esac
3574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3575 $as_echo "$ac_try_echo"; } >&5
3576 (eval "$ac_link") 2>&5
3577 ac_status=$?
3578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3579 test $ac_status = 0; }; then :
3580 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3581 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3582 # work properly (i.e., refer to `conftest.exe'), while it won't with
3583 # `rm'.
3584 for ac_file in conftest.exe conftest conftest.*; do
3585 test -f "$ac_file" || continue
3586 case $ac_file in
3587 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3588 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3589 break;;
3590 * ) break;;
3591 esac
3592 done
3593 else
3594 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3596 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3597 See \`config.log' for more details" "$LINENO" 5; }
3598 fi
3599 rm -f conftest conftest$ac_cv_exeext
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3601 $as_echo "$ac_cv_exeext" >&6; }
3602
3603 rm -f conftest.$ac_ext
3604 EXEEXT=$ac_cv_exeext
3605 ac_exeext=$EXEEXT
3606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3607 /* end confdefs.h. */
3608 #include <stdio.h>
3609 int
3610 main ()
3611 {
3612 FILE *f = fopen ("conftest.out", "w");
3613 return ferror (f) || fclose (f) != 0;
3614
3615 ;
3616 return 0;
3617 }
3618 _ACEOF
3619 ac_clean_files="$ac_clean_files conftest.out"
3620 # Check that the compiler produces executables we can run. If not, either
3621 # the compiler is broken, or we cross compile.
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3623 $as_echo_n "checking whether we are cross compiling... " >&6; }
3624 if test "$cross_compiling" != yes; then
3625 { { ac_try="$ac_link"
3626 case "(($ac_try" in
3627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628 *) ac_try_echo=$ac_try;;
3629 esac
3630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3631 $as_echo "$ac_try_echo"; } >&5
3632 (eval "$ac_link") 2>&5
3633 ac_status=$?
3634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3635 test $ac_status = 0; }
3636 if { ac_try='./conftest$ac_cv_exeext'
3637 { { case "(($ac_try" in
3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639 *) ac_try_echo=$ac_try;;
3640 esac
3641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3642 $as_echo "$ac_try_echo"; } >&5
3643 (eval "$ac_try") 2>&5
3644 ac_status=$?
3645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3646 test $ac_status = 0; }; }; then
3647 cross_compiling=no
3648 else
3649 if test "$cross_compiling" = maybe; then
3650 cross_compiling=yes
3651 else
3652 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3654 as_fn_error $? "cannot run C compiled programs.
3655 If you meant to cross compile, use \`--host'.
3656 See \`config.log' for more details" "$LINENO" 5; }
3657 fi
3658 fi
3659 fi
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3661 $as_echo "$cross_compiling" >&6; }
3662
3663 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3664 ac_clean_files=$ac_clean_files_save
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3666 $as_echo_n "checking for suffix of object files... " >&6; }
3667 if ${ac_cv_objext+:} false; then :
3668 $as_echo_n "(cached) " >&6
3669 else
3670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3671 /* end confdefs.h. */
3672
3673 int
3674 main ()
3675 {
3676
3677 ;
3678 return 0;
3679 }
3680 _ACEOF
3681 rm -f conftest.o conftest.obj
3682 if { { ac_try="$ac_compile"
3683 case "(($ac_try" in
3684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685 *) ac_try_echo=$ac_try;;
3686 esac
3687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3688 $as_echo "$ac_try_echo"; } >&5
3689 (eval "$ac_compile") 2>&5
3690 ac_status=$?
3691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3692 test $ac_status = 0; }; then :
3693 for ac_file in conftest.o conftest.obj conftest.*; do
3694 test -f "$ac_file" || continue;
3695 case $ac_file in
3696 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3697 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3698 break;;
3699 esac
3700 done
3701 else
3702 $as_echo "$as_me: failed program was:" >&5
3703 sed 's/^/| /' conftest.$ac_ext >&5
3704
3705 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3707 as_fn_error $? "cannot compute suffix of object files: cannot compile
3708 See \`config.log' for more details" "$LINENO" 5; }
3709 fi
3710 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3711 fi
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3713 $as_echo "$ac_cv_objext" >&6; }
3714 OBJEXT=$ac_cv_objext
3715 ac_objext=$OBJEXT
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3717 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3718 if ${ac_cv_c_compiler_gnu+:} false; then :
3719 $as_echo_n "(cached) " >&6
3720 else
3721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722 /* end confdefs.h. */
3723
3724 int
3725 main ()
3726 {
3727 #ifndef __GNUC__
3728 choke me
3729 #endif
3730
3731 ;
3732 return 0;
3733 }
3734 _ACEOF
3735 if ac_fn_c_try_compile "$LINENO"; then :
3736 ac_compiler_gnu=yes
3737 else
3738 ac_compiler_gnu=no
3739 fi
3740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3741 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3742
3743 fi
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3745 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3746 if test $ac_compiler_gnu = yes; then
3747 GCC=yes
3748 else
3749 GCC=
3750 fi
3751 ac_test_CFLAGS=${CFLAGS+set}
3752 ac_save_CFLAGS=$CFLAGS
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3754 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3755 if ${ac_cv_prog_cc_g+:} false; then :
3756 $as_echo_n "(cached) " >&6
3757 else
3758 ac_save_c_werror_flag=$ac_c_werror_flag
3759 ac_c_werror_flag=yes
3760 ac_cv_prog_cc_g=no
3761 CFLAGS="-g"
3762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3763 /* end confdefs.h. */
3764
3765 int
3766 main ()
3767 {
3768
3769 ;
3770 return 0;
3771 }
3772 _ACEOF
3773 if ac_fn_c_try_compile "$LINENO"; then :
3774 ac_cv_prog_cc_g=yes
3775 else
3776 CFLAGS=""
3777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778 /* end confdefs.h. */
3779
3780 int
3781 main ()
3782 {
3783
3784 ;
3785 return 0;
3786 }
3787 _ACEOF
3788 if ac_fn_c_try_compile "$LINENO"; then :
3789
3790 else
3791 ac_c_werror_flag=$ac_save_c_werror_flag
3792 CFLAGS="-g"
3793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794 /* end confdefs.h. */
3795
3796 int
3797 main ()
3798 {
3799
3800 ;
3801 return 0;
3802 }
3803 _ACEOF
3804 if ac_fn_c_try_compile "$LINENO"; then :
3805 ac_cv_prog_cc_g=yes
3806 fi
3807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3808 fi
3809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3810 fi
3811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3812 ac_c_werror_flag=$ac_save_c_werror_flag
3813 fi
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3815 $as_echo "$ac_cv_prog_cc_g" >&6; }
3816 if test "$ac_test_CFLAGS" = set; then
3817 CFLAGS=$ac_save_CFLAGS
3818 elif test $ac_cv_prog_cc_g = yes; then
3819 if test "$GCC" = yes; then
3820 CFLAGS="-g -O2"
3821 else
3822 CFLAGS="-g"
3823 fi
3824 else
3825 if test "$GCC" = yes; then
3826 CFLAGS="-O2"
3827 else
3828 CFLAGS=
3829 fi
3830 fi
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3832 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3833 if ${ac_cv_prog_cc_c89+:} false; then :
3834 $as_echo_n "(cached) " >&6
3835 else
3836 ac_cv_prog_cc_c89=no
3837 ac_save_CC=$CC
3838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3839 /* end confdefs.h. */
3840 #include <stdarg.h>
3841 #include <stdio.h>
3842 struct stat;
3843 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3844 struct buf { int x; };
3845 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3846 static char *e (p, i)
3847 char **p;
3848 int i;
3849 {
3850 return p[i];
3851 }
3852 static char *f (char * (*g) (char **, int), char **p, ...)
3853 {
3854 char *s;
3855 va_list v;
3856 va_start (v,p);
3857 s = g (p, va_arg (v,int));
3858 va_end (v);
3859 return s;
3860 }
3861
3862 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3863 function prototypes and stuff, but not '\xHH' hex character constants.
3864 These don't provoke an error unfortunately, instead are silently treated
3865 as 'x'. The following induces an error, until -std is added to get
3866 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3867 array size at least. It's necessary to write '\x00'==0 to get something
3868 that's true only with -std. */
3869 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3870
3871 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3872 inside strings and character constants. */
3873 #define FOO(x) 'x'
3874 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3875
3876 int test (int i, double x);
3877 struct s1 {int (*f) (int a);};
3878 struct s2 {int (*f) (double a);};
3879 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3880 int argc;
3881 char **argv;
3882 int
3883 main ()
3884 {
3885 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3886 ;
3887 return 0;
3888 }
3889 _ACEOF
3890 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3891 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3892 do
3893 CC="$ac_save_CC $ac_arg"
3894 if ac_fn_c_try_compile "$LINENO"; then :
3895 ac_cv_prog_cc_c89=$ac_arg
3896 fi
3897 rm -f core conftest.err conftest.$ac_objext
3898 test "x$ac_cv_prog_cc_c89" != "xno" && break
3899 done
3900 rm -f conftest.$ac_ext
3901 CC=$ac_save_CC
3902
3903 fi
3904 # AC_CACHE_VAL
3905 case "x$ac_cv_prog_cc_c89" in
3906 x)
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3908 $as_echo "none needed" >&6; } ;;
3909 xno)
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3911 $as_echo "unsupported" >&6; } ;;
3912 *)
3913 CC="$CC $ac_cv_prog_cc_c89"
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3915 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3916 esac
3917 if test "x$ac_cv_prog_cc_c89" != xno; then :
3918
3919 fi
3920
3921 ac_ext=c
3922 ac_cpp='$CPP $CPPFLAGS'
3923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3926
3927 ac_ext=c
3928 ac_cpp='$CPP $CPPFLAGS'
3929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3933 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3934 if ${am_cv_prog_cc_c_o+:} false; then :
3935 $as_echo_n "(cached) " >&6
3936 else
3937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3938 /* end confdefs.h. */
3939
3940 int
3941 main ()
3942 {
3943
3944 ;
3945 return 0;
3946 }
3947 _ACEOF
3948 # Make sure it works both with $CC and with simple cc.
3949 # Following AC_PROG_CC_C_O, we do the test twice because some
3950 # compilers refuse to overwrite an existing .o file with -o,
3951 # though they will create one.
3952 am_cv_prog_cc_c_o=yes
3953 for am_i in 1 2; do
3954 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3955 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3956 ac_status=$?
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); } \
3959 && test -f conftest2.$ac_objext; then
3960 : OK
3961 else
3962 am_cv_prog_cc_c_o=no
3963 break
3964 fi
3965 done
3966 rm -f core conftest*
3967 unset am_i
3968 fi
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3970 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3971 if test "$am_cv_prog_cc_c_o" != yes; then
3972 # Losing compiler, so override with the script.
3973 # FIXME: It is wrong to rewrite CC.
3974 # But if we don't then we get into trouble of one sort or another.
3975 # A longer-term fix would be to have automake use am__CC in this case,
3976 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3977 CC="$am_aux_dir/compile $CC"
3978 fi
3979 ac_ext=c
3980 ac_cpp='$CPP $CPPFLAGS'
3981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3984
3985
3986 depcc="$CC" am_compiler_list=
3987
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3989 $as_echo_n "checking dependency style of $depcc... " >&6; }
3990 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3991 $as_echo_n "(cached) " >&6
3992 else
3993 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3994 # We make a subdir and do the tests there. Otherwise we can end up
3995 # making bogus files that we don't know about and never remove. For
3996 # instance it was reported that on HP-UX the gcc test will end up
3997 # making a dummy file named 'D' -- because '-MD' means "put the output
3998 # in D".
3999 rm -rf conftest.dir
4000 mkdir conftest.dir
4001 # Copy depcomp to subdir because otherwise we won't find it if we're
4002 # using a relative directory.
4003 cp "$am_depcomp" conftest.dir
4004 cd conftest.dir
4005 # We will build objects and dependencies in a subdirectory because
4006 # it helps to detect inapplicable dependency modes. For instance
4007 # both Tru64's cc and ICC support -MD to output dependencies as a
4008 # side effect of compilation, but ICC will put the dependencies in
4009 # the current directory while Tru64 will put them in the object
4010 # directory.
4011 mkdir sub
4012
4013 am_cv_CC_dependencies_compiler_type=none
4014 if test "$am_compiler_list" = ""; then
4015 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4016 fi
4017 am__universal=false
4018 case " $depcc " in #(
4019 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4020 esac
4021
4022 for depmode in $am_compiler_list; do
4023 # Setup a source with many dependencies, because some compilers
4024 # like to wrap large dependency lists on column 80 (with \), and
4025 # we should not choose a depcomp mode which is confused by this.
4026 #
4027 # We need to recreate these files for each test, as the compiler may
4028 # overwrite some of them when testing with obscure command lines.
4029 # This happens at least with the AIX C compiler.
4030 : > sub/conftest.c
4031 for i in 1 2 3 4 5 6; do
4032 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4033 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4034 # Solaris 10 /bin/sh.
4035 echo '/* dummy */' > sub/conftst$i.h
4036 done
4037 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4038
4039 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4040 # mode. It turns out that the SunPro C++ compiler does not properly
4041 # handle '-M -o', and we need to detect this. Also, some Intel
4042 # versions had trouble with output in subdirs.
4043 am__obj=sub/conftest.${OBJEXT-o}
4044 am__minus_obj="-o $am__obj"
4045 case $depmode in
4046 gcc)
4047 # This depmode causes a compiler race in universal mode.
4048 test "$am__universal" = false || continue
4049 ;;
4050 nosideeffect)
4051 # After this tag, mechanisms are not by side-effect, so they'll
4052 # only be used when explicitly requested.
4053 if test "x$enable_dependency_tracking" = xyes; then
4054 continue
4055 else
4056 break
4057 fi
4058 ;;
4059 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4060 # This compiler won't grok '-c -o', but also, the minuso test has
4061 # not run yet. These depmodes are late enough in the game, and
4062 # so weak that their functioning should not be impacted.
4063 am__obj=conftest.${OBJEXT-o}
4064 am__minus_obj=
4065 ;;
4066 none) break ;;
4067 esac
4068 if depmode=$depmode \
4069 source=sub/conftest.c object=$am__obj \
4070 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4071 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4072 >/dev/null 2>conftest.err &&
4073 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4074 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4075 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4076 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4077 # icc doesn't choke on unknown options, it will just issue warnings
4078 # or remarks (even with -Werror). So we grep stderr for any message
4079 # that says an option was ignored or not supported.
4080 # When given -MP, icc 7.0 and 7.1 complain thusly:
4081 # icc: Command line warning: ignoring option '-M'; no argument required
4082 # The diagnosis changed in icc 8.0:
4083 # icc: Command line remark: option '-MP' not supported
4084 if (grep 'ignoring option' conftest.err ||
4085 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4086 am_cv_CC_dependencies_compiler_type=$depmode
4087 break
4088 fi
4089 fi
4090 done
4091
4092 cd ..
4093 rm -rf conftest.dir
4094 else
4095 am_cv_CC_dependencies_compiler_type=none
4096 fi
4097
4098 fi
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4100 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4101 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4102
4103 if
4104 test "x$enable_dependency_tracking" != xno \
4105 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4106 am__fastdepCC_TRUE=
4107 am__fastdepCC_FALSE='#'
4108 else
4109 am__fastdepCC_TRUE='#'
4110 am__fastdepCC_FALSE=
4111 fi
4112
4113
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4115 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4116 if ${ac_cv_path_SED+:} false; then :
4117 $as_echo_n "(cached) " >&6
4118 else
4119 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4120 for ac_i in 1 2 3 4 5 6 7; do
4121 ac_script="$ac_script$as_nl$ac_script"
4122 done
4123 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4124 { ac_script=; unset ac_script;}
4125 if test -z "$SED"; then
4126 ac_path_SED_found=false
4127 # Loop through the user's path and test for each of PROGNAME-LIST
4128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129 for as_dir in $PATH
4130 do
4131 IFS=$as_save_IFS
4132 test -z "$as_dir" && as_dir=.
4133 for ac_prog in sed gsed; do
4134 for ac_exec_ext in '' $ac_executable_extensions; do
4135 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4136 as_fn_executable_p "$ac_path_SED" || continue
4137 # Check for GNU ac_path_SED and select it if it is found.
4138 # Check for GNU $ac_path_SED
4139 case `"$ac_path_SED" --version 2>&1` in
4140 *GNU*)
4141 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4142 *)
4143 ac_count=0
4144 $as_echo_n 0123456789 >"conftest.in"
4145 while :
4146 do
4147 cat "conftest.in" "conftest.in" >"conftest.tmp"
4148 mv "conftest.tmp" "conftest.in"
4149 cp "conftest.in" "conftest.nl"
4150 $as_echo '' >> "conftest.nl"
4151 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4152 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4153 as_fn_arith $ac_count + 1 && ac_count=$as_val
4154 if test $ac_count -gt ${ac_path_SED_max-0}; then
4155 # Best one so far, save it but keep looking for a better one
4156 ac_cv_path_SED="$ac_path_SED"
4157 ac_path_SED_max=$ac_count
4158 fi
4159 # 10*(2^10) chars as input seems more than enough
4160 test $ac_count -gt 10 && break
4161 done
4162 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4163 esac
4164
4165 $ac_path_SED_found && break 3
4166 done
4167 done
4168 done
4169 IFS=$as_save_IFS
4170 if test -z "$ac_cv_path_SED"; then
4171 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4172 fi
4173 else
4174 ac_cv_path_SED=$SED
4175 fi
4176
4177 fi
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4179 $as_echo "$ac_cv_path_SED" >&6; }
4180 SED="$ac_cv_path_SED"
4181 rm -f conftest.sed
4182
4183 test -z "$SED" && SED=sed
4184 Xsed="$SED -e 1s/^X//"
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4197 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4198 if ${ac_cv_path_GREP+:} false; then :
4199 $as_echo_n "(cached) " >&6
4200 else
4201 if test -z "$GREP"; then
4202 ac_path_GREP_found=false
4203 # Loop through the user's path and test for each of PROGNAME-LIST
4204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4206 do
4207 IFS=$as_save_IFS
4208 test -z "$as_dir" && as_dir=.
4209 for ac_prog in grep ggrep; do
4210 for ac_exec_ext in '' $ac_executable_extensions; do
4211 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4212 as_fn_executable_p "$ac_path_GREP" || continue
4213 # Check for GNU ac_path_GREP and select it if it is found.
4214 # Check for GNU $ac_path_GREP
4215 case `"$ac_path_GREP" --version 2>&1` in
4216 *GNU*)
4217 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4218 *)
4219 ac_count=0
4220 $as_echo_n 0123456789 >"conftest.in"
4221 while :
4222 do
4223 cat "conftest.in" "conftest.in" >"conftest.tmp"
4224 mv "conftest.tmp" "conftest.in"
4225 cp "conftest.in" "conftest.nl"
4226 $as_echo 'GREP' >> "conftest.nl"
4227 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4228 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4229 as_fn_arith $ac_count + 1 && ac_count=$as_val
4230 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4231 # Best one so far, save it but keep looking for a better one
4232 ac_cv_path_GREP="$ac_path_GREP"
4233 ac_path_GREP_max=$ac_count
4234 fi
4235 # 10*(2^10) chars as input seems more than enough
4236 test $ac_count -gt 10 && break
4237 done
4238 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4239 esac
4240
4241 $ac_path_GREP_found && break 3
4242 done
4243 done
4244 done
4245 IFS=$as_save_IFS
4246 if test -z "$ac_cv_path_GREP"; then
4247 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4248 fi
4249 else
4250 ac_cv_path_GREP=$GREP
4251 fi
4252
4253 fi
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4255 $as_echo "$ac_cv_path_GREP" >&6; }
4256 GREP="$ac_cv_path_GREP"
4257
4258
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4260 $as_echo_n "checking for egrep... " >&6; }
4261 if ${ac_cv_path_EGREP+:} false; then :
4262 $as_echo_n "(cached) " >&6
4263 else
4264 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4265 then ac_cv_path_EGREP="$GREP -E"
4266 else
4267 if test -z "$EGREP"; then
4268 ac_path_EGREP_found=false
4269 # Loop through the user's path and test for each of PROGNAME-LIST
4270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4272 do
4273 IFS=$as_save_IFS
4274 test -z "$as_dir" && as_dir=.
4275 for ac_prog in egrep; do
4276 for ac_exec_ext in '' $ac_executable_extensions; do
4277 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4278 as_fn_executable_p "$ac_path_EGREP" || continue
4279 # Check for GNU ac_path_EGREP and select it if it is found.
4280 # Check for GNU $ac_path_EGREP
4281 case `"$ac_path_EGREP" --version 2>&1` in
4282 *GNU*)
4283 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4284 *)
4285 ac_count=0
4286 $as_echo_n 0123456789 >"conftest.in"
4287 while :
4288 do
4289 cat "conftest.in" "conftest.in" >"conftest.tmp"
4290 mv "conftest.tmp" "conftest.in"
4291 cp "conftest.in" "conftest.nl"
4292 $as_echo 'EGREP' >> "conftest.nl"
4293 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4294 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4295 as_fn_arith $ac_count + 1 && ac_count=$as_val
4296 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4297 # Best one so far, save it but keep looking for a better one
4298 ac_cv_path_EGREP="$ac_path_EGREP"
4299 ac_path_EGREP_max=$ac_count
4300 fi
4301 # 10*(2^10) chars as input seems more than enough
4302 test $ac_count -gt 10 && break
4303 done
4304 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4305 esac
4306
4307 $ac_path_EGREP_found && break 3
4308 done
4309 done
4310 done
4311 IFS=$as_save_IFS
4312 if test -z "$ac_cv_path_EGREP"; then
4313 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4314 fi
4315 else
4316 ac_cv_path_EGREP=$EGREP
4317 fi
4318
4319 fi
4320 fi
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4322 $as_echo "$ac_cv_path_EGREP" >&6; }
4323 EGREP="$ac_cv_path_EGREP"
4324
4325
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4327 $as_echo_n "checking for fgrep... " >&6; }
4328 if ${ac_cv_path_FGREP+:} false; then :
4329 $as_echo_n "(cached) " >&6
4330 else
4331 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4332 then ac_cv_path_FGREP="$GREP -F"
4333 else
4334 if test -z "$FGREP"; then
4335 ac_path_FGREP_found=false
4336 # Loop through the user's path and test for each of PROGNAME-LIST
4337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4338 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4339 do
4340 IFS=$as_save_IFS
4341 test -z "$as_dir" && as_dir=.
4342 for ac_prog in fgrep; do
4343 for ac_exec_ext in '' $ac_executable_extensions; do
4344 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4345 as_fn_executable_p "$ac_path_FGREP" || continue
4346 # Check for GNU ac_path_FGREP and select it if it is found.
4347 # Check for GNU $ac_path_FGREP
4348 case `"$ac_path_FGREP" --version 2>&1` in
4349 *GNU*)
4350 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4351 *)
4352 ac_count=0
4353 $as_echo_n 0123456789 >"conftest.in"
4354 while :
4355 do
4356 cat "conftest.in" "conftest.in" >"conftest.tmp"
4357 mv "conftest.tmp" "conftest.in"
4358 cp "conftest.in" "conftest.nl"
4359 $as_echo 'FGREP' >> "conftest.nl"
4360 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4361 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4362 as_fn_arith $ac_count + 1 && ac_count=$as_val
4363 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4364 # Best one so far, save it but keep looking for a better one
4365 ac_cv_path_FGREP="$ac_path_FGREP"
4366 ac_path_FGREP_max=$ac_count
4367 fi
4368 # 10*(2^10) chars as input seems more than enough
4369 test $ac_count -gt 10 && break
4370 done
4371 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4372 esac
4373
4374 $ac_path_FGREP_found && break 3
4375 done
4376 done
4377 done
4378 IFS=$as_save_IFS
4379 if test -z "$ac_cv_path_FGREP"; then
4380 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4381 fi
4382 else
4383 ac_cv_path_FGREP=$FGREP
4384 fi
4385
4386 fi
4387 fi
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4389 $as_echo "$ac_cv_path_FGREP" >&6; }
4390 FGREP="$ac_cv_path_FGREP"
4391
4392
4393 test -z "$GREP" && GREP=grep
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413 # Check whether --with-gnu-ld was given.
4414 if test "${with_gnu_ld+set}" = set; then :
4415 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4416 else
4417 with_gnu_ld=no
4418 fi
4419
4420 ac_prog=ld
4421 if test yes = "$GCC"; then
4422 # Check if gcc -print-prog-name=ld gives a path.
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4424 $as_echo_n "checking for ld used by $CC... " >&6; }
4425 case $host in
4426 *-*-mingw*)
4427 # gcc leaves a trailing carriage return, which upsets mingw
4428 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4429 *)
4430 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4431 esac
4432 case $ac_prog in
4433 # Accept absolute paths.
4434 [\\/]* | ?:[\\/]*)
4435 re_direlt='/[^/][^/]*/\.\./'
4436 # Canonicalize the pathname of ld
4437 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4438 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4439 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4440 done
4441 test -z "$LD" && LD=$ac_prog
4442 ;;
4443 "")
4444 # If it fails, then pretend we aren't using GCC.
4445 ac_prog=ld
4446 ;;
4447 *)
4448 # If it is relative, then search for the first ld in PATH.
4449 with_gnu_ld=unknown
4450 ;;
4451 esac
4452 elif test yes = "$with_gnu_ld"; then
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4454 $as_echo_n "checking for GNU ld... " >&6; }
4455 else
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4457 $as_echo_n "checking for non-GNU ld... " >&6; }
4458 fi
4459 if ${lt_cv_path_LD+:} false; then :
4460 $as_echo_n "(cached) " >&6
4461 else
4462 if test -z "$LD"; then
4463 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4464 for ac_dir in $PATH; do
4465 IFS=$lt_save_ifs
4466 test -z "$ac_dir" && ac_dir=.
4467 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4468 lt_cv_path_LD=$ac_dir/$ac_prog
4469 # Check to see if the program is GNU ld. I'd rather use --version,
4470 # but apparently some variants of GNU ld only accept -v.
4471 # Break only if it was the GNU/non-GNU ld that we prefer.
4472 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4473 *GNU* | *'with BFD'*)
4474 test no != "$with_gnu_ld" && break
4475 ;;
4476 *)
4477 test yes != "$with_gnu_ld" && break
4478 ;;
4479 esac
4480 fi
4481 done
4482 IFS=$lt_save_ifs
4483 else
4484 lt_cv_path_LD=$LD # Let the user override the test with a path.
4485 fi
4486 fi
4487
4488 LD=$lt_cv_path_LD
4489 if test -n "$LD"; then
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4491 $as_echo "$LD" >&6; }
4492 else
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4494 $as_echo "no" >&6; }
4495 fi
4496 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4498 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4499 if ${lt_cv_prog_gnu_ld+:} false; then :
4500 $as_echo_n "(cached) " >&6
4501 else
4502 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4503 case `$LD -v 2>&1 </dev/null` in
4504 *GNU* | *'with BFD'*)
4505 lt_cv_prog_gnu_ld=yes
4506 ;;
4507 *)
4508 lt_cv_prog_gnu_ld=no
4509 ;;
4510 esac
4511 fi
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4513 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4514 with_gnu_ld=$lt_cv_prog_gnu_ld
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4525 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4526 if ${lt_cv_path_NM+:} false; then :
4527 $as_echo_n "(cached) " >&6
4528 else
4529 if test -n "$NM"; then
4530 # Let the user override the test.
4531 lt_cv_path_NM=$NM
4532 else
4533 lt_nm_to_check=${ac_tool_prefix}nm
4534 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4535 lt_nm_to_check="$lt_nm_to_check nm"
4536 fi
4537 for lt_tmp_nm in $lt_nm_to_check; do
4538 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4539 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4540 IFS=$lt_save_ifs
4541 test -z "$ac_dir" && ac_dir=.
4542 tmp_nm=$ac_dir/$lt_tmp_nm
4543 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4544 # Check to see if the nm accepts a BSD-compat flag.
4545 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4546 # nm: unknown option "B" ignored
4547 # Tru64's nm complains that /dev/null is an invalid object file
4548 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4549 case $build_os in
4550 mingw*) lt_bad_file=conftest.nm/nofile ;;
4551 *) lt_bad_file=/dev/null ;;
4552 esac
4553 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4554 *$lt_bad_file* | *'Invalid file or object type'*)
4555 lt_cv_path_NM="$tmp_nm -B"
4556 break 2
4557 ;;
4558 *)
4559 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4560 */dev/null*)
4561 lt_cv_path_NM="$tmp_nm -p"
4562 break 2
4563 ;;
4564 *)
4565 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4566 continue # so that we can try to find one that supports BSD flags
4567 ;;
4568 esac
4569 ;;
4570 esac
4571 fi
4572 done
4573 IFS=$lt_save_ifs
4574 done
4575 : ${lt_cv_path_NM=no}
4576 fi
4577 fi
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4579 $as_echo "$lt_cv_path_NM" >&6; }
4580 if test no != "$lt_cv_path_NM"; then
4581 NM=$lt_cv_path_NM
4582 else
4583 # Didn't find any BSD compatible name lister, look for dumpbin.
4584 if test -n "$DUMPBIN"; then :
4585 # Let the user override the test.
4586 else
4587 if test -n "$ac_tool_prefix"; then
4588 for ac_prog in dumpbin "link -dump"
4589 do
4590 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4591 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4593 $as_echo_n "checking for $ac_word... " >&6; }
4594 if ${ac_cv_prog_DUMPBIN+:} false; then :
4595 $as_echo_n "(cached) " >&6
4596 else
4597 if test -n "$DUMPBIN"; then
4598 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4599 else
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601 for as_dir in $PATH
4602 do
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4607 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4609 break 2
4610 fi
4611 done
4612 done
4613 IFS=$as_save_IFS
4614
4615 fi
4616 fi
4617 DUMPBIN=$ac_cv_prog_DUMPBIN
4618 if test -n "$DUMPBIN"; then
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4620 $as_echo "$DUMPBIN" >&6; }
4621 else
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4623 $as_echo "no" >&6; }
4624 fi
4625
4626
4627 test -n "$DUMPBIN" && break
4628 done
4629 fi
4630 if test -z "$DUMPBIN"; then
4631 ac_ct_DUMPBIN=$DUMPBIN
4632 for ac_prog in dumpbin "link -dump"
4633 do
4634 # Extract the first word of "$ac_prog", so it can be a program name with args.
4635 set dummy $ac_prog; ac_word=$2
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4637 $as_echo_n "checking for $ac_word... " >&6; }
4638 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4639 $as_echo_n "(cached) " >&6
4640 else
4641 if test -n "$ac_ct_DUMPBIN"; then
4642 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4643 else
4644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645 for as_dir in $PATH
4646 do
4647 IFS=$as_save_IFS
4648 test -z "$as_dir" && as_dir=.
4649 for ac_exec_ext in '' $ac_executable_extensions; do
4650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4651 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4653 break 2
4654 fi
4655 done
4656 done
4657 IFS=$as_save_IFS
4658
4659 fi
4660 fi
4661 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4662 if test -n "$ac_ct_DUMPBIN"; then
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4664 $as_echo "$ac_ct_DUMPBIN" >&6; }
4665 else
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4667 $as_echo "no" >&6; }
4668 fi
4669
4670
4671 test -n "$ac_ct_DUMPBIN" && break
4672 done
4673
4674 if test "x$ac_ct_DUMPBIN" = x; then
4675 DUMPBIN=":"
4676 else
4677 case $cross_compiling:$ac_tool_warned in
4678 yes:)
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4681 ac_tool_warned=yes ;;
4682 esac
4683 DUMPBIN=$ac_ct_DUMPBIN
4684 fi
4685 fi
4686
4687 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4688 *COFF*)
4689 DUMPBIN="$DUMPBIN -symbols -headers"
4690 ;;
4691 *)
4692 DUMPBIN=:
4693 ;;
4694 esac
4695 fi
4696
4697 if test : != "$DUMPBIN"; then
4698 NM=$DUMPBIN
4699 fi
4700 fi
4701 test -z "$NM" && NM=nm
4702
4703
4704
4705
4706
4707
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4709 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4710 if ${lt_cv_nm_interface+:} false; then :
4711 $as_echo_n "(cached) " >&6
4712 else
4713 lt_cv_nm_interface="BSD nm"
4714 echo "int some_variable = 0;" > conftest.$ac_ext
4715 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4716 (eval "$ac_compile" 2>conftest.err)
4717 cat conftest.err >&5
4718 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4719 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4720 cat conftest.err >&5
4721 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4722 cat conftest.out >&5
4723 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4724 lt_cv_nm_interface="MS dumpbin"
4725 fi
4726 rm -f conftest*
4727 fi
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4729 $as_echo "$lt_cv_nm_interface" >&6; }
4730
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4732 $as_echo_n "checking whether ln -s works... " >&6; }
4733 LN_S=$as_ln_s
4734 if test "$LN_S" = "ln -s"; then
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4736 $as_echo "yes" >&6; }
4737 else
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4739 $as_echo "no, using $LN_S" >&6; }
4740 fi
4741
4742 # find the maximum length of command line arguments
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4744 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4745 if ${lt_cv_sys_max_cmd_len+:} false; then :
4746 $as_echo_n "(cached) " >&6
4747 else
4748 i=0
4749 teststring=ABCD
4750
4751 case $build_os in
4752 msdosdjgpp*)
4753 # On DJGPP, this test can blow up pretty badly due to problems in libc
4754 # (any single argument exceeding 2000 bytes causes a buffer overrun
4755 # during glob expansion). Even if it were fixed, the result of this
4756 # check would be larger than it should be.
4757 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4758 ;;
4759
4760 gnu*)
4761 # Under GNU Hurd, this test is not required because there is
4762 # no limit to the length of command line arguments.
4763 # Libtool will interpret -1 as no limit whatsoever
4764 lt_cv_sys_max_cmd_len=-1;
4765 ;;
4766
4767 cygwin* | mingw* | cegcc*)
4768 # On Win9x/ME, this test blows up -- it succeeds, but takes
4769 # about 5 minutes as the teststring grows exponentially.
4770 # Worse, since 9x/ME are not pre-emptively multitasking,
4771 # you end up with a "frozen" computer, even though with patience
4772 # the test eventually succeeds (with a max line length of 256k).
4773 # Instead, let's just punt: use the minimum linelength reported by
4774 # all of the supported platforms: 8192 (on NT/2K/XP).
4775 lt_cv_sys_max_cmd_len=8192;
4776 ;;
4777
4778 mint*)
4779 # On MiNT this can take a long time and run out of memory.
4780 lt_cv_sys_max_cmd_len=8192;
4781 ;;
4782
4783 amigaos*)
4784 # On AmigaOS with pdksh, this test takes hours, literally.
4785 # So we just punt and use a minimum line length of 8192.
4786 lt_cv_sys_max_cmd_len=8192;
4787 ;;
4788
4789 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4790 # This has been around since 386BSD, at least. Likely further.
4791 if test -x /sbin/sysctl; then
4792 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4793 elif test -x /usr/sbin/sysctl; then
4794 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4795 else
4796 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4797 fi
4798 # And add a safety zone
4799 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4800 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4801 ;;
4802
4803 interix*)
4804 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4805 lt_cv_sys_max_cmd_len=196608
4806 ;;
4807
4808 os2*)
4809 # The test takes a long time on OS/2.
4810 lt_cv_sys_max_cmd_len=8192
4811 ;;
4812
4813 osf*)
4814 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4815 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4816 # nice to cause kernel panics so lets avoid the loop below.
4817 # First set a reasonable default.
4818 lt_cv_sys_max_cmd_len=16384
4819 #
4820 if test -x /sbin/sysconfig; then
4821 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4822 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4823 esac
4824 fi
4825 ;;
4826 sco3.2v5*)
4827 lt_cv_sys_max_cmd_len=102400
4828 ;;
4829 sysv5* | sco5v6* | sysv4.2uw2*)
4830 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4831 if test -n "$kargmax"; then
4832 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4833 else
4834 lt_cv_sys_max_cmd_len=32768
4835 fi
4836 ;;
4837 *)
4838 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4839 if test -n "$lt_cv_sys_max_cmd_len" && \
4840 test undefined != "$lt_cv_sys_max_cmd_len"; then
4841 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4842 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4843 else
4844 # Make teststring a little bigger before we do anything with it.
4845 # a 1K string should be a reasonable start.
4846 for i in 1 2 3 4 5 6 7 8; do
4847 teststring=$teststring$teststring
4848 done
4849 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4850 # If test is not a shell built-in, we'll probably end up computing a
4851 # maximum length that is only half of the actual maximum length, but
4852 # we can't tell.
4853 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4854 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4855 test 17 != "$i" # 1/2 MB should be enough
4856 do
4857 i=`expr $i + 1`
4858 teststring=$teststring$teststring
4859 done
4860 # Only check the string length outside the loop.
4861 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4862 teststring=
4863 # Add a significant safety factor because C++ compilers can tack on
4864 # massive amounts of additional arguments before passing them to the
4865 # linker. It appears as though 1/2 is a usable value.
4866 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4867 fi
4868 ;;
4869 esac
4870
4871 fi
4872
4873 if test -n "$lt_cv_sys_max_cmd_len"; then
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4875 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4876 else
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4878 $as_echo "none" >&6; }
4879 fi
4880 max_cmd_len=$lt_cv_sys_max_cmd_len
4881
4882
4883
4884
4885
4886
4887 : ${CP="cp -f"}
4888 : ${MV="mv -f"}
4889 : ${RM="rm -f"}
4890
4891 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4892 lt_unset=unset
4893 else
4894 lt_unset=false
4895 fi
4896
4897
4898
4899
4900
4901 # test EBCDIC or ASCII
4902 case `echo X|tr X '\101'` in
4903 A) # ASCII based system
4904 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4905 lt_SP2NL='tr \040 \012'
4906 lt_NL2SP='tr \015\012 \040\040'
4907 ;;
4908 *) # EBCDIC based system
4909 lt_SP2NL='tr \100 \n'
4910 lt_NL2SP='tr \r\n \100\100'
4911 ;;
4912 esac
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4923 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4924 if ${lt_cv_to_host_file_cmd+:} false; then :
4925 $as_echo_n "(cached) " >&6
4926 else
4927 case $host in
4928 *-*-mingw* )
4929 case $build in
4930 *-*-mingw* ) # actually msys
4931 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4932 ;;
4933 *-*-cygwin* )
4934 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4935 ;;
4936 * ) # otherwise, assume *nix
4937 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4938 ;;
4939 esac
4940 ;;
4941 *-*-cygwin* )
4942 case $build in
4943 *-*-mingw* ) # actually msys
4944 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4945 ;;
4946 *-*-cygwin* )
4947 lt_cv_to_host_file_cmd=func_convert_file_noop
4948 ;;
4949 * ) # otherwise, assume *nix
4950 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4951 ;;
4952 esac
4953 ;;
4954 * ) # unhandled hosts (and "normal" native builds)
4955 lt_cv_to_host_file_cmd=func_convert_file_noop
4956 ;;
4957 esac
4958
4959 fi
4960
4961 to_host_file_cmd=$lt_cv_to_host_file_cmd
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4963 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4964
4965
4966
4967
4968
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4970 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4971 if ${lt_cv_to_tool_file_cmd+:} false; then :
4972 $as_echo_n "(cached) " >&6
4973 else
4974 #assume ordinary cross tools, or native build.
4975 lt_cv_to_tool_file_cmd=func_convert_file_noop
4976 case $host in
4977 *-*-mingw* )
4978 case $build in
4979 *-*-mingw* ) # actually msys
4980 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4981 ;;
4982 esac
4983 ;;
4984 esac
4985
4986 fi
4987
4988 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4990 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4991
4992
4993
4994
4995
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4997 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4998 if ${lt_cv_ld_reload_flag+:} false; then :
4999 $as_echo_n "(cached) " >&6
5000 else
5001 lt_cv_ld_reload_flag='-r'
5002 fi
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5004 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5005 reload_flag=$lt_cv_ld_reload_flag
5006 case $reload_flag in
5007 "" | " "*) ;;
5008 *) reload_flag=" $reload_flag" ;;
5009 esac
5010 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5011 case $host_os in
5012 cygwin* | mingw* | pw32* | cegcc*)
5013 if test yes != "$GCC"; then
5014 reload_cmds=false
5015 fi
5016 ;;
5017 darwin*)
5018 if test yes = "$GCC"; then
5019 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5020 else
5021 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5022 fi
5023 ;;
5024 esac
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034 if test -n "$ac_tool_prefix"; then
5035 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5036 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5038 $as_echo_n "checking for $ac_word... " >&6; }
5039 if ${ac_cv_prog_OBJDUMP+:} false; then :
5040 $as_echo_n "(cached) " >&6
5041 else
5042 if test -n "$OBJDUMP"; then
5043 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5044 else
5045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046 for as_dir in $PATH
5047 do
5048 IFS=$as_save_IFS
5049 test -z "$as_dir" && as_dir=.
5050 for ac_exec_ext in '' $ac_executable_extensions; do
5051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5052 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5054 break 2
5055 fi
5056 done
5057 done
5058 IFS=$as_save_IFS
5059
5060 fi
5061 fi
5062 OBJDUMP=$ac_cv_prog_OBJDUMP
5063 if test -n "$OBJDUMP"; then
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5065 $as_echo "$OBJDUMP" >&6; }
5066 else
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5068 $as_echo "no" >&6; }
5069 fi
5070
5071
5072 fi
5073 if test -z "$ac_cv_prog_OBJDUMP"; then
5074 ac_ct_OBJDUMP=$OBJDUMP
5075 # Extract the first word of "objdump", so it can be a program name with args.
5076 set dummy objdump; ac_word=$2
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5078 $as_echo_n "checking for $ac_word... " >&6; }
5079 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5080 $as_echo_n "(cached) " >&6
5081 else
5082 if test -n "$ac_ct_OBJDUMP"; then
5083 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5084 else
5085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 for as_dir in $PATH
5087 do
5088 IFS=$as_save_IFS
5089 test -z "$as_dir" && as_dir=.
5090 for ac_exec_ext in '' $ac_executable_extensions; do
5091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5092 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5094 break 2
5095 fi
5096 done
5097 done
5098 IFS=$as_save_IFS
5099
5100 fi
5101 fi
5102 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5103 if test -n "$ac_ct_OBJDUMP"; then
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5105 $as_echo "$ac_ct_OBJDUMP" >&6; }
5106 else
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5108 $as_echo "no" >&6; }
5109 fi
5110
5111 if test "x$ac_ct_OBJDUMP" = x; then
5112 OBJDUMP="false"
5113 else
5114 case $cross_compiling:$ac_tool_warned in
5115 yes:)
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5118 ac_tool_warned=yes ;;
5119 esac
5120 OBJDUMP=$ac_ct_OBJDUMP
5121 fi
5122 else
5123 OBJDUMP="$ac_cv_prog_OBJDUMP"
5124 fi
5125
5126 test -z "$OBJDUMP" && OBJDUMP=objdump
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5137 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5138 if ${lt_cv_deplibs_check_method+:} false; then :
5139 $as_echo_n "(cached) " >&6
5140 else
5141 lt_cv_file_magic_cmd='$MAGIC_CMD'
5142 lt_cv_file_magic_test_file=
5143 lt_cv_deplibs_check_method='unknown'
5144 # Need to set the preceding variable on all platforms that support
5145 # interlibrary dependencies.
5146 # 'none' -- dependencies not supported.
5147 # 'unknown' -- same as none, but documents that we really don't know.
5148 # 'pass_all' -- all dependencies passed with no checks.
5149 # 'test_compile' -- check by making test program.
5150 # 'file_magic [[regex]]' -- check by looking for files in library path
5151 # that responds to the $file_magic_cmd with a given extended regex.
5152 # If you have 'file' or equivalent on your system and you're not sure
5153 # whether 'pass_all' will *always* work, you probably want this one.
5154
5155 case $host_os in
5156 aix[4-9]*)
5157 lt_cv_deplibs_check_method=pass_all
5158 ;;
5159
5160 beos*)
5161 lt_cv_deplibs_check_method=pass_all
5162 ;;
5163
5164 bsdi[45]*)
5165 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5166 lt_cv_file_magic_cmd='/usr/bin/file -L'
5167 lt_cv_file_magic_test_file=/shlib/libc.so
5168 ;;
5169
5170 cygwin*)
5171 # func_win32_libid is a shell function defined in ltmain.sh
5172 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5173 lt_cv_file_magic_cmd='func_win32_libid'
5174 ;;
5175
5176 mingw* | pw32*)
5177 # Base MSYS/MinGW do not provide the 'file' command needed by
5178 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5179 # unless we find 'file', for example because we are cross-compiling.
5180 if ( file / ) >/dev/null 2>&1; then
5181 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5182 lt_cv_file_magic_cmd='func_win32_libid'
5183 else
5184 # Keep this pattern in sync with the one in func_win32_libid.
5185 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5186 lt_cv_file_magic_cmd='$OBJDUMP -f'
5187 fi
5188 ;;
5189
5190 cegcc*)
5191 # use the weaker test based on 'objdump'. See mingw*.
5192 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5193 lt_cv_file_magic_cmd='$OBJDUMP -f'
5194 ;;
5195
5196 darwin* | rhapsody*)
5197 lt_cv_deplibs_check_method=pass_all
5198 ;;
5199
5200 freebsd* | dragonfly*)
5201 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5202 case $host_cpu in
5203 i*86 )
5204 # Not sure whether the presence of OpenBSD here was a mistake.
5205 # Let's accept both of them until this is cleared up.
5206 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5207 lt_cv_file_magic_cmd=/usr/bin/file
5208 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5209 ;;
5210 esac
5211 else
5212 lt_cv_deplibs_check_method=pass_all
5213 fi
5214 ;;
5215
5216 haiku*)
5217 lt_cv_deplibs_check_method=pass_all
5218 ;;
5219
5220 hpux10.20* | hpux11*)
5221 lt_cv_file_magic_cmd=/usr/bin/file
5222 case $host_cpu in
5223 ia64*)
5224 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5225 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5226 ;;
5227 hppa*64*)
5228 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]'
5229 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5230 ;;
5231 *)
5232 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5233 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5234 ;;
5235 esac
5236 ;;
5237
5238 interix[3-9]*)
5239 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5240 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5241 ;;
5242
5243 irix5* | irix6* | nonstopux*)
5244 case $LD in
5245 *-32|*"-32 ") libmagic=32-bit;;
5246 *-n32|*"-n32 ") libmagic=N32;;
5247 *-64|*"-64 ") libmagic=64-bit;;
5248 *) libmagic=never-match;;
5249 esac
5250 lt_cv_deplibs_check_method=pass_all
5251 ;;
5252
5253 # This must be glibc/ELF.
5254 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5255 lt_cv_deplibs_check_method=pass_all
5256 ;;
5257
5258 netbsd*)
5259 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5260 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5261 else
5262 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5263 fi
5264 ;;
5265
5266 newos6*)
5267 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5268 lt_cv_file_magic_cmd=/usr/bin/file
5269 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5270 ;;
5271
5272 *nto* | *qnx*)
5273 lt_cv_deplibs_check_method=pass_all
5274 ;;
5275
5276 openbsd* | bitrig*)
5277 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5278 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5279 else
5280 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5281 fi
5282 ;;
5283
5284 osf3* | osf4* | osf5*)
5285 lt_cv_deplibs_check_method=pass_all
5286 ;;
5287
5288 rdos*)
5289 lt_cv_deplibs_check_method=pass_all
5290 ;;
5291
5292 solaris*)
5293 lt_cv_deplibs_check_method=pass_all
5294 ;;
5295
5296 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5297 lt_cv_deplibs_check_method=pass_all
5298 ;;
5299
5300 sysv4 | sysv4.3*)
5301 case $host_vendor in
5302 motorola)
5303 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]'
5304 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5305 ;;
5306 ncr)
5307 lt_cv_deplibs_check_method=pass_all
5308 ;;
5309 sequent)
5310 lt_cv_file_magic_cmd='/bin/file'
5311 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5312 ;;
5313 sni)
5314 lt_cv_file_magic_cmd='/bin/file'
5315 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5316 lt_cv_file_magic_test_file=/lib/libc.so
5317 ;;
5318 siemens)
5319 lt_cv_deplibs_check_method=pass_all
5320 ;;
5321 pc)
5322 lt_cv_deplibs_check_method=pass_all
5323 ;;
5324 esac
5325 ;;
5326
5327 tpf*)
5328 lt_cv_deplibs_check_method=pass_all
5329 ;;
5330 os2*)
5331 lt_cv_deplibs_check_method=pass_all
5332 ;;
5333 esac
5334
5335 fi
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5337 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5338
5339 file_magic_glob=
5340 want_nocaseglob=no
5341 if test "$build" = "$host"; then
5342 case $host_os in
5343 mingw* | pw32*)
5344 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5345 want_nocaseglob=yes
5346 else
5347 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5348 fi
5349 ;;
5350 esac
5351 fi
5352
5353 file_magic_cmd=$lt_cv_file_magic_cmd
5354 deplibs_check_method=$lt_cv_deplibs_check_method
5355 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378 if test -n "$ac_tool_prefix"; then
5379 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5380 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5382 $as_echo_n "checking for $ac_word... " >&6; }
5383 if ${ac_cv_prog_DLLTOOL+:} false; then :
5384 $as_echo_n "(cached) " >&6
5385 else
5386 if test -n "$DLLTOOL"; then
5387 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5388 else
5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390 for as_dir in $PATH
5391 do
5392 IFS=$as_save_IFS
5393 test -z "$as_dir" && as_dir=.
5394 for ac_exec_ext in '' $ac_executable_extensions; do
5395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5396 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5398 break 2
5399 fi
5400 done
5401 done
5402 IFS=$as_save_IFS
5403
5404 fi
5405 fi
5406 DLLTOOL=$ac_cv_prog_DLLTOOL
5407 if test -n "$DLLTOOL"; then
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5409 $as_echo "$DLLTOOL" >&6; }
5410 else
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5412 $as_echo "no" >&6; }
5413 fi
5414
5415
5416 fi
5417 if test -z "$ac_cv_prog_DLLTOOL"; then
5418 ac_ct_DLLTOOL=$DLLTOOL
5419 # Extract the first word of "dlltool", so it can be a program name with args.
5420 set dummy dlltool; ac_word=$2
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5422 $as_echo_n "checking for $ac_word... " >&6; }
5423 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5424 $as_echo_n "(cached) " >&6
5425 else
5426 if test -n "$ac_ct_DLLTOOL"; then
5427 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5428 else
5429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430 for as_dir in $PATH
5431 do
5432 IFS=$as_save_IFS
5433 test -z "$as_dir" && as_dir=.
5434 for ac_exec_ext in '' $ac_executable_extensions; do
5435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5436 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5438 break 2
5439 fi
5440 done
5441 done
5442 IFS=$as_save_IFS
5443
5444 fi
5445 fi
5446 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5447 if test -n "$ac_ct_DLLTOOL"; then
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5449 $as_echo "$ac_ct_DLLTOOL" >&6; }
5450 else
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5452 $as_echo "no" >&6; }
5453 fi
5454
5455 if test "x$ac_ct_DLLTOOL" = x; then
5456 DLLTOOL="false"
5457 else
5458 case $cross_compiling:$ac_tool_warned in
5459 yes:)
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5462 ac_tool_warned=yes ;;
5463 esac
5464 DLLTOOL=$ac_ct_DLLTOOL
5465 fi
5466 else
5467 DLLTOOL="$ac_cv_prog_DLLTOOL"
5468 fi
5469
5470 test -z "$DLLTOOL" && DLLTOOL=dlltool
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5482 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5483 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5484 $as_echo_n "(cached) " >&6
5485 else
5486 lt_cv_sharedlib_from_linklib_cmd='unknown'
5487
5488 case $host_os in
5489 cygwin* | mingw* | pw32* | cegcc*)
5490 # two different shell functions defined in ltmain.sh;
5491 # decide which one to use based on capabilities of $DLLTOOL
5492 case `$DLLTOOL --help 2>&1` in
5493 *--identify-strict*)
5494 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5495 ;;
5496 *)
5497 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5498 ;;
5499 esac
5500 ;;
5501 *)
5502 # fallback: assume linklib IS sharedlib
5503 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5504 ;;
5505 esac
5506
5507 fi
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5509 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5510 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5511 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5512
5513
5514
5515
5516
5517
5518
5519
5520 if test -n "$ac_tool_prefix"; then
5521 for ac_prog in ar
5522 do
5523 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5524 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5526 $as_echo_n "checking for $ac_word... " >&6; }
5527 if ${ac_cv_prog_AR+:} false; then :
5528 $as_echo_n "(cached) " >&6
5529 else
5530 if test -n "$AR"; then
5531 ac_cv_prog_AR="$AR" # Let the user override the test.
5532 else
5533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5534 for as_dir in $PATH
5535 do
5536 IFS=$as_save_IFS
5537 test -z "$as_dir" && as_dir=.
5538 for ac_exec_ext in '' $ac_executable_extensions; do
5539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5540 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5542 break 2
5543 fi
5544 done
5545 done
5546 IFS=$as_save_IFS
5547
5548 fi
5549 fi
5550 AR=$ac_cv_prog_AR
5551 if test -n "$AR"; then
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5553 $as_echo "$AR" >&6; }
5554 else
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556 $as_echo "no" >&6; }
5557 fi
5558
5559
5560 test -n "$AR" && break
5561 done
5562 fi
5563 if test -z "$AR"; then
5564 ac_ct_AR=$AR
5565 for ac_prog in ar
5566 do
5567 # Extract the first word of "$ac_prog", so it can be a program name with args.
5568 set dummy $ac_prog; ac_word=$2
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5570 $as_echo_n "checking for $ac_word... " >&6; }
5571 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5572 $as_echo_n "(cached) " >&6
5573 else
5574 if test -n "$ac_ct_AR"; then
5575 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5576 else
5577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578 for as_dir in $PATH
5579 do
5580 IFS=$as_save_IFS
5581 test -z "$as_dir" && as_dir=.
5582 for ac_exec_ext in '' $ac_executable_extensions; do
5583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5584 ac_cv_prog_ac_ct_AR="$ac_prog"
5585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5586 break 2
5587 fi
5588 done
5589 done
5590 IFS=$as_save_IFS
5591
5592 fi
5593 fi
5594 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5595 if test -n "$ac_ct_AR"; then
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5597 $as_echo "$ac_ct_AR" >&6; }
5598 else
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5600 $as_echo "no" >&6; }
5601 fi
5602
5603
5604 test -n "$ac_ct_AR" && break
5605 done
5606
5607 if test "x$ac_ct_AR" = x; then
5608 AR="false"
5609 else
5610 case $cross_compiling:$ac_tool_warned in
5611 yes:)
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5614 ac_tool_warned=yes ;;
5615 esac
5616 AR=$ac_ct_AR
5617 fi
5618 fi
5619
5620 : ${AR=ar}
5621 : ${AR_FLAGS=cru}
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5634 $as_echo_n "checking for archiver @FILE support... " >&6; }
5635 if ${lt_cv_ar_at_file+:} false; then :
5636 $as_echo_n "(cached) " >&6
5637 else
5638 lt_cv_ar_at_file=no
5639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5640 /* end confdefs.h. */
5641
5642 int
5643 main ()
5644 {
5645
5646 ;
5647 return 0;
5648 }
5649 _ACEOF
5650 if ac_fn_c_try_compile "$LINENO"; then :
5651 echo conftest.$ac_objext > conftest.lst
5652 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5653 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5654 (eval $lt_ar_try) 2>&5
5655 ac_status=$?
5656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5657 test $ac_status = 0; }
5658 if test 0 -eq "$ac_status"; then
5659 # Ensure the archiver fails upon bogus file names.
5660 rm -f conftest.$ac_objext libconftest.a
5661 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5662 (eval $lt_ar_try) 2>&5
5663 ac_status=$?
5664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5665 test $ac_status = 0; }
5666 if test 0 -ne "$ac_status"; then
5667 lt_cv_ar_at_file=@
5668 fi
5669 fi
5670 rm -f conftest.* libconftest.a
5671
5672 fi
5673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5674
5675 fi
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5677 $as_echo "$lt_cv_ar_at_file" >&6; }
5678
5679 if test no = "$lt_cv_ar_at_file"; then
5680 archiver_list_spec=
5681 else
5682 archiver_list_spec=$lt_cv_ar_at_file
5683 fi
5684
5685
5686
5687
5688
5689
5690
5691 if test -n "$ac_tool_prefix"; then
5692 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5693 set dummy ${ac_tool_prefix}strip; ac_word=$2
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5695 $as_echo_n "checking for $ac_word... " >&6; }
5696 if ${ac_cv_prog_STRIP+:} false; then :
5697 $as_echo_n "(cached) " >&6
5698 else
5699 if test -n "$STRIP"; then
5700 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5701 else
5702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5703 for as_dir in $PATH
5704 do
5705 IFS=$as_save_IFS
5706 test -z "$as_dir" && as_dir=.
5707 for ac_exec_ext in '' $ac_executable_extensions; do
5708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5709 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5711 break 2
5712 fi
5713 done
5714 done
5715 IFS=$as_save_IFS
5716
5717 fi
5718 fi
5719 STRIP=$ac_cv_prog_STRIP
5720 if test -n "$STRIP"; then
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5722 $as_echo "$STRIP" >&6; }
5723 else
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5725 $as_echo "no" >&6; }
5726 fi
5727
5728
5729 fi
5730 if test -z "$ac_cv_prog_STRIP"; then
5731 ac_ct_STRIP=$STRIP
5732 # Extract the first word of "strip", so it can be a program name with args.
5733 set dummy strip; ac_word=$2
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5735 $as_echo_n "checking for $ac_word... " >&6; }
5736 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5737 $as_echo_n "(cached) " >&6
5738 else
5739 if test -n "$ac_ct_STRIP"; then
5740 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5741 else
5742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743 for as_dir in $PATH
5744 do
5745 IFS=$as_save_IFS
5746 test -z "$as_dir" && as_dir=.
5747 for ac_exec_ext in '' $ac_executable_extensions; do
5748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5749 ac_cv_prog_ac_ct_STRIP="strip"
5750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5751 break 2
5752 fi
5753 done
5754 done
5755 IFS=$as_save_IFS
5756
5757 fi
5758 fi
5759 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5760 if test -n "$ac_ct_STRIP"; then
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5762 $as_echo "$ac_ct_STRIP" >&6; }
5763 else
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5765 $as_echo "no" >&6; }
5766 fi
5767
5768 if test "x$ac_ct_STRIP" = x; then
5769 STRIP=":"
5770 else
5771 case $cross_compiling:$ac_tool_warned in
5772 yes:)
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5775 ac_tool_warned=yes ;;
5776 esac
5777 STRIP=$ac_ct_STRIP
5778 fi
5779 else
5780 STRIP="$ac_cv_prog_STRIP"
5781 fi
5782
5783 test -z "$STRIP" && STRIP=:
5784
5785
5786
5787
5788
5789
5790 if test -n "$ac_tool_prefix"; then
5791 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5792 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5794 $as_echo_n "checking for $ac_word... " >&6; }
5795 if ${ac_cv_prog_RANLIB+:} false; then :
5796 $as_echo_n "(cached) " >&6
5797 else
5798 if test -n "$RANLIB"; then
5799 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5800 else
5801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5802 for as_dir in $PATH
5803 do
5804 IFS=$as_save_IFS
5805 test -z "$as_dir" && as_dir=.
5806 for ac_exec_ext in '' $ac_executable_extensions; do
5807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5808 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5810 break 2
5811 fi
5812 done
5813 done
5814 IFS=$as_save_IFS
5815
5816 fi
5817 fi
5818 RANLIB=$ac_cv_prog_RANLIB
5819 if test -n "$RANLIB"; then
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5821 $as_echo "$RANLIB" >&6; }
5822 else
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5824 $as_echo "no" >&6; }
5825 fi
5826
5827
5828 fi
5829 if test -z "$ac_cv_prog_RANLIB"; then
5830 ac_ct_RANLIB=$RANLIB
5831 # Extract the first word of "ranlib", so it can be a program name with args.
5832 set dummy ranlib; ac_word=$2
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5834 $as_echo_n "checking for $ac_word... " >&6; }
5835 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5836 $as_echo_n "(cached) " >&6
5837 else
5838 if test -n "$ac_ct_RANLIB"; then
5839 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5840 else
5841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5842 for as_dir in $PATH
5843 do
5844 IFS=$as_save_IFS
5845 test -z "$as_dir" && as_dir=.
5846 for ac_exec_ext in '' $ac_executable_extensions; do
5847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5848 ac_cv_prog_ac_ct_RANLIB="ranlib"
5849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5850 break 2
5851 fi
5852 done
5853 done
5854 IFS=$as_save_IFS
5855
5856 fi
5857 fi
5858 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5859 if test -n "$ac_ct_RANLIB"; then
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5861 $as_echo "$ac_ct_RANLIB" >&6; }
5862 else
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5864 $as_echo "no" >&6; }
5865 fi
5866
5867 if test "x$ac_ct_RANLIB" = x; then
5868 RANLIB=":"
5869 else
5870 case $cross_compiling:$ac_tool_warned in
5871 yes:)
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5873 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5874 ac_tool_warned=yes ;;
5875 esac
5876 RANLIB=$ac_ct_RANLIB
5877 fi
5878 else
5879 RANLIB="$ac_cv_prog_RANLIB"
5880 fi
5881
5882 test -z "$RANLIB" && RANLIB=:
5883
5884
5885
5886
5887
5888
5889 # Determine commands to create old-style static archives.
5890 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5891 old_postinstall_cmds='chmod 644 $oldlib'
5892 old_postuninstall_cmds=
5893
5894 if test -n "$RANLIB"; then
5895 case $host_os in
5896 bitrig* | openbsd*)
5897 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5898 ;;
5899 *)
5900 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5901 ;;
5902 esac
5903 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5904 fi
5905
5906 case $host_os in
5907 darwin*)
5908 lock_old_archive_extraction=yes ;;
5909 *)
5910 lock_old_archive_extraction=no ;;
5911 esac
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951 # If no C compiler was specified, use CC.
5952 LTCC=${LTCC-"$CC"}
5953
5954 # If no C compiler flags were specified, use CFLAGS.
5955 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5956
5957 # Allow CC to be a program name with arguments.
5958 compiler=$CC
5959
5960
5961 # Check for command to grab the raw symbol name followed by C symbol from nm.
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5963 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5964 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5965 $as_echo_n "(cached) " >&6
5966 else
5967
5968 # These are sane defaults that work on at least a few old systems.
5969 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5970
5971 # Character class describing NM global symbol codes.
5972 symcode='[BCDEGRST]'
5973
5974 # Regexp to match symbols that can be accessed directly from C.
5975 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5976
5977 # Define system-specific variables.
5978 case $host_os in
5979 aix*)
5980 symcode='[BCDT]'
5981 ;;
5982 cygwin* | mingw* | pw32* | cegcc*)
5983 symcode='[ABCDGISTW]'
5984 ;;
5985 hpux*)
5986 if test ia64 = "$host_cpu"; then
5987 symcode='[ABCDEGRST]'
5988 fi
5989 ;;
5990 irix* | nonstopux*)
5991 symcode='[BCDEGRST]'
5992 ;;
5993 osf*)
5994 symcode='[BCDEGQRST]'
5995 ;;
5996 solaris*)
5997 symcode='[BDRT]'
5998 ;;
5999 sco3.2v5*)
6000 symcode='[DT]'
6001 ;;
6002 sysv4.2uw2*)
6003 symcode='[DT]'
6004 ;;
6005 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6006 symcode='[ABDT]'
6007 ;;
6008 sysv4)
6009 symcode='[DFNSTU]'
6010 ;;
6011 esac
6012
6013 # If we're using GNU nm, then use its standard symbol codes.
6014 case `$NM -V 2>&1` in
6015 *GNU* | *'with BFD'*)
6016 symcode='[ABCDGIRSTW]' ;;
6017 esac
6018
6019 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6020 # Gets list of data symbols to import.
6021 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6022 # Adjust the below global symbol transforms to fixup imported variables.
6023 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6024 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6025 lt_c_name_lib_hook="\
6026 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6027 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6028 else
6029 # Disable hooks by default.
6030 lt_cv_sys_global_symbol_to_import=
6031 lt_cdecl_hook=
6032 lt_c_name_hook=
6033 lt_c_name_lib_hook=
6034 fi
6035
6036 # Transform an extracted symbol line into a proper C declaration.
6037 # Some systems (esp. on ia64) link data and code symbols differently,
6038 # so use this general approach.
6039 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6040 $lt_cdecl_hook\
6041 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6042 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6043
6044 # Transform an extracted symbol line into symbol name and symbol address
6045 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6046 $lt_c_name_hook\
6047 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6048 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6049
6050 # Transform an extracted symbol line into symbol name with lib prefix and
6051 # symbol address.
6052 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6053 $lt_c_name_lib_hook\
6054 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6055 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6056 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6057
6058 # Handle CRLF in mingw tool chain
6059 opt_cr=
6060 case $build_os in
6061 mingw*)
6062 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6063 ;;
6064 esac
6065
6066 # Try without a prefix underscore, then with it.
6067 for ac_symprfx in "" "_"; do
6068
6069 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6070 symxfrm="\\1 $ac_symprfx\\2 \\2"
6071
6072 # Write the raw and C identifiers.
6073 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6074 # Fake it for dumpbin and say T for any non-static function,
6075 # D for any global variable and I for any imported variable.
6076 # Also find C++ and __fastcall symbols from MSVC++,
6077 # which start with @ or ?.
6078 lt_cv_sys_global_symbol_pipe="$AWK '"\
6079 " {last_section=section; section=\$ 3};"\
6080 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6081 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6082 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6083 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6084 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6085 " \$ 0!~/External *\|/{next};"\
6086 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6087 " {if(hide[section]) next};"\
6088 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6089 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6090 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6091 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6092 " ' prfx=^$ac_symprfx"
6093 else
6094 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6095 fi
6096 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6097
6098 # Check to see that the pipe works correctly.
6099 pipe_works=no
6100
6101 rm -f conftest*
6102 cat > conftest.$ac_ext <<_LT_EOF
6103 #ifdef __cplusplus
6104 extern "C" {
6105 #endif
6106 char nm_test_var;
6107 void nm_test_func(void);
6108 void nm_test_func(void){}
6109 #ifdef __cplusplus
6110 }
6111 #endif
6112 int main(){nm_test_var='a';nm_test_func();return(0);}
6113 _LT_EOF
6114
6115 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6116 (eval $ac_compile) 2>&5
6117 ac_status=$?
6118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6119 test $ac_status = 0; }; then
6120 # Now try to grab the symbols.
6121 nlist=conftest.nm
6122 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6123 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6124 ac_status=$?
6125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6126 test $ac_status = 0; } && test -s "$nlist"; then
6127 # Try sorting and uniquifying the output.
6128 if sort "$nlist" | uniq > "$nlist"T; then
6129 mv -f "$nlist"T "$nlist"
6130 else
6131 rm -f "$nlist"T
6132 fi
6133
6134 # Make sure that we snagged all the symbols we need.
6135 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6136 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6137 cat <<_LT_EOF > conftest.$ac_ext
6138 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6139 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6140 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6141 relocations are performed -- see ld's documentation on pseudo-relocs. */
6142 # define LT_DLSYM_CONST
6143 #elif defined __osf__
6144 /* This system does not cope well with relocations in const data. */
6145 # define LT_DLSYM_CONST
6146 #else
6147 # define LT_DLSYM_CONST const
6148 #endif
6149
6150 #ifdef __cplusplus
6151 extern "C" {
6152 #endif
6153
6154 _LT_EOF
6155 # Now generate the symbol file.
6156 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6157
6158 cat <<_LT_EOF >> conftest.$ac_ext
6159
6160 /* The mapping between symbol names and symbols. */
6161 LT_DLSYM_CONST struct {
6162 const char *name;
6163 void *address;
6164 }
6165 lt__PROGRAM__LTX_preloaded_symbols[] =
6166 {
6167 { "@PROGRAM@", (void *) 0 },
6168 _LT_EOF
6169 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6170 cat <<\_LT_EOF >> conftest.$ac_ext
6171 {0, (void *) 0}
6172 };
6173
6174 /* This works around a problem in FreeBSD linker */
6175 #ifdef FREEBSD_WORKAROUND
6176 static const void *lt_preloaded_setup() {
6177 return lt__PROGRAM__LTX_preloaded_symbols;
6178 }
6179 #endif
6180
6181 #ifdef __cplusplus
6182 }
6183 #endif
6184 _LT_EOF
6185 # Now try linking the two files.
6186 mv conftest.$ac_objext conftstm.$ac_objext
6187 lt_globsym_save_LIBS=$LIBS
6188 lt_globsym_save_CFLAGS=$CFLAGS
6189 LIBS=conftstm.$ac_objext
6190 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6191 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6192 (eval $ac_link) 2>&5
6193 ac_status=$?
6194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6195 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6196 pipe_works=yes
6197 fi
6198 LIBS=$lt_globsym_save_LIBS
6199 CFLAGS=$lt_globsym_save_CFLAGS
6200 else
6201 echo "cannot find nm_test_func in $nlist" >&5
6202 fi
6203 else
6204 echo "cannot find nm_test_var in $nlist" >&5
6205 fi
6206 else
6207 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6208 fi
6209 else
6210 echo "$progname: failed program was:" >&5
6211 cat conftest.$ac_ext >&5
6212 fi
6213 rm -rf conftest* conftst*
6214
6215 # Do not use the global_symbol_pipe unless it works.
6216 if test yes = "$pipe_works"; then
6217 break
6218 else
6219 lt_cv_sys_global_symbol_pipe=
6220 fi
6221 done
6222
6223 fi
6224
6225 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6226 lt_cv_sys_global_symbol_to_cdecl=
6227 fi
6228 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6230 $as_echo "failed" >&6; }
6231 else
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6233 $as_echo "ok" >&6; }
6234 fi
6235
6236 # Response file support.
6237 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6238 nm_file_list_spec='@'
6239 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6240 nm_file_list_spec='@'
6241 fi
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6280 $as_echo_n "checking for sysroot... " >&6; }
6281
6282 # Check whether --with-sysroot was given.
6283 if test "${with_sysroot+set}" = set; then :
6284 withval=$with_sysroot;
6285 else
6286 with_sysroot=no
6287 fi
6288
6289
6290 lt_sysroot=
6291 case $with_sysroot in #(
6292 yes)
6293 if test yes = "$GCC"; then
6294 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6295 fi
6296 ;; #(
6297 /*)
6298 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6299 ;; #(
6300 no|'')
6301 ;; #(
6302 *)
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6304 $as_echo "$with_sysroot" >&6; }
6305 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6306 ;;
6307 esac
6308
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6310 $as_echo "${lt_sysroot:-no}" >&6; }
6311
6312
6313
6314
6315
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6317 $as_echo_n "checking for a working dd... " >&6; }
6318 if ${ac_cv_path_lt_DD+:} false; then :
6319 $as_echo_n "(cached) " >&6
6320 else
6321 printf 0123456789abcdef0123456789abcdef >conftest.i
6322 cat conftest.i conftest.i >conftest2.i
6323 : ${lt_DD:=$DD}
6324 if test -z "$lt_DD"; then
6325 ac_path_lt_DD_found=false
6326 # Loop through the user's path and test for each of PROGNAME-LIST
6327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328 for as_dir in $PATH
6329 do
6330 IFS=$as_save_IFS
6331 test -z "$as_dir" && as_dir=.
6332 for ac_prog in dd; do
6333 for ac_exec_ext in '' $ac_executable_extensions; do
6334 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6335 as_fn_executable_p "$ac_path_lt_DD" || continue
6336 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6337 cmp -s conftest.i conftest.out \
6338 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6339 fi
6340 $ac_path_lt_DD_found && break 3
6341 done
6342 done
6343 done
6344 IFS=$as_save_IFS
6345 if test -z "$ac_cv_path_lt_DD"; then
6346 :
6347 fi
6348 else
6349 ac_cv_path_lt_DD=$lt_DD
6350 fi
6351
6352 rm -f conftest.i conftest2.i conftest.out
6353 fi
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6355 $as_echo "$ac_cv_path_lt_DD" >&6; }
6356
6357
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6359 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6360 if ${lt_cv_truncate_bin+:} false; then :
6361 $as_echo_n "(cached) " >&6
6362 else
6363 printf 0123456789abcdef0123456789abcdef >conftest.i
6364 cat conftest.i conftest.i >conftest2.i
6365 lt_cv_truncate_bin=
6366 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6367 cmp -s conftest.i conftest.out \
6368 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6369 fi
6370 rm -f conftest.i conftest2.i conftest.out
6371 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6372 fi
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6374 $as_echo "$lt_cv_truncate_bin" >&6; }
6375
6376
6377
6378
6379
6380
6381
6382 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6383 func_cc_basename ()
6384 {
6385 for cc_temp in $*""; do
6386 case $cc_temp in
6387 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6388 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6389 \-*) ;;
6390 *) break;;
6391 esac
6392 done
6393 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6394 }
6395
6396 # Check whether --enable-libtool-lock was given.
6397 if test "${enable_libtool_lock+set}" = set; then :
6398 enableval=$enable_libtool_lock;
6399 fi
6400
6401 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6402
6403 # Some flags need to be propagated to the compiler or linker for good
6404 # libtool support.
6405 case $host in
6406 ia64-*-hpux*)
6407 # Find out what ABI is being produced by ac_compile, and set mode
6408 # options accordingly.
6409 echo 'int i;' > conftest.$ac_ext
6410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6411 (eval $ac_compile) 2>&5
6412 ac_status=$?
6413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6414 test $ac_status = 0; }; then
6415 case `/usr/bin/file conftest.$ac_objext` in
6416 *ELF-32*)
6417 HPUX_IA64_MODE=32
6418 ;;
6419 *ELF-64*)
6420 HPUX_IA64_MODE=64
6421 ;;
6422 esac
6423 fi
6424 rm -rf conftest*
6425 ;;
6426 *-*-irix6*)
6427 # Find out what ABI is being produced by ac_compile, and set linker
6428 # options accordingly.
6429 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6430 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6431 (eval $ac_compile) 2>&5
6432 ac_status=$?
6433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6434 test $ac_status = 0; }; then
6435 if test yes = "$lt_cv_prog_gnu_ld"; then
6436 case `/usr/bin/file conftest.$ac_objext` in
6437 *32-bit*)
6438 LD="${LD-ld} -melf32bsmip"
6439 ;;
6440 *N32*)
6441 LD="${LD-ld} -melf32bmipn32"
6442 ;;
6443 *64-bit*)
6444 LD="${LD-ld} -melf64bmip"
6445 ;;
6446 esac
6447 else
6448 case `/usr/bin/file conftest.$ac_objext` in
6449 *32-bit*)
6450 LD="${LD-ld} -32"
6451 ;;
6452 *N32*)
6453 LD="${LD-ld} -n32"
6454 ;;
6455 *64-bit*)
6456 LD="${LD-ld} -64"
6457 ;;
6458 esac
6459 fi
6460 fi
6461 rm -rf conftest*
6462 ;;
6463
6464 mips64*-*linux*)
6465 # Find out what ABI is being produced by ac_compile, and set linker
6466 # options accordingly.
6467 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6468 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6469 (eval $ac_compile) 2>&5
6470 ac_status=$?
6471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6472 test $ac_status = 0; }; then
6473 emul=elf
6474 case `/usr/bin/file conftest.$ac_objext` in
6475 *32-bit*)
6476 emul="${emul}32"
6477 ;;
6478 *64-bit*)
6479 emul="${emul}64"
6480 ;;
6481 esac
6482 case `/usr/bin/file conftest.$ac_objext` in
6483 *MSB*)
6484 emul="${emul}btsmip"
6485 ;;
6486 *LSB*)
6487 emul="${emul}ltsmip"
6488 ;;
6489 esac
6490 case `/usr/bin/file conftest.$ac_objext` in
6491 *N32*)
6492 emul="${emul}n32"
6493 ;;
6494 esac
6495 LD="${LD-ld} -m $emul"
6496 fi
6497 rm -rf conftest*
6498 ;;
6499
6500 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6501 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6502 # Find out what ABI is being produced by ac_compile, and set linker
6503 # options accordingly. Note that the listed cases only cover the
6504 # situations where additional linker options are needed (such as when
6505 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6506 # vice versa); the common cases where no linker options are needed do
6507 # not appear in the list.
6508 echo 'int i;' > conftest.$ac_ext
6509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6510 (eval $ac_compile) 2>&5
6511 ac_status=$?
6512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6513 test $ac_status = 0; }; then
6514 case `/usr/bin/file conftest.o` in
6515 *32-bit*)
6516 case $host in
6517 x86_64-*kfreebsd*-gnu)
6518 LD="${LD-ld} -m elf_i386_fbsd"
6519 ;;
6520 x86_64-*linux*)
6521 case `/usr/bin/file conftest.o` in
6522 *x86-64*)
6523 LD="${LD-ld} -m elf32_x86_64"
6524 ;;
6525 *)
6526 LD="${LD-ld} -m elf_i386"
6527 ;;
6528 esac
6529 ;;
6530 powerpc64le-*linux*)
6531 LD="${LD-ld} -m elf32lppclinux"
6532 ;;
6533 powerpc64-*linux*)
6534 LD="${LD-ld} -m elf32ppclinux"
6535 ;;
6536 s390x-*linux*)
6537 LD="${LD-ld} -m elf_s390"
6538 ;;
6539 sparc64-*linux*)
6540 LD="${LD-ld} -m elf32_sparc"
6541 ;;
6542 esac
6543 ;;
6544 *64-bit*)
6545 case $host in
6546 x86_64-*kfreebsd*-gnu)
6547 LD="${LD-ld} -m elf_x86_64_fbsd"
6548 ;;
6549 x86_64-*linux*)
6550 LD="${LD-ld} -m elf_x86_64"
6551 ;;
6552 powerpcle-*linux*)
6553 LD="${LD-ld} -m elf64lppc"
6554 ;;
6555 powerpc-*linux*)
6556 LD="${LD-ld} -m elf64ppc"
6557 ;;
6558 s390*-*linux*|s390*-*tpf*)
6559 LD="${LD-ld} -m elf64_s390"
6560 ;;
6561 sparc*-*linux*)
6562 LD="${LD-ld} -m elf64_sparc"
6563 ;;
6564 esac
6565 ;;
6566 esac
6567 fi
6568 rm -rf conftest*
6569 ;;
6570
6571 *-*-sco3.2v5*)
6572 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6573 SAVE_CFLAGS=$CFLAGS
6574 CFLAGS="$CFLAGS -belf"
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6576 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6577 if ${lt_cv_cc_needs_belf+:} false; then :
6578 $as_echo_n "(cached) " >&6
6579 else
6580 ac_ext=c
6581 ac_cpp='$CPP $CPPFLAGS'
6582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6585
6586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6587 /* end confdefs.h. */
6588
6589 int
6590 main ()
6591 {
6592
6593 ;
6594 return 0;
6595 }
6596 _ACEOF
6597 if ac_fn_c_try_link "$LINENO"; then :
6598 lt_cv_cc_needs_belf=yes
6599 else
6600 lt_cv_cc_needs_belf=no
6601 fi
6602 rm -f core conftest.err conftest.$ac_objext \
6603 conftest$ac_exeext conftest.$ac_ext
6604 ac_ext=c
6605 ac_cpp='$CPP $CPPFLAGS'
6606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6609
6610 fi
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6612 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6613 if test yes != "$lt_cv_cc_needs_belf"; then
6614 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6615 CFLAGS=$SAVE_CFLAGS
6616 fi
6617 ;;
6618 *-*solaris*)
6619 # Find out what ABI is being produced by ac_compile, and set linker
6620 # options accordingly.
6621 echo 'int i;' > conftest.$ac_ext
6622 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6623 (eval $ac_compile) 2>&5
6624 ac_status=$?
6625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6626 test $ac_status = 0; }; then
6627 case `/usr/bin/file conftest.o` in
6628 *64-bit*)
6629 case $lt_cv_prog_gnu_ld in
6630 yes*)
6631 case $host in
6632 i?86-*-solaris*|x86_64-*-solaris*)
6633 LD="${LD-ld} -m elf_x86_64"
6634 ;;
6635 sparc*-*-solaris*)
6636 LD="${LD-ld} -m elf64_sparc"
6637 ;;
6638 esac
6639 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6640 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6641 LD=${LD-ld}_sol2
6642 fi
6643 ;;
6644 *)
6645 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6646 LD="${LD-ld} -64"
6647 fi
6648 ;;
6649 esac
6650 ;;
6651 esac
6652 fi
6653 rm -rf conftest*
6654 ;;
6655 esac
6656
6657 need_locks=$enable_libtool_lock
6658
6659 if test -n "$ac_tool_prefix"; then
6660 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6661 set dummy ${ac_tool_prefix}mt; ac_word=$2
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6663 $as_echo_n "checking for $ac_word... " >&6; }
6664 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6665 $as_echo_n "(cached) " >&6
6666 else
6667 if test -n "$MANIFEST_TOOL"; then
6668 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6669 else
6670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671 for as_dir in $PATH
6672 do
6673 IFS=$as_save_IFS
6674 test -z "$as_dir" && as_dir=.
6675 for ac_exec_ext in '' $ac_executable_extensions; do
6676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6677 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6679 break 2
6680 fi
6681 done
6682 done
6683 IFS=$as_save_IFS
6684
6685 fi
6686 fi
6687 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6688 if test -n "$MANIFEST_TOOL"; then
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6690 $as_echo "$MANIFEST_TOOL" >&6; }
6691 else
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6693 $as_echo "no" >&6; }
6694 fi
6695
6696
6697 fi
6698 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6699 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6700 # Extract the first word of "mt", so it can be a program name with args.
6701 set dummy mt; ac_word=$2
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6703 $as_echo_n "checking for $ac_word... " >&6; }
6704 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6705 $as_echo_n "(cached) " >&6
6706 else
6707 if test -n "$ac_ct_MANIFEST_TOOL"; then
6708 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6709 else
6710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711 for as_dir in $PATH
6712 do
6713 IFS=$as_save_IFS
6714 test -z "$as_dir" && as_dir=.
6715 for ac_exec_ext in '' $ac_executable_extensions; do
6716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6717 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6719 break 2
6720 fi
6721 done
6722 done
6723 IFS=$as_save_IFS
6724
6725 fi
6726 fi
6727 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6728 if test -n "$ac_ct_MANIFEST_TOOL"; then
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6730 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6731 else
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6733 $as_echo "no" >&6; }
6734 fi
6735
6736 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6737 MANIFEST_TOOL=":"
6738 else
6739 case $cross_compiling:$ac_tool_warned in
6740 yes:)
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6743 ac_tool_warned=yes ;;
6744 esac
6745 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6746 fi
6747 else
6748 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6749 fi
6750
6751 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6753 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6754 if ${lt_cv_path_mainfest_tool+:} false; then :
6755 $as_echo_n "(cached) " >&6
6756 else
6757 lt_cv_path_mainfest_tool=no
6758 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6759 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6760 cat conftest.err >&5
6761 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6762 lt_cv_path_mainfest_tool=yes
6763 fi
6764 rm -f conftest*
6765 fi
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6767 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6768 if test yes != "$lt_cv_path_mainfest_tool"; then
6769 MANIFEST_TOOL=:
6770 fi
6771
6772
6773
6774
6775
6776
6777 case $host_os in
6778 rhapsody* | darwin*)
6779 if test -n "$ac_tool_prefix"; then
6780 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6781 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6783 $as_echo_n "checking for $ac_word... " >&6; }
6784 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6785 $as_echo_n "(cached) " >&6
6786 else
6787 if test -n "$DSYMUTIL"; then
6788 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6789 else
6790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791 for as_dir in $PATH
6792 do
6793 IFS=$as_save_IFS
6794 test -z "$as_dir" && as_dir=.
6795 for ac_exec_ext in '' $ac_executable_extensions; do
6796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6797 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6799 break 2
6800 fi
6801 done
6802 done
6803 IFS=$as_save_IFS
6804
6805 fi
6806 fi
6807 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6808 if test -n "$DSYMUTIL"; then
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6810 $as_echo "$DSYMUTIL" >&6; }
6811 else
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6813 $as_echo "no" >&6; }
6814 fi
6815
6816
6817 fi
6818 if test -z "$ac_cv_prog_DSYMUTIL"; then
6819 ac_ct_DSYMUTIL=$DSYMUTIL
6820 # Extract the first word of "dsymutil", so it can be a program name with args.
6821 set dummy dsymutil; ac_word=$2
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6823 $as_echo_n "checking for $ac_word... " >&6; }
6824 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6825 $as_echo_n "(cached) " >&6
6826 else
6827 if test -n "$ac_ct_DSYMUTIL"; then
6828 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6829 else
6830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831 for as_dir in $PATH
6832 do
6833 IFS=$as_save_IFS
6834 test -z "$as_dir" && as_dir=.
6835 for ac_exec_ext in '' $ac_executable_extensions; do
6836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6837 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6839 break 2
6840 fi
6841 done
6842 done
6843 IFS=$as_save_IFS
6844
6845 fi
6846 fi
6847 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6848 if test -n "$ac_ct_DSYMUTIL"; then
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6850 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6851 else
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6853 $as_echo "no" >&6; }
6854 fi
6855
6856 if test "x$ac_ct_DSYMUTIL" = x; then
6857 DSYMUTIL=":"
6858 else
6859 case $cross_compiling:$ac_tool_warned in
6860 yes:)
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6862 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6863 ac_tool_warned=yes ;;
6864 esac
6865 DSYMUTIL=$ac_ct_DSYMUTIL
6866 fi
6867 else
6868 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6869 fi
6870
6871 if test -n "$ac_tool_prefix"; then
6872 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6873 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6875 $as_echo_n "checking for $ac_word... " >&6; }
6876 if ${ac_cv_prog_NMEDIT+:} false; then :
6877 $as_echo_n "(cached) " >&6
6878 else
6879 if test -n "$NMEDIT"; then
6880 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6881 else
6882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883 for as_dir in $PATH
6884 do
6885 IFS=$as_save_IFS
6886 test -z "$as_dir" && as_dir=.
6887 for ac_exec_ext in '' $ac_executable_extensions; do
6888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6889 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6891 break 2
6892 fi
6893 done
6894 done
6895 IFS=$as_save_IFS
6896
6897 fi
6898 fi
6899 NMEDIT=$ac_cv_prog_NMEDIT
6900 if test -n "$NMEDIT"; then
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6902 $as_echo "$NMEDIT" >&6; }
6903 else
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6905 $as_echo "no" >&6; }
6906 fi
6907
6908
6909 fi
6910 if test -z "$ac_cv_prog_NMEDIT"; then
6911 ac_ct_NMEDIT=$NMEDIT
6912 # Extract the first word of "nmedit", so it can be a program name with args.
6913 set dummy nmedit; ac_word=$2
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6915 $as_echo_n "checking for $ac_word... " >&6; }
6916 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6917 $as_echo_n "(cached) " >&6
6918 else
6919 if test -n "$ac_ct_NMEDIT"; then
6920 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6921 else
6922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923 for as_dir in $PATH
6924 do
6925 IFS=$as_save_IFS
6926 test -z "$as_dir" && as_dir=.
6927 for ac_exec_ext in '' $ac_executable_extensions; do
6928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6929 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6931 break 2
6932 fi
6933 done
6934 done
6935 IFS=$as_save_IFS
6936
6937 fi
6938 fi
6939 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6940 if test -n "$ac_ct_NMEDIT"; then
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6942 $as_echo "$ac_ct_NMEDIT" >&6; }
6943 else
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6945 $as_echo "no" >&6; }
6946 fi
6947
6948 if test "x$ac_ct_NMEDIT" = x; then
6949 NMEDIT=":"
6950 else
6951 case $cross_compiling:$ac_tool_warned in
6952 yes:)
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6955 ac_tool_warned=yes ;;
6956 esac
6957 NMEDIT=$ac_ct_NMEDIT
6958 fi
6959 else
6960 NMEDIT="$ac_cv_prog_NMEDIT"
6961 fi
6962
6963 if test -n "$ac_tool_prefix"; then
6964 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6965 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6967 $as_echo_n "checking for $ac_word... " >&6; }
6968 if ${ac_cv_prog_LIPO+:} false; then :
6969 $as_echo_n "(cached) " >&6
6970 else
6971 if test -n "$LIPO"; then
6972 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6973 else
6974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975 for as_dir in $PATH
6976 do
6977 IFS=$as_save_IFS
6978 test -z "$as_dir" && as_dir=.
6979 for ac_exec_ext in '' $ac_executable_extensions; do
6980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6981 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6983 break 2
6984 fi
6985 done
6986 done
6987 IFS=$as_save_IFS
6988
6989 fi
6990 fi
6991 LIPO=$ac_cv_prog_LIPO
6992 if test -n "$LIPO"; then
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6994 $as_echo "$LIPO" >&6; }
6995 else
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6997 $as_echo "no" >&6; }
6998 fi
6999
7000
7001 fi
7002 if test -z "$ac_cv_prog_LIPO"; then
7003 ac_ct_LIPO=$LIPO
7004 # Extract the first word of "lipo", so it can be a program name with args.
7005 set dummy lipo; ac_word=$2
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7007 $as_echo_n "checking for $ac_word... " >&6; }
7008 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7009 $as_echo_n "(cached) " >&6
7010 else
7011 if test -n "$ac_ct_LIPO"; then
7012 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7013 else
7014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015 for as_dir in $PATH
7016 do
7017 IFS=$as_save_IFS
7018 test -z "$as_dir" && as_dir=.
7019 for ac_exec_ext in '' $ac_executable_extensions; do
7020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7021 ac_cv_prog_ac_ct_LIPO="lipo"
7022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7023 break 2
7024 fi
7025 done
7026 done
7027 IFS=$as_save_IFS
7028
7029 fi
7030 fi
7031 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7032 if test -n "$ac_ct_LIPO"; then
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7034 $as_echo "$ac_ct_LIPO" >&6; }
7035 else
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7037 $as_echo "no" >&6; }
7038 fi
7039
7040 if test "x$ac_ct_LIPO" = x; then
7041 LIPO=":"
7042 else
7043 case $cross_compiling:$ac_tool_warned in
7044 yes:)
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7047 ac_tool_warned=yes ;;
7048 esac
7049 LIPO=$ac_ct_LIPO
7050 fi
7051 else
7052 LIPO="$ac_cv_prog_LIPO"
7053 fi
7054
7055 if test -n "$ac_tool_prefix"; then
7056 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7057 set dummy ${ac_tool_prefix}otool; ac_word=$2
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7059 $as_echo_n "checking for $ac_word... " >&6; }
7060 if ${ac_cv_prog_OTOOL+:} false; then :
7061 $as_echo_n "(cached) " >&6
7062 else
7063 if test -n "$OTOOL"; then
7064 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7065 else
7066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067 for as_dir in $PATH
7068 do
7069 IFS=$as_save_IFS
7070 test -z "$as_dir" && as_dir=.
7071 for ac_exec_ext in '' $ac_executable_extensions; do
7072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7073 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7075 break 2
7076 fi
7077 done
7078 done
7079 IFS=$as_save_IFS
7080
7081 fi
7082 fi
7083 OTOOL=$ac_cv_prog_OTOOL
7084 if test -n "$OTOOL"; then
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7086 $as_echo "$OTOOL" >&6; }
7087 else
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7089 $as_echo "no" >&6; }
7090 fi
7091
7092
7093 fi
7094 if test -z "$ac_cv_prog_OTOOL"; then
7095 ac_ct_OTOOL=$OTOOL
7096 # Extract the first word of "otool", so it can be a program name with args.
7097 set dummy otool; ac_word=$2
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7099 $as_echo_n "checking for $ac_word... " >&6; }
7100 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7101 $as_echo_n "(cached) " >&6
7102 else
7103 if test -n "$ac_ct_OTOOL"; then
7104 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7105 else
7106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107 for as_dir in $PATH
7108 do
7109 IFS=$as_save_IFS
7110 test -z "$as_dir" && as_dir=.
7111 for ac_exec_ext in '' $ac_executable_extensions; do
7112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7113 ac_cv_prog_ac_ct_OTOOL="otool"
7114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7115 break 2
7116 fi
7117 done
7118 done
7119 IFS=$as_save_IFS
7120
7121 fi
7122 fi
7123 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7124 if test -n "$ac_ct_OTOOL"; then
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7126 $as_echo "$ac_ct_OTOOL" >&6; }
7127 else
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7129 $as_echo "no" >&6; }
7130 fi
7131
7132 if test "x$ac_ct_OTOOL" = x; then
7133 OTOOL=":"
7134 else
7135 case $cross_compiling:$ac_tool_warned in
7136 yes:)
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7139 ac_tool_warned=yes ;;
7140 esac
7141 OTOOL=$ac_ct_OTOOL
7142 fi
7143 else
7144 OTOOL="$ac_cv_prog_OTOOL"
7145 fi
7146
7147 if test -n "$ac_tool_prefix"; then
7148 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7149 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7151 $as_echo_n "checking for $ac_word... " >&6; }
7152 if ${ac_cv_prog_OTOOL64+:} false; then :
7153 $as_echo_n "(cached) " >&6
7154 else
7155 if test -n "$OTOOL64"; then
7156 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7157 else
7158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159 for as_dir in $PATH
7160 do
7161 IFS=$as_save_IFS
7162 test -z "$as_dir" && as_dir=.
7163 for ac_exec_ext in '' $ac_executable_extensions; do
7164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7165 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7167 break 2
7168 fi
7169 done
7170 done
7171 IFS=$as_save_IFS
7172
7173 fi
7174 fi
7175 OTOOL64=$ac_cv_prog_OTOOL64
7176 if test -n "$OTOOL64"; then
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7178 $as_echo "$OTOOL64" >&6; }
7179 else
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7181 $as_echo "no" >&6; }
7182 fi
7183
7184
7185 fi
7186 if test -z "$ac_cv_prog_OTOOL64"; then
7187 ac_ct_OTOOL64=$OTOOL64
7188 # Extract the first word of "otool64", so it can be a program name with args.
7189 set dummy otool64; ac_word=$2
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7191 $as_echo_n "checking for $ac_word... " >&6; }
7192 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7193 $as_echo_n "(cached) " >&6
7194 else
7195 if test -n "$ac_ct_OTOOL64"; then
7196 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7197 else
7198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199 for as_dir in $PATH
7200 do
7201 IFS=$as_save_IFS
7202 test -z "$as_dir" && as_dir=.
7203 for ac_exec_ext in '' $ac_executable_extensions; do
7204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7205 ac_cv_prog_ac_ct_OTOOL64="otool64"
7206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7207 break 2
7208 fi
7209 done
7210 done
7211 IFS=$as_save_IFS
7212
7213 fi
7214 fi
7215 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7216 if test -n "$ac_ct_OTOOL64"; then
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7218 $as_echo "$ac_ct_OTOOL64" >&6; }
7219 else
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7221 $as_echo "no" >&6; }
7222 fi
7223
7224 if test "x$ac_ct_OTOOL64" = x; then
7225 OTOOL64=":"
7226 else
7227 case $cross_compiling:$ac_tool_warned in
7228 yes:)
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7231 ac_tool_warned=yes ;;
7232 esac
7233 OTOOL64=$ac_ct_OTOOL64
7234 fi
7235 else
7236 OTOOL64="$ac_cv_prog_OTOOL64"
7237 fi
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7266 $as_echo_n "checking for -single_module linker flag... " >&6; }
7267 if ${lt_cv_apple_cc_single_mod+:} false; then :
7268 $as_echo_n "(cached) " >&6
7269 else
7270 lt_cv_apple_cc_single_mod=no
7271 if test -z "$LT_MULTI_MODULE"; then
7272 # By default we will add the -single_module flag. You can override
7273 # by either setting the environment variable LT_MULTI_MODULE
7274 # non-empty at configure time, or by adding -multi_module to the
7275 # link flags.
7276 rm -rf libconftest.dylib*
7277 echo "int foo(void){return 1;}" > conftest.c
7278 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7279 -dynamiclib -Wl,-single_module conftest.c" >&5
7280 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7281 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7282 _lt_result=$?
7283 # If there is a non-empty error log, and "single_module"
7284 # appears in it, assume the flag caused a linker warning
7285 if test -s conftest.err && $GREP single_module conftest.err; then
7286 cat conftest.err >&5
7287 # Otherwise, if the output was created with a 0 exit code from
7288 # the compiler, it worked.
7289 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7290 lt_cv_apple_cc_single_mod=yes
7291 else
7292 cat conftest.err >&5
7293 fi
7294 rm -rf libconftest.dylib*
7295 rm -f conftest.*
7296 fi
7297 fi
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7299 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7300
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7302 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7303 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7304 $as_echo_n "(cached) " >&6
7305 else
7306 lt_cv_ld_exported_symbols_list=no
7307 save_LDFLAGS=$LDFLAGS
7308 echo "_main" > conftest.sym
7309 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7311 /* end confdefs.h. */
7312
7313 int
7314 main ()
7315 {
7316
7317 ;
7318 return 0;
7319 }
7320 _ACEOF
7321 if ac_fn_c_try_link "$LINENO"; then :
7322 lt_cv_ld_exported_symbols_list=yes
7323 else
7324 lt_cv_ld_exported_symbols_list=no
7325 fi
7326 rm -f core conftest.err conftest.$ac_objext \
7327 conftest$ac_exeext conftest.$ac_ext
7328 LDFLAGS=$save_LDFLAGS
7329
7330 fi
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7332 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7333
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7335 $as_echo_n "checking for -force_load linker flag... " >&6; }
7336 if ${lt_cv_ld_force_load+:} false; then :
7337 $as_echo_n "(cached) " >&6
7338 else
7339 lt_cv_ld_force_load=no
7340 cat > conftest.c << _LT_EOF
7341 int forced_loaded() { return 2;}
7342 _LT_EOF
7343 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7344 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7345 echo "$AR cru libconftest.a conftest.o" >&5
7346 $AR cru libconftest.a conftest.o 2>&5
7347 echo "$RANLIB libconftest.a" >&5
7348 $RANLIB libconftest.a 2>&5
7349 cat > conftest.c << _LT_EOF
7350 int main() { return 0;}
7351 _LT_EOF
7352 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7353 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7354 _lt_result=$?
7355 if test -s conftest.err && $GREP force_load conftest.err; then
7356 cat conftest.err >&5
7357 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7358 lt_cv_ld_force_load=yes
7359 else
7360 cat conftest.err >&5
7361 fi
7362 rm -f conftest.err libconftest.a conftest conftest.c
7363 rm -rf conftest.dSYM
7364
7365 fi
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7367 $as_echo "$lt_cv_ld_force_load" >&6; }
7368 case $host_os in
7369 rhapsody* | darwin1.[012])
7370 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7371 darwin1.*)
7372 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7373 darwin*) # darwin 5.x on
7374 # if running on 10.5 or later, the deployment target defaults
7375 # to the OS version, if on x86, and 10.4, the deployment
7376 # target defaults to 10.4. Don't you love it?
7377 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7378 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7379 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7380 10.[012][,.]*)
7381 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7382 10.*)
7383 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7384 esac
7385 ;;
7386 esac
7387 if test yes = "$lt_cv_apple_cc_single_mod"; then
7388 _lt_dar_single_mod='$single_module'
7389 fi
7390 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7391 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7392 else
7393 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7394 fi
7395 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7396 _lt_dsymutil='~$DSYMUTIL $lib || :'
7397 else
7398 _lt_dsymutil=
7399 fi
7400 ;;
7401 esac
7402
7403 # func_munge_path_list VARIABLE PATH
7404 # -----------------------------------
7405 # VARIABLE is name of variable containing _space_ separated list of
7406 # directories to be munged by the contents of PATH, which is string
7407 # having a format:
7408 # "DIR[:DIR]:"
7409 # string "DIR[ DIR]" will be prepended to VARIABLE
7410 # ":DIR[:DIR]"
7411 # string "DIR[ DIR]" will be appended to VARIABLE
7412 # "DIRP[:DIRP]::[DIRA:]DIRA"
7413 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7414 # "DIRA[ DIRA]" will be appended to VARIABLE
7415 # "DIR[:DIR]"
7416 # VARIABLE will be replaced by "DIR[ DIR]"
7417 func_munge_path_list ()
7418 {
7419 case x$2 in
7420 x)
7421 ;;
7422 *:)
7423 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7424 ;;
7425 x:*)
7426 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7427 ;;
7428 *::*)
7429 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7430 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7431 ;;
7432 *)
7433 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7434 ;;
7435 esac
7436 }
7437
7438 ac_ext=c
7439 ac_cpp='$CPP $CPPFLAGS'
7440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7444 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7445 # On Suns, sometimes $CPP names a directory.
7446 if test -n "$CPP" && test -d "$CPP"; then
7447 CPP=
7448 fi
7449 if test -z "$CPP"; then
7450 if ${ac_cv_prog_CPP+:} false; then :
7451 $as_echo_n "(cached) " >&6
7452 else
7453 # Double quotes because CPP needs to be expanded
7454 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7455 do
7456 ac_preproc_ok=false
7457 for ac_c_preproc_warn_flag in '' yes
7458 do
7459 # Use a header file that comes with gcc, so configuring glibc
7460 # with a fresh cross-compiler works.
7461 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7462 # <limits.h> exists even on freestanding compilers.
7463 # On the NeXT, cc -E runs the code through the compiler's parser,
7464 # not just through cpp. "Syntax error" is here to catch this case.
7465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7466 /* end confdefs.h. */
7467 #ifdef __STDC__
7468 # include <limits.h>
7469 #else
7470 # include <assert.h>
7471 #endif
7472 Syntax error
7473 _ACEOF
7474 if ac_fn_c_try_cpp "$LINENO"; then :
7475
7476 else
7477 # Broken: fails on valid input.
7478 continue
7479 fi
7480 rm -f conftest.err conftest.i conftest.$ac_ext
7481
7482 # OK, works on sane cases. Now check whether nonexistent headers
7483 # can be detected and how.
7484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7485 /* end confdefs.h. */
7486 #include <ac_nonexistent.h>
7487 _ACEOF
7488 if ac_fn_c_try_cpp "$LINENO"; then :
7489 # Broken: success on invalid input.
7490 continue
7491 else
7492 # Passes both tests.
7493 ac_preproc_ok=:
7494 break
7495 fi
7496 rm -f conftest.err conftest.i conftest.$ac_ext
7497
7498 done
7499 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7500 rm -f conftest.i conftest.err conftest.$ac_ext
7501 if $ac_preproc_ok; then :
7502 break
7503 fi
7504
7505 done
7506 ac_cv_prog_CPP=$CPP
7507
7508 fi
7509 CPP=$ac_cv_prog_CPP
7510 else
7511 ac_cv_prog_CPP=$CPP
7512 fi
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7514 $as_echo "$CPP" >&6; }
7515 ac_preproc_ok=false
7516 for ac_c_preproc_warn_flag in '' yes
7517 do
7518 # Use a header file that comes with gcc, so configuring glibc
7519 # with a fresh cross-compiler works.
7520 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7521 # <limits.h> exists even on freestanding compilers.
7522 # On the NeXT, cc -E runs the code through the compiler's parser,
7523 # not just through cpp. "Syntax error" is here to catch this case.
7524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7525 /* end confdefs.h. */
7526 #ifdef __STDC__
7527 # include <limits.h>
7528 #else
7529 # include <assert.h>
7530 #endif
7531 Syntax error
7532 _ACEOF
7533 if ac_fn_c_try_cpp "$LINENO"; then :
7534
7535 else
7536 # Broken: fails on valid input.
7537 continue
7538 fi
7539 rm -f conftest.err conftest.i conftest.$ac_ext
7540
7541 # OK, works on sane cases. Now check whether nonexistent headers
7542 # can be detected and how.
7543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7544 /* end confdefs.h. */
7545 #include <ac_nonexistent.h>
7546 _ACEOF
7547 if ac_fn_c_try_cpp "$LINENO"; then :
7548 # Broken: success on invalid input.
7549 continue
7550 else
7551 # Passes both tests.
7552 ac_preproc_ok=:
7553 break
7554 fi
7555 rm -f conftest.err conftest.i conftest.$ac_ext
7556
7557 done
7558 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7559 rm -f conftest.i conftest.err conftest.$ac_ext
7560 if $ac_preproc_ok; then :
7561
7562 else
7563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7565 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7566 See \`config.log' for more details" "$LINENO" 5; }
7567 fi
7568
7569 ac_ext=c
7570 ac_cpp='$CPP $CPPFLAGS'
7571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7574
7575
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7577 $as_echo_n "checking for ANSI C header files... " >&6; }
7578 if ${ac_cv_header_stdc+:} false; then :
7579 $as_echo_n "(cached) " >&6
7580 else
7581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7582 /* end confdefs.h. */
7583 #include <stdlib.h>
7584 #include <stdarg.h>
7585 #include <string.h>
7586 #include <float.h>
7587
7588 int
7589 main ()
7590 {
7591
7592 ;
7593 return 0;
7594 }
7595 _ACEOF
7596 if ac_fn_c_try_compile "$LINENO"; then :
7597 ac_cv_header_stdc=yes
7598 else
7599 ac_cv_header_stdc=no
7600 fi
7601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7602
7603 if test $ac_cv_header_stdc = yes; then
7604 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7606 /* end confdefs.h. */
7607 #include <string.h>
7608
7609 _ACEOF
7610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7611 $EGREP "memchr" >/dev/null 2>&1; then :
7612
7613 else
7614 ac_cv_header_stdc=no
7615 fi
7616 rm -f conftest*
7617
7618 fi
7619
7620 if test $ac_cv_header_stdc = yes; then
7621 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7623 /* end confdefs.h. */
7624 #include <stdlib.h>
7625
7626 _ACEOF
7627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7628 $EGREP "free" >/dev/null 2>&1; then :
7629
7630 else
7631 ac_cv_header_stdc=no
7632 fi
7633 rm -f conftest*
7634
7635 fi
7636
7637 if test $ac_cv_header_stdc = yes; then
7638 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7639 if test "$cross_compiling" = yes; then :
7640 :
7641 else
7642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7643 /* end confdefs.h. */
7644 #include <ctype.h>
7645 #include <stdlib.h>
7646 #if ((' ' & 0x0FF) == 0x020)
7647 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7648 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7649 #else
7650 # define ISLOWER(c) \
7651 (('a' <= (c) && (c) <= 'i') \
7652 || ('j' <= (c) && (c) <= 'r') \
7653 || ('s' <= (c) && (c) <= 'z'))
7654 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7655 #endif
7656
7657 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7658 int
7659 main ()
7660 {
7661 int i;
7662 for (i = 0; i < 256; i++)
7663 if (XOR (islower (i), ISLOWER (i))
7664 || toupper (i) != TOUPPER (i))
7665 return 2;
7666 return 0;
7667 }
7668 _ACEOF
7669 if ac_fn_c_try_run "$LINENO"; then :
7670
7671 else
7672 ac_cv_header_stdc=no
7673 fi
7674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7675 conftest.$ac_objext conftest.beam conftest.$ac_ext
7676 fi
7677
7678 fi
7679 fi
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7681 $as_echo "$ac_cv_header_stdc" >&6; }
7682 if test $ac_cv_header_stdc = yes; then
7683
7684 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7685
7686 fi
7687
7688 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7689 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7690 inttypes.h stdint.h unistd.h
7691 do :
7692 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7693 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7694 "
7695 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7696 cat >>confdefs.h <<_ACEOF
7697 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7698 _ACEOF
7699
7700 fi
7701
7702 done
7703
7704
7705 for ac_header in dlfcn.h
7706 do :
7707 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7708 "
7709 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7710 cat >>confdefs.h <<_ACEOF
7711 #define HAVE_DLFCN_H 1
7712 _ACEOF
7713
7714 fi
7715
7716 done
7717
7718
7719
7720
7721
7722 # Set options
7723
7724
7725
7726 enable_dlopen=no
7727
7728
7729 enable_win32_dll=no
7730
7731
7732 # Check whether --enable-shared was given.
7733 if test "${enable_shared+set}" = set; then :
7734 enableval=$enable_shared; p=${PACKAGE-default}
7735 case $enableval in
7736 yes) enable_shared=yes ;;
7737 no) enable_shared=no ;;
7738 *)
7739 enable_shared=no
7740 # Look at the argument we got. We use all the common list separators.
7741 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7742 for pkg in $enableval; do
7743 IFS=$lt_save_ifs
7744 if test "X$pkg" = "X$p"; then
7745 enable_shared=yes
7746 fi
7747 done
7748 IFS=$lt_save_ifs
7749 ;;
7750 esac
7751 else
7752 enable_shared=yes
7753 fi
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763 # Check whether --enable-static was given.
7764 if test "${enable_static+set}" = set; then :
7765 enableval=$enable_static; p=${PACKAGE-default}
7766 case $enableval in
7767 yes) enable_static=yes ;;
7768 no) enable_static=no ;;
7769 *)
7770 enable_static=no
7771 # Look at the argument we got. We use all the common list separators.
7772 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7773 for pkg in $enableval; do
7774 IFS=$lt_save_ifs
7775 if test "X$pkg" = "X$p"; then
7776 enable_static=yes
7777 fi
7778 done
7779 IFS=$lt_save_ifs
7780 ;;
7781 esac
7782 else
7783 enable_static=yes
7784 fi
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795 # Check whether --with-pic was given.
7796 if test "${with_pic+set}" = set; then :
7797 withval=$with_pic; lt_p=${PACKAGE-default}
7798 case $withval in
7799 yes|no) pic_mode=$withval ;;
7800 *)
7801 pic_mode=default
7802 # Look at the argument we got. We use all the common list separators.
7803 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7804 for lt_pkg in $withval; do
7805 IFS=$lt_save_ifs
7806 if test "X$lt_pkg" = "X$lt_p"; then
7807 pic_mode=yes
7808 fi
7809 done
7810 IFS=$lt_save_ifs
7811 ;;
7812 esac
7813 else
7814 pic_mode=default
7815 fi
7816
7817
7818
7819
7820
7821
7822
7823
7824 # Check whether --enable-fast-install was given.
7825 if test "${enable_fast_install+set}" = set; then :
7826 enableval=$enable_fast_install; p=${PACKAGE-default}
7827 case $enableval in
7828 yes) enable_fast_install=yes ;;
7829 no) enable_fast_install=no ;;
7830 *)
7831 enable_fast_install=no
7832 # Look at the argument we got. We use all the common list separators.
7833 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7834 for pkg in $enableval; do
7835 IFS=$lt_save_ifs
7836 if test "X$pkg" = "X$p"; then
7837 enable_fast_install=yes
7838 fi
7839 done
7840 IFS=$lt_save_ifs
7841 ;;
7842 esac
7843 else
7844 enable_fast_install=yes
7845 fi
7846
7847
7848
7849
7850
7851
7852
7853
7854 shared_archive_member_spec=
7855 case $host,$enable_shared in
7856 power*-*-aix[5-9]*,yes)
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7858 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7859
7860 # Check whether --with-aix-soname was given.
7861 if test "${with_aix_soname+set}" = set; then :
7862 withval=$with_aix_soname; case $withval in
7863 aix|svr4|both)
7864 ;;
7865 *)
7866 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7867 ;;
7868 esac
7869 lt_cv_with_aix_soname=$with_aix_soname
7870 else
7871 if ${lt_cv_with_aix_soname+:} false; then :
7872 $as_echo_n "(cached) " >&6
7873 else
7874 lt_cv_with_aix_soname=aix
7875 fi
7876
7877 with_aix_soname=$lt_cv_with_aix_soname
7878 fi
7879
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7881 $as_echo "$with_aix_soname" >&6; }
7882 if test aix != "$with_aix_soname"; then
7883 # For the AIX way of multilib, we name the shared archive member
7884 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7885 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7886 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7887 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7888 if test 64 = "${OBJECT_MODE-32}"; then
7889 shared_archive_member_spec=shr_64
7890 else
7891 shared_archive_member_spec=shr
7892 fi
7893 fi
7894 ;;
7895 *)
7896 with_aix_soname=aix
7897 ;;
7898 esac
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909 # This can be used to rebuild libtool when needed
7910 LIBTOOL_DEPS=$ltmain
7911
7912 # Always use our own libtool.
7913 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
7941
7942
7943
7944 test -z "$LN_S" && LN_S="ln -s"
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959 if test -n "${ZSH_VERSION+set}"; then
7960 setopt NO_GLOB_SUBST
7961 fi
7962
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7964 $as_echo_n "checking for objdir... " >&6; }
7965 if ${lt_cv_objdir+:} false; then :
7966 $as_echo_n "(cached) " >&6
7967 else
7968 rm -f .libs 2>/dev/null
7969 mkdir .libs 2>/dev/null
7970 if test -d .libs; then
7971 lt_cv_objdir=.libs
7972 else
7973 # MS-DOS does not allow filenames that begin with a dot.
7974 lt_cv_objdir=_libs
7975 fi
7976 rmdir .libs 2>/dev/null
7977 fi
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7979 $as_echo "$lt_cv_objdir" >&6; }
7980 objdir=$lt_cv_objdir
7981
7982
7983
7984
7985
7986 cat >>confdefs.h <<_ACEOF
7987 #define LT_OBJDIR "$lt_cv_objdir/"
7988 _ACEOF
7989
7990
7991
7992
7993 case $host_os in
7994 aix3*)
7995 # AIX sometimes has problems with the GCC collect2 program. For some
7996 # reason, if we set the COLLECT_NAMES environment variable, the problems
7997 # vanish in a puff of smoke.
7998 if test set != "${COLLECT_NAMES+set}"; then
7999 COLLECT_NAMES=
8000 export COLLECT_NAMES
8001 fi
8002 ;;
8003 esac
8004
8005 # Global variables:
8006 ofile=libtool
8007 can_build_shared=yes
8008
8009 # All known linkers require a '.a' archive for static linking (except MSVC,
8010 # which needs '.lib').
8011 libext=a
8012
8013 with_gnu_ld=$lt_cv_prog_gnu_ld
8014
8015 old_CC=$CC
8016 old_CFLAGS=$CFLAGS
8017
8018 # Set sane defaults for various variables
8019 test -z "$CC" && CC=cc
8020 test -z "$LTCC" && LTCC=$CC
8021 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8022 test -z "$LD" && LD=ld
8023 test -z "$ac_objext" && ac_objext=o
8024
8025 func_cc_basename $compiler
8026 cc_basename=$func_cc_basename_result
8027
8028
8029 # Only perform the check for file, if the check method requires it
8030 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8031 case $deplibs_check_method in
8032 file_magic*)
8033 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8035 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8036 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8037 $as_echo_n "(cached) " >&6
8038 else
8039 case $MAGIC_CMD in
8040 [\\/*] | ?:[\\/]*)
8041 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8042 ;;
8043 *)
8044 lt_save_MAGIC_CMD=$MAGIC_CMD
8045 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8046 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8047 for ac_dir in $ac_dummy; do
8048 IFS=$lt_save_ifs
8049 test -z "$ac_dir" && ac_dir=.
8050 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8051 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8052 if test -n "$file_magic_test_file"; then
8053 case $deplibs_check_method in
8054 "file_magic "*)
8055 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8056 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8057 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8058 $EGREP "$file_magic_regex" > /dev/null; then
8059 :
8060 else
8061 cat <<_LT_EOF 1>&2
8062
8063 *** Warning: the command libtool uses to detect shared libraries,
8064 *** $file_magic_cmd, produces output that libtool cannot recognize.
8065 *** The result is that libtool may fail to recognize shared libraries
8066 *** as such. This will affect the creation of libtool libraries that
8067 *** depend on shared libraries, but programs linked with such libtool
8068 *** libraries will work regardless of this problem. Nevertheless, you
8069 *** may want to report the problem to your system manager and/or to
8070 *** bug-libtool (at] gnu.org
8071
8072 _LT_EOF
8073 fi ;;
8074 esac
8075 fi
8076 break
8077 fi
8078 done
8079 IFS=$lt_save_ifs
8080 MAGIC_CMD=$lt_save_MAGIC_CMD
8081 ;;
8082 esac
8083 fi
8084
8085 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8086 if test -n "$MAGIC_CMD"; then
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8088 $as_echo "$MAGIC_CMD" >&6; }
8089 else
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8091 $as_echo "no" >&6; }
8092 fi
8093
8094
8095
8096
8097
8098 if test -z "$lt_cv_path_MAGIC_CMD"; then
8099 if test -n "$ac_tool_prefix"; then
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8101 $as_echo_n "checking for file... " >&6; }
8102 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8103 $as_echo_n "(cached) " >&6
8104 else
8105 case $MAGIC_CMD in
8106 [\\/*] | ?:[\\/]*)
8107 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8108 ;;
8109 *)
8110 lt_save_MAGIC_CMD=$MAGIC_CMD
8111 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8112 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8113 for ac_dir in $ac_dummy; do
8114 IFS=$lt_save_ifs
8115 test -z "$ac_dir" && ac_dir=.
8116 if test -f "$ac_dir/file"; then
8117 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8118 if test -n "$file_magic_test_file"; then
8119 case $deplibs_check_method in
8120 "file_magic "*)
8121 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8122 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8123 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8124 $EGREP "$file_magic_regex" > /dev/null; then
8125 :
8126 else
8127 cat <<_LT_EOF 1>&2
8128
8129 *** Warning: the command libtool uses to detect shared libraries,
8130 *** $file_magic_cmd, produces output that libtool cannot recognize.
8131 *** The result is that libtool may fail to recognize shared libraries
8132 *** as such. This will affect the creation of libtool libraries that
8133 *** depend on shared libraries, but programs linked with such libtool
8134 *** libraries will work regardless of this problem. Nevertheless, you
8135 *** may want to report the problem to your system manager and/or to
8136 *** bug-libtool (at] gnu.org
8137
8138 _LT_EOF
8139 fi ;;
8140 esac
8141 fi
8142 break
8143 fi
8144 done
8145 IFS=$lt_save_ifs
8146 MAGIC_CMD=$lt_save_MAGIC_CMD
8147 ;;
8148 esac
8149 fi
8150
8151 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8152 if test -n "$MAGIC_CMD"; then
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8154 $as_echo "$MAGIC_CMD" >&6; }
8155 else
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8157 $as_echo "no" >&6; }
8158 fi
8159
8160
8161 else
8162 MAGIC_CMD=:
8163 fi
8164 fi
8165
8166 fi
8167 ;;
8168 esac
8169
8170 # Use C for the default configuration in the libtool script
8171
8172 lt_save_CC=$CC
8173 ac_ext=c
8174 ac_cpp='$CPP $CPPFLAGS'
8175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8178
8179
8180 # Source file extension for C test sources.
8181 ac_ext=c
8182
8183 # Object file extension for compiled C test sources.
8184 objext=o
8185 objext=$objext
8186
8187 # Code to be used in simple compile tests
8188 lt_simple_compile_test_code="int some_variable = 0;"
8189
8190 # Code to be used in simple link tests
8191 lt_simple_link_test_code='int main(){return(0);}'
8192
8193
8194
8195
8196
8197
8198
8199 # If no C compiler was specified, use CC.
8200 LTCC=${LTCC-"$CC"}
8201
8202 # If no C compiler flags were specified, use CFLAGS.
8203 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8204
8205 # Allow CC to be a program name with arguments.
8206 compiler=$CC
8207
8208 # Save the default compiler, since it gets overwritten when the other
8209 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8210 compiler_DEFAULT=$CC
8211
8212 # save warnings/boilerplate of simple test code
8213 ac_outfile=conftest.$ac_objext
8214 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8215 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8216 _lt_compiler_boilerplate=`cat conftest.err`
8217 $RM conftest*
8218
8219 ac_outfile=conftest.$ac_objext
8220 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8221 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8222 _lt_linker_boilerplate=`cat conftest.err`
8223 $RM -r conftest*
8224
8225
8226 if test -n "$compiler"; then
8227
8228 lt_prog_compiler_no_builtin_flag=
8229
8230 if test yes = "$GCC"; then
8231 case $cc_basename in
8232 nvcc*)
8233 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8234 *)
8235 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8236 esac
8237
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8239 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8240 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8241 $as_echo_n "(cached) " >&6
8242 else
8243 lt_cv_prog_compiler_rtti_exceptions=no
8244 ac_outfile=conftest.$ac_objext
8245 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8246 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8247 # Insert the option either (1) after the last *FLAGS variable, or
8248 # (2) before a word containing "conftest.", or (3) at the end.
8249 # Note that $ac_compile itself does not contain backslashes and begins
8250 # with a dollar sign (not a hyphen), so the echo should work correctly.
8251 # The option is referenced via a variable to avoid confusing sed.
8252 lt_compile=`echo "$ac_compile" | $SED \
8253 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8254 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8255 -e 's:$: $lt_compiler_flag:'`
8256 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8257 (eval "$lt_compile" 2>conftest.err)
8258 ac_status=$?
8259 cat conftest.err >&5
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 if (exit $ac_status) && test -s "$ac_outfile"; then
8262 # The compiler can only warn and ignore the option if not recognized
8263 # So say no if there are warnings other than the usual output.
8264 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8265 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8266 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8267 lt_cv_prog_compiler_rtti_exceptions=yes
8268 fi
8269 fi
8270 $RM conftest*
8271
8272 fi
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8274 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8275
8276 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8277 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8278 else
8279 :
8280 fi
8281
8282 fi
8283
8284
8285
8286
8287
8288
8289 lt_prog_compiler_wl=
8290 lt_prog_compiler_pic=
8291 lt_prog_compiler_static=
8292
8293
8294 if test yes = "$GCC"; then
8295 lt_prog_compiler_wl='-Wl,'
8296 lt_prog_compiler_static='-static'
8297
8298 case $host_os in
8299 aix*)
8300 # All AIX code is PIC.
8301 if test ia64 = "$host_cpu"; then
8302 # AIX 5 now supports IA64 processor
8303 lt_prog_compiler_static='-Bstatic'
8304 fi
8305 lt_prog_compiler_pic='-fPIC'
8306 ;;
8307
8308 amigaos*)
8309 case $host_cpu in
8310 powerpc)
8311 # see comment about AmigaOS4 .so support
8312 lt_prog_compiler_pic='-fPIC'
8313 ;;
8314 m68k)
8315 # FIXME: we need at least 68020 code to build shared libraries, but
8316 # adding the '-m68020' flag to GCC prevents building anything better,
8317 # like '-m68040'.
8318 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8319 ;;
8320 esac
8321 ;;
8322
8323 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8324 # PIC is the default for these OSes.
8325 ;;
8326
8327 mingw* | cygwin* | pw32* | os2* | cegcc*)
8328 # This hack is so that the source file can tell whether it is being
8329 # built for inclusion in a dll (and should export symbols for example).
8330 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8331 # (--disable-auto-import) libraries
8332 lt_prog_compiler_pic='-DDLL_EXPORT'
8333 case $host_os in
8334 os2*)
8335 lt_prog_compiler_static='$wl-static'
8336 ;;
8337 esac
8338 ;;
8339
8340 darwin* | rhapsody*)
8341 # PIC is the default on this platform
8342 # Common symbols not allowed in MH_DYLIB files
8343 lt_prog_compiler_pic='-fno-common'
8344 ;;
8345
8346 haiku*)
8347 # PIC is the default for Haiku.
8348 # The "-static" flag exists, but is broken.
8349 lt_prog_compiler_static=
8350 ;;
8351
8352 hpux*)
8353 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8354 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8355 # sets the default TLS model and affects inlining.
8356 case $host_cpu in
8357 hppa*64*)
8358 # +Z the default
8359 ;;
8360 *)
8361 lt_prog_compiler_pic='-fPIC'
8362 ;;
8363 esac
8364 ;;
8365
8366 interix[3-9]*)
8367 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8368 # Instead, we relocate shared libraries at runtime.
8369 ;;
8370
8371 msdosdjgpp*)
8372 # Just because we use GCC doesn't mean we suddenly get shared libraries
8373 # on systems that don't support them.
8374 lt_prog_compiler_can_build_shared=no
8375 enable_shared=no
8376 ;;
8377
8378 *nto* | *qnx*)
8379 # QNX uses GNU C++, but need to define -shared option too, otherwise
8380 # it will coredump.
8381 lt_prog_compiler_pic='-fPIC -shared'
8382 ;;
8383
8384 sysv4*MP*)
8385 if test -d /usr/nec; then
8386 lt_prog_compiler_pic=-Kconform_pic
8387 fi
8388 ;;
8389
8390 *)
8391 lt_prog_compiler_pic='-fPIC'
8392 ;;
8393 esac
8394
8395 case $cc_basename in
8396 nvcc*) # Cuda Compiler Driver 2.2
8397 lt_prog_compiler_wl='-Xlinker '
8398 if test -n "$lt_prog_compiler_pic"; then
8399 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8400 fi
8401 ;;
8402 esac
8403 else
8404 # PORTME Check for flag to pass linker flags through the system compiler.
8405 case $host_os in
8406 aix*)
8407 lt_prog_compiler_wl='-Wl,'
8408 if test ia64 = "$host_cpu"; then
8409 # AIX 5 now supports IA64 processor
8410 lt_prog_compiler_static='-Bstatic'
8411 else
8412 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8413 fi
8414 ;;
8415
8416 darwin* | rhapsody*)
8417 # PIC is the default on this platform
8418 # Common symbols not allowed in MH_DYLIB files
8419 lt_prog_compiler_pic='-fno-common'
8420 case $cc_basename in
8421 nagfor*)
8422 # NAG Fortran compiler
8423 lt_prog_compiler_wl='-Wl,-Wl,,'
8424 lt_prog_compiler_pic='-PIC'
8425 lt_prog_compiler_static='-Bstatic'
8426 ;;
8427 esac
8428 ;;
8429
8430 mingw* | cygwin* | pw32* | os2* | cegcc*)
8431 # This hack is so that the source file can tell whether it is being
8432 # built for inclusion in a dll (and should export symbols for example).
8433 lt_prog_compiler_pic='-DDLL_EXPORT'
8434 case $host_os in
8435 os2*)
8436 lt_prog_compiler_static='$wl-static'
8437 ;;
8438 esac
8439 ;;
8440
8441 hpux9* | hpux10* | hpux11*)
8442 lt_prog_compiler_wl='-Wl,'
8443 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8444 # not for PA HP-UX.
8445 case $host_cpu in
8446 hppa*64*|ia64*)
8447 # +Z the default
8448 ;;
8449 *)
8450 lt_prog_compiler_pic='+Z'
8451 ;;
8452 esac
8453 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8454 lt_prog_compiler_static='$wl-a ${wl}archive'
8455 ;;
8456
8457 irix5* | irix6* | nonstopux*)
8458 lt_prog_compiler_wl='-Wl,'
8459 # PIC (with -KPIC) is the default.
8460 lt_prog_compiler_static='-non_shared'
8461 ;;
8462
8463 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8464 case $cc_basename in
8465 # old Intel for x86_64, which still supported -KPIC.
8466 ecc*)
8467 lt_prog_compiler_wl='-Wl,'
8468 lt_prog_compiler_pic='-KPIC'
8469 lt_prog_compiler_static='-static'
8470 ;;
8471 # icc used to be incompatible with GCC.
8472 # ICC 10 doesn't accept -KPIC any more.
8473 icc* | ifort*)
8474 lt_prog_compiler_wl='-Wl,'
8475 lt_prog_compiler_pic='-fPIC'
8476 lt_prog_compiler_static='-static'
8477 ;;
8478 # Lahey Fortran 8.1.
8479 lf95*)
8480 lt_prog_compiler_wl='-Wl,'
8481 lt_prog_compiler_pic='--shared'
8482 lt_prog_compiler_static='--static'
8483 ;;
8484 nagfor*)
8485 # NAG Fortran compiler
8486 lt_prog_compiler_wl='-Wl,-Wl,,'
8487 lt_prog_compiler_pic='-PIC'
8488 lt_prog_compiler_static='-Bstatic'
8489 ;;
8490 tcc*)
8491 # Fabrice Bellard et al's Tiny C Compiler
8492 lt_prog_compiler_wl='-Wl,'
8493 lt_prog_compiler_pic='-fPIC'
8494 lt_prog_compiler_static='-static'
8495 ;;
8496 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8497 # Portland Group compilers (*not* the Pentium gcc compiler,
8498 # which looks to be a dead project)
8499 lt_prog_compiler_wl='-Wl,'
8500 lt_prog_compiler_pic='-fpic'
8501 lt_prog_compiler_static='-Bstatic'
8502 ;;
8503 ccc*)
8504 lt_prog_compiler_wl='-Wl,'
8505 # All Alpha code is PIC.
8506 lt_prog_compiler_static='-non_shared'
8507 ;;
8508 xl* | bgxl* | bgf* | mpixl*)
8509 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8510 lt_prog_compiler_wl='-Wl,'
8511 lt_prog_compiler_pic='-qpic'
8512 lt_prog_compiler_static='-qstaticlink'
8513 ;;
8514 *)
8515 case `$CC -V 2>&1 | sed 5q` in
8516 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8517 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8518 lt_prog_compiler_pic='-KPIC'
8519 lt_prog_compiler_static='-Bstatic'
8520 lt_prog_compiler_wl=''
8521 ;;
8522 *Sun\ F* | *Sun*Fortran*)
8523 lt_prog_compiler_pic='-KPIC'
8524 lt_prog_compiler_static='-Bstatic'
8525 lt_prog_compiler_wl='-Qoption ld '
8526 ;;
8527 *Sun\ C*)
8528 # Sun C 5.9
8529 lt_prog_compiler_pic='-KPIC'
8530 lt_prog_compiler_static='-Bstatic'
8531 lt_prog_compiler_wl='-Wl,'
8532 ;;
8533 *Intel*\ [CF]*Compiler*)
8534 lt_prog_compiler_wl='-Wl,'
8535 lt_prog_compiler_pic='-fPIC'
8536 lt_prog_compiler_static='-static'
8537 ;;
8538 *Portland\ Group*)
8539 lt_prog_compiler_wl='-Wl,'
8540 lt_prog_compiler_pic='-fpic'
8541 lt_prog_compiler_static='-Bstatic'
8542 ;;
8543 esac
8544 ;;
8545 esac
8546 ;;
8547
8548 newsos6)
8549 lt_prog_compiler_pic='-KPIC'
8550 lt_prog_compiler_static='-Bstatic'
8551 ;;
8552
8553 *nto* | *qnx*)
8554 # QNX uses GNU C++, but need to define -shared option too, otherwise
8555 # it will coredump.
8556 lt_prog_compiler_pic='-fPIC -shared'
8557 ;;
8558
8559 osf3* | osf4* | osf5*)
8560 lt_prog_compiler_wl='-Wl,'
8561 # All OSF/1 code is PIC.
8562 lt_prog_compiler_static='-non_shared'
8563 ;;
8564
8565 rdos*)
8566 lt_prog_compiler_static='-non_shared'
8567 ;;
8568
8569 solaris*)
8570 lt_prog_compiler_pic='-KPIC'
8571 lt_prog_compiler_static='-Bstatic'
8572 case $cc_basename in
8573 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8574 lt_prog_compiler_wl='-Qoption ld ';;
8575 *)
8576 lt_prog_compiler_wl='-Wl,';;
8577 esac
8578 ;;
8579
8580 sunos4*)
8581 lt_prog_compiler_wl='-Qoption ld '
8582 lt_prog_compiler_pic='-PIC'
8583 lt_prog_compiler_static='-Bstatic'
8584 ;;
8585
8586 sysv4 | sysv4.2uw2* | sysv4.3*)
8587 lt_prog_compiler_wl='-Wl,'
8588 lt_prog_compiler_pic='-KPIC'
8589 lt_prog_compiler_static='-Bstatic'
8590 ;;
8591
8592 sysv4*MP*)
8593 if test -d /usr/nec; then
8594 lt_prog_compiler_pic='-Kconform_pic'
8595 lt_prog_compiler_static='-Bstatic'
8596 fi
8597 ;;
8598
8599 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8600 lt_prog_compiler_wl='-Wl,'
8601 lt_prog_compiler_pic='-KPIC'
8602 lt_prog_compiler_static='-Bstatic'
8603 ;;
8604
8605 unicos*)
8606 lt_prog_compiler_wl='-Wl,'
8607 lt_prog_compiler_can_build_shared=no
8608 ;;
8609
8610 uts4*)
8611 lt_prog_compiler_pic='-pic'
8612 lt_prog_compiler_static='-Bstatic'
8613 ;;
8614
8615 *)
8616 lt_prog_compiler_can_build_shared=no
8617 ;;
8618 esac
8619 fi
8620
8621 case $host_os in
8622 # For platforms that do not support PIC, -DPIC is meaningless:
8623 *djgpp*)
8624 lt_prog_compiler_pic=
8625 ;;
8626 *)
8627 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8628 ;;
8629 esac
8630
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8632 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8633 if ${lt_cv_prog_compiler_pic+:} false; then :
8634 $as_echo_n "(cached) " >&6
8635 else
8636 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8637 fi
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8639 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8640 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8641
8642 #
8643 # Check to make sure the PIC flag actually works.
8644 #
8645 if test -n "$lt_prog_compiler_pic"; then
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8647 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8648 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8649 $as_echo_n "(cached) " >&6
8650 else
8651 lt_cv_prog_compiler_pic_works=no
8652 ac_outfile=conftest.$ac_objext
8653 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8654 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8655 # Insert the option either (1) after the last *FLAGS variable, or
8656 # (2) before a word containing "conftest.", or (3) at the end.
8657 # Note that $ac_compile itself does not contain backslashes and begins
8658 # with a dollar sign (not a hyphen), so the echo should work correctly.
8659 # The option is referenced via a variable to avoid confusing sed.
8660 lt_compile=`echo "$ac_compile" | $SED \
8661 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8662 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8663 -e 's:$: $lt_compiler_flag:'`
8664 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8665 (eval "$lt_compile" 2>conftest.err)
8666 ac_status=$?
8667 cat conftest.err >&5
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 if (exit $ac_status) && test -s "$ac_outfile"; then
8670 # The compiler can only warn and ignore the option if not recognized
8671 # So say no if there are warnings other than the usual output.
8672 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8673 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8674 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8675 lt_cv_prog_compiler_pic_works=yes
8676 fi
8677 fi
8678 $RM conftest*
8679
8680 fi
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8682 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8683
8684 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8685 case $lt_prog_compiler_pic in
8686 "" | " "*) ;;
8687 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8688 esac
8689 else
8690 lt_prog_compiler_pic=
8691 lt_prog_compiler_can_build_shared=no
8692 fi
8693
8694 fi
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706 #
8707 # Check to make sure the static flag actually works.
8708 #
8709 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8711 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8712 if ${lt_cv_prog_compiler_static_works+:} false; then :
8713 $as_echo_n "(cached) " >&6
8714 else
8715 lt_cv_prog_compiler_static_works=no
8716 save_LDFLAGS=$LDFLAGS
8717 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8718 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8719 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8720 # The linker can only warn and ignore the option if not recognized
8721 # So say no if there are warnings
8722 if test -s conftest.err; then
8723 # Append any errors to the config.log.
8724 cat conftest.err 1>&5
8725 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8726 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8727 if diff conftest.exp conftest.er2 >/dev/null; then
8728 lt_cv_prog_compiler_static_works=yes
8729 fi
8730 else
8731 lt_cv_prog_compiler_static_works=yes
8732 fi
8733 fi
8734 $RM -r conftest*
8735 LDFLAGS=$save_LDFLAGS
8736
8737 fi
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8739 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8740
8741 if test yes = "$lt_cv_prog_compiler_static_works"; then
8742 :
8743 else
8744 lt_prog_compiler_static=
8745 fi
8746
8747
8748
8749
8750
8751
8752
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8754 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8755 if ${lt_cv_prog_compiler_c_o+:} false; then :
8756 $as_echo_n "(cached) " >&6
8757 else
8758 lt_cv_prog_compiler_c_o=no
8759 $RM -r conftest 2>/dev/null
8760 mkdir conftest
8761 cd conftest
8762 mkdir out
8763 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8764
8765 lt_compiler_flag="-o out/conftest2.$ac_objext"
8766 # Insert the option either (1) after the last *FLAGS variable, or
8767 # (2) before a word containing "conftest.", or (3) at the end.
8768 # Note that $ac_compile itself does not contain backslashes and begins
8769 # with a dollar sign (not a hyphen), so the echo should work correctly.
8770 lt_compile=`echo "$ac_compile" | $SED \
8771 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8772 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8773 -e 's:$: $lt_compiler_flag:'`
8774 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8775 (eval "$lt_compile" 2>out/conftest.err)
8776 ac_status=$?
8777 cat out/conftest.err >&5
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8780 then
8781 # The compiler can only warn and ignore the option if not recognized
8782 # So say no if there are warnings
8783 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8784 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8785 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8786 lt_cv_prog_compiler_c_o=yes
8787 fi
8788 fi
8789 chmod u+w . 2>&5
8790 $RM conftest*
8791 # SGI C++ compiler will create directory out/ii_files/ for
8792 # template instantiation
8793 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8794 $RM out/* && rmdir out
8795 cd ..
8796 $RM -r conftest
8797 $RM conftest*
8798
8799 fi
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8801 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8802
8803
8804
8805
8806
8807
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8809 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8810 if ${lt_cv_prog_compiler_c_o+:} false; then :
8811 $as_echo_n "(cached) " >&6
8812 else
8813 lt_cv_prog_compiler_c_o=no
8814 $RM -r conftest 2>/dev/null
8815 mkdir conftest
8816 cd conftest
8817 mkdir out
8818 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8819
8820 lt_compiler_flag="-o out/conftest2.$ac_objext"
8821 # Insert the option either (1) after the last *FLAGS variable, or
8822 # (2) before a word containing "conftest.", or (3) at the end.
8823 # Note that $ac_compile itself does not contain backslashes and begins
8824 # with a dollar sign (not a hyphen), so the echo should work correctly.
8825 lt_compile=`echo "$ac_compile" | $SED \
8826 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8827 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8828 -e 's:$: $lt_compiler_flag:'`
8829 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8830 (eval "$lt_compile" 2>out/conftest.err)
8831 ac_status=$?
8832 cat out/conftest.err >&5
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8835 then
8836 # The compiler can only warn and ignore the option if not recognized
8837 # So say no if there are warnings
8838 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8839 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8840 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8841 lt_cv_prog_compiler_c_o=yes
8842 fi
8843 fi
8844 chmod u+w . 2>&5
8845 $RM conftest*
8846 # SGI C++ compiler will create directory out/ii_files/ for
8847 # template instantiation
8848 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8849 $RM out/* && rmdir out
8850 cd ..
8851 $RM -r conftest
8852 $RM conftest*
8853
8854 fi
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8856 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8857
8858
8859
8860
8861 hard_links=nottested
8862 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8863 # do not overwrite the value of need_locks provided by the user
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8865 $as_echo_n "checking if we can lock with hard links... " >&6; }
8866 hard_links=yes
8867 $RM conftest*
8868 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8869 touch conftest.a
8870 ln conftest.a conftest.b 2>&5 || hard_links=no
8871 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8873 $as_echo "$hard_links" >&6; }
8874 if test no = "$hard_links"; then
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8876 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8877 need_locks=warn
8878 fi
8879 else
8880 need_locks=no
8881 fi
8882
8883
8884
8885
8886
8887
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8889 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8890
8891 runpath_var=
8892 allow_undefined_flag=
8893 always_export_symbols=no
8894 archive_cmds=
8895 archive_expsym_cmds=
8896 compiler_needs_object=no
8897 enable_shared_with_static_runtimes=no
8898 export_dynamic_flag_spec=
8899 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8900 hardcode_automatic=no
8901 hardcode_direct=no
8902 hardcode_direct_absolute=no
8903 hardcode_libdir_flag_spec=
8904 hardcode_libdir_separator=
8905 hardcode_minus_L=no
8906 hardcode_shlibpath_var=unsupported
8907 inherit_rpath=no
8908 link_all_deplibs=unknown
8909 module_cmds=
8910 module_expsym_cmds=
8911 old_archive_from_new_cmds=
8912 old_archive_from_expsyms_cmds=
8913 thread_safe_flag_spec=
8914 whole_archive_flag_spec=
8915 # include_expsyms should be a list of space-separated symbols to be *always*
8916 # included in the symbol list
8917 include_expsyms=
8918 # exclude_expsyms can be an extended regexp of symbols to exclude
8919 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8920 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8921 # as well as any symbol that contains 'd'.
8922 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8923 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8924 # platforms (ab)use it in PIC code, but their linkers get confused if
8925 # the symbol is explicitly referenced. Since portable code cannot
8926 # rely on this symbol name, it's probably fine to never include it in
8927 # preloaded symbol tables.
8928 # Exclude shared library initialization/finalization symbols.
8929 extract_expsyms_cmds=
8930
8931 case $host_os in
8932 cygwin* | mingw* | pw32* | cegcc*)
8933 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8934 # When not using gcc, we currently assume that we are using
8935 # Microsoft Visual C++.
8936 if test yes != "$GCC"; then
8937 with_gnu_ld=no
8938 fi
8939 ;;
8940 interix*)
8941 # we just hope/assume this is gcc and not c89 (= MSVC++)
8942 with_gnu_ld=yes
8943 ;;
8944 openbsd* | bitrig*)
8945 with_gnu_ld=no
8946 ;;
8947 esac
8948
8949 ld_shlibs=yes
8950
8951 # On some targets, GNU ld is compatible enough with the native linker
8952 # that we're better off using the native interface for both.
8953 lt_use_gnu_ld_interface=no
8954 if test yes = "$with_gnu_ld"; then
8955 case $host_os in
8956 aix*)
8957 # The AIX port of GNU ld has always aspired to compatibility
8958 # with the native linker. However, as the warning in the GNU ld
8959 # block says, versions before 2.19.5* couldn't really create working
8960 # shared libraries, regardless of the interface used.
8961 case `$LD -v 2>&1` in
8962 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8963 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8964 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8965 *)
8966 lt_use_gnu_ld_interface=yes
8967 ;;
8968 esac
8969 ;;
8970 *)
8971 lt_use_gnu_ld_interface=yes
8972 ;;
8973 esac
8974 fi
8975
8976 if test yes = "$lt_use_gnu_ld_interface"; then
8977 # If archive_cmds runs LD, not CC, wlarc should be empty
8978 wlarc='$wl'
8979
8980 # Set some defaults for GNU ld with shared library support. These
8981 # are reset later if shared libraries are not supported. Putting them
8982 # here allows them to be overridden if necessary.
8983 runpath_var=LD_RUN_PATH
8984 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8985 export_dynamic_flag_spec='$wl--export-dynamic'
8986 # ancient GNU ld didn't support --whole-archive et. al.
8987 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8988 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8989 else
8990 whole_archive_flag_spec=
8991 fi
8992 supports_anon_versioning=no
8993 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8994 *GNU\ gold*) supports_anon_versioning=yes ;;
8995 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8996 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8997 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8998 *\ 2.11.*) ;; # other 2.11 versions
8999 *) supports_anon_versioning=yes ;;
9000 esac
9001
9002 # See if GNU ld supports shared libraries.
9003 case $host_os in
9004 aix[3-9]*)
9005 # On AIX/PPC, the GNU linker is very broken
9006 if test ia64 != "$host_cpu"; then
9007 ld_shlibs=no
9008 cat <<_LT_EOF 1>&2
9009
9010 *** Warning: the GNU linker, at least up to release 2.19, is reported
9011 *** to be unable to reliably create shared libraries on AIX.
9012 *** Therefore, libtool is disabling shared libraries support. If you
9013 *** really care for shared libraries, you may want to install binutils
9014 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9015 *** You will then need to restart the configuration process.
9016
9017 _LT_EOF
9018 fi
9019 ;;
9020
9021 amigaos*)
9022 case $host_cpu in
9023 powerpc)
9024 # see comment about AmigaOS4 .so support
9025 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9026 archive_expsym_cmds=''
9027 ;;
9028 m68k)
9029 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)'
9030 hardcode_libdir_flag_spec='-L$libdir'
9031 hardcode_minus_L=yes
9032 ;;
9033 esac
9034 ;;
9035
9036 beos*)
9037 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9038 allow_undefined_flag=unsupported
9039 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9040 # support --undefined. This deserves some investigation. FIXME
9041 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9042 else
9043 ld_shlibs=no
9044 fi
9045 ;;
9046
9047 cygwin* | mingw* | pw32* | cegcc*)
9048 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9049 # as there is no search path for DLLs.
9050 hardcode_libdir_flag_spec='-L$libdir'
9051 export_dynamic_flag_spec='$wl--export-all-symbols'
9052 allow_undefined_flag=unsupported
9053 always_export_symbols=no
9054 enable_shared_with_static_runtimes=yes
9055 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'
9056 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9057
9058 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9059 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9060 # If the export-symbols file already is a .def file, use it as
9061 # is; otherwise, prepend EXPORTS...
9062 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9063 cp $export_symbols $output_objdir/$soname.def;
9064 else
9065 echo EXPORTS > $output_objdir/$soname.def;
9066 cat $export_symbols >> $output_objdir/$soname.def;
9067 fi~
9068 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9069 else
9070 ld_shlibs=no
9071 fi
9072 ;;
9073
9074 haiku*)
9075 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9076 link_all_deplibs=yes
9077 ;;
9078
9079 os2*)
9080 hardcode_libdir_flag_spec='-L$libdir'
9081 hardcode_minus_L=yes
9082 allow_undefined_flag=unsupported
9083 shrext_cmds=.dll
9084 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9085 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9086 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9087 $ECHO EXPORTS >> $output_objdir/$libname.def~
9088 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9089 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9090 emximp -o $lib $output_objdir/$libname.def'
9091 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9092 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9093 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9094 $ECHO EXPORTS >> $output_objdir/$libname.def~
9095 prefix_cmds="$SED"~
9096 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9097 prefix_cmds="$prefix_cmds -e 1d";
9098 fi~
9099 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9100 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9101 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9102 emximp -o $lib $output_objdir/$libname.def'
9103 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9104 enable_shared_with_static_runtimes=yes
9105 ;;
9106
9107 interix[3-9]*)
9108 hardcode_direct=no
9109 hardcode_shlibpath_var=no
9110 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9111 export_dynamic_flag_spec='$wl-E'
9112 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9113 # Instead, shared libraries are loaded at an image base (0x10000000 by
9114 # default) and relocated if they conflict, which is a slow very memory
9115 # consuming and fragmenting process. To avoid this, we pick a random,
9116 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9117 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9118 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9119 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'
9120 ;;
9121
9122 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9123 tmp_diet=no
9124 if test linux-dietlibc = "$host_os"; then
9125 case $cc_basename in
9126 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9127 esac
9128 fi
9129 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9130 && test no = "$tmp_diet"
9131 then
9132 tmp_addflag=' $pic_flag'
9133 tmp_sharedflag='-shared'
9134 case $cc_basename,$host_cpu in
9135 pgcc*) # Portland Group C compiler
9136 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'
9137 tmp_addflag=' $pic_flag'
9138 ;;
9139 pgf77* | pgf90* | pgf95* | pgfortran*)
9140 # Portland Group f77 and f90 compilers
9141 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'
9142 tmp_addflag=' $pic_flag -Mnomain' ;;
9143 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9144 tmp_addflag=' -i_dynamic' ;;
9145 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9146 tmp_addflag=' -i_dynamic -nofor_main' ;;
9147 ifc* | ifort*) # Intel Fortran compiler
9148 tmp_addflag=' -nofor_main' ;;
9149 lf95*) # Lahey Fortran 8.1
9150 whole_archive_flag_spec=
9151 tmp_sharedflag='--shared' ;;
9152 nagfor*) # NAGFOR 5.3
9153 tmp_sharedflag='-Wl,-shared' ;;
9154 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9155 tmp_sharedflag='-qmkshrobj'
9156 tmp_addflag= ;;
9157 nvcc*) # Cuda Compiler Driver 2.2
9158 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'
9159 compiler_needs_object=yes
9160 ;;
9161 esac
9162 case `$CC -V 2>&1 | sed 5q` in
9163 *Sun\ C*) # Sun C 5.9
9164 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'
9165 compiler_needs_object=yes
9166 tmp_sharedflag='-G' ;;
9167 *Sun\ F*) # Sun Fortran 8.3
9168 tmp_sharedflag='-G' ;;
9169 esac
9170 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9171
9172 if test yes = "$supports_anon_versioning"; then
9173 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9174 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9175 echo "local: *; };" >> $output_objdir/$libname.ver~
9176 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9177 fi
9178
9179 case $cc_basename in
9180 tcc*)
9181 export_dynamic_flag_spec='-rdynamic'
9182 ;;
9183 xlf* | bgf* | bgxlf* | mpixlf*)
9184 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9185 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9186 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9187 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9188 if test yes = "$supports_anon_versioning"; then
9189 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9190 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9191 echo "local: *; };" >> $output_objdir/$libname.ver~
9192 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9193 fi
9194 ;;
9195 esac
9196 else
9197 ld_shlibs=no
9198 fi
9199 ;;
9200
9201 netbsd*)
9202 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9203 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9204 wlarc=
9205 else
9206 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9207 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9208 fi
9209 ;;
9210
9211 solaris*)
9212 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9213 ld_shlibs=no
9214 cat <<_LT_EOF 1>&2
9215
9216 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9217 *** create shared libraries on Solaris systems. Therefore, libtool
9218 *** is disabling shared libraries support. We urge you to upgrade GNU
9219 *** binutils to release 2.9.1 or newer. Another option is to modify
9220 *** your PATH or compiler configuration so that the native linker is
9221 *** used, and then restart.
9222
9223 _LT_EOF
9224 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9225 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9226 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9227 else
9228 ld_shlibs=no
9229 fi
9230 ;;
9231
9232 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9233 case `$LD -v 2>&1` in
9234 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9235 ld_shlibs=no
9236 cat <<_LT_EOF 1>&2
9237
9238 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9239 *** reliably create shared libraries on SCO systems. Therefore, libtool
9240 *** is disabling shared libraries support. We urge you to upgrade GNU
9241 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9242 *** your PATH or compiler configuration so that the native linker is
9243 *** used, and then restart.
9244
9245 _LT_EOF
9246 ;;
9247 *)
9248 # For security reasons, it is highly recommended that you always
9249 # use absolute paths for naming shared libraries, and exclude the
9250 # DT_RUNPATH tag from executables and libraries. But doing so
9251 # requires that you compile everything twice, which is a pain.
9252 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9253 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9254 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9255 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9256 else
9257 ld_shlibs=no
9258 fi
9259 ;;
9260 esac
9261 ;;
9262
9263 sunos4*)
9264 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9265 wlarc=
9266 hardcode_direct=yes
9267 hardcode_shlibpath_var=no
9268 ;;
9269
9270 *)
9271 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9272 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9273 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9274 else
9275 ld_shlibs=no
9276 fi
9277 ;;
9278 esac
9279
9280 if test no = "$ld_shlibs"; then
9281 runpath_var=
9282 hardcode_libdir_flag_spec=
9283 export_dynamic_flag_spec=
9284 whole_archive_flag_spec=
9285 fi
9286 else
9287 # PORTME fill in a description of your system's linker (not GNU ld)
9288 case $host_os in
9289 aix3*)
9290 allow_undefined_flag=unsupported
9291 always_export_symbols=yes
9292 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'
9293 # Note: this linker hardcodes the directories in LIBPATH if there
9294 # are no directories specified by -L.
9295 hardcode_minus_L=yes
9296 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9297 # Neither direct hardcoding nor static linking is supported with a
9298 # broken collect2.
9299 hardcode_direct=unsupported
9300 fi
9301 ;;
9302
9303 aix[4-9]*)
9304 if test ia64 = "$host_cpu"; then
9305 # On IA64, the linker does run time linking by default, so we don't
9306 # have to do anything special.
9307 aix_use_runtimelinking=no
9308 exp_sym_flag='-Bexport'
9309 no_entry_flag=
9310 else
9311 # If we're using GNU nm, then we don't want the "-C" option.
9312 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9313 # Without the "-l" option, or with the "-B" option, AIX nm treats
9314 # weak defined symbols like other global defined symbols, whereas
9315 # GNU nm marks them as "W".
9316 # While the 'weak' keyword is ignored in the Export File, we need
9317 # it in the Import File for the 'aix-soname' feature, so we have
9318 # to replace the "-B" option with "-P" for AIX nm.
9319 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9320 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9321 else
9322 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9323 fi
9324 aix_use_runtimelinking=no
9325
9326 # Test if we are trying to use run time linking or normal
9327 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9328 # have runtime linking enabled, and use it for executables.
9329 # For shared libraries, we enable/disable runtime linking
9330 # depending on the kind of the shared library created -
9331 # when "with_aix_soname,aix_use_runtimelinking" is:
9332 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9333 # "aix,yes" lib.so shared, rtl:yes, for executables
9334 # lib.a static archive
9335 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9336 # lib.a(lib.so.V) shared, rtl:no, for executables
9337 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9338 # lib.a(lib.so.V) shared, rtl:no
9339 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9340 # lib.a static archive
9341 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9342 for ld_flag in $LDFLAGS; do
9343 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9344 aix_use_runtimelinking=yes
9345 break
9346 fi
9347 done
9348 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9349 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9350 # so we don't have lib.a shared libs to link our executables.
9351 # We have to force runtime linking in this case.
9352 aix_use_runtimelinking=yes
9353 LDFLAGS="$LDFLAGS -Wl,-brtl"
9354 fi
9355 ;;
9356 esac
9357
9358 exp_sym_flag='-bexport'
9359 no_entry_flag='-bnoentry'
9360 fi
9361
9362 # When large executables or shared objects are built, AIX ld can
9363 # have problems creating the table of contents. If linking a library
9364 # or program results in "error TOC overflow" add -mminimal-toc to
9365 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9366 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9367
9368 archive_cmds=''
9369 hardcode_direct=yes
9370 hardcode_direct_absolute=yes
9371 hardcode_libdir_separator=':'
9372 link_all_deplibs=yes
9373 file_list_spec='$wl-f,'
9374 case $with_aix_soname,$aix_use_runtimelinking in
9375 aix,*) ;; # traditional, no import file
9376 svr4,* | *,yes) # use import file
9377 # The Import File defines what to hardcode.
9378 hardcode_direct=no
9379 hardcode_direct_absolute=no
9380 ;;
9381 esac
9382
9383 if test yes = "$GCC"; then
9384 case $host_os in aix4.[012]|aix4.[012].*)
9385 # We only want to do this on AIX 4.2 and lower, the check
9386 # below for broken collect2 doesn't work under 4.3+
9387 collect2name=`$CC -print-prog-name=collect2`
9388 if test -f "$collect2name" &&
9389 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9390 then
9391 # We have reworked collect2
9392 :
9393 else
9394 # We have old collect2
9395 hardcode_direct=unsupported
9396 # It fails to find uninstalled libraries when the uninstalled
9397 # path is not listed in the libpath. Setting hardcode_minus_L
9398 # to unsupported forces relinking
9399 hardcode_minus_L=yes
9400 hardcode_libdir_flag_spec='-L$libdir'
9401 hardcode_libdir_separator=
9402 fi
9403 ;;
9404 esac
9405 shared_flag='-shared'
9406 if test yes = "$aix_use_runtimelinking"; then
9407 shared_flag="$shared_flag "'$wl-G'
9408 fi
9409 # Need to ensure runtime linking is disabled for the traditional
9410 # shared library, or the linker may eventually find shared libraries
9411 # /with/ Import File - we do not want to mix them.
9412 shared_flag_aix='-shared'
9413 shared_flag_svr4='-shared $wl-G'
9414 else
9415 # not using gcc
9416 if test ia64 = "$host_cpu"; then
9417 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9418 # chokes on -Wl,-G. The following line is correct:
9419 shared_flag='-G'
9420 else
9421 if test yes = "$aix_use_runtimelinking"; then
9422 shared_flag='$wl-G'
9423 else
9424 shared_flag='$wl-bM:SRE'
9425 fi
9426 shared_flag_aix='$wl-bM:SRE'
9427 shared_flag_svr4='$wl-G'
9428 fi
9429 fi
9430
9431 export_dynamic_flag_spec='$wl-bexpall'
9432 # It seems that -bexpall does not export symbols beginning with
9433 # underscore (_), so it is better to generate a list of symbols to export.
9434 always_export_symbols=yes
9435 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9436 # Warning - without using the other runtime loading flags (-brtl),
9437 # -berok will link without error, but may produce a broken library.
9438 allow_undefined_flag='-berok'
9439 # Determine the default libpath from the value encoded in an
9440 # empty executable.
9441 if test set = "${lt_cv_aix_libpath+set}"; then
9442 aix_libpath=$lt_cv_aix_libpath
9443 else
9444 if ${lt_cv_aix_libpath_+:} false; then :
9445 $as_echo_n "(cached) " >&6
9446 else
9447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9448 /* end confdefs.h. */
9449
9450 int
9451 main ()
9452 {
9453
9454 ;
9455 return 0;
9456 }
9457 _ACEOF
9458 if ac_fn_c_try_link "$LINENO"; then :
9459
9460 lt_aix_libpath_sed='
9461 /Import File Strings/,/^$/ {
9462 /^0/ {
9463 s/^0 *\([^ ]*\) *$/\1/
9464 p
9465 }
9466 }'
9467 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9468 # Check for a 64-bit object if we didn't find anything.
9469 if test -z "$lt_cv_aix_libpath_"; then
9470 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9471 fi
9472 fi
9473 rm -f core conftest.err conftest.$ac_objext \
9474 conftest$ac_exeext conftest.$ac_ext
9475 if test -z "$lt_cv_aix_libpath_"; then
9476 lt_cv_aix_libpath_=/usr/lib:/lib
9477 fi
9478
9479 fi
9480
9481 aix_libpath=$lt_cv_aix_libpath_
9482 fi
9483
9484 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9485 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9486 else
9487 if test ia64 = "$host_cpu"; then
9488 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9489 allow_undefined_flag="-z nodefs"
9490 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"
9491 else
9492 # Determine the default libpath from the value encoded in an
9493 # empty executable.
9494 if test set = "${lt_cv_aix_libpath+set}"; then
9495 aix_libpath=$lt_cv_aix_libpath
9496 else
9497 if ${lt_cv_aix_libpath_+:} false; then :
9498 $as_echo_n "(cached) " >&6
9499 else
9500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9501 /* end confdefs.h. */
9502
9503 int
9504 main ()
9505 {
9506
9507 ;
9508 return 0;
9509 }
9510 _ACEOF
9511 if ac_fn_c_try_link "$LINENO"; then :
9512
9513 lt_aix_libpath_sed='
9514 /Import File Strings/,/^$/ {
9515 /^0/ {
9516 s/^0 *\([^ ]*\) *$/\1/
9517 p
9518 }
9519 }'
9520 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9521 # Check for a 64-bit object if we didn't find anything.
9522 if test -z "$lt_cv_aix_libpath_"; then
9523 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9524 fi
9525 fi
9526 rm -f core conftest.err conftest.$ac_objext \
9527 conftest$ac_exeext conftest.$ac_ext
9528 if test -z "$lt_cv_aix_libpath_"; then
9529 lt_cv_aix_libpath_=/usr/lib:/lib
9530 fi
9531
9532 fi
9533
9534 aix_libpath=$lt_cv_aix_libpath_
9535 fi
9536
9537 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9538 # Warning - without using the other run time loading flags,
9539 # -berok will link without error, but may produce a broken library.
9540 no_undefined_flag=' $wl-bernotok'
9541 allow_undefined_flag=' $wl-berok'
9542 if test yes = "$with_gnu_ld"; then
9543 # We only use this code for GNU lds that support --whole-archive.
9544 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9545 else
9546 # Exported symbols can be pulled into shared objects from archives
9547 whole_archive_flag_spec='$convenience'
9548 fi
9549 archive_cmds_need_lc=yes
9550 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9551 # -brtl affects multiple linker settings, -berok does not and is overridden later
9552 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9553 if test svr4 != "$with_aix_soname"; then
9554 # This is similar to how AIX traditionally builds its shared libraries.
9555 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9556 fi
9557 if test aix != "$with_aix_soname"; then
9558 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9559 else
9560 # used by -dlpreopen to get the symbols
9561 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9562 fi
9563 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9564 fi
9565 fi
9566 ;;
9567
9568 amigaos*)
9569 case $host_cpu in
9570 powerpc)
9571 # see comment about AmigaOS4 .so support
9572 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9573 archive_expsym_cmds=''
9574 ;;
9575 m68k)
9576 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)'
9577 hardcode_libdir_flag_spec='-L$libdir'
9578 hardcode_minus_L=yes
9579 ;;
9580 esac
9581 ;;
9582
9583 bsdi[45]*)
9584 export_dynamic_flag_spec=-rdynamic
9585 ;;
9586
9587 cygwin* | mingw* | pw32* | cegcc*)
9588 # When not using gcc, we currently assume that we are using
9589 # Microsoft Visual C++.
9590 # hardcode_libdir_flag_spec is actually meaningless, as there is
9591 # no search path for DLLs.
9592 case $cc_basename in
9593 cl*)
9594 # Native MSVC
9595 hardcode_libdir_flag_spec=' '
9596 allow_undefined_flag=unsupported
9597 always_export_symbols=yes
9598 file_list_spec='@'
9599 # Tell ltmain to make .lib files, not .a files.
9600 libext=lib
9601 # Tell ltmain to make .dll files, not .so files.
9602 shrext_cmds=.dll
9603 # FIXME: Setting linknames here is a bad hack.
9604 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9605 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9606 cp "$export_symbols" "$output_objdir/$soname.def";
9607 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9608 else
9609 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9610 fi~
9611 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9612 linknames='
9613 # The linker will not automatically build a static lib if we build a DLL.
9614 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9615 enable_shared_with_static_runtimes=yes
9616 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9617 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9618 # Don't use ranlib
9619 old_postinstall_cmds='chmod 644 $oldlib'
9620 postlink_cmds='lt_outputfile="@OUTPUT@"~
9621 lt_tool_outputfile="@TOOL_OUTPUT@"~
9622 case $lt_outputfile in
9623 *.exe|*.EXE) ;;
9624 *)
9625 lt_outputfile=$lt_outputfile.exe
9626 lt_tool_outputfile=$lt_tool_outputfile.exe
9627 ;;
9628 esac~
9629 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9630 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9631 $RM "$lt_outputfile.manifest";
9632 fi'
9633 ;;
9634 *)
9635 # Assume MSVC wrapper
9636 hardcode_libdir_flag_spec=' '
9637 allow_undefined_flag=unsupported
9638 # Tell ltmain to make .lib files, not .a files.
9639 libext=lib
9640 # Tell ltmain to make .dll files, not .so files.
9641 shrext_cmds=.dll
9642 # FIXME: Setting linknames here is a bad hack.
9643 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9644 # The linker will automatically build a .lib file if we build a DLL.
9645 old_archive_from_new_cmds='true'
9646 # FIXME: Should let the user specify the lib program.
9647 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9648 enable_shared_with_static_runtimes=yes
9649 ;;
9650 esac
9651 ;;
9652
9653 darwin* | rhapsody*)
9654
9655
9656 archive_cmds_need_lc=no
9657 hardcode_direct=no
9658 hardcode_automatic=yes
9659 hardcode_shlibpath_var=unsupported
9660 if test yes = "$lt_cv_ld_force_load"; then
9661 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\"`'
9662
9663 else
9664 whole_archive_flag_spec=''
9665 fi
9666 link_all_deplibs=yes
9667 allow_undefined_flag=$_lt_dar_allow_undefined
9668 case $cc_basename in
9669 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9670 *) _lt_dar_can_shared=$GCC ;;
9671 esac
9672 if test yes = "$_lt_dar_can_shared"; then
9673 output_verbose_link_cmd=func_echo_all
9674 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9675 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9676 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"
9677 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"
9678
9679 else
9680 ld_shlibs=no
9681 fi
9682
9683 ;;
9684
9685 dgux*)
9686 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9687 hardcode_libdir_flag_spec='-L$libdir'
9688 hardcode_shlibpath_var=no
9689 ;;
9690
9691 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9692 # support. Future versions do this automatically, but an explicit c++rt0.o
9693 # does not break anything, and helps significantly (at the cost of a little
9694 # extra space).
9695 freebsd2.2*)
9696 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9697 hardcode_libdir_flag_spec='-R$libdir'
9698 hardcode_direct=yes
9699 hardcode_shlibpath_var=no
9700 ;;
9701
9702 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9703 freebsd2.*)
9704 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9705 hardcode_direct=yes
9706 hardcode_minus_L=yes
9707 hardcode_shlibpath_var=no
9708 ;;
9709
9710 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9711 freebsd* | dragonfly*)
9712 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9713 hardcode_libdir_flag_spec='-R$libdir'
9714 hardcode_direct=yes
9715 hardcode_shlibpath_var=no
9716 ;;
9717
9718 hpux9*)
9719 if test yes = "$GCC"; then
9720 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9721 else
9722 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9723 fi
9724 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9725 hardcode_libdir_separator=:
9726 hardcode_direct=yes
9727
9728 # hardcode_minus_L: Not really in the search PATH,
9729 # but as the default location of the library.
9730 hardcode_minus_L=yes
9731 export_dynamic_flag_spec='$wl-E'
9732 ;;
9733
9734 hpux10*)
9735 if test yes,no = "$GCC,$with_gnu_ld"; then
9736 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9737 else
9738 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9739 fi
9740 if test no = "$with_gnu_ld"; then
9741 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9742 hardcode_libdir_separator=:
9743 hardcode_direct=yes
9744 hardcode_direct_absolute=yes
9745 export_dynamic_flag_spec='$wl-E'
9746 # hardcode_minus_L: Not really in the search PATH,
9747 # but as the default location of the library.
9748 hardcode_minus_L=yes
9749 fi
9750 ;;
9751
9752 hpux11*)
9753 if test yes,no = "$GCC,$with_gnu_ld"; then
9754 case $host_cpu in
9755 hppa*64*)
9756 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9757 ;;
9758 ia64*)
9759 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9760 ;;
9761 *)
9762 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9763 ;;
9764 esac
9765 else
9766 case $host_cpu in
9767 hppa*64*)
9768 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9769 ;;
9770 ia64*)
9771 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9772 ;;
9773 *)
9774
9775 # Older versions of the 11.00 compiler do not understand -b yet
9776 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9778 $as_echo_n "checking if $CC understands -b... " >&6; }
9779 if ${lt_cv_prog_compiler__b+:} false; then :
9780 $as_echo_n "(cached) " >&6
9781 else
9782 lt_cv_prog_compiler__b=no
9783 save_LDFLAGS=$LDFLAGS
9784 LDFLAGS="$LDFLAGS -b"
9785 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9786 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9787 # The linker can only warn and ignore the option if not recognized
9788 # So say no if there are warnings
9789 if test -s conftest.err; then
9790 # Append any errors to the config.log.
9791 cat conftest.err 1>&5
9792 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9793 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9794 if diff conftest.exp conftest.er2 >/dev/null; then
9795 lt_cv_prog_compiler__b=yes
9796 fi
9797 else
9798 lt_cv_prog_compiler__b=yes
9799 fi
9800 fi
9801 $RM -r conftest*
9802 LDFLAGS=$save_LDFLAGS
9803
9804 fi
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9806 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9807
9808 if test yes = "$lt_cv_prog_compiler__b"; then
9809 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9810 else
9811 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9812 fi
9813
9814 ;;
9815 esac
9816 fi
9817 if test no = "$with_gnu_ld"; then
9818 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9819 hardcode_libdir_separator=:
9820
9821 case $host_cpu in
9822 hppa*64*|ia64*)
9823 hardcode_direct=no
9824 hardcode_shlibpath_var=no
9825 ;;
9826 *)
9827 hardcode_direct=yes
9828 hardcode_direct_absolute=yes
9829 export_dynamic_flag_spec='$wl-E'
9830
9831 # hardcode_minus_L: Not really in the search PATH,
9832 # but as the default location of the library.
9833 hardcode_minus_L=yes
9834 ;;
9835 esac
9836 fi
9837 ;;
9838
9839 irix5* | irix6* | nonstopux*)
9840 if test yes = "$GCC"; then
9841 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'
9842 # Try to use the -exported_symbol ld option, if it does not
9843 # work, assume that -exports_file does not work either and
9844 # implicitly export all symbols.
9845 # This should be the same for all languages, so no per-tag cache variable.
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9847 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9848 if ${lt_cv_irix_exported_symbol+:} false; then :
9849 $as_echo_n "(cached) " >&6
9850 else
9851 save_LDFLAGS=$LDFLAGS
9852 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9854 /* end confdefs.h. */
9855 int foo (void) { return 0; }
9856 _ACEOF
9857 if ac_fn_c_try_link "$LINENO"; then :
9858 lt_cv_irix_exported_symbol=yes
9859 else
9860 lt_cv_irix_exported_symbol=no
9861 fi
9862 rm -f core conftest.err conftest.$ac_objext \
9863 conftest$ac_exeext conftest.$ac_ext
9864 LDFLAGS=$save_LDFLAGS
9865 fi
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9867 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9868 if test yes = "$lt_cv_irix_exported_symbol"; then
9869 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'
9870 fi
9871 else
9872 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'
9873 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'
9874 fi
9875 archive_cmds_need_lc='no'
9876 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9877 hardcode_libdir_separator=:
9878 inherit_rpath=yes
9879 link_all_deplibs=yes
9880 ;;
9881
9882 linux*)
9883 case $cc_basename in
9884 tcc*)
9885 # Fabrice Bellard et al's Tiny C Compiler
9886 ld_shlibs=yes
9887 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9888 ;;
9889 esac
9890 ;;
9891
9892 netbsd*)
9893 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9894 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9895 else
9896 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9897 fi
9898 hardcode_libdir_flag_spec='-R$libdir'
9899 hardcode_direct=yes
9900 hardcode_shlibpath_var=no
9901 ;;
9902
9903 newsos6)
9904 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9905 hardcode_direct=yes
9906 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9907 hardcode_libdir_separator=:
9908 hardcode_shlibpath_var=no
9909 ;;
9910
9911 *nto* | *qnx*)
9912 ;;
9913
9914 openbsd* | bitrig*)
9915 if test -f /usr/libexec/ld.so; then
9916 hardcode_direct=yes
9917 hardcode_shlibpath_var=no
9918 hardcode_direct_absolute=yes
9919 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9920 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9921 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9922 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9923 export_dynamic_flag_spec='$wl-E'
9924 else
9925 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9926 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9927 fi
9928 else
9929 ld_shlibs=no
9930 fi
9931 ;;
9932
9933 os2*)
9934 hardcode_libdir_flag_spec='-L$libdir'
9935 hardcode_minus_L=yes
9936 allow_undefined_flag=unsupported
9937 shrext_cmds=.dll
9938 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9939 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9940 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9941 $ECHO EXPORTS >> $output_objdir/$libname.def~
9942 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9943 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9944 emximp -o $lib $output_objdir/$libname.def'
9945 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9946 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9947 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9948 $ECHO EXPORTS >> $output_objdir/$libname.def~
9949 prefix_cmds="$SED"~
9950 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9951 prefix_cmds="$prefix_cmds -e 1d";
9952 fi~
9953 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9954 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9955 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9956 emximp -o $lib $output_objdir/$libname.def'
9957 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9958 enable_shared_with_static_runtimes=yes
9959 ;;
9960
9961 osf3*)
9962 if test yes = "$GCC"; then
9963 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9964 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'
9965 else
9966 allow_undefined_flag=' -expect_unresolved \*'
9967 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'
9968 fi
9969 archive_cmds_need_lc='no'
9970 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9971 hardcode_libdir_separator=:
9972 ;;
9973
9974 osf4* | osf5*) # as osf3* with the addition of -msym flag
9975 if test yes = "$GCC"; then
9976 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9977 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'
9978 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9979 else
9980 allow_undefined_flag=' -expect_unresolved \*'
9981 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'
9982 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~
9983 $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'
9984
9985 # Both c and cxx compiler support -rpath directly
9986 hardcode_libdir_flag_spec='-rpath $libdir'
9987 fi
9988 archive_cmds_need_lc='no'
9989 hardcode_libdir_separator=:
9990 ;;
9991
9992 solaris*)
9993 no_undefined_flag=' -z defs'
9994 if test yes = "$GCC"; then
9995 wlarc='$wl'
9996 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9997 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9998 $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'
9999 else
10000 case `$CC -V 2>&1` in
10001 *"Compilers 5.0"*)
10002 wlarc=''
10003 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10004 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10005 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10006 ;;
10007 *)
10008 wlarc='$wl'
10009 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10010 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10011 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10012 ;;
10013 esac
10014 fi
10015 hardcode_libdir_flag_spec='-R$libdir'
10016 hardcode_shlibpath_var=no
10017 case $host_os in
10018 solaris2.[0-5] | solaris2.[0-5].*) ;;
10019 *)
10020 # The compiler driver will combine and reorder linker options,
10021 # but understands '-z linker_flag'. GCC discards it without '$wl',
10022 # but is careful enough not to reorder.
10023 # Supported since Solaris 2.6 (maybe 2.5.1?)
10024 if test yes = "$GCC"; then
10025 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10026 else
10027 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10028 fi
10029 ;;
10030 esac
10031 link_all_deplibs=yes
10032 ;;
10033
10034 sunos4*)
10035 if test sequent = "$host_vendor"; then
10036 # Use $CC to link under sequent, because it throws in some extra .o
10037 # files that make .init and .fini sections work.
10038 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10039 else
10040 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10041 fi
10042 hardcode_libdir_flag_spec='-L$libdir'
10043 hardcode_direct=yes
10044 hardcode_minus_L=yes
10045 hardcode_shlibpath_var=no
10046 ;;
10047
10048 sysv4)
10049 case $host_vendor in
10050 sni)
10051 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10052 hardcode_direct=yes # is this really true???
10053 ;;
10054 siemens)
10055 ## LD is ld it makes a PLAMLIB
10056 ## CC just makes a GrossModule.
10057 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10058 reload_cmds='$CC -r -o $output$reload_objs'
10059 hardcode_direct=no
10060 ;;
10061 motorola)
10062 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10063 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10064 ;;
10065 esac
10066 runpath_var='LD_RUN_PATH'
10067 hardcode_shlibpath_var=no
10068 ;;
10069
10070 sysv4.3*)
10071 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10072 hardcode_shlibpath_var=no
10073 export_dynamic_flag_spec='-Bexport'
10074 ;;
10075
10076 sysv4*MP*)
10077 if test -d /usr/nec; then
10078 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10079 hardcode_shlibpath_var=no
10080 runpath_var=LD_RUN_PATH
10081 hardcode_runpath_var=yes
10082 ld_shlibs=yes
10083 fi
10084 ;;
10085
10086 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10087 no_undefined_flag='$wl-z,text'
10088 archive_cmds_need_lc=no
10089 hardcode_shlibpath_var=no
10090 runpath_var='LD_RUN_PATH'
10091
10092 if test yes = "$GCC"; then
10093 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10094 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10095 else
10096 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10097 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10098 fi
10099 ;;
10100
10101 sysv5* | sco3.2v5* | sco5v6*)
10102 # Note: We CANNOT use -z defs as we might desire, because we do not
10103 # link with -lc, and that would cause any symbols used from libc to
10104 # always be unresolved, which means just about no library would
10105 # ever link correctly. If we're not using GNU ld we use -z text
10106 # though, which does catch some bad symbols but isn't as heavy-handed
10107 # as -z defs.
10108 no_undefined_flag='$wl-z,text'
10109 allow_undefined_flag='$wl-z,nodefs'
10110 archive_cmds_need_lc=no
10111 hardcode_shlibpath_var=no
10112 hardcode_libdir_flag_spec='$wl-R,$libdir'
10113 hardcode_libdir_separator=':'
10114 link_all_deplibs=yes
10115 export_dynamic_flag_spec='$wl-Bexport'
10116 runpath_var='LD_RUN_PATH'
10117
10118 if test yes = "$GCC"; then
10119 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10120 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10121 else
10122 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10123 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10124 fi
10125 ;;
10126
10127 uts4*)
10128 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10129 hardcode_libdir_flag_spec='-L$libdir'
10130 hardcode_shlibpath_var=no
10131 ;;
10132
10133 *)
10134 ld_shlibs=no
10135 ;;
10136 esac
10137
10138 if test sni = "$host_vendor"; then
10139 case $host in
10140 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10141 export_dynamic_flag_spec='$wl-Blargedynsym'
10142 ;;
10143 esac
10144 fi
10145 fi
10146
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10148 $as_echo "$ld_shlibs" >&6; }
10149 test no = "$ld_shlibs" && can_build_shared=no
10150
10151 with_gnu_ld=$with_gnu_ld
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167 #
10168 # Do we need to explicitly link libc?
10169 #
10170 case "x$archive_cmds_need_lc" in
10171 x|xyes)
10172 # Assume -lc should be added
10173 archive_cmds_need_lc=yes
10174
10175 if test yes,yes = "$GCC,$enable_shared"; then
10176 case $archive_cmds in
10177 *'~'*)
10178 # FIXME: we may have to deal with multi-command sequences.
10179 ;;
10180 '$CC '*)
10181 # Test whether the compiler implicitly links with -lc since on some
10182 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10183 # to ld, don't add -lc before -lgcc.
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10185 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10186 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10187 $as_echo_n "(cached) " >&6
10188 else
10189 $RM conftest*
10190 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10191
10192 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10193 (eval $ac_compile) 2>&5
10194 ac_status=$?
10195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10196 test $ac_status = 0; } 2>conftest.err; then
10197 soname=conftest
10198 lib=conftest
10199 libobjs=conftest.$ac_objext
10200 deplibs=
10201 wl=$lt_prog_compiler_wl
10202 pic_flag=$lt_prog_compiler_pic
10203 compiler_flags=-v
10204 linker_flags=-v
10205 verstring=
10206 output_objdir=.
10207 libname=conftest
10208 lt_save_allow_undefined_flag=$allow_undefined_flag
10209 allow_undefined_flag=
10210 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10211 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10212 ac_status=$?
10213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10214 test $ac_status = 0; }
10215 then
10216 lt_cv_archive_cmds_need_lc=no
10217 else
10218 lt_cv_archive_cmds_need_lc=yes
10219 fi
10220 allow_undefined_flag=$lt_save_allow_undefined_flag
10221 else
10222 cat conftest.err 1>&5
10223 fi
10224 $RM conftest*
10225
10226 fi
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10228 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10229 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10230 ;;
10231 esac
10232 fi
10233 ;;
10234 esac
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10388 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10389
10390 if test yes = "$GCC"; then
10391 case $host_os in
10392 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10393 *) lt_awk_arg='/^libraries:/' ;;
10394 esac
10395 case $host_os in
10396 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10397 *) lt_sed_strip_eq='s|=/|/|g' ;;
10398 esac
10399 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10400 case $lt_search_path_spec in
10401 *\;*)
10402 # if the path contains ";" then we assume it to be the separator
10403 # otherwise default to the standard path separator (i.e. ":") - it is
10404 # assumed that no part of a normal pathname contains ";" but that should
10405 # okay in the real world where ";" in dirpaths is itself problematic.
10406 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10407 ;;
10408 *)
10409 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10410 ;;
10411 esac
10412 # Ok, now we have the path, separated by spaces, we can step through it
10413 # and add multilib dir if necessary...
10414 lt_tmp_lt_search_path_spec=
10415 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10416 # ...but if some path component already ends with the multilib dir we assume
10417 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10418 case "$lt_multi_os_dir; $lt_search_path_spec " in
10419 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10420 lt_multi_os_dir=
10421 ;;
10422 esac
10423 for lt_sys_path in $lt_search_path_spec; do
10424 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10425 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10426 elif test -n "$lt_multi_os_dir"; then
10427 test -d "$lt_sys_path" && \
10428 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10429 fi
10430 done
10431 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10432 BEGIN {RS = " "; FS = "/|\n";} {
10433 lt_foo = "";
10434 lt_count = 0;
10435 for (lt_i = NF; lt_i > 0; lt_i--) {
10436 if ($lt_i != "" && $lt_i != ".") {
10437 if ($lt_i == "..") {
10438 lt_count++;
10439 } else {
10440 if (lt_count == 0) {
10441 lt_foo = "/" $lt_i lt_foo;
10442 } else {
10443 lt_count--;
10444 }
10445 }
10446 }
10447 }
10448 if (lt_foo != "") { lt_freq[lt_foo]++; }
10449 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10450 }'`
10451 # AWK program above erroneously prepends '/' to C:/dos/paths
10452 # for these hosts.
10453 case $host_os in
10454 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10455 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10456 esac
10457 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10458 else
10459 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10460 fi
10461 library_names_spec=
10462 libname_spec='lib$name'
10463 soname_spec=
10464 shrext_cmds=.so
10465 postinstall_cmds=
10466 postuninstall_cmds=
10467 finish_cmds=
10468 finish_eval=
10469 shlibpath_var=
10470 shlibpath_overrides_runpath=unknown
10471 version_type=none
10472 dynamic_linker="$host_os ld.so"
10473 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10474 need_lib_prefix=unknown
10475 hardcode_into_libs=no
10476
10477 # when you set need_version to no, make sure it does not cause -set_version
10478 # flags to be left without arguments
10479 need_version=unknown
10480
10481
10482
10483 case $host_os in
10484 aix3*)
10485 version_type=linux # correct to gnu/linux during the next big refactor
10486 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10487 shlibpath_var=LIBPATH
10488
10489 # AIX 3 has no versioning support, so we append a major version to the name.
10490 soname_spec='$libname$release$shared_ext$major'
10491 ;;
10492
10493 aix[4-9]*)
10494 version_type=linux # correct to gnu/linux during the next big refactor
10495 need_lib_prefix=no
10496 need_version=no
10497 hardcode_into_libs=yes
10498 if test ia64 = "$host_cpu"; then
10499 # AIX 5 supports IA64
10500 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10501 shlibpath_var=LD_LIBRARY_PATH
10502 else
10503 # With GCC up to 2.95.x, collect2 would create an import file
10504 # for dependence libraries. The import file would start with
10505 # the line '#! .'. This would cause the generated library to
10506 # depend on '.', always an invalid library. This was fixed in
10507 # development snapshots of GCC prior to 3.0.
10508 case $host_os in
10509 aix4 | aix4.[01] | aix4.[01].*)
10510 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10511 echo ' yes '
10512 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10513 :
10514 else
10515 can_build_shared=no
10516 fi
10517 ;;
10518 esac
10519 # Using Import Files as archive members, it is possible to support
10520 # filename-based versioning of shared library archives on AIX. While
10521 # this would work for both with and without runtime linking, it will
10522 # prevent static linking of such archives. So we do filename-based
10523 # shared library versioning with .so extension only, which is used
10524 # when both runtime linking and shared linking is enabled.
10525 # Unfortunately, runtime linking may impact performance, so we do
10526 # not want this to be the default eventually. Also, we use the
10527 # versioned .so libs for executables only if there is the -brtl
10528 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10529 # To allow for filename-based versioning support, we need to create
10530 # libNAME.so.V as an archive file, containing:
10531 # *) an Import File, referring to the versioned filename of the
10532 # archive as well as the shared archive member, telling the
10533 # bitwidth (32 or 64) of that shared object, and providing the
10534 # list of exported symbols of that shared object, eventually
10535 # decorated with the 'weak' keyword
10536 # *) the shared object with the F_LOADONLY flag set, to really avoid
10537 # it being seen by the linker.
10538 # At run time we better use the real file rather than another symlink,
10539 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10540
10541 case $with_aix_soname,$aix_use_runtimelinking in
10542 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10543 # soname into executable. Probably we can add versioning support to
10544 # collect2, so additional links can be useful in future.
10545 aix,yes) # traditional libtool
10546 dynamic_linker='AIX unversionable lib.so'
10547 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10548 # instead of lib<name>.a to let people know that these are not
10549 # typical AIX shared libraries.
10550 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10551 ;;
10552 aix,no) # traditional AIX only
10553 dynamic_linker='AIX lib.a(lib.so.V)'
10554 # We preserve .a as extension for shared libraries through AIX4.2
10555 # and later when we are not doing run time linking.
10556 library_names_spec='$libname$release.a $libname.a'
10557 soname_spec='$libname$release$shared_ext$major'
10558 ;;
10559 svr4,*) # full svr4 only
10560 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10561 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10562 # We do not specify a path in Import Files, so LIBPATH fires.
10563 shlibpath_overrides_runpath=yes
10564 ;;
10565 *,yes) # both, prefer svr4
10566 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10567 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10568 # unpreferred sharedlib libNAME.a needs extra handling
10569 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10570 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10571 # We do not specify a path in Import Files, so LIBPATH fires.
10572 shlibpath_overrides_runpath=yes
10573 ;;
10574 *,no) # both, prefer aix
10575 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10576 library_names_spec='$libname$release.a $libname.a'
10577 soname_spec='$libname$release$shared_ext$major'
10578 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10579 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10580 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10581 ;;
10582 esac
10583 shlibpath_var=LIBPATH
10584 fi
10585 ;;
10586
10587 amigaos*)
10588 case $host_cpu in
10589 powerpc)
10590 # Since July 2007 AmigaOS4 officially supports .so libraries.
10591 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10592 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10593 ;;
10594 m68k)
10595 library_names_spec='$libname.ixlibrary $libname.a'
10596 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10597 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10598 ;;
10599 esac
10600 ;;
10601
10602 beos*)
10603 library_names_spec='$libname$shared_ext'
10604 dynamic_linker="$host_os ld.so"
10605 shlibpath_var=LIBRARY_PATH
10606 ;;
10607
10608 bsdi[45]*)
10609 version_type=linux # correct to gnu/linux during the next big refactor
10610 need_version=no
10611 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10612 soname_spec='$libname$release$shared_ext$major'
10613 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10614 shlibpath_var=LD_LIBRARY_PATH
10615 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10616 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10617 # the default ld.so.conf also contains /usr/contrib/lib and
10618 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10619 # libtool to hard-code these into programs
10620 ;;
10621
10622 cygwin* | mingw* | pw32* | cegcc*)
10623 version_type=windows
10624 shrext_cmds=.dll
10625 need_version=no
10626 need_lib_prefix=no
10627
10628 case $GCC,$cc_basename in
10629 yes,*)
10630 # gcc
10631 library_names_spec='$libname.dll.a'
10632 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10633 postinstall_cmds='base_file=`basename \$file`~
10634 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10635 dldir=$destdir/`dirname \$dlpath`~
10636 test -d \$dldir || mkdir -p \$dldir~
10637 $install_prog $dir/$dlname \$dldir/$dlname~
10638 chmod a+x \$dldir/$dlname~
10639 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10640 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10641 fi'
10642 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10643 dlpath=$dir/\$dldll~
10644 $RM \$dlpath'
10645 shlibpath_overrides_runpath=yes
10646
10647 case $host_os in
10648 cygwin*)
10649 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10650 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10651
10652 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10653 ;;
10654 mingw* | cegcc*)
10655 # MinGW DLLs use traditional 'lib' prefix
10656 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10657 ;;
10658 pw32*)
10659 # pw32 DLLs use 'pw' prefix rather than 'lib'
10660 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10661 ;;
10662 esac
10663 dynamic_linker='Win32 ld.exe'
10664 ;;
10665
10666 *,cl*)
10667 # Native MSVC
10668 libname_spec='$name'
10669 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10670 library_names_spec='$libname.dll.lib'
10671
10672 case $build_os in
10673 mingw*)
10674 sys_lib_search_path_spec=
10675 lt_save_ifs=$IFS
10676 IFS=';'
10677 for lt_path in $LIB
10678 do
10679 IFS=$lt_save_ifs
10680 # Let DOS variable expansion print the short 8.3 style file name.
10681 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10682 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10683 done
10684 IFS=$lt_save_ifs
10685 # Convert to MSYS style.
10686 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10687 ;;
10688 cygwin*)
10689 # Convert to unix form, then to dos form, then back to unix form
10690 # but this time dos style (no spaces!) so that the unix form looks
10691 # like /cygdrive/c/PROGRA~1:/cygdr...
10692 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10693 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10694 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10695 ;;
10696 *)
10697 sys_lib_search_path_spec=$LIB
10698 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10699 # It is most probably a Windows format PATH.
10700 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10701 else
10702 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10703 fi
10704 # FIXME: find the short name or the path components, as spaces are
10705 # common. (e.g. "Program Files" -> "PROGRA~1")
10706 ;;
10707 esac
10708
10709 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10710 postinstall_cmds='base_file=`basename \$file`~
10711 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10712 dldir=$destdir/`dirname \$dlpath`~
10713 test -d \$dldir || mkdir -p \$dldir~
10714 $install_prog $dir/$dlname \$dldir/$dlname'
10715 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10716 dlpath=$dir/\$dldll~
10717 $RM \$dlpath'
10718 shlibpath_overrides_runpath=yes
10719 dynamic_linker='Win32 link.exe'
10720 ;;
10721
10722 *)
10723 # Assume MSVC wrapper
10724 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10725 dynamic_linker='Win32 ld.exe'
10726 ;;
10727 esac
10728 # FIXME: first we should search . and the directory the executable is in
10729 shlibpath_var=PATH
10730 ;;
10731
10732 darwin* | rhapsody*)
10733 dynamic_linker="$host_os dyld"
10734 version_type=darwin
10735 need_lib_prefix=no
10736 need_version=no
10737 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10738 soname_spec='$libname$release$major$shared_ext'
10739 shlibpath_overrides_runpath=yes
10740 shlibpath_var=DYLD_LIBRARY_PATH
10741 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10742
10743 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10744 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10745 ;;
10746
10747 dgux*)
10748 version_type=linux # correct to gnu/linux during the next big refactor
10749 need_lib_prefix=no
10750 need_version=no
10751 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10752 soname_spec='$libname$release$shared_ext$major'
10753 shlibpath_var=LD_LIBRARY_PATH
10754 ;;
10755
10756 freebsd* | dragonfly*)
10757 # DragonFly does not have aout. When/if they implement a new
10758 # versioning mechanism, adjust this.
10759 if test -x /usr/bin/objformat; then
10760 objformat=`/usr/bin/objformat`
10761 else
10762 case $host_os in
10763 freebsd[23].*) objformat=aout ;;
10764 *) objformat=elf ;;
10765 esac
10766 fi
10767 version_type=freebsd-$objformat
10768 case $version_type in
10769 freebsd-elf*)
10770 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10771 soname_spec='$libname$release$shared_ext$major'
10772 need_version=no
10773 need_lib_prefix=no
10774 ;;
10775 freebsd-*)
10776 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10777 need_version=yes
10778 ;;
10779 esac
10780 shlibpath_var=LD_LIBRARY_PATH
10781 case $host_os in
10782 freebsd2.*)
10783 shlibpath_overrides_runpath=yes
10784 ;;
10785 freebsd3.[01]* | freebsdelf3.[01]*)
10786 shlibpath_overrides_runpath=yes
10787 hardcode_into_libs=yes
10788 ;;
10789 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10790 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10791 shlibpath_overrides_runpath=no
10792 hardcode_into_libs=yes
10793 ;;
10794 *) # from 4.6 on, and DragonFly
10795 shlibpath_overrides_runpath=yes
10796 hardcode_into_libs=yes
10797 ;;
10798 esac
10799 ;;
10800
10801 haiku*)
10802 version_type=linux # correct to gnu/linux during the next big refactor
10803 need_lib_prefix=no
10804 need_version=no
10805 dynamic_linker="$host_os runtime_loader"
10806 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10807 soname_spec='$libname$release$shared_ext$major'
10808 shlibpath_var=LIBRARY_PATH
10809 shlibpath_overrides_runpath=no
10810 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10811 hardcode_into_libs=yes
10812 ;;
10813
10814 hpux9* | hpux10* | hpux11*)
10815 # Give a soname corresponding to the major version so that dld.sl refuses to
10816 # link against other versions.
10817 version_type=sunos
10818 need_lib_prefix=no
10819 need_version=no
10820 case $host_cpu in
10821 ia64*)
10822 shrext_cmds='.so'
10823 hardcode_into_libs=yes
10824 dynamic_linker="$host_os dld.so"
10825 shlibpath_var=LD_LIBRARY_PATH
10826 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10827 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10828 soname_spec='$libname$release$shared_ext$major'
10829 if test 32 = "$HPUX_IA64_MODE"; then
10830 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10831 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10832 else
10833 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10834 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10835 fi
10836 ;;
10837 hppa*64*)
10838 shrext_cmds='.sl'
10839 hardcode_into_libs=yes
10840 dynamic_linker="$host_os dld.sl"
10841 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10842 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10843 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10844 soname_spec='$libname$release$shared_ext$major'
10845 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10846 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10847 ;;
10848 *)
10849 shrext_cmds='.sl'
10850 dynamic_linker="$host_os dld.sl"
10851 shlibpath_var=SHLIB_PATH
10852 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10853 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10854 soname_spec='$libname$release$shared_ext$major'
10855 ;;
10856 esac
10857 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10858 postinstall_cmds='chmod 555 $lib'
10859 # or fails outright, so override atomically:
10860 install_override_mode=555
10861 ;;
10862
10863 interix[3-9]*)
10864 version_type=linux # correct to gnu/linux during the next big refactor
10865 need_lib_prefix=no
10866 need_version=no
10867 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10868 soname_spec='$libname$release$shared_ext$major'
10869 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10870 shlibpath_var=LD_LIBRARY_PATH
10871 shlibpath_overrides_runpath=no
10872 hardcode_into_libs=yes
10873 ;;
10874
10875 irix5* | irix6* | nonstopux*)
10876 case $host_os in
10877 nonstopux*) version_type=nonstopux ;;
10878 *)
10879 if test yes = "$lt_cv_prog_gnu_ld"; then
10880 version_type=linux # correct to gnu/linux during the next big refactor
10881 else
10882 version_type=irix
10883 fi ;;
10884 esac
10885 need_lib_prefix=no
10886 need_version=no
10887 soname_spec='$libname$release$shared_ext$major'
10888 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10889 case $host_os in
10890 irix5* | nonstopux*)
10891 libsuff= shlibsuff=
10892 ;;
10893 *)
10894 case $LD in # libtool.m4 will add one of these switches to LD
10895 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10896 libsuff= shlibsuff= libmagic=32-bit;;
10897 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10898 libsuff=32 shlibsuff=N32 libmagic=N32;;
10899 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10900 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10901 *) libsuff= shlibsuff= libmagic=never-match;;
10902 esac
10903 ;;
10904 esac
10905 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10906 shlibpath_overrides_runpath=no
10907 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10908 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10909 hardcode_into_libs=yes
10910 ;;
10911
10912 # No shared lib support for Linux oldld, aout, or coff.
10913 linux*oldld* | linux*aout* | linux*coff*)
10914 dynamic_linker=no
10915 ;;
10916
10917 linux*android*)
10918 version_type=none # Android doesn't support versioned libraries.
10919 need_lib_prefix=no
10920 need_version=no
10921 library_names_spec='$libname$release$shared_ext'
10922 soname_spec='$libname$release$shared_ext'
10923 finish_cmds=
10924 shlibpath_var=LD_LIBRARY_PATH
10925 shlibpath_overrides_runpath=yes
10926
10927 # This implies no fast_install, which is unacceptable.
10928 # Some rework will be needed to allow for fast_install
10929 # before this can be enabled.
10930 hardcode_into_libs=yes
10931
10932 dynamic_linker='Android linker'
10933 # Don't embed -rpath directories since the linker doesn't support them.
10934 hardcode_libdir_flag_spec='-L$libdir'
10935 ;;
10936
10937 # This must be glibc/ELF.
10938 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10939 version_type=linux # correct to gnu/linux during the next big refactor
10940 need_lib_prefix=no
10941 need_version=no
10942 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10943 soname_spec='$libname$release$shared_ext$major'
10944 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10945 shlibpath_var=LD_LIBRARY_PATH
10946 shlibpath_overrides_runpath=no
10947
10948 # Some binutils ld are patched to set DT_RUNPATH
10949 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10950 $as_echo_n "(cached) " >&6
10951 else
10952 lt_cv_shlibpath_overrides_runpath=no
10953 save_LDFLAGS=$LDFLAGS
10954 save_libdir=$libdir
10955 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10956 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10958 /* end confdefs.h. */
10959
10960 int
10961 main ()
10962 {
10963
10964 ;
10965 return 0;
10966 }
10967 _ACEOF
10968 if ac_fn_c_try_link "$LINENO"; then :
10969 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10970 lt_cv_shlibpath_overrides_runpath=yes
10971 fi
10972 fi
10973 rm -f core conftest.err conftest.$ac_objext \
10974 conftest$ac_exeext conftest.$ac_ext
10975 LDFLAGS=$save_LDFLAGS
10976 libdir=$save_libdir
10977
10978 fi
10979
10980 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10981
10982 # This implies no fast_install, which is unacceptable.
10983 # Some rework will be needed to allow for fast_install
10984 # before this can be enabled.
10985 hardcode_into_libs=yes
10986
10987 # Ideally, we could use ldconfig to report *all* directores which are
10988 # searched for libraries, however this is still not possible. Aside from not
10989 # being certain /sbin/ldconfig is available, command
10990 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10991 # even though it is searched at run-time. Try to do the best guess by
10992 # appending ld.so.conf contents (and includes) to the search path.
10993 if test -f /etc/ld.so.conf; then
10994 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' ' '`
10995 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10996 fi
10997
10998 # We used to test for /lib/ld.so.1 and disable shared libraries on
10999 # powerpc, because MkLinux only supported shared libraries with the
11000 # GNU dynamic linker. Since this was broken with cross compilers,
11001 # most powerpc-linux boxes support dynamic linking these days and
11002 # people can always --disable-shared, the test was removed, and we
11003 # assume the GNU/Linux dynamic linker is in use.
11004 dynamic_linker='GNU/Linux ld.so'
11005 ;;
11006
11007 netbsd*)
11008 version_type=sunos
11009 need_lib_prefix=no
11010 need_version=no
11011 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11012 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11013 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11014 dynamic_linker='NetBSD (a.out) ld.so'
11015 else
11016 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11017 soname_spec='$libname$release$shared_ext$major'
11018 dynamic_linker='NetBSD ld.elf_so'
11019 fi
11020 shlibpath_var=LD_LIBRARY_PATH
11021 shlibpath_overrides_runpath=yes
11022 hardcode_into_libs=yes
11023 ;;
11024
11025 newsos6)
11026 version_type=linux # correct to gnu/linux during the next big refactor
11027 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11028 shlibpath_var=LD_LIBRARY_PATH
11029 shlibpath_overrides_runpath=yes
11030 ;;
11031
11032 *nto* | *qnx*)
11033 version_type=qnx
11034 need_lib_prefix=no
11035 need_version=no
11036 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11037 soname_spec='$libname$release$shared_ext$major'
11038 shlibpath_var=LD_LIBRARY_PATH
11039 shlibpath_overrides_runpath=no
11040 hardcode_into_libs=yes
11041 dynamic_linker='ldqnx.so'
11042 ;;
11043
11044 openbsd* | bitrig*)
11045 version_type=sunos
11046 sys_lib_dlsearch_path_spec=/usr/lib
11047 need_lib_prefix=no
11048 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11049 need_version=no
11050 else
11051 need_version=yes
11052 fi
11053 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11054 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11055 shlibpath_var=LD_LIBRARY_PATH
11056 shlibpath_overrides_runpath=yes
11057 ;;
11058
11059 os2*)
11060 libname_spec='$name'
11061 version_type=windows
11062 shrext_cmds=.dll
11063 need_version=no
11064 need_lib_prefix=no
11065 # OS/2 can only load a DLL with a base name of 8 characters or less.
11066 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11067 v=$($ECHO $release$versuffix | tr -d .-);
11068 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11069 $ECHO $n$v`$shared_ext'
11070 library_names_spec='${libname}_dll.$libext'
11071 dynamic_linker='OS/2 ld.exe'
11072 shlibpath_var=BEGINLIBPATH
11073 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11074 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11075 postinstall_cmds='base_file=`basename \$file`~
11076 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11077 dldir=$destdir/`dirname \$dlpath`~
11078 test -d \$dldir || mkdir -p \$dldir~
11079 $install_prog $dir/$dlname \$dldir/$dlname~
11080 chmod a+x \$dldir/$dlname~
11081 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11082 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11083 fi'
11084 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11085 dlpath=$dir/\$dldll~
11086 $RM \$dlpath'
11087 ;;
11088
11089 osf3* | osf4* | osf5*)
11090 version_type=osf
11091 need_lib_prefix=no
11092 need_version=no
11093 soname_spec='$libname$release$shared_ext$major'
11094 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11095 shlibpath_var=LD_LIBRARY_PATH
11096 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11097 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11098 ;;
11099
11100 rdos*)
11101 dynamic_linker=no
11102 ;;
11103
11104 solaris*)
11105 version_type=linux # correct to gnu/linux during the next big refactor
11106 need_lib_prefix=no
11107 need_version=no
11108 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11109 soname_spec='$libname$release$shared_ext$major'
11110 shlibpath_var=LD_LIBRARY_PATH
11111 shlibpath_overrides_runpath=yes
11112 hardcode_into_libs=yes
11113 # ldd complains unless libraries are executable
11114 postinstall_cmds='chmod +x $lib'
11115 ;;
11116
11117 sunos4*)
11118 version_type=sunos
11119 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11120 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11121 shlibpath_var=LD_LIBRARY_PATH
11122 shlibpath_overrides_runpath=yes
11123 if test yes = "$with_gnu_ld"; then
11124 need_lib_prefix=no
11125 fi
11126 need_version=yes
11127 ;;
11128
11129 sysv4 | sysv4.3*)
11130 version_type=linux # correct to gnu/linux during the next big refactor
11131 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11132 soname_spec='$libname$release$shared_ext$major'
11133 shlibpath_var=LD_LIBRARY_PATH
11134 case $host_vendor in
11135 sni)
11136 shlibpath_overrides_runpath=no
11137 need_lib_prefix=no
11138 runpath_var=LD_RUN_PATH
11139 ;;
11140 siemens)
11141 need_lib_prefix=no
11142 ;;
11143 motorola)
11144 need_lib_prefix=no
11145 need_version=no
11146 shlibpath_overrides_runpath=no
11147 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11148 ;;
11149 esac
11150 ;;
11151
11152 sysv4*MP*)
11153 if test -d /usr/nec; then
11154 version_type=linux # correct to gnu/linux during the next big refactor
11155 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11156 soname_spec='$libname$shared_ext.$major'
11157 shlibpath_var=LD_LIBRARY_PATH
11158 fi
11159 ;;
11160
11161 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11162 version_type=sco
11163 need_lib_prefix=no
11164 need_version=no
11165 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11166 soname_spec='$libname$release$shared_ext$major'
11167 shlibpath_var=LD_LIBRARY_PATH
11168 shlibpath_overrides_runpath=yes
11169 hardcode_into_libs=yes
11170 if test yes = "$with_gnu_ld"; then
11171 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11172 else
11173 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11174 case $host_os in
11175 sco3.2v5*)
11176 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11177 ;;
11178 esac
11179 fi
11180 sys_lib_dlsearch_path_spec='/usr/lib'
11181 ;;
11182
11183 tpf*)
11184 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11185 version_type=linux # correct to gnu/linux during the next big refactor
11186 need_lib_prefix=no
11187 need_version=no
11188 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11189 shlibpath_var=LD_LIBRARY_PATH
11190 shlibpath_overrides_runpath=no
11191 hardcode_into_libs=yes
11192 ;;
11193
11194 uts4*)
11195 version_type=linux # correct to gnu/linux during the next big refactor
11196 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11197 soname_spec='$libname$release$shared_ext$major'
11198 shlibpath_var=LD_LIBRARY_PATH
11199 ;;
11200
11201 *)
11202 dynamic_linker=no
11203 ;;
11204 esac
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11206 $as_echo "$dynamic_linker" >&6; }
11207 test no = "$dynamic_linker" && can_build_shared=no
11208
11209 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11210 if test yes = "$GCC"; then
11211 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11212 fi
11213
11214 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11215 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11216 fi
11217
11218 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11219 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11220 fi
11221
11222 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11223 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11224
11225 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11226 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11227
11228 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11229 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11328 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11329 hardcode_action=
11330 if test -n "$hardcode_libdir_flag_spec" ||
11331 test -n "$runpath_var" ||
11332 test yes = "$hardcode_automatic"; then
11333
11334 # We can hardcode non-existent directories.
11335 if test no != "$hardcode_direct" &&
11336 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11337 # have to relink, otherwise we might link with an installed library
11338 # when we should be linking with a yet-to-be-installed one
11339 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11340 test no != "$hardcode_minus_L"; then
11341 # Linking always hardcodes the temporary library directory.
11342 hardcode_action=relink
11343 else
11344 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11345 hardcode_action=immediate
11346 fi
11347 else
11348 # We cannot hardcode anything, or else we can only hardcode existing
11349 # directories.
11350 hardcode_action=unsupported
11351 fi
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11353 $as_echo "$hardcode_action" >&6; }
11354
11355 if test relink = "$hardcode_action" ||
11356 test yes = "$inherit_rpath"; then
11357 # Fast installation is not supported
11358 enable_fast_install=no
11359 elif test yes = "$shlibpath_overrides_runpath" ||
11360 test no = "$enable_shared"; then
11361 # Fast installation is not necessary
11362 enable_fast_install=needless
11363 fi
11364
11365
11366
11367
11368
11369
11370 if test yes != "$enable_dlopen"; then
11371 enable_dlopen=unknown
11372 enable_dlopen_self=unknown
11373 enable_dlopen_self_static=unknown
11374 else
11375 lt_cv_dlopen=no
11376 lt_cv_dlopen_libs=
11377
11378 case $host_os in
11379 beos*)
11380 lt_cv_dlopen=load_add_on
11381 lt_cv_dlopen_libs=
11382 lt_cv_dlopen_self=yes
11383 ;;
11384
11385 mingw* | pw32* | cegcc*)
11386 lt_cv_dlopen=LoadLibrary
11387 lt_cv_dlopen_libs=
11388 ;;
11389
11390 cygwin*)
11391 lt_cv_dlopen=dlopen
11392 lt_cv_dlopen_libs=
11393 ;;
11394
11395 darwin*)
11396 # if libdl is installed we need to link against it
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11398 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11399 if ${ac_cv_lib_dl_dlopen+:} false; then :
11400 $as_echo_n "(cached) " >&6
11401 else
11402 ac_check_lib_save_LIBS=$LIBS
11403 LIBS="-ldl $LIBS"
11404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11405 /* end confdefs.h. */
11406
11407 /* Override any GCC internal prototype to avoid an error.
11408 Use char because int might match the return type of a GCC
11409 builtin and then its argument prototype would still apply. */
11410 #ifdef __cplusplus
11411 extern "C"
11412 #endif
11413 char dlopen ();
11414 int
11415 main ()
11416 {
11417 return dlopen ();
11418 ;
11419 return 0;
11420 }
11421 _ACEOF
11422 if ac_fn_c_try_link "$LINENO"; then :
11423 ac_cv_lib_dl_dlopen=yes
11424 else
11425 ac_cv_lib_dl_dlopen=no
11426 fi
11427 rm -f core conftest.err conftest.$ac_objext \
11428 conftest$ac_exeext conftest.$ac_ext
11429 LIBS=$ac_check_lib_save_LIBS
11430 fi
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11432 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11433 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11434 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11435 else
11436
11437 lt_cv_dlopen=dyld
11438 lt_cv_dlopen_libs=
11439 lt_cv_dlopen_self=yes
11440
11441 fi
11442
11443 ;;
11444
11445 tpf*)
11446 # Don't try to run any link tests for TPF. We know it's impossible
11447 # because TPF is a cross-compiler, and we know how we open DSOs.
11448 lt_cv_dlopen=dlopen
11449 lt_cv_dlopen_libs=
11450 lt_cv_dlopen_self=no
11451 ;;
11452
11453 *)
11454 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11455 if test "x$ac_cv_func_shl_load" = xyes; then :
11456 lt_cv_dlopen=shl_load
11457 else
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11459 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11460 if ${ac_cv_lib_dld_shl_load+:} false; then :
11461 $as_echo_n "(cached) " >&6
11462 else
11463 ac_check_lib_save_LIBS=$LIBS
11464 LIBS="-ldld $LIBS"
11465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11466 /* end confdefs.h. */
11467
11468 /* Override any GCC internal prototype to avoid an error.
11469 Use char because int might match the return type of a GCC
11470 builtin and then its argument prototype would still apply. */
11471 #ifdef __cplusplus
11472 extern "C"
11473 #endif
11474 char shl_load ();
11475 int
11476 main ()
11477 {
11478 return shl_load ();
11479 ;
11480 return 0;
11481 }
11482 _ACEOF
11483 if ac_fn_c_try_link "$LINENO"; then :
11484 ac_cv_lib_dld_shl_load=yes
11485 else
11486 ac_cv_lib_dld_shl_load=no
11487 fi
11488 rm -f core conftest.err conftest.$ac_objext \
11489 conftest$ac_exeext conftest.$ac_ext
11490 LIBS=$ac_check_lib_save_LIBS
11491 fi
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11493 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11494 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11495 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11496 else
11497 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11498 if test "x$ac_cv_func_dlopen" = xyes; then :
11499 lt_cv_dlopen=dlopen
11500 else
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11502 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11503 if ${ac_cv_lib_dl_dlopen+:} false; then :
11504 $as_echo_n "(cached) " >&6
11505 else
11506 ac_check_lib_save_LIBS=$LIBS
11507 LIBS="-ldl $LIBS"
11508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11509 /* end confdefs.h. */
11510
11511 /* Override any GCC internal prototype to avoid an error.
11512 Use char because int might match the return type of a GCC
11513 builtin and then its argument prototype would still apply. */
11514 #ifdef __cplusplus
11515 extern "C"
11516 #endif
11517 char dlopen ();
11518 int
11519 main ()
11520 {
11521 return dlopen ();
11522 ;
11523 return 0;
11524 }
11525 _ACEOF
11526 if ac_fn_c_try_link "$LINENO"; then :
11527 ac_cv_lib_dl_dlopen=yes
11528 else
11529 ac_cv_lib_dl_dlopen=no
11530 fi
11531 rm -f core conftest.err conftest.$ac_objext \
11532 conftest$ac_exeext conftest.$ac_ext
11533 LIBS=$ac_check_lib_save_LIBS
11534 fi
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11536 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11537 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11538 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11539 else
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11541 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11542 if ${ac_cv_lib_svld_dlopen+:} false; then :
11543 $as_echo_n "(cached) " >&6
11544 else
11545 ac_check_lib_save_LIBS=$LIBS
11546 LIBS="-lsvld $LIBS"
11547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11548 /* end confdefs.h. */
11549
11550 /* Override any GCC internal prototype to avoid an error.
11551 Use char because int might match the return type of a GCC
11552 builtin and then its argument prototype would still apply. */
11553 #ifdef __cplusplus
11554 extern "C"
11555 #endif
11556 char dlopen ();
11557 int
11558 main ()
11559 {
11560 return dlopen ();
11561 ;
11562 return 0;
11563 }
11564 _ACEOF
11565 if ac_fn_c_try_link "$LINENO"; then :
11566 ac_cv_lib_svld_dlopen=yes
11567 else
11568 ac_cv_lib_svld_dlopen=no
11569 fi
11570 rm -f core conftest.err conftest.$ac_objext \
11571 conftest$ac_exeext conftest.$ac_ext
11572 LIBS=$ac_check_lib_save_LIBS
11573 fi
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11575 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11576 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11577 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11578 else
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11580 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11581 if ${ac_cv_lib_dld_dld_link+:} false; then :
11582 $as_echo_n "(cached) " >&6
11583 else
11584 ac_check_lib_save_LIBS=$LIBS
11585 LIBS="-ldld $LIBS"
11586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11587 /* end confdefs.h. */
11588
11589 /* Override any GCC internal prototype to avoid an error.
11590 Use char because int might match the return type of a GCC
11591 builtin and then its argument prototype would still apply. */
11592 #ifdef __cplusplus
11593 extern "C"
11594 #endif
11595 char dld_link ();
11596 int
11597 main ()
11598 {
11599 return dld_link ();
11600 ;
11601 return 0;
11602 }
11603 _ACEOF
11604 if ac_fn_c_try_link "$LINENO"; then :
11605 ac_cv_lib_dld_dld_link=yes
11606 else
11607 ac_cv_lib_dld_dld_link=no
11608 fi
11609 rm -f core conftest.err conftest.$ac_objext \
11610 conftest$ac_exeext conftest.$ac_ext
11611 LIBS=$ac_check_lib_save_LIBS
11612 fi
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11614 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11615 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11616 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11617 fi
11618
11619
11620 fi
11621
11622
11623 fi
11624
11625
11626 fi
11627
11628
11629 fi
11630
11631
11632 fi
11633
11634 ;;
11635 esac
11636
11637 if test no = "$lt_cv_dlopen"; then
11638 enable_dlopen=no
11639 else
11640 enable_dlopen=yes
11641 fi
11642
11643 case $lt_cv_dlopen in
11644 dlopen)
11645 save_CPPFLAGS=$CPPFLAGS
11646 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11647
11648 save_LDFLAGS=$LDFLAGS
11649 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11650
11651 save_LIBS=$LIBS
11652 LIBS="$lt_cv_dlopen_libs $LIBS"
11653
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11655 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11656 if ${lt_cv_dlopen_self+:} false; then :
11657 $as_echo_n "(cached) " >&6
11658 else
11659 if test yes = "$cross_compiling"; then :
11660 lt_cv_dlopen_self=cross
11661 else
11662 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11663 lt_status=$lt_dlunknown
11664 cat > conftest.$ac_ext <<_LT_EOF
11665 #line $LINENO "configure"
11666 #include "confdefs.h"
11667
11668 #if HAVE_DLFCN_H
11669 #include <dlfcn.h>
11670 #endif
11671
11672 #include <stdio.h>
11673
11674 #ifdef RTLD_GLOBAL
11675 # define LT_DLGLOBAL RTLD_GLOBAL
11676 #else
11677 # ifdef DL_GLOBAL
11678 # define LT_DLGLOBAL DL_GLOBAL
11679 # else
11680 # define LT_DLGLOBAL 0
11681 # endif
11682 #endif
11683
11684 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11685 find out it does not work in some platform. */
11686 #ifndef LT_DLLAZY_OR_NOW
11687 # ifdef RTLD_LAZY
11688 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11689 # else
11690 # ifdef DL_LAZY
11691 # define LT_DLLAZY_OR_NOW DL_LAZY
11692 # else
11693 # ifdef RTLD_NOW
11694 # define LT_DLLAZY_OR_NOW RTLD_NOW
11695 # else
11696 # ifdef DL_NOW
11697 # define LT_DLLAZY_OR_NOW DL_NOW
11698 # else
11699 # define LT_DLLAZY_OR_NOW 0
11700 # endif
11701 # endif
11702 # endif
11703 # endif
11704 #endif
11705
11706 /* When -fvisibility=hidden is used, assume the code has been annotated
11707 correspondingly for the symbols needed. */
11708 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11709 int fnord () __attribute__((visibility("default")));
11710 #endif
11711
11712 int fnord () { return 42; }
11713 int main ()
11714 {
11715 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11716 int status = $lt_dlunknown;
11717
11718 if (self)
11719 {
11720 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11721 else
11722 {
11723 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11724 else puts (dlerror ());
11725 }
11726 /* dlclose (self); */
11727 }
11728 else
11729 puts (dlerror ());
11730
11731 return status;
11732 }
11733 _LT_EOF
11734 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11735 (eval $ac_link) 2>&5
11736 ac_status=$?
11737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11738 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11739 (./conftest; exit; ) >&5 2>/dev/null
11740 lt_status=$?
11741 case x$lt_status in
11742 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11743 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11744 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11745 esac
11746 else :
11747 # compilation failed
11748 lt_cv_dlopen_self=no
11749 fi
11750 fi
11751 rm -fr conftest*
11752
11753
11754 fi
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11756 $as_echo "$lt_cv_dlopen_self" >&6; }
11757
11758 if test yes = "$lt_cv_dlopen_self"; then
11759 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11761 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11762 if ${lt_cv_dlopen_self_static+:} false; then :
11763 $as_echo_n "(cached) " >&6
11764 else
11765 if test yes = "$cross_compiling"; then :
11766 lt_cv_dlopen_self_static=cross
11767 else
11768 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11769 lt_status=$lt_dlunknown
11770 cat > conftest.$ac_ext <<_LT_EOF
11771 #line $LINENO "configure"
11772 #include "confdefs.h"
11773
11774 #if HAVE_DLFCN_H
11775 #include <dlfcn.h>
11776 #endif
11777
11778 #include <stdio.h>
11779
11780 #ifdef RTLD_GLOBAL
11781 # define LT_DLGLOBAL RTLD_GLOBAL
11782 #else
11783 # ifdef DL_GLOBAL
11784 # define LT_DLGLOBAL DL_GLOBAL
11785 # else
11786 # define LT_DLGLOBAL 0
11787 # endif
11788 #endif
11789
11790 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11791 find out it does not work in some platform. */
11792 #ifndef LT_DLLAZY_OR_NOW
11793 # ifdef RTLD_LAZY
11794 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11795 # else
11796 # ifdef DL_LAZY
11797 # define LT_DLLAZY_OR_NOW DL_LAZY
11798 # else
11799 # ifdef RTLD_NOW
11800 # define LT_DLLAZY_OR_NOW RTLD_NOW
11801 # else
11802 # ifdef DL_NOW
11803 # define LT_DLLAZY_OR_NOW DL_NOW
11804 # else
11805 # define LT_DLLAZY_OR_NOW 0
11806 # endif
11807 # endif
11808 # endif
11809 # endif
11810 #endif
11811
11812 /* When -fvisibility=hidden is used, assume the code has been annotated
11813 correspondingly for the symbols needed. */
11814 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11815 int fnord () __attribute__((visibility("default")));
11816 #endif
11817
11818 int fnord () { return 42; }
11819 int main ()
11820 {
11821 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11822 int status = $lt_dlunknown;
11823
11824 if (self)
11825 {
11826 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11827 else
11828 {
11829 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11830 else puts (dlerror ());
11831 }
11832 /* dlclose (self); */
11833 }
11834 else
11835 puts (dlerror ());
11836
11837 return status;
11838 }
11839 _LT_EOF
11840 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11841 (eval $ac_link) 2>&5
11842 ac_status=$?
11843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11844 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11845 (./conftest; exit; ) >&5 2>/dev/null
11846 lt_status=$?
11847 case x$lt_status in
11848 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11849 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11850 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11851 esac
11852 else :
11853 # compilation failed
11854 lt_cv_dlopen_self_static=no
11855 fi
11856 fi
11857 rm -fr conftest*
11858
11859
11860 fi
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11862 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11863 fi
11864
11865 CPPFLAGS=$save_CPPFLAGS
11866 LDFLAGS=$save_LDFLAGS
11867 LIBS=$save_LIBS
11868 ;;
11869 esac
11870
11871 case $lt_cv_dlopen_self in
11872 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11873 *) enable_dlopen_self=unknown ;;
11874 esac
11875
11876 case $lt_cv_dlopen_self_static in
11877 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11878 *) enable_dlopen_self_static=unknown ;;
11879 esac
11880 fi
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898 striplib=
11899 old_striplib=
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11901 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11902 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11903 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11904 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11906 $as_echo "yes" >&6; }
11907 else
11908 # FIXME - insert some real tests, host_os isn't really good enough
11909 case $host_os in
11910 darwin*)
11911 if test -n "$STRIP"; then
11912 striplib="$STRIP -x"
11913 old_striplib="$STRIP -S"
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11915 $as_echo "yes" >&6; }
11916 else
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11918 $as_echo "no" >&6; }
11919 fi
11920 ;;
11921 *)
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11923 $as_echo "no" >&6; }
11924 ;;
11925 esac
11926 fi
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939 # Report what library types will actually be built
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11941 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11943 $as_echo "$can_build_shared" >&6; }
11944
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11946 $as_echo_n "checking whether to build shared libraries... " >&6; }
11947 test no = "$can_build_shared" && enable_shared=no
11948
11949 # On AIX, shared libraries and static libraries use the same namespace, and
11950 # are all built from PIC.
11951 case $host_os in
11952 aix3*)
11953 test yes = "$enable_shared" && enable_static=no
11954 if test -n "$RANLIB"; then
11955 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11956 postinstall_cmds='$RANLIB $lib'
11957 fi
11958 ;;
11959
11960 aix[4-9]*)
11961 if test ia64 != "$host_cpu"; then
11962 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11963 yes,aix,yes) ;; # shared object as lib.so file only
11964 yes,svr4,*) ;; # shared object as lib.so archive member only
11965 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11966 esac
11967 fi
11968 ;;
11969 esac
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11971 $as_echo "$enable_shared" >&6; }
11972
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11974 $as_echo_n "checking whether to build static libraries... " >&6; }
11975 # Make sure either enable_shared or enable_static is yes.
11976 test yes = "$enable_shared" || enable_static=yes
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11978 $as_echo "$enable_static" >&6; }
11979
11980
11981
11982
11983 fi
11984 ac_ext=c
11985 ac_cpp='$CPP $CPPFLAGS'
11986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11989
11990 CC=$lt_save_CC
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006 ac_config_commands="$ac_config_commands libtool"
12007
12008
12009
12010
12011 # Only expand once:
12012
12013
12014
12015 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
12028 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12029 if ${ac_cv_prog_cc_c99+:} false; then :
12030 $as_echo_n "(cached) " >&6
12031 else
12032 ac_cv_prog_cc_c99=no
12033 ac_save_CC=$CC
12034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12035 /* end confdefs.h. */
12036 #include <stdarg.h>
12037 #include <stdbool.h>
12038 #include <stdlib.h>
12039 #include <wchar.h>
12040 #include <stdio.h>
12041
12042 // Check varargs macros. These examples are taken from C99 6.10.3.5.
12043 #define debug(...) fprintf (stderr, __VA_ARGS__)
12044 #define showlist(...) puts (#__VA_ARGS__)
12045 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12046 static void
12047 test_varargs_macros (void)
12048 {
12049 int x = 1234;
12050 int y = 5678;
12051 debug ("Flag");
12052 debug ("X = %d\n", x);
12053 showlist (The first, second, and third items.);
12054 report (x>y, "x is %d but y is %d", x, y);
12055 }
12056
12057 // Check long long types.
12058 #define BIG64 18446744073709551615ull
12059 #define BIG32 4294967295ul
12060 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12061 #if !BIG_OK
12062 your preprocessor is broken;
12063 #endif
12064 #if BIG_OK
12065 #else
12066 your preprocessor is broken;
12067 #endif
12068 static long long int bignum = -9223372036854775807LL;
12069 static unsigned long long int ubignum = BIG64;
12070
12071 struct incomplete_array
12072 {
12073 int datasize;
12074 double data[];
12075 };
12076
12077 struct named_init {
12078 int number;
12079 const wchar_t *name;
12080 double average;
12081 };
12082
12083 typedef const char *ccp;
12084
12085 static inline int
12086 test_restrict (ccp restrict text)
12087 {
12088 // See if C++-style comments work.
12089 // Iterate through items via the restricted pointer.
12090 // Also check for declarations in for loops.
12091 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12092 continue;
12093 return 0;
12094 }
12095
12096 // Check varargs and va_copy.
12097 static void
12098 test_varargs (const char *format, ...)
12099 {
12100 va_list args;
12101 va_start (args, format);
12102 va_list args_copy;
12103 va_copy (args_copy, args);
12104
12105 const char *str;
12106 int number;
12107 float fnumber;
12108
12109 while (*format)
12110 {
12111 switch (*format++)
12112 {
12113 case 's': // string
12114 str = va_arg (args_copy, const char *);
12115 break;
12116 case 'd': // int
12117 number = va_arg (args_copy, int);
12118 break;
12119 case 'f': // float
12120 fnumber = va_arg (args_copy, double);
12121 break;
12122 default:
12123 break;
12124 }
12125 }
12126 va_end (args_copy);
12127 va_end (args);
12128 }
12129
12130 int
12131 main ()
12132 {
12133
12134 // Check bool.
12135 _Bool success = false;
12136
12137 // Check restrict.
12138 if (test_restrict ("String literal") == 0)
12139 success = true;
12140 char *restrict newvar = "Another string";
12141
12142 // Check varargs.
12143 test_varargs ("s, d' f .", "string", 65, 34.234);
12144 test_varargs_macros ();
12145
12146 // Check flexible array members.
12147 struct incomplete_array *ia =
12148 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12149 ia->datasize = 10;
12150 for (int i = 0; i < ia->datasize; ++i)
12151 ia->data[i] = i * 1.234;
12152
12153 // Check named initializers.
12154 struct named_init ni = {
12155 .number = 34,
12156 .name = L"Test wide string",
12157 .average = 543.34343,
12158 };
12159
12160 ni.number = 58;
12161
12162 int dynamic_array[ni.number];
12163 dynamic_array[ni.number - 1] = 543;
12164
12165 // work around unused variable warnings
12166 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12167 || dynamic_array[ni.number - 1] != 543);
12168
12169 ;
12170 return 0;
12171 }
12172 _ACEOF
12173 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12174 do
12175 CC="$ac_save_CC $ac_arg"
12176 if ac_fn_c_try_compile "$LINENO"; then :
12177 ac_cv_prog_cc_c99=$ac_arg
12178 fi
12179 rm -f core conftest.err conftest.$ac_objext
12180 test "x$ac_cv_prog_cc_c99" != "xno" && break
12181 done
12182 rm -f conftest.$ac_ext
12183 CC=$ac_save_CC
12184
12185 fi
12186 # AC_CACHE_VAL
12187 case "x$ac_cv_prog_cc_c99" in
12188 x)
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12190 $as_echo "none needed" >&6; } ;;
12191 xno)
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12193 $as_echo "unsupported" >&6; } ;;
12194 *)
12195 CC="$CC $ac_cv_prog_cc_c99"
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12197 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12198 esac
12199 if test "x$ac_cv_prog_cc_c99" != xno; then :
12200
12201 fi
12202
12203
12204
12205
12206
12207
12208 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12209 if test "x$ac_cv_have_decl___clang__" = xyes; then :
12210 CLANGCC="yes"
12211 else
12212 CLANGCC="no"
12213 fi
12214
12215 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12216 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12217 INTELCC="yes"
12218 else
12219 INTELCC="no"
12220 fi
12221
12222 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12223 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12224 SUNCC="yes"
12225 else
12226 SUNCC="no"
12227 fi
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12238 if test -n "$ac_tool_prefix"; then
12239 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12240 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12242 $as_echo_n "checking for $ac_word... " >&6; }
12243 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12244 $as_echo_n "(cached) " >&6
12245 else
12246 case $PKG_CONFIG in
12247 [\\/]* | ?:[\\/]*)
12248 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12249 ;;
12250 *)
12251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12252 for as_dir in $PATH
12253 do
12254 IFS=$as_save_IFS
12255 test -z "$as_dir" && as_dir=.
12256 for ac_exec_ext in '' $ac_executable_extensions; do
12257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12258 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12260 break 2
12261 fi
12262 done
12263 done
12264 IFS=$as_save_IFS
12265
12266 ;;
12267 esac
12268 fi
12269 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12270 if test -n "$PKG_CONFIG"; then
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12272 $as_echo "$PKG_CONFIG" >&6; }
12273 else
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12275 $as_echo "no" >&6; }
12276 fi
12277
12278
12279 fi
12280 if test -z "$ac_cv_path_PKG_CONFIG"; then
12281 ac_pt_PKG_CONFIG=$PKG_CONFIG
12282 # Extract the first word of "pkg-config", so it can be a program name with args.
12283 set dummy pkg-config; ac_word=$2
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12285 $as_echo_n "checking for $ac_word... " >&6; }
12286 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12287 $as_echo_n "(cached) " >&6
12288 else
12289 case $ac_pt_PKG_CONFIG in
12290 [\\/]* | ?:[\\/]*)
12291 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12292 ;;
12293 *)
12294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12295 for as_dir in $PATH
12296 do
12297 IFS=$as_save_IFS
12298 test -z "$as_dir" && as_dir=.
12299 for ac_exec_ext in '' $ac_executable_extensions; do
12300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12301 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12303 break 2
12304 fi
12305 done
12306 done
12307 IFS=$as_save_IFS
12308
12309 ;;
12310 esac
12311 fi
12312 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12313 if test -n "$ac_pt_PKG_CONFIG"; then
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12315 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12316 else
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12318 $as_echo "no" >&6; }
12319 fi
12320
12321 if test "x$ac_pt_PKG_CONFIG" = x; then
12322 PKG_CONFIG=""
12323 else
12324 case $cross_compiling:$ac_tool_warned in
12325 yes:)
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12328 ac_tool_warned=yes ;;
12329 esac
12330 PKG_CONFIG=$ac_pt_PKG_CONFIG
12331 fi
12332 else
12333 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12334 fi
12335
12336 fi
12337 if test -n "$PKG_CONFIG"; then
12338 _pkg_min_version=0.9.0
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12340 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12341 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12343 $as_echo "yes" >&6; }
12344 else
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12346 $as_echo "no" >&6; }
12347 PKG_CONFIG=""
12348 fi
12349 fi
12350
12351
12352
12353
12354
12355 # Check whether --enable-selective-werror was given.
12356 if test "${enable_selective_werror+set}" = set; then :
12357 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12358 else
12359 SELECTIVE_WERROR=yes
12360 fi
12361
12362
12363
12364
12365
12366 # -v is too short to test reliably with XORG_TESTSET_CFLAG
12367 if test "x$SUNCC" = "xyes"; then
12368 BASE_CFLAGS="-v"
12369 else
12370 BASE_CFLAGS=""
12371 fi
12372
12373 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387 xorg_testset_save_CFLAGS="$CFLAGS"
12388
12389 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12390 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12392 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12393 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12394 $as_echo_n "(cached) " >&6
12395 else
12396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12397 /* end confdefs.h. */
12398 int i;
12399 _ACEOF
12400 if ac_fn_c_try_compile "$LINENO"; then :
12401 xorg_cv_cc_flag_unknown_warning_option=yes
12402 else
12403 xorg_cv_cc_flag_unknown_warning_option=no
12404 fi
12405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12406 fi
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12408 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12409 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12410 CFLAGS="$xorg_testset_save_CFLAGS"
12411 fi
12412
12413 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12415 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12416 fi
12417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12419 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12420 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12421 $as_echo_n "(cached) " >&6
12422 else
12423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12424 /* end confdefs.h. */
12425 int i;
12426 _ACEOF
12427 if ac_fn_c_try_compile "$LINENO"; then :
12428 xorg_cv_cc_flag_unused_command_line_argument=yes
12429 else
12430 xorg_cv_cc_flag_unused_command_line_argument=no
12431 fi
12432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12433 fi
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12435 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12436 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12437 CFLAGS="$xorg_testset_save_CFLAGS"
12438 fi
12439
12440 found="no"
12441
12442 if test $found = "no" ; then
12443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12445 fi
12446
12447 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12449 fi
12450
12451 CFLAGS="$CFLAGS -Wall"
12452
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12454 $as_echo_n "checking if $CC supports -Wall... " >&6; }
12455 cacheid=xorg_cv_cc_flag__Wall
12456 if eval \${$cacheid+:} false; then :
12457 $as_echo_n "(cached) " >&6
12458 else
12459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12460 /* end confdefs.h. */
12461 int i;
12462 int
12463 main ()
12464 {
12465
12466 ;
12467 return 0;
12468 }
12469 _ACEOF
12470 if ac_fn_c_try_link "$LINENO"; then :
12471 eval $cacheid=yes
12472 else
12473 eval $cacheid=no
12474 fi
12475 rm -f core conftest.err conftest.$ac_objext \
12476 conftest$ac_exeext conftest.$ac_ext
12477 fi
12478
12479
12480 CFLAGS="$xorg_testset_save_CFLAGS"
12481
12482 eval supported=\$$cacheid
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12484 $as_echo "$supported" >&6; }
12485 if test "$supported" = "yes" ; then
12486 BASE_CFLAGS="$BASE_CFLAGS -Wall"
12487 found="yes"
12488 fi
12489 fi
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505 xorg_testset_save_CFLAGS="$CFLAGS"
12506
12507 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12508 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12510 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12511 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12512 $as_echo_n "(cached) " >&6
12513 else
12514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12515 /* end confdefs.h. */
12516 int i;
12517 _ACEOF
12518 if ac_fn_c_try_compile "$LINENO"; then :
12519 xorg_cv_cc_flag_unknown_warning_option=yes
12520 else
12521 xorg_cv_cc_flag_unknown_warning_option=no
12522 fi
12523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12524 fi
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12526 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12527 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12528 CFLAGS="$xorg_testset_save_CFLAGS"
12529 fi
12530
12531 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12532 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12533 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12534 fi
12535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12537 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12538 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12539 $as_echo_n "(cached) " >&6
12540 else
12541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12542 /* end confdefs.h. */
12543 int i;
12544 _ACEOF
12545 if ac_fn_c_try_compile "$LINENO"; then :
12546 xorg_cv_cc_flag_unused_command_line_argument=yes
12547 else
12548 xorg_cv_cc_flag_unused_command_line_argument=no
12549 fi
12550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12551 fi
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12553 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12554 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12555 CFLAGS="$xorg_testset_save_CFLAGS"
12556 fi
12557
12558 found="no"
12559
12560 if test $found = "no" ; then
12561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12563 fi
12564
12565 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12567 fi
12568
12569 CFLAGS="$CFLAGS -Wpointer-arith"
12570
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12572 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12573 cacheid=xorg_cv_cc_flag__Wpointer_arith
12574 if eval \${$cacheid+:} false; then :
12575 $as_echo_n "(cached) " >&6
12576 else
12577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12578 /* end confdefs.h. */
12579 int i;
12580 int
12581 main ()
12582 {
12583
12584 ;
12585 return 0;
12586 }
12587 _ACEOF
12588 if ac_fn_c_try_link "$LINENO"; then :
12589 eval $cacheid=yes
12590 else
12591 eval $cacheid=no
12592 fi
12593 rm -f core conftest.err conftest.$ac_objext \
12594 conftest$ac_exeext conftest.$ac_ext
12595 fi
12596
12597
12598 CFLAGS="$xorg_testset_save_CFLAGS"
12599
12600 eval supported=\$$cacheid
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12602 $as_echo "$supported" >&6; }
12603 if test "$supported" = "yes" ; then
12604 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12605 found="yes"
12606 fi
12607 fi
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623 xorg_testset_save_CFLAGS="$CFLAGS"
12624
12625 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12626 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12628 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12629 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12630 $as_echo_n "(cached) " >&6
12631 else
12632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12633 /* end confdefs.h. */
12634 int i;
12635 _ACEOF
12636 if ac_fn_c_try_compile "$LINENO"; then :
12637 xorg_cv_cc_flag_unknown_warning_option=yes
12638 else
12639 xorg_cv_cc_flag_unknown_warning_option=no
12640 fi
12641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12642 fi
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12644 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12645 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12646 CFLAGS="$xorg_testset_save_CFLAGS"
12647 fi
12648
12649 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12650 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12651 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12652 fi
12653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12655 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12656 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12657 $as_echo_n "(cached) " >&6
12658 else
12659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12660 /* end confdefs.h. */
12661 int i;
12662 _ACEOF
12663 if ac_fn_c_try_compile "$LINENO"; then :
12664 xorg_cv_cc_flag_unused_command_line_argument=yes
12665 else
12666 xorg_cv_cc_flag_unused_command_line_argument=no
12667 fi
12668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12669 fi
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12671 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12672 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12673 CFLAGS="$xorg_testset_save_CFLAGS"
12674 fi
12675
12676 found="no"
12677
12678 if test $found = "no" ; then
12679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12680 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12681 fi
12682
12683 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12685 fi
12686
12687 CFLAGS="$CFLAGS -Wmissing-declarations"
12688
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12690 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12691 cacheid=xorg_cv_cc_flag__Wmissing_declarations
12692 if eval \${$cacheid+:} false; then :
12693 $as_echo_n "(cached) " >&6
12694 else
12695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12696 /* end confdefs.h. */
12697 int i;
12698 int
12699 main ()
12700 {
12701
12702 ;
12703 return 0;
12704 }
12705 _ACEOF
12706 if ac_fn_c_try_link "$LINENO"; then :
12707 eval $cacheid=yes
12708 else
12709 eval $cacheid=no
12710 fi
12711 rm -f core conftest.err conftest.$ac_objext \
12712 conftest$ac_exeext conftest.$ac_ext
12713 fi
12714
12715
12716 CFLAGS="$xorg_testset_save_CFLAGS"
12717
12718 eval supported=\$$cacheid
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12720 $as_echo "$supported" >&6; }
12721 if test "$supported" = "yes" ; then
12722 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12723 found="yes"
12724 fi
12725 fi
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741 xorg_testset_save_CFLAGS="$CFLAGS"
12742
12743 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12744 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12746 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12747 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12748 $as_echo_n "(cached) " >&6
12749 else
12750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12751 /* end confdefs.h. */
12752 int i;
12753 _ACEOF
12754 if ac_fn_c_try_compile "$LINENO"; then :
12755 xorg_cv_cc_flag_unknown_warning_option=yes
12756 else
12757 xorg_cv_cc_flag_unknown_warning_option=no
12758 fi
12759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12760 fi
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12762 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12763 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12764 CFLAGS="$xorg_testset_save_CFLAGS"
12765 fi
12766
12767 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12768 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12769 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12770 fi
12771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12773 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12774 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12775 $as_echo_n "(cached) " >&6
12776 else
12777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12778 /* end confdefs.h. */
12779 int i;
12780 _ACEOF
12781 if ac_fn_c_try_compile "$LINENO"; then :
12782 xorg_cv_cc_flag_unused_command_line_argument=yes
12783 else
12784 xorg_cv_cc_flag_unused_command_line_argument=no
12785 fi
12786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12787 fi
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12789 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12790 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12791 CFLAGS="$xorg_testset_save_CFLAGS"
12792 fi
12793
12794 found="no"
12795
12796 if test $found = "no" ; then
12797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12798 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12799 fi
12800
12801 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12803 fi
12804
12805 CFLAGS="$CFLAGS -Wformat=2"
12806
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12808 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12809 cacheid=xorg_cv_cc_flag__Wformat_2
12810 if eval \${$cacheid+:} false; then :
12811 $as_echo_n "(cached) " >&6
12812 else
12813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12814 /* end confdefs.h. */
12815 int i;
12816 int
12817 main ()
12818 {
12819
12820 ;
12821 return 0;
12822 }
12823 _ACEOF
12824 if ac_fn_c_try_link "$LINENO"; then :
12825 eval $cacheid=yes
12826 else
12827 eval $cacheid=no
12828 fi
12829 rm -f core conftest.err conftest.$ac_objext \
12830 conftest$ac_exeext conftest.$ac_ext
12831 fi
12832
12833
12834 CFLAGS="$xorg_testset_save_CFLAGS"
12835
12836 eval supported=\$$cacheid
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12838 $as_echo "$supported" >&6; }
12839 if test "$supported" = "yes" ; then
12840 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12841 found="yes"
12842 fi
12843 fi
12844
12845 if test $found = "no" ; then
12846 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12847 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12848 fi
12849
12850 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12852 fi
12853
12854 CFLAGS="$CFLAGS -Wformat"
12855
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12857 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12858 cacheid=xorg_cv_cc_flag__Wformat
12859 if eval \${$cacheid+:} false; then :
12860 $as_echo_n "(cached) " >&6
12861 else
12862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12863 /* end confdefs.h. */
12864 int i;
12865 int
12866 main ()
12867 {
12868
12869 ;
12870 return 0;
12871 }
12872 _ACEOF
12873 if ac_fn_c_try_link "$LINENO"; then :
12874 eval $cacheid=yes
12875 else
12876 eval $cacheid=no
12877 fi
12878 rm -f core conftest.err conftest.$ac_objext \
12879 conftest$ac_exeext conftest.$ac_ext
12880 fi
12881
12882
12883 CFLAGS="$xorg_testset_save_CFLAGS"
12884
12885 eval supported=\$$cacheid
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12887 $as_echo "$supported" >&6; }
12888 if test "$supported" = "yes" ; then
12889 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12890 found="yes"
12891 fi
12892 fi
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910 xorg_testset_save_CFLAGS="$CFLAGS"
12911
12912 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12913 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12915 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12916 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12917 $as_echo_n "(cached) " >&6
12918 else
12919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12920 /* end confdefs.h. */
12921 int i;
12922 _ACEOF
12923 if ac_fn_c_try_compile "$LINENO"; then :
12924 xorg_cv_cc_flag_unknown_warning_option=yes
12925 else
12926 xorg_cv_cc_flag_unknown_warning_option=no
12927 fi
12928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12929 fi
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12931 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12932 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12933 CFLAGS="$xorg_testset_save_CFLAGS"
12934 fi
12935
12936 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12938 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12939 fi
12940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12942 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12943 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12944 $as_echo_n "(cached) " >&6
12945 else
12946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12947 /* end confdefs.h. */
12948 int i;
12949 _ACEOF
12950 if ac_fn_c_try_compile "$LINENO"; then :
12951 xorg_cv_cc_flag_unused_command_line_argument=yes
12952 else
12953 xorg_cv_cc_flag_unused_command_line_argument=no
12954 fi
12955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12956 fi
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12958 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12959 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12960 CFLAGS="$xorg_testset_save_CFLAGS"
12961 fi
12962
12963 found="no"
12964
12965 if test $found = "no" ; then
12966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12967 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12968 fi
12969
12970 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12972 fi
12973
12974 CFLAGS="$CFLAGS -Wstrict-prototypes"
12975
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12977 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12978 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12979 if eval \${$cacheid+:} false; then :
12980 $as_echo_n "(cached) " >&6
12981 else
12982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12983 /* end confdefs.h. */
12984 int i;
12985 int
12986 main ()
12987 {
12988
12989 ;
12990 return 0;
12991 }
12992 _ACEOF
12993 if ac_fn_c_try_link "$LINENO"; then :
12994 eval $cacheid=yes
12995 else
12996 eval $cacheid=no
12997 fi
12998 rm -f core conftest.err conftest.$ac_objext \
12999 conftest$ac_exeext conftest.$ac_ext
13000 fi
13001
13002
13003 CFLAGS="$xorg_testset_save_CFLAGS"
13004
13005 eval supported=\$$cacheid
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13007 $as_echo "$supported" >&6; }
13008 if test "$supported" = "yes" ; then
13009 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13010 found="yes"
13011 fi
13012 fi
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028 xorg_testset_save_CFLAGS="$CFLAGS"
13029
13030 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13031 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13033 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13034 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13035 $as_echo_n "(cached) " >&6
13036 else
13037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13038 /* end confdefs.h. */
13039 int i;
13040 _ACEOF
13041 if ac_fn_c_try_compile "$LINENO"; then :
13042 xorg_cv_cc_flag_unknown_warning_option=yes
13043 else
13044 xorg_cv_cc_flag_unknown_warning_option=no
13045 fi
13046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13047 fi
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13049 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13050 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13051 CFLAGS="$xorg_testset_save_CFLAGS"
13052 fi
13053
13054 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13057 fi
13058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13060 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13061 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13062 $as_echo_n "(cached) " >&6
13063 else
13064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13065 /* end confdefs.h. */
13066 int i;
13067 _ACEOF
13068 if ac_fn_c_try_compile "$LINENO"; then :
13069 xorg_cv_cc_flag_unused_command_line_argument=yes
13070 else
13071 xorg_cv_cc_flag_unused_command_line_argument=no
13072 fi
13073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13074 fi
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13076 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13077 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13078 CFLAGS="$xorg_testset_save_CFLAGS"
13079 fi
13080
13081 found="no"
13082
13083 if test $found = "no" ; then
13084 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13086 fi
13087
13088 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13089 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13090 fi
13091
13092 CFLAGS="$CFLAGS -Wmissing-prototypes"
13093
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13095 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
13096 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13097 if eval \${$cacheid+:} false; then :
13098 $as_echo_n "(cached) " >&6
13099 else
13100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13101 /* end confdefs.h. */
13102 int i;
13103 int
13104 main ()
13105 {
13106
13107 ;
13108 return 0;
13109 }
13110 _ACEOF
13111 if ac_fn_c_try_link "$LINENO"; then :
13112 eval $cacheid=yes
13113 else
13114 eval $cacheid=no
13115 fi
13116 rm -f core conftest.err conftest.$ac_objext \
13117 conftest$ac_exeext conftest.$ac_ext
13118 fi
13119
13120
13121 CFLAGS="$xorg_testset_save_CFLAGS"
13122
13123 eval supported=\$$cacheid
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13125 $as_echo "$supported" >&6; }
13126 if test "$supported" = "yes" ; then
13127 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13128 found="yes"
13129 fi
13130 fi
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146 xorg_testset_save_CFLAGS="$CFLAGS"
13147
13148 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13149 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13151 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13152 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13153 $as_echo_n "(cached) " >&6
13154 else
13155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13156 /* end confdefs.h. */
13157 int i;
13158 _ACEOF
13159 if ac_fn_c_try_compile "$LINENO"; then :
13160 xorg_cv_cc_flag_unknown_warning_option=yes
13161 else
13162 xorg_cv_cc_flag_unknown_warning_option=no
13163 fi
13164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13165 fi
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13167 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13168 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13169 CFLAGS="$xorg_testset_save_CFLAGS"
13170 fi
13171
13172 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13174 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13175 fi
13176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13178 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13179 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13180 $as_echo_n "(cached) " >&6
13181 else
13182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13183 /* end confdefs.h. */
13184 int i;
13185 _ACEOF
13186 if ac_fn_c_try_compile "$LINENO"; then :
13187 xorg_cv_cc_flag_unused_command_line_argument=yes
13188 else
13189 xorg_cv_cc_flag_unused_command_line_argument=no
13190 fi
13191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13192 fi
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13194 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13195 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13196 CFLAGS="$xorg_testset_save_CFLAGS"
13197 fi
13198
13199 found="no"
13200
13201 if test $found = "no" ; then
13202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13204 fi
13205
13206 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13208 fi
13209
13210 CFLAGS="$CFLAGS -Wnested-externs"
13211
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13213 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13214 cacheid=xorg_cv_cc_flag__Wnested_externs
13215 if eval \${$cacheid+:} false; then :
13216 $as_echo_n "(cached) " >&6
13217 else
13218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13219 /* end confdefs.h. */
13220 int i;
13221 int
13222 main ()
13223 {
13224
13225 ;
13226 return 0;
13227 }
13228 _ACEOF
13229 if ac_fn_c_try_link "$LINENO"; then :
13230 eval $cacheid=yes
13231 else
13232 eval $cacheid=no
13233 fi
13234 rm -f core conftest.err conftest.$ac_objext \
13235 conftest$ac_exeext conftest.$ac_ext
13236 fi
13237
13238
13239 CFLAGS="$xorg_testset_save_CFLAGS"
13240
13241 eval supported=\$$cacheid
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13243 $as_echo "$supported" >&6; }
13244 if test "$supported" = "yes" ; then
13245 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13246 found="yes"
13247 fi
13248 fi
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264 xorg_testset_save_CFLAGS="$CFLAGS"
13265
13266 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13267 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13269 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13270 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13271 $as_echo_n "(cached) " >&6
13272 else
13273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13274 /* end confdefs.h. */
13275 int i;
13276 _ACEOF
13277 if ac_fn_c_try_compile "$LINENO"; then :
13278 xorg_cv_cc_flag_unknown_warning_option=yes
13279 else
13280 xorg_cv_cc_flag_unknown_warning_option=no
13281 fi
13282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13283 fi
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13285 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13286 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13287 CFLAGS="$xorg_testset_save_CFLAGS"
13288 fi
13289
13290 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13291 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13292 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13293 fi
13294 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13296 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13297 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13298 $as_echo_n "(cached) " >&6
13299 else
13300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13301 /* end confdefs.h. */
13302 int i;
13303 _ACEOF
13304 if ac_fn_c_try_compile "$LINENO"; then :
13305 xorg_cv_cc_flag_unused_command_line_argument=yes
13306 else
13307 xorg_cv_cc_flag_unused_command_line_argument=no
13308 fi
13309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13310 fi
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13312 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13313 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13314 CFLAGS="$xorg_testset_save_CFLAGS"
13315 fi
13316
13317 found="no"
13318
13319 if test $found = "no" ; then
13320 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13321 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13322 fi
13323
13324 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13326 fi
13327
13328 CFLAGS="$CFLAGS -Wbad-function-cast"
13329
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13331 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13332 cacheid=xorg_cv_cc_flag__Wbad_function_cast
13333 if eval \${$cacheid+:} false; then :
13334 $as_echo_n "(cached) " >&6
13335 else
13336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13337 /* end confdefs.h. */
13338 int i;
13339 int
13340 main ()
13341 {
13342
13343 ;
13344 return 0;
13345 }
13346 _ACEOF
13347 if ac_fn_c_try_link "$LINENO"; then :
13348 eval $cacheid=yes
13349 else
13350 eval $cacheid=no
13351 fi
13352 rm -f core conftest.err conftest.$ac_objext \
13353 conftest$ac_exeext conftest.$ac_ext
13354 fi
13355
13356
13357 CFLAGS="$xorg_testset_save_CFLAGS"
13358
13359 eval supported=\$$cacheid
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13361 $as_echo "$supported" >&6; }
13362 if test "$supported" = "yes" ; then
13363 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13364 found="yes"
13365 fi
13366 fi
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382 xorg_testset_save_CFLAGS="$CFLAGS"
13383
13384 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13385 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13387 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13388 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13389 $as_echo_n "(cached) " >&6
13390 else
13391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13392 /* end confdefs.h. */
13393 int i;
13394 _ACEOF
13395 if ac_fn_c_try_compile "$LINENO"; then :
13396 xorg_cv_cc_flag_unknown_warning_option=yes
13397 else
13398 xorg_cv_cc_flag_unknown_warning_option=no
13399 fi
13400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13401 fi
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13403 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13404 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13405 CFLAGS="$xorg_testset_save_CFLAGS"
13406 fi
13407
13408 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13410 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13411 fi
13412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13414 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13415 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13416 $as_echo_n "(cached) " >&6
13417 else
13418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13419 /* end confdefs.h. */
13420 int i;
13421 _ACEOF
13422 if ac_fn_c_try_compile "$LINENO"; then :
13423 xorg_cv_cc_flag_unused_command_line_argument=yes
13424 else
13425 xorg_cv_cc_flag_unused_command_line_argument=no
13426 fi
13427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13428 fi
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13430 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13431 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13432 CFLAGS="$xorg_testset_save_CFLAGS"
13433 fi
13434
13435 found="no"
13436
13437 if test $found = "no" ; then
13438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13439 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13440 fi
13441
13442 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13444 fi
13445
13446 CFLAGS="$CFLAGS -Wold-style-definition"
13447
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13449 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13450 cacheid=xorg_cv_cc_flag__Wold_style_definition
13451 if eval \${$cacheid+:} false; then :
13452 $as_echo_n "(cached) " >&6
13453 else
13454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13455 /* end confdefs.h. */
13456 int i;
13457 int
13458 main ()
13459 {
13460
13461 ;
13462 return 0;
13463 }
13464 _ACEOF
13465 if ac_fn_c_try_link "$LINENO"; then :
13466 eval $cacheid=yes
13467 else
13468 eval $cacheid=no
13469 fi
13470 rm -f core conftest.err conftest.$ac_objext \
13471 conftest$ac_exeext conftest.$ac_ext
13472 fi
13473
13474
13475 CFLAGS="$xorg_testset_save_CFLAGS"
13476
13477 eval supported=\$$cacheid
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13479 $as_echo "$supported" >&6; }
13480 if test "$supported" = "yes" ; then
13481 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13482 found="yes"
13483 fi
13484 fi
13485
13486 if test $found = "no" ; then
13487 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13488 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13489 fi
13490
13491 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13493 fi
13494
13495 CFLAGS="$CFLAGS -fd"
13496
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13498 $as_echo_n "checking if $CC supports -fd... " >&6; }
13499 cacheid=xorg_cv_cc_flag__fd
13500 if eval \${$cacheid+:} false; then :
13501 $as_echo_n "(cached) " >&6
13502 else
13503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13504 /* end confdefs.h. */
13505 int i;
13506 int
13507 main ()
13508 {
13509
13510 ;
13511 return 0;
13512 }
13513 _ACEOF
13514 if ac_fn_c_try_link "$LINENO"; then :
13515 eval $cacheid=yes
13516 else
13517 eval $cacheid=no
13518 fi
13519 rm -f core conftest.err conftest.$ac_objext \
13520 conftest$ac_exeext conftest.$ac_ext
13521 fi
13522
13523
13524 CFLAGS="$xorg_testset_save_CFLAGS"
13525
13526 eval supported=\$$cacheid
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13528 $as_echo "$supported" >&6; }
13529 if test "$supported" = "yes" ; then
13530 BASE_CFLAGS="$BASE_CFLAGS -fd"
13531 found="yes"
13532 fi
13533 fi
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549 xorg_testset_save_CFLAGS="$CFLAGS"
13550
13551 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13552 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13554 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13555 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13556 $as_echo_n "(cached) " >&6
13557 else
13558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13559 /* end confdefs.h. */
13560 int i;
13561 _ACEOF
13562 if ac_fn_c_try_compile "$LINENO"; then :
13563 xorg_cv_cc_flag_unknown_warning_option=yes
13564 else
13565 xorg_cv_cc_flag_unknown_warning_option=no
13566 fi
13567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13568 fi
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13570 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13571 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13572 CFLAGS="$xorg_testset_save_CFLAGS"
13573 fi
13574
13575 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13577 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13578 fi
13579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13581 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13582 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13583 $as_echo_n "(cached) " >&6
13584 else
13585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13586 /* end confdefs.h. */
13587 int i;
13588 _ACEOF
13589 if ac_fn_c_try_compile "$LINENO"; then :
13590 xorg_cv_cc_flag_unused_command_line_argument=yes
13591 else
13592 xorg_cv_cc_flag_unused_command_line_argument=no
13593 fi
13594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13595 fi
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13597 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13598 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13599 CFLAGS="$xorg_testset_save_CFLAGS"
13600 fi
13601
13602 found="no"
13603
13604 if test $found = "no" ; then
13605 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13606 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13607 fi
13608
13609 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13611 fi
13612
13613 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13614
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13616 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13617 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13618 if eval \${$cacheid+:} false; then :
13619 $as_echo_n "(cached) " >&6
13620 else
13621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13622 /* end confdefs.h. */
13623 int i;
13624 int
13625 main ()
13626 {
13627
13628 ;
13629 return 0;
13630 }
13631 _ACEOF
13632 if ac_fn_c_try_link "$LINENO"; then :
13633 eval $cacheid=yes
13634 else
13635 eval $cacheid=no
13636 fi
13637 rm -f core conftest.err conftest.$ac_objext \
13638 conftest$ac_exeext conftest.$ac_ext
13639 fi
13640
13641
13642 CFLAGS="$xorg_testset_save_CFLAGS"
13643
13644 eval supported=\$$cacheid
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13646 $as_echo "$supported" >&6; }
13647 if test "$supported" = "yes" ; then
13648 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13649 found="yes"
13650 fi
13651 fi
13652
13653
13654
13655
13656
13657 # This chunk adds additional warnings that could catch undesired effects.
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671 xorg_testset_save_CFLAGS="$CFLAGS"
13672
13673 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13674 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13676 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13677 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13678 $as_echo_n "(cached) " >&6
13679 else
13680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13681 /* end confdefs.h. */
13682 int i;
13683 _ACEOF
13684 if ac_fn_c_try_compile "$LINENO"; then :
13685 xorg_cv_cc_flag_unknown_warning_option=yes
13686 else
13687 xorg_cv_cc_flag_unknown_warning_option=no
13688 fi
13689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13690 fi
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13692 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13693 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13694 CFLAGS="$xorg_testset_save_CFLAGS"
13695 fi
13696
13697 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13698 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13699 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13700 fi
13701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13703 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13704 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13705 $as_echo_n "(cached) " >&6
13706 else
13707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13708 /* end confdefs.h. */
13709 int i;
13710 _ACEOF
13711 if ac_fn_c_try_compile "$LINENO"; then :
13712 xorg_cv_cc_flag_unused_command_line_argument=yes
13713 else
13714 xorg_cv_cc_flag_unused_command_line_argument=no
13715 fi
13716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13717 fi
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13719 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13720 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13721 CFLAGS="$xorg_testset_save_CFLAGS"
13722 fi
13723
13724 found="no"
13725
13726 if test $found = "no" ; then
13727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13729 fi
13730
13731 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13733 fi
13734
13735 CFLAGS="$CFLAGS -Wunused"
13736
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13738 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
13739 cacheid=xorg_cv_cc_flag__Wunused
13740 if eval \${$cacheid+:} false; then :
13741 $as_echo_n "(cached) " >&6
13742 else
13743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13744 /* end confdefs.h. */
13745 int i;
13746 int
13747 main ()
13748 {
13749
13750 ;
13751 return 0;
13752 }
13753 _ACEOF
13754 if ac_fn_c_try_link "$LINENO"; then :
13755 eval $cacheid=yes
13756 else
13757 eval $cacheid=no
13758 fi
13759 rm -f core conftest.err conftest.$ac_objext \
13760 conftest$ac_exeext conftest.$ac_ext
13761 fi
13762
13763
13764 CFLAGS="$xorg_testset_save_CFLAGS"
13765
13766 eval supported=\$$cacheid
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13768 $as_echo "$supported" >&6; }
13769 if test "$supported" = "yes" ; then
13770 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13771 found="yes"
13772 fi
13773 fi
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789 xorg_testset_save_CFLAGS="$CFLAGS"
13790
13791 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13792 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13794 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13795 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13796 $as_echo_n "(cached) " >&6
13797 else
13798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13799 /* end confdefs.h. */
13800 int i;
13801 _ACEOF
13802 if ac_fn_c_try_compile "$LINENO"; then :
13803 xorg_cv_cc_flag_unknown_warning_option=yes
13804 else
13805 xorg_cv_cc_flag_unknown_warning_option=no
13806 fi
13807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13808 fi
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13810 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13811 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13812 CFLAGS="$xorg_testset_save_CFLAGS"
13813 fi
13814
13815 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13817 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13818 fi
13819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13821 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13822 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13823 $as_echo_n "(cached) " >&6
13824 else
13825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13826 /* end confdefs.h. */
13827 int i;
13828 _ACEOF
13829 if ac_fn_c_try_compile "$LINENO"; then :
13830 xorg_cv_cc_flag_unused_command_line_argument=yes
13831 else
13832 xorg_cv_cc_flag_unused_command_line_argument=no
13833 fi
13834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13835 fi
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13837 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13838 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13839 CFLAGS="$xorg_testset_save_CFLAGS"
13840 fi
13841
13842 found="no"
13843
13844 if test $found = "no" ; then
13845 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13846 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13847 fi
13848
13849 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13850 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13851 fi
13852
13853 CFLAGS="$CFLAGS -Wuninitialized"
13854
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13856 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13857 cacheid=xorg_cv_cc_flag__Wuninitialized
13858 if eval \${$cacheid+:} false; then :
13859 $as_echo_n "(cached) " >&6
13860 else
13861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13862 /* end confdefs.h. */
13863 int i;
13864 int
13865 main ()
13866 {
13867
13868 ;
13869 return 0;
13870 }
13871 _ACEOF
13872 if ac_fn_c_try_link "$LINENO"; then :
13873 eval $cacheid=yes
13874 else
13875 eval $cacheid=no
13876 fi
13877 rm -f core conftest.err conftest.$ac_objext \
13878 conftest$ac_exeext conftest.$ac_ext
13879 fi
13880
13881
13882 CFLAGS="$xorg_testset_save_CFLAGS"
13883
13884 eval supported=\$$cacheid
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13886 $as_echo "$supported" >&6; }
13887 if test "$supported" = "yes" ; then
13888 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13889 found="yes"
13890 fi
13891 fi
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907 xorg_testset_save_CFLAGS="$CFLAGS"
13908
13909 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13910 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13912 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13913 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13914 $as_echo_n "(cached) " >&6
13915 else
13916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13917 /* end confdefs.h. */
13918 int i;
13919 _ACEOF
13920 if ac_fn_c_try_compile "$LINENO"; then :
13921 xorg_cv_cc_flag_unknown_warning_option=yes
13922 else
13923 xorg_cv_cc_flag_unknown_warning_option=no
13924 fi
13925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13926 fi
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13928 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13929 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13930 CFLAGS="$xorg_testset_save_CFLAGS"
13931 fi
13932
13933 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13935 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13936 fi
13937 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13939 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13940 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13941 $as_echo_n "(cached) " >&6
13942 else
13943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13944 /* end confdefs.h. */
13945 int i;
13946 _ACEOF
13947 if ac_fn_c_try_compile "$LINENO"; then :
13948 xorg_cv_cc_flag_unused_command_line_argument=yes
13949 else
13950 xorg_cv_cc_flag_unused_command_line_argument=no
13951 fi
13952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13953 fi
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13955 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13956 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13957 CFLAGS="$xorg_testset_save_CFLAGS"
13958 fi
13959
13960 found="no"
13961
13962 if test $found = "no" ; then
13963 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13964 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13965 fi
13966
13967 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13969 fi
13970
13971 CFLAGS="$CFLAGS -Wshadow"
13972
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13974 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13975 cacheid=xorg_cv_cc_flag__Wshadow
13976 if eval \${$cacheid+:} false; then :
13977 $as_echo_n "(cached) " >&6
13978 else
13979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13980 /* end confdefs.h. */
13981 int i;
13982 int
13983 main ()
13984 {
13985
13986 ;
13987 return 0;
13988 }
13989 _ACEOF
13990 if ac_fn_c_try_link "$LINENO"; then :
13991 eval $cacheid=yes
13992 else
13993 eval $cacheid=no
13994 fi
13995 rm -f core conftest.err conftest.$ac_objext \
13996 conftest$ac_exeext conftest.$ac_ext
13997 fi
13998
13999
14000 CFLAGS="$xorg_testset_save_CFLAGS"
14001
14002 eval supported=\$$cacheid
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14004 $as_echo "$supported" >&6; }
14005 if test "$supported" = "yes" ; then
14006 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14007 found="yes"
14008 fi
14009 fi
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025 xorg_testset_save_CFLAGS="$CFLAGS"
14026
14027 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14028 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14030 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14031 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14032 $as_echo_n "(cached) " >&6
14033 else
14034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14035 /* end confdefs.h. */
14036 int i;
14037 _ACEOF
14038 if ac_fn_c_try_compile "$LINENO"; then :
14039 xorg_cv_cc_flag_unknown_warning_option=yes
14040 else
14041 xorg_cv_cc_flag_unknown_warning_option=no
14042 fi
14043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14044 fi
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14046 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14047 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14048 CFLAGS="$xorg_testset_save_CFLAGS"
14049 fi
14050
14051 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14052 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14053 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14054 fi
14055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14057 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14058 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14059 $as_echo_n "(cached) " >&6
14060 else
14061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14062 /* end confdefs.h. */
14063 int i;
14064 _ACEOF
14065 if ac_fn_c_try_compile "$LINENO"; then :
14066 xorg_cv_cc_flag_unused_command_line_argument=yes
14067 else
14068 xorg_cv_cc_flag_unused_command_line_argument=no
14069 fi
14070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14071 fi
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14073 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14074 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14075 CFLAGS="$xorg_testset_save_CFLAGS"
14076 fi
14077
14078 found="no"
14079
14080 if test $found = "no" ; then
14081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14082 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14083 fi
14084
14085 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14087 fi
14088
14089 CFLAGS="$CFLAGS -Wmissing-noreturn"
14090
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14092 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
14093 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14094 if eval \${$cacheid+:} false; then :
14095 $as_echo_n "(cached) " >&6
14096 else
14097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14098 /* end confdefs.h. */
14099 int i;
14100 int
14101 main ()
14102 {
14103
14104 ;
14105 return 0;
14106 }
14107 _ACEOF
14108 if ac_fn_c_try_link "$LINENO"; then :
14109 eval $cacheid=yes
14110 else
14111 eval $cacheid=no
14112 fi
14113 rm -f core conftest.err conftest.$ac_objext \
14114 conftest$ac_exeext conftest.$ac_ext
14115 fi
14116
14117
14118 CFLAGS="$xorg_testset_save_CFLAGS"
14119
14120 eval supported=\$$cacheid
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14122 $as_echo "$supported" >&6; }
14123 if test "$supported" = "yes" ; then
14124 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14125 found="yes"
14126 fi
14127 fi
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143 xorg_testset_save_CFLAGS="$CFLAGS"
14144
14145 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14146 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14148 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14149 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14150 $as_echo_n "(cached) " >&6
14151 else
14152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14153 /* end confdefs.h. */
14154 int i;
14155 _ACEOF
14156 if ac_fn_c_try_compile "$LINENO"; then :
14157 xorg_cv_cc_flag_unknown_warning_option=yes
14158 else
14159 xorg_cv_cc_flag_unknown_warning_option=no
14160 fi
14161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14162 fi
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14164 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14165 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14166 CFLAGS="$xorg_testset_save_CFLAGS"
14167 fi
14168
14169 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14171 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14172 fi
14173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14175 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14176 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14177 $as_echo_n "(cached) " >&6
14178 else
14179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14180 /* end confdefs.h. */
14181 int i;
14182 _ACEOF
14183 if ac_fn_c_try_compile "$LINENO"; then :
14184 xorg_cv_cc_flag_unused_command_line_argument=yes
14185 else
14186 xorg_cv_cc_flag_unused_command_line_argument=no
14187 fi
14188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14189 fi
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14191 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14192 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14193 CFLAGS="$xorg_testset_save_CFLAGS"
14194 fi
14195
14196 found="no"
14197
14198 if test $found = "no" ; then
14199 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14200 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14201 fi
14202
14203 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14205 fi
14206
14207 CFLAGS="$CFLAGS -Wmissing-format-attribute"
14208
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14210 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14211 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14212 if eval \${$cacheid+:} false; then :
14213 $as_echo_n "(cached) " >&6
14214 else
14215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14216 /* end confdefs.h. */
14217 int i;
14218 int
14219 main ()
14220 {
14221
14222 ;
14223 return 0;
14224 }
14225 _ACEOF
14226 if ac_fn_c_try_link "$LINENO"; then :
14227 eval $cacheid=yes
14228 else
14229 eval $cacheid=no
14230 fi
14231 rm -f core conftest.err conftest.$ac_objext \
14232 conftest$ac_exeext conftest.$ac_ext
14233 fi
14234
14235
14236 CFLAGS="$xorg_testset_save_CFLAGS"
14237
14238 eval supported=\$$cacheid
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14240 $as_echo "$supported" >&6; }
14241 if test "$supported" = "yes" ; then
14242 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14243 found="yes"
14244 fi
14245 fi
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261 xorg_testset_save_CFLAGS="$CFLAGS"
14262
14263 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14264 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14266 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14267 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14268 $as_echo_n "(cached) " >&6
14269 else
14270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14271 /* end confdefs.h. */
14272 int i;
14273 _ACEOF
14274 if ac_fn_c_try_compile "$LINENO"; then :
14275 xorg_cv_cc_flag_unknown_warning_option=yes
14276 else
14277 xorg_cv_cc_flag_unknown_warning_option=no
14278 fi
14279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14280 fi
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14282 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14283 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14284 CFLAGS="$xorg_testset_save_CFLAGS"
14285 fi
14286
14287 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14289 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14290 fi
14291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14293 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14294 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14295 $as_echo_n "(cached) " >&6
14296 else
14297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14298 /* end confdefs.h. */
14299 int i;
14300 _ACEOF
14301 if ac_fn_c_try_compile "$LINENO"; then :
14302 xorg_cv_cc_flag_unused_command_line_argument=yes
14303 else
14304 xorg_cv_cc_flag_unused_command_line_argument=no
14305 fi
14306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14307 fi
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14309 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14310 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14311 CFLAGS="$xorg_testset_save_CFLAGS"
14312 fi
14313
14314 found="no"
14315
14316 if test $found = "no" ; then
14317 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14318 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14319 fi
14320
14321 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14323 fi
14324
14325 CFLAGS="$CFLAGS -Wredundant-decls"
14326
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14328 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14329 cacheid=xorg_cv_cc_flag__Wredundant_decls
14330 if eval \${$cacheid+:} false; then :
14331 $as_echo_n "(cached) " >&6
14332 else
14333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14334 /* end confdefs.h. */
14335 int i;
14336 int
14337 main ()
14338 {
14339
14340 ;
14341 return 0;
14342 }
14343 _ACEOF
14344 if ac_fn_c_try_link "$LINENO"; then :
14345 eval $cacheid=yes
14346 else
14347 eval $cacheid=no
14348 fi
14349 rm -f core conftest.err conftest.$ac_objext \
14350 conftest$ac_exeext conftest.$ac_ext
14351 fi
14352
14353
14354 CFLAGS="$xorg_testset_save_CFLAGS"
14355
14356 eval supported=\$$cacheid
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14358 $as_echo "$supported" >&6; }
14359 if test "$supported" = "yes" ; then
14360 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14361 found="yes"
14362 fi
14363 fi
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379 xorg_testset_save_CFLAGS="$CFLAGS"
14380
14381 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14382 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14384 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14385 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14386 $as_echo_n "(cached) " >&6
14387 else
14388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14389 /* end confdefs.h. */
14390 int i;
14391 _ACEOF
14392 if ac_fn_c_try_compile "$LINENO"; then :
14393 xorg_cv_cc_flag_unknown_warning_option=yes
14394 else
14395 xorg_cv_cc_flag_unknown_warning_option=no
14396 fi
14397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14398 fi
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14400 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14401 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14402 CFLAGS="$xorg_testset_save_CFLAGS"
14403 fi
14404
14405 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14407 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14408 fi
14409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14411 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14412 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14413 $as_echo_n "(cached) " >&6
14414 else
14415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14416 /* end confdefs.h. */
14417 int i;
14418 _ACEOF
14419 if ac_fn_c_try_compile "$LINENO"; then :
14420 xorg_cv_cc_flag_unused_command_line_argument=yes
14421 else
14422 xorg_cv_cc_flag_unused_command_line_argument=no
14423 fi
14424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14425 fi
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14427 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14428 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14429 CFLAGS="$xorg_testset_save_CFLAGS"
14430 fi
14431
14432 found="no"
14433
14434 if test $found = "no" ; then
14435 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14437 fi
14438
14439 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14441 fi
14442
14443 CFLAGS="$CFLAGS -Wlogical-op"
14444
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14446 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14447 cacheid=xorg_cv_cc_flag__Wlogical_op
14448 if eval \${$cacheid+:} false; then :
14449 $as_echo_n "(cached) " >&6
14450 else
14451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14452 /* end confdefs.h. */
14453 int i;
14454 int
14455 main ()
14456 {
14457
14458 ;
14459 return 0;
14460 }
14461 _ACEOF
14462 if ac_fn_c_try_link "$LINENO"; then :
14463 eval $cacheid=yes
14464 else
14465 eval $cacheid=no
14466 fi
14467 rm -f core conftest.err conftest.$ac_objext \
14468 conftest$ac_exeext conftest.$ac_ext
14469 fi
14470
14471
14472 CFLAGS="$xorg_testset_save_CFLAGS"
14473
14474 eval supported=\$$cacheid
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14476 $as_echo "$supported" >&6; }
14477 if test "$supported" = "yes" ; then
14478 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14479 found="yes"
14480 fi
14481 fi
14482
14483
14484
14485 # These are currently disabled because they are noisy. They will be enabled
14486 # in the future once the codebase is sufficiently modernized to silence
14487 # them. For now, I don't want them to drown out the other warnings.
14488 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14489 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14490 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14491
14492 # Turn some warnings into errors, so we don't accidently get successful builds
14493 # when there are problems that should be fixed.
14494
14495 if test "x$SELECTIVE_WERROR" = "xyes" ; then
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509 xorg_testset_save_CFLAGS="$CFLAGS"
14510
14511 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14514 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14515 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14516 $as_echo_n "(cached) " >&6
14517 else
14518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14519 /* end confdefs.h. */
14520 int i;
14521 _ACEOF
14522 if ac_fn_c_try_compile "$LINENO"; then :
14523 xorg_cv_cc_flag_unknown_warning_option=yes
14524 else
14525 xorg_cv_cc_flag_unknown_warning_option=no
14526 fi
14527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14528 fi
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14530 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14531 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14532 CFLAGS="$xorg_testset_save_CFLAGS"
14533 fi
14534
14535 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14536 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14537 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14538 fi
14539 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14541 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14542 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14543 $as_echo_n "(cached) " >&6
14544 else
14545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14546 /* end confdefs.h. */
14547 int i;
14548 _ACEOF
14549 if ac_fn_c_try_compile "$LINENO"; then :
14550 xorg_cv_cc_flag_unused_command_line_argument=yes
14551 else
14552 xorg_cv_cc_flag_unused_command_line_argument=no
14553 fi
14554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14555 fi
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14557 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14558 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14559 CFLAGS="$xorg_testset_save_CFLAGS"
14560 fi
14561
14562 found="no"
14563
14564 if test $found = "no" ; then
14565 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14566 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14567 fi
14568
14569 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14570 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14571 fi
14572
14573 CFLAGS="$CFLAGS -Werror=implicit"
14574
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14576 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14577 cacheid=xorg_cv_cc_flag__Werror_implicit
14578 if eval \${$cacheid+:} false; then :
14579 $as_echo_n "(cached) " >&6
14580 else
14581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14582 /* end confdefs.h. */
14583 int i;
14584 int
14585 main ()
14586 {
14587
14588 ;
14589 return 0;
14590 }
14591 _ACEOF
14592 if ac_fn_c_try_link "$LINENO"; then :
14593 eval $cacheid=yes
14594 else
14595 eval $cacheid=no
14596 fi
14597 rm -f core conftest.err conftest.$ac_objext \
14598 conftest$ac_exeext conftest.$ac_ext
14599 fi
14600
14601
14602 CFLAGS="$xorg_testset_save_CFLAGS"
14603
14604 eval supported=\$$cacheid
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14606 $as_echo "$supported" >&6; }
14607 if test "$supported" = "yes" ; then
14608 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14609 found="yes"
14610 fi
14611 fi
14612
14613 if test $found = "no" ; then
14614 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14615 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14616 fi
14617
14618 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14620 fi
14621
14622 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14623
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14625 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14626 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14627 if eval \${$cacheid+:} false; then :
14628 $as_echo_n "(cached) " >&6
14629 else
14630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14631 /* end confdefs.h. */
14632 int i;
14633 int
14634 main ()
14635 {
14636
14637 ;
14638 return 0;
14639 }
14640 _ACEOF
14641 if ac_fn_c_try_link "$LINENO"; then :
14642 eval $cacheid=yes
14643 else
14644 eval $cacheid=no
14645 fi
14646 rm -f core conftest.err conftest.$ac_objext \
14647 conftest$ac_exeext conftest.$ac_ext
14648 fi
14649
14650
14651 CFLAGS="$xorg_testset_save_CFLAGS"
14652
14653 eval supported=\$$cacheid
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14655 $as_echo "$supported" >&6; }
14656 if test "$supported" = "yes" ; then
14657 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14658 found="yes"
14659 fi
14660 fi
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676 xorg_testset_save_CFLAGS="$CFLAGS"
14677
14678 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14679 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14681 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14682 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
14691 else
14692 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
14697 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14698 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14699 CFLAGS="$xorg_testset_save_CFLAGS"
14700 fi
14701
14702 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14703 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14704 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14705 fi
14706 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14708 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14709 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14710 $as_echo_n "(cached) " >&6
14711 else
14712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14713 /* end confdefs.h. */
14714 int i;
14715 _ACEOF
14716 if ac_fn_c_try_compile "$LINENO"; then :
14717 xorg_cv_cc_flag_unused_command_line_argument=yes
14718 else
14719 xorg_cv_cc_flag_unused_command_line_argument=no
14720 fi
14721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14722 fi
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14724 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14725 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14726 CFLAGS="$xorg_testset_save_CFLAGS"
14727 fi
14728
14729 found="no"
14730
14731 if test $found = "no" ; then
14732 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14733 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14734 fi
14735
14736 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14738 fi
14739
14740 CFLAGS="$CFLAGS -Werror=nonnull"
14741
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14743 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14744 cacheid=xorg_cv_cc_flag__Werror_nonnull
14745 if eval \${$cacheid+:} false; then :
14746 $as_echo_n "(cached) " >&6
14747 else
14748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14749 /* end confdefs.h. */
14750 int i;
14751 int
14752 main ()
14753 {
14754
14755 ;
14756 return 0;
14757 }
14758 _ACEOF
14759 if ac_fn_c_try_link "$LINENO"; then :
14760 eval $cacheid=yes
14761 else
14762 eval $cacheid=no
14763 fi
14764 rm -f core conftest.err conftest.$ac_objext \
14765 conftest$ac_exeext conftest.$ac_ext
14766 fi
14767
14768
14769 CFLAGS="$xorg_testset_save_CFLAGS"
14770
14771 eval supported=\$$cacheid
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14773 $as_echo "$supported" >&6; }
14774 if test "$supported" = "yes" ; then
14775 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14776 found="yes"
14777 fi
14778 fi
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794 xorg_testset_save_CFLAGS="$CFLAGS"
14795
14796 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14797 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14799 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14800 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
14809 else
14810 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
14815 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14816 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14817 CFLAGS="$xorg_testset_save_CFLAGS"
14818 fi
14819
14820 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14822 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14823 fi
14824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14826 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14827 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14828 $as_echo_n "(cached) " >&6
14829 else
14830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14831 /* end confdefs.h. */
14832 int i;
14833 _ACEOF
14834 if ac_fn_c_try_compile "$LINENO"; then :
14835 xorg_cv_cc_flag_unused_command_line_argument=yes
14836 else
14837 xorg_cv_cc_flag_unused_command_line_argument=no
14838 fi
14839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14840 fi
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14842 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14843 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14844 CFLAGS="$xorg_testset_save_CFLAGS"
14845 fi
14846
14847 found="no"
14848
14849 if test $found = "no" ; then
14850 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14851 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14852 fi
14853
14854 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14856 fi
14857
14858 CFLAGS="$CFLAGS -Werror=init-self"
14859
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14861 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14862 cacheid=xorg_cv_cc_flag__Werror_init_self
14863 if eval \${$cacheid+:} false; then :
14864 $as_echo_n "(cached) " >&6
14865 else
14866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14867 /* end confdefs.h. */
14868 int i;
14869 int
14870 main ()
14871 {
14872
14873 ;
14874 return 0;
14875 }
14876 _ACEOF
14877 if ac_fn_c_try_link "$LINENO"; then :
14878 eval $cacheid=yes
14879 else
14880 eval $cacheid=no
14881 fi
14882 rm -f core conftest.err conftest.$ac_objext \
14883 conftest$ac_exeext conftest.$ac_ext
14884 fi
14885
14886
14887 CFLAGS="$xorg_testset_save_CFLAGS"
14888
14889 eval supported=\$$cacheid
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14891 $as_echo "$supported" >&6; }
14892 if test "$supported" = "yes" ; then
14893 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14894 found="yes"
14895 fi
14896 fi
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912 xorg_testset_save_CFLAGS="$CFLAGS"
14913
14914 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14915 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14917 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14918 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14919 $as_echo_n "(cached) " >&6
14920 else
14921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14922 /* end confdefs.h. */
14923 int i;
14924 _ACEOF
14925 if ac_fn_c_try_compile "$LINENO"; then :
14926 xorg_cv_cc_flag_unknown_warning_option=yes
14927 else
14928 xorg_cv_cc_flag_unknown_warning_option=no
14929 fi
14930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14931 fi
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14933 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14934 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14935 CFLAGS="$xorg_testset_save_CFLAGS"
14936 fi
14937
14938 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14939 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14940 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14941 fi
14942 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14944 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14945 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14946 $as_echo_n "(cached) " >&6
14947 else
14948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14949 /* end confdefs.h. */
14950 int i;
14951 _ACEOF
14952 if ac_fn_c_try_compile "$LINENO"; then :
14953 xorg_cv_cc_flag_unused_command_line_argument=yes
14954 else
14955 xorg_cv_cc_flag_unused_command_line_argument=no
14956 fi
14957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14958 fi
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14960 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14961 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14962 CFLAGS="$xorg_testset_save_CFLAGS"
14963 fi
14964
14965 found="no"
14966
14967 if test $found = "no" ; then
14968 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14969 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14970 fi
14971
14972 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14974 fi
14975
14976 CFLAGS="$CFLAGS -Werror=main"
14977
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14979 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14980 cacheid=xorg_cv_cc_flag__Werror_main
14981 if eval \${$cacheid+:} false; then :
14982 $as_echo_n "(cached) " >&6
14983 else
14984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14985 /* end confdefs.h. */
14986 int i;
14987 int
14988 main ()
14989 {
14990
14991 ;
14992 return 0;
14993 }
14994 _ACEOF
14995 if ac_fn_c_try_link "$LINENO"; then :
14996 eval $cacheid=yes
14997 else
14998 eval $cacheid=no
14999 fi
15000 rm -f core conftest.err conftest.$ac_objext \
15001 conftest$ac_exeext conftest.$ac_ext
15002 fi
15003
15004
15005 CFLAGS="$xorg_testset_save_CFLAGS"
15006
15007 eval supported=\$$cacheid
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15009 $as_echo "$supported" >&6; }
15010 if test "$supported" = "yes" ; then
15011 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15012 found="yes"
15013 fi
15014 fi
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030 xorg_testset_save_CFLAGS="$CFLAGS"
15031
15032 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15033 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15035 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15036 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15037 $as_echo_n "(cached) " >&6
15038 else
15039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15040 /* end confdefs.h. */
15041 int i;
15042 _ACEOF
15043 if ac_fn_c_try_compile "$LINENO"; then :
15044 xorg_cv_cc_flag_unknown_warning_option=yes
15045 else
15046 xorg_cv_cc_flag_unknown_warning_option=no
15047 fi
15048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15049 fi
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15051 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15052 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15053 CFLAGS="$xorg_testset_save_CFLAGS"
15054 fi
15055
15056 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15057 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15058 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15059 fi
15060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15062 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15063 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15064 $as_echo_n "(cached) " >&6
15065 else
15066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15067 /* end confdefs.h. */
15068 int i;
15069 _ACEOF
15070 if ac_fn_c_try_compile "$LINENO"; then :
15071 xorg_cv_cc_flag_unused_command_line_argument=yes
15072 else
15073 xorg_cv_cc_flag_unused_command_line_argument=no
15074 fi
15075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15076 fi
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15078 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15079 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15080 CFLAGS="$xorg_testset_save_CFLAGS"
15081 fi
15082
15083 found="no"
15084
15085 if test $found = "no" ; then
15086 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15087 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15088 fi
15089
15090 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15092 fi
15093
15094 CFLAGS="$CFLAGS -Werror=missing-braces"
15095
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15097 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
15098 cacheid=xorg_cv_cc_flag__Werror_missing_braces
15099 if eval \${$cacheid+:} false; then :
15100 $as_echo_n "(cached) " >&6
15101 else
15102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15103 /* end confdefs.h. */
15104 int i;
15105 int
15106 main ()
15107 {
15108
15109 ;
15110 return 0;
15111 }
15112 _ACEOF
15113 if ac_fn_c_try_link "$LINENO"; then :
15114 eval $cacheid=yes
15115 else
15116 eval $cacheid=no
15117 fi
15118 rm -f core conftest.err conftest.$ac_objext \
15119 conftest$ac_exeext conftest.$ac_ext
15120 fi
15121
15122
15123 CFLAGS="$xorg_testset_save_CFLAGS"
15124
15125 eval supported=\$$cacheid
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15127 $as_echo "$supported" >&6; }
15128 if test "$supported" = "yes" ; then
15129 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15130 found="yes"
15131 fi
15132 fi
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148 xorg_testset_save_CFLAGS="$CFLAGS"
15149
15150 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15151 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15153 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15154 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15155 $as_echo_n "(cached) " >&6
15156 else
15157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15158 /* end confdefs.h. */
15159 int i;
15160 _ACEOF
15161 if ac_fn_c_try_compile "$LINENO"; then :
15162 xorg_cv_cc_flag_unknown_warning_option=yes
15163 else
15164 xorg_cv_cc_flag_unknown_warning_option=no
15165 fi
15166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15167 fi
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15169 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15170 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15171 CFLAGS="$xorg_testset_save_CFLAGS"
15172 fi
15173
15174 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15176 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15177 fi
15178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15180 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15181 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15182 $as_echo_n "(cached) " >&6
15183 else
15184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15185 /* end confdefs.h. */
15186 int i;
15187 _ACEOF
15188 if ac_fn_c_try_compile "$LINENO"; then :
15189 xorg_cv_cc_flag_unused_command_line_argument=yes
15190 else
15191 xorg_cv_cc_flag_unused_command_line_argument=no
15192 fi
15193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15194 fi
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15196 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15197 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15198 CFLAGS="$xorg_testset_save_CFLAGS"
15199 fi
15200
15201 found="no"
15202
15203 if test $found = "no" ; then
15204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15205 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15206 fi
15207
15208 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15210 fi
15211
15212 CFLAGS="$CFLAGS -Werror=sequence-point"
15213
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15215 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15216 cacheid=xorg_cv_cc_flag__Werror_sequence_point
15217 if eval \${$cacheid+:} false; then :
15218 $as_echo_n "(cached) " >&6
15219 else
15220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15221 /* end confdefs.h. */
15222 int i;
15223 int
15224 main ()
15225 {
15226
15227 ;
15228 return 0;
15229 }
15230 _ACEOF
15231 if ac_fn_c_try_link "$LINENO"; then :
15232 eval $cacheid=yes
15233 else
15234 eval $cacheid=no
15235 fi
15236 rm -f core conftest.err conftest.$ac_objext \
15237 conftest$ac_exeext conftest.$ac_ext
15238 fi
15239
15240
15241 CFLAGS="$xorg_testset_save_CFLAGS"
15242
15243 eval supported=\$$cacheid
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15245 $as_echo "$supported" >&6; }
15246 if test "$supported" = "yes" ; then
15247 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15248 found="yes"
15249 fi
15250 fi
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266 xorg_testset_save_CFLAGS="$CFLAGS"
15267
15268 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15269 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15271 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15272 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15273 $as_echo_n "(cached) " >&6
15274 else
15275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15276 /* end confdefs.h. */
15277 int i;
15278 _ACEOF
15279 if ac_fn_c_try_compile "$LINENO"; then :
15280 xorg_cv_cc_flag_unknown_warning_option=yes
15281 else
15282 xorg_cv_cc_flag_unknown_warning_option=no
15283 fi
15284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15285 fi
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15287 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15288 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15289 CFLAGS="$xorg_testset_save_CFLAGS"
15290 fi
15291
15292 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15294 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15295 fi
15296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15298 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15299 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15300 $as_echo_n "(cached) " >&6
15301 else
15302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15303 /* end confdefs.h. */
15304 int i;
15305 _ACEOF
15306 if ac_fn_c_try_compile "$LINENO"; then :
15307 xorg_cv_cc_flag_unused_command_line_argument=yes
15308 else
15309 xorg_cv_cc_flag_unused_command_line_argument=no
15310 fi
15311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15312 fi
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15314 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15315 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15316 CFLAGS="$xorg_testset_save_CFLAGS"
15317 fi
15318
15319 found="no"
15320
15321 if test $found = "no" ; then
15322 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15323 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15324 fi
15325
15326 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15328 fi
15329
15330 CFLAGS="$CFLAGS -Werror=return-type"
15331
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15333 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15334 cacheid=xorg_cv_cc_flag__Werror_return_type
15335 if eval \${$cacheid+:} false; then :
15336 $as_echo_n "(cached) " >&6
15337 else
15338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15339 /* end confdefs.h. */
15340 int i;
15341 int
15342 main ()
15343 {
15344
15345 ;
15346 return 0;
15347 }
15348 _ACEOF
15349 if ac_fn_c_try_link "$LINENO"; then :
15350 eval $cacheid=yes
15351 else
15352 eval $cacheid=no
15353 fi
15354 rm -f core conftest.err conftest.$ac_objext \
15355 conftest$ac_exeext conftest.$ac_ext
15356 fi
15357
15358
15359 CFLAGS="$xorg_testset_save_CFLAGS"
15360
15361 eval supported=\$$cacheid
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15363 $as_echo "$supported" >&6; }
15364 if test "$supported" = "yes" ; then
15365 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15366 found="yes"
15367 fi
15368 fi
15369
15370 if test $found = "no" ; then
15371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15372 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15373 fi
15374
15375 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15377 fi
15378
15379 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15380
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15382 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15383 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
15384 if eval \${$cacheid+:} false; then :
15385 $as_echo_n "(cached) " >&6
15386 else
15387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15388 /* end confdefs.h. */
15389 int i;
15390 int
15391 main ()
15392 {
15393
15394 ;
15395 return 0;
15396 }
15397 _ACEOF
15398 if ac_fn_c_try_link "$LINENO"; then :
15399 eval $cacheid=yes
15400 else
15401 eval $cacheid=no
15402 fi
15403 rm -f core conftest.err conftest.$ac_objext \
15404 conftest$ac_exeext conftest.$ac_ext
15405 fi
15406
15407
15408 CFLAGS="$xorg_testset_save_CFLAGS"
15409
15410 eval supported=\$$cacheid
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15412 $as_echo "$supported" >&6; }
15413 if test "$supported" = "yes" ; then
15414 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15415 found="yes"
15416 fi
15417 fi
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433 xorg_testset_save_CFLAGS="$CFLAGS"
15434
15435 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15438 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15439 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15440 $as_echo_n "(cached) " >&6
15441 else
15442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15443 /* end confdefs.h. */
15444 int i;
15445 _ACEOF
15446 if ac_fn_c_try_compile "$LINENO"; then :
15447 xorg_cv_cc_flag_unknown_warning_option=yes
15448 else
15449 xorg_cv_cc_flag_unknown_warning_option=no
15450 fi
15451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15452 fi
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15454 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15455 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15456 CFLAGS="$xorg_testset_save_CFLAGS"
15457 fi
15458
15459 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15461 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15462 fi
15463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15465 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15466 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15467 $as_echo_n "(cached) " >&6
15468 else
15469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15470 /* end confdefs.h. */
15471 int i;
15472 _ACEOF
15473 if ac_fn_c_try_compile "$LINENO"; then :
15474 xorg_cv_cc_flag_unused_command_line_argument=yes
15475 else
15476 xorg_cv_cc_flag_unused_command_line_argument=no
15477 fi
15478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15479 fi
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15481 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15482 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15483 CFLAGS="$xorg_testset_save_CFLAGS"
15484 fi
15485
15486 found="no"
15487
15488 if test $found = "no" ; then
15489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15490 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15491 fi
15492
15493 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15495 fi
15496
15497 CFLAGS="$CFLAGS -Werror=trigraphs"
15498
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15500 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15501 cacheid=xorg_cv_cc_flag__Werror_trigraphs
15502 if eval \${$cacheid+:} false; then :
15503 $as_echo_n "(cached) " >&6
15504 else
15505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15506 /* end confdefs.h. */
15507 int i;
15508 int
15509 main ()
15510 {
15511
15512 ;
15513 return 0;
15514 }
15515 _ACEOF
15516 if ac_fn_c_try_link "$LINENO"; then :
15517 eval $cacheid=yes
15518 else
15519 eval $cacheid=no
15520 fi
15521 rm -f core conftest.err conftest.$ac_objext \
15522 conftest$ac_exeext conftest.$ac_ext
15523 fi
15524
15525
15526 CFLAGS="$xorg_testset_save_CFLAGS"
15527
15528 eval supported=\$$cacheid
15529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15530 $as_echo "$supported" >&6; }
15531 if test "$supported" = "yes" ; then
15532 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15533 found="yes"
15534 fi
15535 fi
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551 xorg_testset_save_CFLAGS="$CFLAGS"
15552
15553 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15554 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15556 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15557 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15558 $as_echo_n "(cached) " >&6
15559 else
15560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15561 /* end confdefs.h. */
15562 int i;
15563 _ACEOF
15564 if ac_fn_c_try_compile "$LINENO"; then :
15565 xorg_cv_cc_flag_unknown_warning_option=yes
15566 else
15567 xorg_cv_cc_flag_unknown_warning_option=no
15568 fi
15569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15570 fi
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15572 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15573 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15574 CFLAGS="$xorg_testset_save_CFLAGS"
15575 fi
15576
15577 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15579 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15580 fi
15581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15583 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15584 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15585 $as_echo_n "(cached) " >&6
15586 else
15587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15588 /* end confdefs.h. */
15589 int i;
15590 _ACEOF
15591 if ac_fn_c_try_compile "$LINENO"; then :
15592 xorg_cv_cc_flag_unused_command_line_argument=yes
15593 else
15594 xorg_cv_cc_flag_unused_command_line_argument=no
15595 fi
15596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15597 fi
15598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15599 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15600 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15601 CFLAGS="$xorg_testset_save_CFLAGS"
15602 fi
15603
15604 found="no"
15605
15606 if test $found = "no" ; then
15607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15608 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15609 fi
15610
15611 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15613 fi
15614
15615 CFLAGS="$CFLAGS -Werror=array-bounds"
15616
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15618 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15619 cacheid=xorg_cv_cc_flag__Werror_array_bounds
15620 if eval \${$cacheid+:} false; then :
15621 $as_echo_n "(cached) " >&6
15622 else
15623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15624 /* end confdefs.h. */
15625 int i;
15626 int
15627 main ()
15628 {
15629
15630 ;
15631 return 0;
15632 }
15633 _ACEOF
15634 if ac_fn_c_try_link "$LINENO"; then :
15635 eval $cacheid=yes
15636 else
15637 eval $cacheid=no
15638 fi
15639 rm -f core conftest.err conftest.$ac_objext \
15640 conftest$ac_exeext conftest.$ac_ext
15641 fi
15642
15643
15644 CFLAGS="$xorg_testset_save_CFLAGS"
15645
15646 eval supported=\$$cacheid
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15648 $as_echo "$supported" >&6; }
15649 if test "$supported" = "yes" ; then
15650 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15651 found="yes"
15652 fi
15653 fi
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669 xorg_testset_save_CFLAGS="$CFLAGS"
15670
15671 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15674 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15675 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15676 $as_echo_n "(cached) " >&6
15677 else
15678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15679 /* end confdefs.h. */
15680 int i;
15681 _ACEOF
15682 if ac_fn_c_try_compile "$LINENO"; then :
15683 xorg_cv_cc_flag_unknown_warning_option=yes
15684 else
15685 xorg_cv_cc_flag_unknown_warning_option=no
15686 fi
15687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15688 fi
15689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15690 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15691 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15692 CFLAGS="$xorg_testset_save_CFLAGS"
15693 fi
15694
15695 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15697 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15698 fi
15699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15701 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15702 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15703 $as_echo_n "(cached) " >&6
15704 else
15705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15706 /* end confdefs.h. */
15707 int i;
15708 _ACEOF
15709 if ac_fn_c_try_compile "$LINENO"; then :
15710 xorg_cv_cc_flag_unused_command_line_argument=yes
15711 else
15712 xorg_cv_cc_flag_unused_command_line_argument=no
15713 fi
15714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15715 fi
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15717 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15718 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15719 CFLAGS="$xorg_testset_save_CFLAGS"
15720 fi
15721
15722 found="no"
15723
15724 if test $found = "no" ; then
15725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15727 fi
15728
15729 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15731 fi
15732
15733 CFLAGS="$CFLAGS -Werror=write-strings"
15734
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15736 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15737 cacheid=xorg_cv_cc_flag__Werror_write_strings
15738 if eval \${$cacheid+:} false; then :
15739 $as_echo_n "(cached) " >&6
15740 else
15741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15742 /* end confdefs.h. */
15743 int i;
15744 int
15745 main ()
15746 {
15747
15748 ;
15749 return 0;
15750 }
15751 _ACEOF
15752 if ac_fn_c_try_link "$LINENO"; then :
15753 eval $cacheid=yes
15754 else
15755 eval $cacheid=no
15756 fi
15757 rm -f core conftest.err conftest.$ac_objext \
15758 conftest$ac_exeext conftest.$ac_ext
15759 fi
15760
15761
15762 CFLAGS="$xorg_testset_save_CFLAGS"
15763
15764 eval supported=\$$cacheid
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15766 $as_echo "$supported" >&6; }
15767 if test "$supported" = "yes" ; then
15768 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15769 found="yes"
15770 fi
15771 fi
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787 xorg_testset_save_CFLAGS="$CFLAGS"
15788
15789 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15790 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15792 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15793 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15794 $as_echo_n "(cached) " >&6
15795 else
15796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15797 /* end confdefs.h. */
15798 int i;
15799 _ACEOF
15800 if ac_fn_c_try_compile "$LINENO"; then :
15801 xorg_cv_cc_flag_unknown_warning_option=yes
15802 else
15803 xorg_cv_cc_flag_unknown_warning_option=no
15804 fi
15805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15806 fi
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15808 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15809 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15810 CFLAGS="$xorg_testset_save_CFLAGS"
15811 fi
15812
15813 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15815 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15816 fi
15817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15819 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15820 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15821 $as_echo_n "(cached) " >&6
15822 else
15823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15824 /* end confdefs.h. */
15825 int i;
15826 _ACEOF
15827 if ac_fn_c_try_compile "$LINENO"; then :
15828 xorg_cv_cc_flag_unused_command_line_argument=yes
15829 else
15830 xorg_cv_cc_flag_unused_command_line_argument=no
15831 fi
15832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15833 fi
15834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15835 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15836 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15837 CFLAGS="$xorg_testset_save_CFLAGS"
15838 fi
15839
15840 found="no"
15841
15842 if test $found = "no" ; then
15843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15844 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15845 fi
15846
15847 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15849 fi
15850
15851 CFLAGS="$CFLAGS -Werror=address"
15852
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15854 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15855 cacheid=xorg_cv_cc_flag__Werror_address
15856 if eval \${$cacheid+:} false; then :
15857 $as_echo_n "(cached) " >&6
15858 else
15859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15860 /* end confdefs.h. */
15861 int i;
15862 int
15863 main ()
15864 {
15865
15866 ;
15867 return 0;
15868 }
15869 _ACEOF
15870 if ac_fn_c_try_link "$LINENO"; then :
15871 eval $cacheid=yes
15872 else
15873 eval $cacheid=no
15874 fi
15875 rm -f core conftest.err conftest.$ac_objext \
15876 conftest$ac_exeext conftest.$ac_ext
15877 fi
15878
15879
15880 CFLAGS="$xorg_testset_save_CFLAGS"
15881
15882 eval supported=\$$cacheid
15883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15884 $as_echo "$supported" >&6; }
15885 if test "$supported" = "yes" ; then
15886 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15887 found="yes"
15888 fi
15889 fi
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905 xorg_testset_save_CFLAGS="$CFLAGS"
15906
15907 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15908 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15910 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15911 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15912 $as_echo_n "(cached) " >&6
15913 else
15914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15915 /* end confdefs.h. */
15916 int i;
15917 _ACEOF
15918 if ac_fn_c_try_compile "$LINENO"; then :
15919 xorg_cv_cc_flag_unknown_warning_option=yes
15920 else
15921 xorg_cv_cc_flag_unknown_warning_option=no
15922 fi
15923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15924 fi
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15926 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15927 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15928 CFLAGS="$xorg_testset_save_CFLAGS"
15929 fi
15930
15931 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15933 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15934 fi
15935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15937 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15938 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15939 $as_echo_n "(cached) " >&6
15940 else
15941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15942 /* end confdefs.h. */
15943 int i;
15944 _ACEOF
15945 if ac_fn_c_try_compile "$LINENO"; then :
15946 xorg_cv_cc_flag_unused_command_line_argument=yes
15947 else
15948 xorg_cv_cc_flag_unused_command_line_argument=no
15949 fi
15950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15951 fi
15952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15953 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15954 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15955 CFLAGS="$xorg_testset_save_CFLAGS"
15956 fi
15957
15958 found="no"
15959
15960 if test $found = "no" ; then
15961 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15962 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15963 fi
15964
15965 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15966 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15967 fi
15968
15969 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15970
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15972 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15973 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
15974 if eval \${$cacheid+:} false; then :
15975 $as_echo_n "(cached) " >&6
15976 else
15977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15978 /* end confdefs.h. */
15979 int i;
15980 int
15981 main ()
15982 {
15983
15984 ;
15985 return 0;
15986 }
15987 _ACEOF
15988 if ac_fn_c_try_link "$LINENO"; then :
15989 eval $cacheid=yes
15990 else
15991 eval $cacheid=no
15992 fi
15993 rm -f core conftest.err conftest.$ac_objext \
15994 conftest$ac_exeext conftest.$ac_ext
15995 fi
15996
15997
15998 CFLAGS="$xorg_testset_save_CFLAGS"
15999
16000 eval supported=\$$cacheid
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16002 $as_echo "$supported" >&6; }
16003 if test "$supported" = "yes" ; then
16004 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16005 found="yes"
16006 fi
16007 fi
16008
16009 if test $found = "no" ; then
16010 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16011 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16012 fi
16013
16014 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16016 fi
16017
16018 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16019
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16021 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16022 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16023 if eval \${$cacheid+:} false; then :
16024 $as_echo_n "(cached) " >&6
16025 else
16026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16027 /* end confdefs.h. */
16028 int i;
16029 int
16030 main ()
16031 {
16032
16033 ;
16034 return 0;
16035 }
16036 _ACEOF
16037 if ac_fn_c_try_link "$LINENO"; then :
16038 eval $cacheid=yes
16039 else
16040 eval $cacheid=no
16041 fi
16042 rm -f core conftest.err conftest.$ac_objext \
16043 conftest$ac_exeext conftest.$ac_ext
16044 fi
16045
16046
16047 CFLAGS="$xorg_testset_save_CFLAGS"
16048
16049 eval supported=\$$cacheid
16050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16051 $as_echo "$supported" >&6; }
16052 if test "$supported" = "yes" ; then
16053 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16054 found="yes"
16055 fi
16056 fi
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072 xorg_testset_save_CFLAGS="$CFLAGS"
16073
16074 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16075 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16077 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16078 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16079 $as_echo_n "(cached) " >&6
16080 else
16081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16082 /* end confdefs.h. */
16083 int i;
16084 _ACEOF
16085 if ac_fn_c_try_compile "$LINENO"; then :
16086 xorg_cv_cc_flag_unknown_warning_option=yes
16087 else
16088 xorg_cv_cc_flag_unknown_warning_option=no
16089 fi
16090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16091 fi
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16093 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16094 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16095 CFLAGS="$xorg_testset_save_CFLAGS"
16096 fi
16097
16098 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16100 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16101 fi
16102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16104 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16105 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16106 $as_echo_n "(cached) " >&6
16107 else
16108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16109 /* end confdefs.h. */
16110 int i;
16111 _ACEOF
16112 if ac_fn_c_try_compile "$LINENO"; then :
16113 xorg_cv_cc_flag_unused_command_line_argument=yes
16114 else
16115 xorg_cv_cc_flag_unused_command_line_argument=no
16116 fi
16117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16118 fi
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16120 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16121 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16122 CFLAGS="$xorg_testset_save_CFLAGS"
16123 fi
16124
16125 found="no"
16126
16127 if test $found = "no" ; then
16128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16129 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16130 fi
16131
16132 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16134 fi
16135
16136 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16137
16138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16139 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16140 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16141 if eval \${$cacheid+:} false; then :
16142 $as_echo_n "(cached) " >&6
16143 else
16144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16145 /* end confdefs.h. */
16146 int i;
16147 int
16148 main ()
16149 {
16150
16151 ;
16152 return 0;
16153 }
16154 _ACEOF
16155 if ac_fn_c_try_link "$LINENO"; then :
16156 eval $cacheid=yes
16157 else
16158 eval $cacheid=no
16159 fi
16160 rm -f core conftest.err conftest.$ac_objext \
16161 conftest$ac_exeext conftest.$ac_ext
16162 fi
16163
16164
16165 CFLAGS="$xorg_testset_save_CFLAGS"
16166
16167 eval supported=\$$cacheid
16168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16169 $as_echo "$supported" >&6; }
16170 if test "$supported" = "yes" ; then
16171 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16172 found="yes"
16173 fi
16174 fi
16175
16176 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16177 else
16178 { $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
16179 $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;}
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193 xorg_testset_save_CFLAGS="$CFLAGS"
16194
16195 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16196 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16198 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16199 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16200 $as_echo_n "(cached) " >&6
16201 else
16202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16203 /* end confdefs.h. */
16204 int i;
16205 _ACEOF
16206 if ac_fn_c_try_compile "$LINENO"; then :
16207 xorg_cv_cc_flag_unknown_warning_option=yes
16208 else
16209 xorg_cv_cc_flag_unknown_warning_option=no
16210 fi
16211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16212 fi
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16214 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16215 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16216 CFLAGS="$xorg_testset_save_CFLAGS"
16217 fi
16218
16219 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16220 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16221 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16222 fi
16223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16225 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16226 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16227 $as_echo_n "(cached) " >&6
16228 else
16229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16230 /* end confdefs.h. */
16231 int i;
16232 _ACEOF
16233 if ac_fn_c_try_compile "$LINENO"; then :
16234 xorg_cv_cc_flag_unused_command_line_argument=yes
16235 else
16236 xorg_cv_cc_flag_unused_command_line_argument=no
16237 fi
16238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16239 fi
16240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16241 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16242 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16243 CFLAGS="$xorg_testset_save_CFLAGS"
16244 fi
16245
16246 found="no"
16247
16248 if test $found = "no" ; then
16249 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16250 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16251 fi
16252
16253 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16255 fi
16256
16257 CFLAGS="$CFLAGS -Wimplicit"
16258
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16260 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16261 cacheid=xorg_cv_cc_flag__Wimplicit
16262 if eval \${$cacheid+:} false; then :
16263 $as_echo_n "(cached) " >&6
16264 else
16265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16266 /* end confdefs.h. */
16267 int i;
16268 int
16269 main ()
16270 {
16271
16272 ;
16273 return 0;
16274 }
16275 _ACEOF
16276 if ac_fn_c_try_link "$LINENO"; then :
16277 eval $cacheid=yes
16278 else
16279 eval $cacheid=no
16280 fi
16281 rm -f core conftest.err conftest.$ac_objext \
16282 conftest$ac_exeext conftest.$ac_ext
16283 fi
16284
16285
16286 CFLAGS="$xorg_testset_save_CFLAGS"
16287
16288 eval supported=\$$cacheid
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16290 $as_echo "$supported" >&6; }
16291 if test "$supported" = "yes" ; then
16292 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16293 found="yes"
16294 fi
16295 fi
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311 xorg_testset_save_CFLAGS="$CFLAGS"
16312
16313 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16314 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16316 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16317 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16318 $as_echo_n "(cached) " >&6
16319 else
16320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16321 /* end confdefs.h. */
16322 int i;
16323 _ACEOF
16324 if ac_fn_c_try_compile "$LINENO"; then :
16325 xorg_cv_cc_flag_unknown_warning_option=yes
16326 else
16327 xorg_cv_cc_flag_unknown_warning_option=no
16328 fi
16329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16330 fi
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16332 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16333 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16334 CFLAGS="$xorg_testset_save_CFLAGS"
16335 fi
16336
16337 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16339 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16340 fi
16341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16343 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16344 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16345 $as_echo_n "(cached) " >&6
16346 else
16347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16348 /* end confdefs.h. */
16349 int i;
16350 _ACEOF
16351 if ac_fn_c_try_compile "$LINENO"; then :
16352 xorg_cv_cc_flag_unused_command_line_argument=yes
16353 else
16354 xorg_cv_cc_flag_unused_command_line_argument=no
16355 fi
16356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16357 fi
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16359 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16360 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16361 CFLAGS="$xorg_testset_save_CFLAGS"
16362 fi
16363
16364 found="no"
16365
16366 if test $found = "no" ; then
16367 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16368 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16369 fi
16370
16371 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16372 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16373 fi
16374
16375 CFLAGS="$CFLAGS -Wnonnull"
16376
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16378 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16379 cacheid=xorg_cv_cc_flag__Wnonnull
16380 if eval \${$cacheid+:} false; then :
16381 $as_echo_n "(cached) " >&6
16382 else
16383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16384 /* end confdefs.h. */
16385 int i;
16386 int
16387 main ()
16388 {
16389
16390 ;
16391 return 0;
16392 }
16393 _ACEOF
16394 if ac_fn_c_try_link "$LINENO"; then :
16395 eval $cacheid=yes
16396 else
16397 eval $cacheid=no
16398 fi
16399 rm -f core conftest.err conftest.$ac_objext \
16400 conftest$ac_exeext conftest.$ac_ext
16401 fi
16402
16403
16404 CFLAGS="$xorg_testset_save_CFLAGS"
16405
16406 eval supported=\$$cacheid
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16408 $as_echo "$supported" >&6; }
16409 if test "$supported" = "yes" ; then
16410 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16411 found="yes"
16412 fi
16413 fi
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429 xorg_testset_save_CFLAGS="$CFLAGS"
16430
16431 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16432 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16434 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16435 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16436 $as_echo_n "(cached) " >&6
16437 else
16438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16439 /* end confdefs.h. */
16440 int i;
16441 _ACEOF
16442 if ac_fn_c_try_compile "$LINENO"; then :
16443 xorg_cv_cc_flag_unknown_warning_option=yes
16444 else
16445 xorg_cv_cc_flag_unknown_warning_option=no
16446 fi
16447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16448 fi
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16450 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16451 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16452 CFLAGS="$xorg_testset_save_CFLAGS"
16453 fi
16454
16455 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16456 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16457 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16458 fi
16459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16461 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16462 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16463 $as_echo_n "(cached) " >&6
16464 else
16465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16466 /* end confdefs.h. */
16467 int i;
16468 _ACEOF
16469 if ac_fn_c_try_compile "$LINENO"; then :
16470 xorg_cv_cc_flag_unused_command_line_argument=yes
16471 else
16472 xorg_cv_cc_flag_unused_command_line_argument=no
16473 fi
16474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16475 fi
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16477 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16478 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16479 CFLAGS="$xorg_testset_save_CFLAGS"
16480 fi
16481
16482 found="no"
16483
16484 if test $found = "no" ; then
16485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16486 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16487 fi
16488
16489 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16490 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16491 fi
16492
16493 CFLAGS="$CFLAGS -Winit-self"
16494
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16496 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16497 cacheid=xorg_cv_cc_flag__Winit_self
16498 if eval \${$cacheid+:} false; then :
16499 $as_echo_n "(cached) " >&6
16500 else
16501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16502 /* end confdefs.h. */
16503 int i;
16504 int
16505 main ()
16506 {
16507
16508 ;
16509 return 0;
16510 }
16511 _ACEOF
16512 if ac_fn_c_try_link "$LINENO"; then :
16513 eval $cacheid=yes
16514 else
16515 eval $cacheid=no
16516 fi
16517 rm -f core conftest.err conftest.$ac_objext \
16518 conftest$ac_exeext conftest.$ac_ext
16519 fi
16520
16521
16522 CFLAGS="$xorg_testset_save_CFLAGS"
16523
16524 eval supported=\$$cacheid
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16526 $as_echo "$supported" >&6; }
16527 if test "$supported" = "yes" ; then
16528 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16529 found="yes"
16530 fi
16531 fi
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547 xorg_testset_save_CFLAGS="$CFLAGS"
16548
16549 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16550 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16552 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16553 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16554 $as_echo_n "(cached) " >&6
16555 else
16556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16557 /* end confdefs.h. */
16558 int i;
16559 _ACEOF
16560 if ac_fn_c_try_compile "$LINENO"; then :
16561 xorg_cv_cc_flag_unknown_warning_option=yes
16562 else
16563 xorg_cv_cc_flag_unknown_warning_option=no
16564 fi
16565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16566 fi
16567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16568 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16569 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16570 CFLAGS="$xorg_testset_save_CFLAGS"
16571 fi
16572
16573 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16574 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16575 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16576 fi
16577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16579 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16580 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16581 $as_echo_n "(cached) " >&6
16582 else
16583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16584 /* end confdefs.h. */
16585 int i;
16586 _ACEOF
16587 if ac_fn_c_try_compile "$LINENO"; then :
16588 xorg_cv_cc_flag_unused_command_line_argument=yes
16589 else
16590 xorg_cv_cc_flag_unused_command_line_argument=no
16591 fi
16592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16593 fi
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16595 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16596 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16597 CFLAGS="$xorg_testset_save_CFLAGS"
16598 fi
16599
16600 found="no"
16601
16602 if test $found = "no" ; then
16603 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16604 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16605 fi
16606
16607 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16609 fi
16610
16611 CFLAGS="$CFLAGS -Wmain"
16612
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16614 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
16615 cacheid=xorg_cv_cc_flag__Wmain
16616 if eval \${$cacheid+:} false; then :
16617 $as_echo_n "(cached) " >&6
16618 else
16619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16620 /* end confdefs.h. */
16621 int i;
16622 int
16623 main ()
16624 {
16625
16626 ;
16627 return 0;
16628 }
16629 _ACEOF
16630 if ac_fn_c_try_link "$LINENO"; then :
16631 eval $cacheid=yes
16632 else
16633 eval $cacheid=no
16634 fi
16635 rm -f core conftest.err conftest.$ac_objext \
16636 conftest$ac_exeext conftest.$ac_ext
16637 fi
16638
16639
16640 CFLAGS="$xorg_testset_save_CFLAGS"
16641
16642 eval supported=\$$cacheid
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16644 $as_echo "$supported" >&6; }
16645 if test "$supported" = "yes" ; then
16646 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16647 found="yes"
16648 fi
16649 fi
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665 xorg_testset_save_CFLAGS="$CFLAGS"
16666
16667 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16668 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16670 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16671 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16672 $as_echo_n "(cached) " >&6
16673 else
16674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16675 /* end confdefs.h. */
16676 int i;
16677 _ACEOF
16678 if ac_fn_c_try_compile "$LINENO"; then :
16679 xorg_cv_cc_flag_unknown_warning_option=yes
16680 else
16681 xorg_cv_cc_flag_unknown_warning_option=no
16682 fi
16683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16684 fi
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16686 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16687 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16688 CFLAGS="$xorg_testset_save_CFLAGS"
16689 fi
16690
16691 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16693 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16694 fi
16695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16697 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16698 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16699 $as_echo_n "(cached) " >&6
16700 else
16701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16702 /* end confdefs.h. */
16703 int i;
16704 _ACEOF
16705 if ac_fn_c_try_compile "$LINENO"; then :
16706 xorg_cv_cc_flag_unused_command_line_argument=yes
16707 else
16708 xorg_cv_cc_flag_unused_command_line_argument=no
16709 fi
16710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16711 fi
16712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16713 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16714 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16715 CFLAGS="$xorg_testset_save_CFLAGS"
16716 fi
16717
16718 found="no"
16719
16720 if test $found = "no" ; then
16721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16722 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16723 fi
16724
16725 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16727 fi
16728
16729 CFLAGS="$CFLAGS -Wmissing-braces"
16730
16731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16732 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16733 cacheid=xorg_cv_cc_flag__Wmissing_braces
16734 if eval \${$cacheid+:} false; then :
16735 $as_echo_n "(cached) " >&6
16736 else
16737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16738 /* end confdefs.h. */
16739 int i;
16740 int
16741 main ()
16742 {
16743
16744 ;
16745 return 0;
16746 }
16747 _ACEOF
16748 if ac_fn_c_try_link "$LINENO"; then :
16749 eval $cacheid=yes
16750 else
16751 eval $cacheid=no
16752 fi
16753 rm -f core conftest.err conftest.$ac_objext \
16754 conftest$ac_exeext conftest.$ac_ext
16755 fi
16756
16757
16758 CFLAGS="$xorg_testset_save_CFLAGS"
16759
16760 eval supported=\$$cacheid
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16762 $as_echo "$supported" >&6; }
16763 if test "$supported" = "yes" ; then
16764 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16765 found="yes"
16766 fi
16767 fi
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783 xorg_testset_save_CFLAGS="$CFLAGS"
16784
16785 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16786 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16788 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16789 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16790 $as_echo_n "(cached) " >&6
16791 else
16792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16793 /* end confdefs.h. */
16794 int i;
16795 _ACEOF
16796 if ac_fn_c_try_compile "$LINENO"; then :
16797 xorg_cv_cc_flag_unknown_warning_option=yes
16798 else
16799 xorg_cv_cc_flag_unknown_warning_option=no
16800 fi
16801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16802 fi
16803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16804 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16805 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16806 CFLAGS="$xorg_testset_save_CFLAGS"
16807 fi
16808
16809 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16810 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16811 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16812 fi
16813 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16815 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16816 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16817 $as_echo_n "(cached) " >&6
16818 else
16819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16820 /* end confdefs.h. */
16821 int i;
16822 _ACEOF
16823 if ac_fn_c_try_compile "$LINENO"; then :
16824 xorg_cv_cc_flag_unused_command_line_argument=yes
16825 else
16826 xorg_cv_cc_flag_unused_command_line_argument=no
16827 fi
16828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16829 fi
16830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16831 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16832 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16833 CFLAGS="$xorg_testset_save_CFLAGS"
16834 fi
16835
16836 found="no"
16837
16838 if test $found = "no" ; then
16839 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16840 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16841 fi
16842
16843 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16845 fi
16846
16847 CFLAGS="$CFLAGS -Wsequence-point"
16848
16849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16850 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16851 cacheid=xorg_cv_cc_flag__Wsequence_point
16852 if eval \${$cacheid+:} false; then :
16853 $as_echo_n "(cached) " >&6
16854 else
16855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16856 /* end confdefs.h. */
16857 int i;
16858 int
16859 main ()
16860 {
16861
16862 ;
16863 return 0;
16864 }
16865 _ACEOF
16866 if ac_fn_c_try_link "$LINENO"; then :
16867 eval $cacheid=yes
16868 else
16869 eval $cacheid=no
16870 fi
16871 rm -f core conftest.err conftest.$ac_objext \
16872 conftest$ac_exeext conftest.$ac_ext
16873 fi
16874
16875
16876 CFLAGS="$xorg_testset_save_CFLAGS"
16877
16878 eval supported=\$$cacheid
16879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16880 $as_echo "$supported" >&6; }
16881 if test "$supported" = "yes" ; then
16882 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16883 found="yes"
16884 fi
16885 fi
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901 xorg_testset_save_CFLAGS="$CFLAGS"
16902
16903 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16904 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16906 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16907 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16908 $as_echo_n "(cached) " >&6
16909 else
16910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16911 /* end confdefs.h. */
16912 int i;
16913 _ACEOF
16914 if ac_fn_c_try_compile "$LINENO"; then :
16915 xorg_cv_cc_flag_unknown_warning_option=yes
16916 else
16917 xorg_cv_cc_flag_unknown_warning_option=no
16918 fi
16919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16920 fi
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16922 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16923 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16924 CFLAGS="$xorg_testset_save_CFLAGS"
16925 fi
16926
16927 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16928 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16929 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16930 fi
16931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16933 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16934 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16935 $as_echo_n "(cached) " >&6
16936 else
16937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16938 /* end confdefs.h. */
16939 int i;
16940 _ACEOF
16941 if ac_fn_c_try_compile "$LINENO"; then :
16942 xorg_cv_cc_flag_unused_command_line_argument=yes
16943 else
16944 xorg_cv_cc_flag_unused_command_line_argument=no
16945 fi
16946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16947 fi
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16949 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16950 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16951 CFLAGS="$xorg_testset_save_CFLAGS"
16952 fi
16953
16954 found="no"
16955
16956 if test $found = "no" ; then
16957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16959 fi
16960
16961 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16963 fi
16964
16965 CFLAGS="$CFLAGS -Wreturn-type"
16966
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16968 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16969 cacheid=xorg_cv_cc_flag__Wreturn_type
16970 if eval \${$cacheid+:} false; then :
16971 $as_echo_n "(cached) " >&6
16972 else
16973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16974 /* end confdefs.h. */
16975 int i;
16976 int
16977 main ()
16978 {
16979
16980 ;
16981 return 0;
16982 }
16983 _ACEOF
16984 if ac_fn_c_try_link "$LINENO"; then :
16985 eval $cacheid=yes
16986 else
16987 eval $cacheid=no
16988 fi
16989 rm -f core conftest.err conftest.$ac_objext \
16990 conftest$ac_exeext conftest.$ac_ext
16991 fi
16992
16993
16994 CFLAGS="$xorg_testset_save_CFLAGS"
16995
16996 eval supported=\$$cacheid
16997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16998 $as_echo "$supported" >&6; }
16999 if test "$supported" = "yes" ; then
17000 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17001 found="yes"
17002 fi
17003 fi
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019 xorg_testset_save_CFLAGS="$CFLAGS"
17020
17021 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17022 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17024 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17025 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17026 $as_echo_n "(cached) " >&6
17027 else
17028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17029 /* end confdefs.h. */
17030 int i;
17031 _ACEOF
17032 if ac_fn_c_try_compile "$LINENO"; then :
17033 xorg_cv_cc_flag_unknown_warning_option=yes
17034 else
17035 xorg_cv_cc_flag_unknown_warning_option=no
17036 fi
17037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17038 fi
17039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17040 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17041 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17042 CFLAGS="$xorg_testset_save_CFLAGS"
17043 fi
17044
17045 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17046 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17047 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17048 fi
17049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17051 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17052 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17053 $as_echo_n "(cached) " >&6
17054 else
17055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17056 /* end confdefs.h. */
17057 int i;
17058 _ACEOF
17059 if ac_fn_c_try_compile "$LINENO"; then :
17060 xorg_cv_cc_flag_unused_command_line_argument=yes
17061 else
17062 xorg_cv_cc_flag_unused_command_line_argument=no
17063 fi
17064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17065 fi
17066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17067 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17068 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17069 CFLAGS="$xorg_testset_save_CFLAGS"
17070 fi
17071
17072 found="no"
17073
17074 if test $found = "no" ; then
17075 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17076 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17077 fi
17078
17079 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17081 fi
17082
17083 CFLAGS="$CFLAGS -Wtrigraphs"
17084
17085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17086 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
17087 cacheid=xorg_cv_cc_flag__Wtrigraphs
17088 if eval \${$cacheid+:} false; then :
17089 $as_echo_n "(cached) " >&6
17090 else
17091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17092 /* end confdefs.h. */
17093 int i;
17094 int
17095 main ()
17096 {
17097
17098 ;
17099 return 0;
17100 }
17101 _ACEOF
17102 if ac_fn_c_try_link "$LINENO"; then :
17103 eval $cacheid=yes
17104 else
17105 eval $cacheid=no
17106 fi
17107 rm -f core conftest.err conftest.$ac_objext \
17108 conftest$ac_exeext conftest.$ac_ext
17109 fi
17110
17111
17112 CFLAGS="$xorg_testset_save_CFLAGS"
17113
17114 eval supported=\$$cacheid
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17116 $as_echo "$supported" >&6; }
17117 if test "$supported" = "yes" ; then
17118 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17119 found="yes"
17120 fi
17121 fi
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137 xorg_testset_save_CFLAGS="$CFLAGS"
17138
17139 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17142 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17143 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17144 $as_echo_n "(cached) " >&6
17145 else
17146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17147 /* end confdefs.h. */
17148 int i;
17149 _ACEOF
17150 if ac_fn_c_try_compile "$LINENO"; then :
17151 xorg_cv_cc_flag_unknown_warning_option=yes
17152 else
17153 xorg_cv_cc_flag_unknown_warning_option=no
17154 fi
17155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17156 fi
17157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17158 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17159 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17160 CFLAGS="$xorg_testset_save_CFLAGS"
17161 fi
17162
17163 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17164 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17165 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17166 fi
17167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17169 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17170 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17171 $as_echo_n "(cached) " >&6
17172 else
17173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17174 /* end confdefs.h. */
17175 int i;
17176 _ACEOF
17177 if ac_fn_c_try_compile "$LINENO"; then :
17178 xorg_cv_cc_flag_unused_command_line_argument=yes
17179 else
17180 xorg_cv_cc_flag_unused_command_line_argument=no
17181 fi
17182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17183 fi
17184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17185 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17186 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17187 CFLAGS="$xorg_testset_save_CFLAGS"
17188 fi
17189
17190 found="no"
17191
17192 if test $found = "no" ; then
17193 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17194 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17195 fi
17196
17197 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17198 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17199 fi
17200
17201 CFLAGS="$CFLAGS -Warray-bounds"
17202
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17204 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17205 cacheid=xorg_cv_cc_flag__Warray_bounds
17206 if eval \${$cacheid+:} false; then :
17207 $as_echo_n "(cached) " >&6
17208 else
17209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17210 /* end confdefs.h. */
17211 int i;
17212 int
17213 main ()
17214 {
17215
17216 ;
17217 return 0;
17218 }
17219 _ACEOF
17220 if ac_fn_c_try_link "$LINENO"; then :
17221 eval $cacheid=yes
17222 else
17223 eval $cacheid=no
17224 fi
17225 rm -f core conftest.err conftest.$ac_objext \
17226 conftest$ac_exeext conftest.$ac_ext
17227 fi
17228
17229
17230 CFLAGS="$xorg_testset_save_CFLAGS"
17231
17232 eval supported=\$$cacheid
17233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17234 $as_echo "$supported" >&6; }
17235 if test "$supported" = "yes" ; then
17236 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17237 found="yes"
17238 fi
17239 fi
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255 xorg_testset_save_CFLAGS="$CFLAGS"
17256
17257 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17258 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17260 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17261 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17262 $as_echo_n "(cached) " >&6
17263 else
17264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17265 /* end confdefs.h. */
17266 int i;
17267 _ACEOF
17268 if ac_fn_c_try_compile "$LINENO"; then :
17269 xorg_cv_cc_flag_unknown_warning_option=yes
17270 else
17271 xorg_cv_cc_flag_unknown_warning_option=no
17272 fi
17273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17274 fi
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17276 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17277 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17278 CFLAGS="$xorg_testset_save_CFLAGS"
17279 fi
17280
17281 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17283 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17284 fi
17285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17287 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17288 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17289 $as_echo_n "(cached) " >&6
17290 else
17291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17292 /* end confdefs.h. */
17293 int i;
17294 _ACEOF
17295 if ac_fn_c_try_compile "$LINENO"; then :
17296 xorg_cv_cc_flag_unused_command_line_argument=yes
17297 else
17298 xorg_cv_cc_flag_unused_command_line_argument=no
17299 fi
17300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17301 fi
17302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17303 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17304 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17305 CFLAGS="$xorg_testset_save_CFLAGS"
17306 fi
17307
17308 found="no"
17309
17310 if test $found = "no" ; then
17311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17313 fi
17314
17315 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17317 fi
17318
17319 CFLAGS="$CFLAGS -Wwrite-strings"
17320
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17322 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17323 cacheid=xorg_cv_cc_flag__Wwrite_strings
17324 if eval \${$cacheid+:} false; then :
17325 $as_echo_n "(cached) " >&6
17326 else
17327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17328 /* end confdefs.h. */
17329 int i;
17330 int
17331 main ()
17332 {
17333
17334 ;
17335 return 0;
17336 }
17337 _ACEOF
17338 if ac_fn_c_try_link "$LINENO"; then :
17339 eval $cacheid=yes
17340 else
17341 eval $cacheid=no
17342 fi
17343 rm -f core conftest.err conftest.$ac_objext \
17344 conftest$ac_exeext conftest.$ac_ext
17345 fi
17346
17347
17348 CFLAGS="$xorg_testset_save_CFLAGS"
17349
17350 eval supported=\$$cacheid
17351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17352 $as_echo "$supported" >&6; }
17353 if test "$supported" = "yes" ; then
17354 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17355 found="yes"
17356 fi
17357 fi
17358
17359
17360
17361
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373 xorg_testset_save_CFLAGS="$CFLAGS"
17374
17375 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17376 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17378 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17379 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17380 $as_echo_n "(cached) " >&6
17381 else
17382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17383 /* end confdefs.h. */
17384 int i;
17385 _ACEOF
17386 if ac_fn_c_try_compile "$LINENO"; then :
17387 xorg_cv_cc_flag_unknown_warning_option=yes
17388 else
17389 xorg_cv_cc_flag_unknown_warning_option=no
17390 fi
17391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17392 fi
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17394 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17395 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17396 CFLAGS="$xorg_testset_save_CFLAGS"
17397 fi
17398
17399 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17400 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17401 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17402 fi
17403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17405 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17406 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17407 $as_echo_n "(cached) " >&6
17408 else
17409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17410 /* end confdefs.h. */
17411 int i;
17412 _ACEOF
17413 if ac_fn_c_try_compile "$LINENO"; then :
17414 xorg_cv_cc_flag_unused_command_line_argument=yes
17415 else
17416 xorg_cv_cc_flag_unused_command_line_argument=no
17417 fi
17418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17419 fi
17420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17421 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17422 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17423 CFLAGS="$xorg_testset_save_CFLAGS"
17424 fi
17425
17426 found="no"
17427
17428 if test $found = "no" ; then
17429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17430 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17431 fi
17432
17433 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17435 fi
17436
17437 CFLAGS="$CFLAGS -Waddress"
17438
17439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17440 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
17441 cacheid=xorg_cv_cc_flag__Waddress
17442 if eval \${$cacheid+:} false; then :
17443 $as_echo_n "(cached) " >&6
17444 else
17445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17446 /* end confdefs.h. */
17447 int i;
17448 int
17449 main ()
17450 {
17451
17452 ;
17453 return 0;
17454 }
17455 _ACEOF
17456 if ac_fn_c_try_link "$LINENO"; then :
17457 eval $cacheid=yes
17458 else
17459 eval $cacheid=no
17460 fi
17461 rm -f core conftest.err conftest.$ac_objext \
17462 conftest$ac_exeext conftest.$ac_ext
17463 fi
17464
17465
17466 CFLAGS="$xorg_testset_save_CFLAGS"
17467
17468 eval supported=\$$cacheid
17469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17470 $as_echo "$supported" >&6; }
17471 if test "$supported" = "yes" ; then
17472 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17473 found="yes"
17474 fi
17475 fi
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491 xorg_testset_save_CFLAGS="$CFLAGS"
17492
17493 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17494 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17496 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17497 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17498 $as_echo_n "(cached) " >&6
17499 else
17500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17501 /* end confdefs.h. */
17502 int i;
17503 _ACEOF
17504 if ac_fn_c_try_compile "$LINENO"; then :
17505 xorg_cv_cc_flag_unknown_warning_option=yes
17506 else
17507 xorg_cv_cc_flag_unknown_warning_option=no
17508 fi
17509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17510 fi
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17512 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17513 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17514 CFLAGS="$xorg_testset_save_CFLAGS"
17515 fi
17516
17517 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17518 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17519 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17520 fi
17521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17523 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17524 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17525 $as_echo_n "(cached) " >&6
17526 else
17527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17528 /* end confdefs.h. */
17529 int i;
17530 _ACEOF
17531 if ac_fn_c_try_compile "$LINENO"; then :
17532 xorg_cv_cc_flag_unused_command_line_argument=yes
17533 else
17534 xorg_cv_cc_flag_unused_command_line_argument=no
17535 fi
17536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17537 fi
17538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17539 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17540 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17541 CFLAGS="$xorg_testset_save_CFLAGS"
17542 fi
17543
17544 found="no"
17545
17546 if test $found = "no" ; then
17547 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17548 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17549 fi
17550
17551 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17552 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17553 fi
17554
17555 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17556
17557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17558 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17559 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17560 if eval \${$cacheid+:} false; then :
17561 $as_echo_n "(cached) " >&6
17562 else
17563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17564 /* end confdefs.h. */
17565 int i;
17566 int
17567 main ()
17568 {
17569
17570 ;
17571 return 0;
17572 }
17573 _ACEOF
17574 if ac_fn_c_try_link "$LINENO"; then :
17575 eval $cacheid=yes
17576 else
17577 eval $cacheid=no
17578 fi
17579 rm -f core conftest.err conftest.$ac_objext \
17580 conftest$ac_exeext conftest.$ac_ext
17581 fi
17582
17583
17584 CFLAGS="$xorg_testset_save_CFLAGS"
17585
17586 eval supported=\$$cacheid
17587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17588 $as_echo "$supported" >&6; }
17589 if test "$supported" = "yes" ; then
17590 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17591 found="yes"
17592 fi
17593 fi
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609 xorg_testset_save_CFLAGS="$CFLAGS"
17610
17611 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17612 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17614 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17615 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17616 $as_echo_n "(cached) " >&6
17617 else
17618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17619 /* end confdefs.h. */
17620 int i;
17621 _ACEOF
17622 if ac_fn_c_try_compile "$LINENO"; then :
17623 xorg_cv_cc_flag_unknown_warning_option=yes
17624 else
17625 xorg_cv_cc_flag_unknown_warning_option=no
17626 fi
17627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17628 fi
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17630 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17631 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17632 CFLAGS="$xorg_testset_save_CFLAGS"
17633 fi
17634
17635 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17636 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17637 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17638 fi
17639 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17641 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17642 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17643 $as_echo_n "(cached) " >&6
17644 else
17645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17646 /* end confdefs.h. */
17647 int i;
17648 _ACEOF
17649 if ac_fn_c_try_compile "$LINENO"; then :
17650 xorg_cv_cc_flag_unused_command_line_argument=yes
17651 else
17652 xorg_cv_cc_flag_unused_command_line_argument=no
17653 fi
17654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17655 fi
17656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17657 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17658 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17659 CFLAGS="$xorg_testset_save_CFLAGS"
17660 fi
17661
17662 found="no"
17663
17664 if test $found = "no" ; then
17665 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17666 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17667 fi
17668
17669 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17671 fi
17672
17673 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17674
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17676 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17677 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17678 if eval \${$cacheid+:} false; then :
17679 $as_echo_n "(cached) " >&6
17680 else
17681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17682 /* end confdefs.h. */
17683 int i;
17684 int
17685 main ()
17686 {
17687
17688 ;
17689 return 0;
17690 }
17691 _ACEOF
17692 if ac_fn_c_try_link "$LINENO"; then :
17693 eval $cacheid=yes
17694 else
17695 eval $cacheid=no
17696 fi
17697 rm -f core conftest.err conftest.$ac_objext \
17698 conftest$ac_exeext conftest.$ac_ext
17699 fi
17700
17701
17702 CFLAGS="$xorg_testset_save_CFLAGS"
17703
17704 eval supported=\$$cacheid
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17706 $as_echo "$supported" >&6; }
17707 if test "$supported" = "yes" ; then
17708 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17709 found="yes"
17710 fi
17711 fi
17712
17713
17714 fi
17715
17716
17717
17718
17719
17720
17721
17722 CWARNFLAGS="$BASE_CFLAGS"
17723 if test "x$GCC" = xyes ; then
17724 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17725 fi
17726
17727
17728
17729
17730
17731
17732
17733
17734 # Check whether --enable-strict-compilation was given.
17735 if test "${enable_strict_compilation+set}" = set; then :
17736 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17737 else
17738 STRICT_COMPILE=no
17739 fi
17740
17741
17742
17743
17744
17745
17746 STRICT_CFLAGS=""
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760 xorg_testset_save_CFLAGS="$CFLAGS"
17761
17762 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17763 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17765 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17766 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17767 $as_echo_n "(cached) " >&6
17768 else
17769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17770 /* end confdefs.h. */
17771 int i;
17772 _ACEOF
17773 if ac_fn_c_try_compile "$LINENO"; then :
17774 xorg_cv_cc_flag_unknown_warning_option=yes
17775 else
17776 xorg_cv_cc_flag_unknown_warning_option=no
17777 fi
17778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17779 fi
17780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17781 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17782 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17783 CFLAGS="$xorg_testset_save_CFLAGS"
17784 fi
17785
17786 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17787 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17788 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17789 fi
17790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17792 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17793 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17794 $as_echo_n "(cached) " >&6
17795 else
17796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17797 /* end confdefs.h. */
17798 int i;
17799 _ACEOF
17800 if ac_fn_c_try_compile "$LINENO"; then :
17801 xorg_cv_cc_flag_unused_command_line_argument=yes
17802 else
17803 xorg_cv_cc_flag_unused_command_line_argument=no
17804 fi
17805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17806 fi
17807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17808 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17809 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17810 CFLAGS="$xorg_testset_save_CFLAGS"
17811 fi
17812
17813 found="no"
17814
17815 if test $found = "no" ; then
17816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17817 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17818 fi
17819
17820 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17821 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17822 fi
17823
17824 CFLAGS="$CFLAGS -pedantic"
17825
17826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17827 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
17828 cacheid=xorg_cv_cc_flag__pedantic
17829 if eval \${$cacheid+:} false; then :
17830 $as_echo_n "(cached) " >&6
17831 else
17832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17833 /* end confdefs.h. */
17834 int i;
17835 int
17836 main ()
17837 {
17838
17839 ;
17840 return 0;
17841 }
17842 _ACEOF
17843 if ac_fn_c_try_link "$LINENO"; then :
17844 eval $cacheid=yes
17845 else
17846 eval $cacheid=no
17847 fi
17848 rm -f core conftest.err conftest.$ac_objext \
17849 conftest$ac_exeext conftest.$ac_ext
17850 fi
17851
17852
17853 CFLAGS="$xorg_testset_save_CFLAGS"
17854
17855 eval supported=\$$cacheid
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17857 $as_echo "$supported" >&6; }
17858 if test "$supported" = "yes" ; then
17859 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17860 found="yes"
17861 fi
17862 fi
17863
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878 xorg_testset_save_CFLAGS="$CFLAGS"
17879
17880 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17883 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17884 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17885 $as_echo_n "(cached) " >&6
17886 else
17887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17888 /* end confdefs.h. */
17889 int i;
17890 _ACEOF
17891 if ac_fn_c_try_compile "$LINENO"; then :
17892 xorg_cv_cc_flag_unknown_warning_option=yes
17893 else
17894 xorg_cv_cc_flag_unknown_warning_option=no
17895 fi
17896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17897 fi
17898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17899 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17900 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17901 CFLAGS="$xorg_testset_save_CFLAGS"
17902 fi
17903
17904 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17905 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17906 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17907 fi
17908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17910 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17911 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17912 $as_echo_n "(cached) " >&6
17913 else
17914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17915 /* end confdefs.h. */
17916 int i;
17917 _ACEOF
17918 if ac_fn_c_try_compile "$LINENO"; then :
17919 xorg_cv_cc_flag_unused_command_line_argument=yes
17920 else
17921 xorg_cv_cc_flag_unused_command_line_argument=no
17922 fi
17923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17924 fi
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17926 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17927 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17928 CFLAGS="$xorg_testset_save_CFLAGS"
17929 fi
17930
17931 found="no"
17932
17933 if test $found = "no" ; then
17934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17935 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17936 fi
17937
17938 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17939 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17940 fi
17941
17942 CFLAGS="$CFLAGS -Werror"
17943
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17945 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17946 cacheid=xorg_cv_cc_flag__Werror
17947 if eval \${$cacheid+:} false; then :
17948 $as_echo_n "(cached) " >&6
17949 else
17950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17951 /* end confdefs.h. */
17952 int i;
17953 int
17954 main ()
17955 {
17956
17957 ;
17958 return 0;
17959 }
17960 _ACEOF
17961 if ac_fn_c_try_link "$LINENO"; then :
17962 eval $cacheid=yes
17963 else
17964 eval $cacheid=no
17965 fi
17966 rm -f core conftest.err conftest.$ac_objext \
17967 conftest$ac_exeext conftest.$ac_ext
17968 fi
17969
17970
17971 CFLAGS="$xorg_testset_save_CFLAGS"
17972
17973 eval supported=\$$cacheid
17974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17975 $as_echo "$supported" >&6; }
17976 if test "$supported" = "yes" ; then
17977 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17978 found="yes"
17979 fi
17980 fi
17981
17982 if test $found = "no" ; then
17983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17984 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17985 fi
17986
17987 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17989 fi
17990
17991 CFLAGS="$CFLAGS -errwarn"
17992
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17994 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17995 cacheid=xorg_cv_cc_flag__errwarn
17996 if eval \${$cacheid+:} false; then :
17997 $as_echo_n "(cached) " >&6
17998 else
17999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18000 /* end confdefs.h. */
18001 int i;
18002 int
18003 main ()
18004 {
18005
18006 ;
18007 return 0;
18008 }
18009 _ACEOF
18010 if ac_fn_c_try_link "$LINENO"; then :
18011 eval $cacheid=yes
18012 else
18013 eval $cacheid=no
18014 fi
18015 rm -f core conftest.err conftest.$ac_objext \
18016 conftest$ac_exeext conftest.$ac_ext
18017 fi
18018
18019
18020 CFLAGS="$xorg_testset_save_CFLAGS"
18021
18022 eval supported=\$$cacheid
18023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18024 $as_echo "$supported" >&6; }
18025 if test "$supported" = "yes" ; then
18026 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18027 found="yes"
18028 fi
18029 fi
18030
18031
18032
18033 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18034 # activate it with -Werror, so we add it here explicitly.
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048 xorg_testset_save_CFLAGS="$CFLAGS"
18049
18050 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18053 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18054 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18055 $as_echo_n "(cached) " >&6
18056 else
18057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18058 /* end confdefs.h. */
18059 int i;
18060 _ACEOF
18061 if ac_fn_c_try_compile "$LINENO"; then :
18062 xorg_cv_cc_flag_unknown_warning_option=yes
18063 else
18064 xorg_cv_cc_flag_unknown_warning_option=no
18065 fi
18066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18067 fi
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18069 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18070 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18071 CFLAGS="$xorg_testset_save_CFLAGS"
18072 fi
18073
18074 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18075 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18076 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18077 fi
18078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18080 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18081 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18082 $as_echo_n "(cached) " >&6
18083 else
18084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18085 /* end confdefs.h. */
18086 int i;
18087 _ACEOF
18088 if ac_fn_c_try_compile "$LINENO"; then :
18089 xorg_cv_cc_flag_unused_command_line_argument=yes
18090 else
18091 xorg_cv_cc_flag_unused_command_line_argument=no
18092 fi
18093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18094 fi
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18096 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18097 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18098 CFLAGS="$xorg_testset_save_CFLAGS"
18099 fi
18100
18101 found="no"
18102
18103 if test $found = "no" ; then
18104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18105 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18106 fi
18107
18108 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18110 fi
18111
18112 CFLAGS="$CFLAGS -Werror=attributes"
18113
18114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18115 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
18116 cacheid=xorg_cv_cc_flag__Werror_attributes
18117 if eval \${$cacheid+:} false; then :
18118 $as_echo_n "(cached) " >&6
18119 else
18120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18121 /* end confdefs.h. */
18122 int i;
18123 int
18124 main ()
18125 {
18126
18127 ;
18128 return 0;
18129 }
18130 _ACEOF
18131 if ac_fn_c_try_link "$LINENO"; then :
18132 eval $cacheid=yes
18133 else
18134 eval $cacheid=no
18135 fi
18136 rm -f core conftest.err conftest.$ac_objext \
18137 conftest$ac_exeext conftest.$ac_ext
18138 fi
18139
18140
18141 CFLAGS="$xorg_testset_save_CFLAGS"
18142
18143 eval supported=\$$cacheid
18144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18145 $as_echo "$supported" >&6; }
18146 if test "$supported" = "yes" ; then
18147 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18148 found="yes"
18149 fi
18150 fi
18151
18152
18153
18154 if test "x$STRICT_COMPILE" = "xyes"; then
18155 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18156 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18157 fi
18158
18159
18160
18161
18162
18163
18164 cat >>confdefs.h <<_ACEOF
18165 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18166 _ACEOF
18167
18168 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18169 if test "x$PVM" = "x"; then
18170 PVM="0"
18171 fi
18172
18173 cat >>confdefs.h <<_ACEOF
18174 #define PACKAGE_VERSION_MINOR $PVM
18175 _ACEOF
18176
18177 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18178 if test "x$PVP" = "x"; then
18179 PVP="0"
18180 fi
18181
18182 cat >>confdefs.h <<_ACEOF
18183 #define PACKAGE_VERSION_PATCHLEVEL $PVP
18184 _ACEOF
18185
18186
18187
18188 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
18189 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
18190 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
18191 echo 'git directory not found: installing possibly empty changelog.' >&2)"
18192
18193
18194
18195
18196 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
18197 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
18198 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18199 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
18200 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
18201
18202
18203
18204
18205
18206
18207 if test x$APP_MAN_SUFFIX = x ; then
18208 APP_MAN_SUFFIX=1
18209 fi
18210 if test x$APP_MAN_DIR = x ; then
18211 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18212 fi
18213
18214 if test x$LIB_MAN_SUFFIX = x ; then
18215 LIB_MAN_SUFFIX=3
18216 fi
18217 if test x$LIB_MAN_DIR = x ; then
18218 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18219 fi
18220
18221 if test x$FILE_MAN_SUFFIX = x ; then
18222 case $host_os in
18223 # Solaris 2.0 - 11 use SysV man page sections
18224 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;;
18225 *) FILE_MAN_SUFFIX=5 ;;
18226 esac
18227 fi
18228 if test x$FILE_MAN_DIR = x ; then
18229 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18230 fi
18231
18232 if test x$MISC_MAN_SUFFIX = x ; then
18233 case $host_os in
18234 # Solaris 2.0 - 11 use SysV man page sections
18235 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;;
18236 *) MISC_MAN_SUFFIX=7 ;;
18237 esac
18238 fi
18239 if test x$MISC_MAN_DIR = x ; then
18240 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18241 fi
18242
18243 if test x$DRIVER_MAN_SUFFIX = x ; then
18244 case $host_os in
18245 # Solaris 2.0 - 11 use SysV man page sections
18246 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;;
18247 *) DRIVER_MAN_SUFFIX=4 ;;
18248 esac
18249 fi
18250 if test x$DRIVER_MAN_DIR = x ; then
18251 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18252 fi
18253
18254 if test x$ADMIN_MAN_SUFFIX = x ; then
18255 case $host_os in
18256 # Solaris 2.0 - 11 use SysV man page sections
18257 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;;
18258 *) ADMIN_MAN_SUFFIX=8 ;;
18259 esac
18260 fi
18261 if test x$ADMIN_MAN_DIR = x ; then
18262 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18263 fi
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279 XORG_MAN_PAGE="X Version 11"
18280
18281 MAN_SUBSTS="\
18282 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18283 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18284 -e 's|__xservername__|Xorg|g' \
18285 -e 's|__xconfigfile__|xorg.conf|g' \
18286 -e 's|__projectroot__|\$(prefix)|g' \
18287 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
18288 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18289 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18290 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18291 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18292 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18293 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18294
18295
18296
18297 # Check whether --enable-silent-rules was given.
18298 if test "${enable_silent_rules+set}" = set; then :
18299 enableval=$enable_silent_rules;
18300 fi
18301
18302 case $enable_silent_rules in # (((
18303 yes) AM_DEFAULT_VERBOSITY=0;;
18304 no) AM_DEFAULT_VERBOSITY=1;;
18305 *) AM_DEFAULT_VERBOSITY=0;;
18306 esac
18307 am_make=${MAKE-make}
18308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18309 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18310 if ${am_cv_make_support_nested_variables+:} false; then :
18311 $as_echo_n "(cached) " >&6
18312 else
18313 if $as_echo 'TRUE=$(BAR$(V))
18314 BAR0=false
18315 BAR1=true
18316 V=1
18317 am__doit:
18318 @$(TRUE)
18319 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18320 am_cv_make_support_nested_variables=yes
18321 else
18322 am_cv_make_support_nested_variables=no
18323 fi
18324 fi
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18326 $as_echo "$am_cv_make_support_nested_variables" >&6; }
18327 if test $am_cv_make_support_nested_variables = yes; then
18328 AM_V='$(V)'
18329 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18330 else
18331 AM_V=$AM_DEFAULT_VERBOSITY
18332 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18333 fi
18334 AM_BACKSLASH='\'
18335
18336
18337
18338
18339
18340
18341 # Check whether --with-xmlto was given.
18342 if test "${with_xmlto+set}" = set; then :
18343 withval=$with_xmlto; use_xmlto=$withval
18344 else
18345 use_xmlto=auto
18346 fi
18347
18348
18349
18350 if test "x$use_xmlto" = x"auto"; then
18351 # Extract the first word of "xmlto", so it can be a program name with args.
18352 set dummy xmlto; ac_word=$2
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18354 $as_echo_n "checking for $ac_word... " >&6; }
18355 if ${ac_cv_path_XMLTO+:} false; then :
18356 $as_echo_n "(cached) " >&6
18357 else
18358 case $XMLTO in
18359 [\\/]* | ?:[\\/]*)
18360 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
18361 ;;
18362 *)
18363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18364 for as_dir in $PATH
18365 do
18366 IFS=$as_save_IFS
18367 test -z "$as_dir" && as_dir=.
18368 for ac_exec_ext in '' $ac_executable_extensions; do
18369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18370 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
18371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18372 break 2
18373 fi
18374 done
18375 done
18376 IFS=$as_save_IFS
18377
18378 ;;
18379 esac
18380 fi
18381 XMLTO=$ac_cv_path_XMLTO
18382 if test -n "$XMLTO"; then
18383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
18384 $as_echo "$XMLTO" >&6; }
18385 else
18386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18387 $as_echo "no" >&6; }
18388 fi
18389
18390
18391 if test "x$XMLTO" = "x"; then
18392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
18393 $as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
18394 have_xmlto=no
18395 else
18396 have_xmlto=yes
18397 fi
18398 elif test "x$use_xmlto" = x"yes" ; then
18399 # Extract the first word of "xmlto", so it can be a program name with args.
18400 set dummy xmlto; ac_word=$2
18401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18402 $as_echo_n "checking for $ac_word... " >&6; }
18403 if ${ac_cv_path_XMLTO+:} false; then :
18404 $as_echo_n "(cached) " >&6
18405 else
18406 case $XMLTO in
18407 [\\/]* | ?:[\\/]*)
18408 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
18409 ;;
18410 *)
18411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18412 for as_dir in $PATH
18413 do
18414 IFS=$as_save_IFS
18415 test -z "$as_dir" && as_dir=.
18416 for ac_exec_ext in '' $ac_executable_extensions; do
18417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18418 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
18419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18420 break 2
18421 fi
18422 done
18423 done
18424 IFS=$as_save_IFS
18425
18426 ;;
18427 esac
18428 fi
18429 XMLTO=$ac_cv_path_XMLTO
18430 if test -n "$XMLTO"; then
18431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
18432 $as_echo "$XMLTO" >&6; }
18433 else
18434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18435 $as_echo "no" >&6; }
18436 fi
18437
18438
18439 if test "x$XMLTO" = "x"; then
18440 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
18441 fi
18442 have_xmlto=yes
18443 elif test "x$use_xmlto" = x"no" ; then
18444 if test "x$XMLTO" != "x"; then
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
18446 $as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
18447 fi
18448 have_xmlto=no
18449 else
18450 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
18451 fi
18452
18453 # Test for a minimum version of xmlto, if provided.
18454 if test "$have_xmlto" = yes; then
18455 # scrape the xmlto version
18456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
18457 $as_echo_n "checking the xmlto version... " >&6; }
18458 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
18460 $as_echo "$xmlto_version" >&6; }
18461 as_arg_v1=$xmlto_version
18462 as_arg_v2=0.0.20
18463 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18464 case $? in #(
18465 1) :
18466 if test "x$use_xmlto" = xauto; then
18467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5
18468 $as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;}
18469 have_xmlto=no
18470 else
18471 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5
18472 fi ;; #(
18473 0) :
18474 ;; #(
18475 2) :
18476 ;; #(
18477 *) :
18478 ;;
18479 esac
18480 fi
18481
18482 # Test for the ability of xmlto to generate a text target
18483 #
18484 # NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
18485 # following test for empty XML docbook files.
18486 # For compatibility reasons use the following empty XML docbook file and if
18487 # it fails try it again with a non-empty XML file.
18488 have_xmlto_text=no
18489 cat > conftest.xml << "EOF"
18490 EOF
18491 if test "$have_xmlto" = yes; then :
18492 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
18493 have_xmlto_text=yes
18494 else
18495 # Try it again with a non-empty XML file.
18496 cat > conftest.xml << "EOF"
18497 <x></x>
18498 EOF
18499 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
18500 have_xmlto_text=yes
18501 else
18502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
18503 $as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
18504 fi
18505 fi
18506 fi
18507 rm -f conftest.xml
18508 if test $have_xmlto_text = yes; then
18509 HAVE_XMLTO_TEXT_TRUE=
18510 HAVE_XMLTO_TEXT_FALSE='#'
18511 else
18512 HAVE_XMLTO_TEXT_TRUE='#'
18513 HAVE_XMLTO_TEXT_FALSE=
18514 fi
18515
18516 if test "$have_xmlto" = yes; then
18517 HAVE_XMLTO_TRUE=
18518 HAVE_XMLTO_FALSE='#'
18519 else
18520 HAVE_XMLTO_TRUE='#'
18521 HAVE_XMLTO_FALSE=
18522 fi
18523
18524
18525
18526 # Determine if the source for man pages is available
18527 # It may already be present (tarball) or can be generated using xmlto
18528 if test -f "$srcdir/man/Xcomposite.man" || test "x$have_xmlto" = xyes; then
18529 INSTALL_MANPAGES_TRUE=
18530 INSTALL_MANPAGES_FALSE='#'
18531 else
18532 INSTALL_MANPAGES_TRUE='#'
18533 INSTALL_MANPAGES_FALSE=
18534 fi
18535
18536
18537 # Check compositeext configuration, strip extra digits from package version to
18538 # find the required protocol version
18539 if test "$VERSION" = "" ; then
18540 VERSION=$PACKAGE_VERSION;
18541 fi
18542 COMPOSITEEXT_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
18543
18544
18545 # Obtain compiler/linker options for depedencies
18546
18547 pkg_failed=no
18548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCOMPOSITE" >&5
18549 $as_echo_n "checking for XCOMPOSITE... " >&6; }
18550
18551 if test -n "$XCOMPOSITE_CFLAGS"; then
18552 pkg_cv_XCOMPOSITE_CFLAGS="$XCOMPOSITE_CFLAGS"
18553 elif test -n "$PKG_CONFIG"; then
18554 if test -n "$PKG_CONFIG" && \
18555 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"compositeproto >= \$COMPOSITEEXT_VERSION x11\""; } >&5
18556 ($PKG_CONFIG --exists --print-errors "compositeproto >= $COMPOSITEEXT_VERSION x11") 2>&5
18557 ac_status=$?
18558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18559 test $ac_status = 0; }; then
18560 pkg_cv_XCOMPOSITE_CFLAGS=`$PKG_CONFIG --cflags "compositeproto >= $COMPOSITEEXT_VERSION x11" 2>/dev/null`
18561 test "x$?" != "x0" && pkg_failed=yes
18562 else
18563 pkg_failed=yes
18564 fi
18565 else
18566 pkg_failed=untried
18567 fi
18568 if test -n "$XCOMPOSITE_LIBS"; then
18569 pkg_cv_XCOMPOSITE_LIBS="$XCOMPOSITE_LIBS"
18570 elif test -n "$PKG_CONFIG"; then
18571 if test -n "$PKG_CONFIG" && \
18572 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"compositeproto >= \$COMPOSITEEXT_VERSION x11\""; } >&5
18573 ($PKG_CONFIG --exists --print-errors "compositeproto >= $COMPOSITEEXT_VERSION x11") 2>&5
18574 ac_status=$?
18575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18576 test $ac_status = 0; }; then
18577 pkg_cv_XCOMPOSITE_LIBS=`$PKG_CONFIG --libs "compositeproto >= $COMPOSITEEXT_VERSION x11" 2>/dev/null`
18578 test "x$?" != "x0" && pkg_failed=yes
18579 else
18580 pkg_failed=yes
18581 fi
18582 else
18583 pkg_failed=untried
18584 fi
18585
18586
18587
18588 if test $pkg_failed = yes; then
18589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18590 $as_echo "no" >&6; }
18591
18592 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18593 _pkg_short_errors_supported=yes
18594 else
18595 _pkg_short_errors_supported=no
18596 fi
18597 if test $_pkg_short_errors_supported = yes; then
18598 XCOMPOSITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "compositeproto >= $COMPOSITEEXT_VERSION x11" 2>&1`
18599 else
18600 XCOMPOSITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "compositeproto >= $COMPOSITEEXT_VERSION x11" 2>&1`
18601 fi
18602 # Put the nasty error message in config.log where it belongs
18603 echo "$XCOMPOSITE_PKG_ERRORS" >&5
18604
18605 as_fn_error $? "Package requirements (compositeproto >= $COMPOSITEEXT_VERSION x11) were not met:
18606
18607 $XCOMPOSITE_PKG_ERRORS
18608
18609 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18610 installed software in a non-standard prefix.
18611
18612 Alternatively, you may set the environment variables XCOMPOSITE_CFLAGS
18613 and XCOMPOSITE_LIBS to avoid the need to call pkg-config.
18614 See the pkg-config man page for more details." "$LINENO" 5
18615 elif test $pkg_failed = untried; then
18616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18617 $as_echo "no" >&6; }
18618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18620 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18621 is in your PATH or set the PKG_CONFIG environment variable to the full
18622 path to pkg-config.
18623
18624 Alternatively, you may set the environment variables XCOMPOSITE_CFLAGS
18625 and XCOMPOSITE_LIBS to avoid the need to call pkg-config.
18626 See the pkg-config man page for more details.
18627
18628 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18629 See \`config.log' for more details" "$LINENO" 5; }
18630 else
18631 XCOMPOSITE_CFLAGS=$pkg_cv_XCOMPOSITE_CFLAGS
18632 XCOMPOSITE_LIBS=$pkg_cv_XCOMPOSITE_LIBS
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18634 $as_echo "yes" >&6; }
18635
18636 fi
18637
18638 pkg_failed=no
18639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFIXES" >&5
18640 $as_echo_n "checking for XFIXES... " >&6; }
18641
18642 if test -n "$XFIXES_CFLAGS"; then
18643 pkg_cv_XFIXES_CFLAGS="$XFIXES_CFLAGS"
18644 elif test -n "$PKG_CONFIG"; then
18645 if test -n "$PKG_CONFIG" && \
18646 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes\""; } >&5
18647 ($PKG_CONFIG --exists --print-errors "xfixes") 2>&5
18648 ac_status=$?
18649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18650 test $ac_status = 0; }; then
18651 pkg_cv_XFIXES_CFLAGS=`$PKG_CONFIG --cflags "xfixes" 2>/dev/null`
18652 test "x$?" != "x0" && pkg_failed=yes
18653 else
18654 pkg_failed=yes
18655 fi
18656 else
18657 pkg_failed=untried
18658 fi
18659 if test -n "$XFIXES_LIBS"; then
18660 pkg_cv_XFIXES_LIBS="$XFIXES_LIBS"
18661 elif test -n "$PKG_CONFIG"; then
18662 if test -n "$PKG_CONFIG" && \
18663 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes\""; } >&5
18664 ($PKG_CONFIG --exists --print-errors "xfixes") 2>&5
18665 ac_status=$?
18666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18667 test $ac_status = 0; }; then
18668 pkg_cv_XFIXES_LIBS=`$PKG_CONFIG --libs "xfixes" 2>/dev/null`
18669 test "x$?" != "x0" && pkg_failed=yes
18670 else
18671 pkg_failed=yes
18672 fi
18673 else
18674 pkg_failed=untried
18675 fi
18676
18677
18678
18679 if test $pkg_failed = yes; then
18680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18681 $as_echo "no" >&6; }
18682
18683 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18684 _pkg_short_errors_supported=yes
18685 else
18686 _pkg_short_errors_supported=no
18687 fi
18688 if test $_pkg_short_errors_supported = yes; then
18689 XFIXES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xfixes" 2>&1`
18690 else
18691 XFIXES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xfixes" 2>&1`
18692 fi
18693 # Put the nasty error message in config.log where it belongs
18694 echo "$XFIXES_PKG_ERRORS" >&5
18695
18696 as_fn_error $? "Package requirements (xfixes) were not met:
18697
18698 $XFIXES_PKG_ERRORS
18699
18700 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18701 installed software in a non-standard prefix.
18702
18703 Alternatively, you may set the environment variables XFIXES_CFLAGS
18704 and XFIXES_LIBS to avoid the need to call pkg-config.
18705 See the pkg-config man page for more details." "$LINENO" 5
18706 elif test $pkg_failed = untried; then
18707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18708 $as_echo "no" >&6; }
18709 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18710 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18711 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18712 is in your PATH or set the PKG_CONFIG environment variable to the full
18713 path to pkg-config.
18714
18715 Alternatively, you may set the environment variables XFIXES_CFLAGS
18716 and XFIXES_LIBS to avoid the need to call pkg-config.
18717 See the pkg-config man page for more details.
18718
18719 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18720 See \`config.log' for more details" "$LINENO" 5; }
18721 else
18722 XFIXES_CFLAGS=$pkg_cv_XFIXES_CFLAGS
18723 XFIXES_LIBS=$pkg_cv_XFIXES_LIBS
18724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18725 $as_echo "yes" >&6; }
18726
18727 fi
18728
18729 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xcomposite.pc"
18730
18731 cat >confcache <<\_ACEOF
18732 # This file is a shell script that caches the results of configure
18733 # tests run on this system so they can be shared between configure
18734 # scripts and configure runs, see configure's option --config-cache.
18735 # It is not useful on other systems. If it contains results you don't
18736 # want to keep, you may remove or edit it.
18737 #
18738 # config.status only pays attention to the cache file if you give it
18739 # the --recheck option to rerun configure.
18740 #
18741 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18742 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18743 # following values.
18744
18745 _ACEOF
18746
18747 # The following way of writing the cache mishandles newlines in values,
18748 # but we know of no workaround that is simple, portable, and efficient.
18749 # So, we kill variables containing newlines.
18750 # Ultrix sh set writes to stderr and can't be redirected directly,
18751 # and sets the high bit in the cache file unless we assign to the vars.
18752 (
18753 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18754 eval ac_val=\$$ac_var
18755 case $ac_val in #(
18756 *${as_nl}*)
18757 case $ac_var in #(
18758 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18759 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18760 esac
18761 case $ac_var in #(
18762 _ | IFS | as_nl) ;; #(
18763 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18764 *) { eval $ac_var=; unset $ac_var;} ;;
18765 esac ;;
18766 esac
18767 done
18768
18769 (set) 2>&1 |
18770 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18771 *${as_nl}ac_space=\ *)
18772 # `set' does not quote correctly, so add quotes: double-quote
18773 # substitution turns \\\\ into \\, and sed turns \\ into \.
18774 sed -n \
18775 "s/'/'\\\\''/g;
18776 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18777 ;; #(
18778 *)
18779 # `set' quotes correctly as required by POSIX, so do not add quotes.
18780 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18781 ;;
18782 esac |
18783 sort
18784 ) |
18785 sed '
18786 /^ac_cv_env_/b end
18787 t clear
18788 :clear
18789 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18790 t end
18791 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18792 :end' >>confcache
18793 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18794 if test -w "$cache_file"; then
18795 if test "x$cache_file" != "x/dev/null"; then
18796 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18797 $as_echo "$as_me: updating cache $cache_file" >&6;}
18798 if test ! -f "$cache_file" || test -h "$cache_file"; then
18799 cat confcache >"$cache_file"
18800 else
18801 case $cache_file in #(
18802 */* | ?:*)
18803 mv -f confcache "$cache_file"$$ &&
18804 mv -f "$cache_file"$$ "$cache_file" ;; #(
18805 *)
18806 mv -f confcache "$cache_file" ;;
18807 esac
18808 fi
18809 fi
18810 else
18811 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18812 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18813 fi
18814 fi
18815 rm -f confcache
18816
18817 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18818 # Let make expand exec_prefix.
18819 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18820
18821 DEFS=-DHAVE_CONFIG_H
18822
18823 ac_libobjs=
18824 ac_ltlibobjs=
18825 U=
18826 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18827 # 1. Remove the extension, and $U if already installed.
18828 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18829 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18830 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18831 # will be set to the directory where LIBOBJS objects are built.
18832 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18833 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18834 done
18835 LIBOBJS=$ac_libobjs
18836
18837 LTLIBOBJS=$ac_ltlibobjs
18838
18839
18840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18841 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18842 if test -n "$am_sleep_pid"; then
18843 # Hide warnings about reused PIDs.
18844 wait $am_sleep_pid 2>/dev/null
18845 fi
18846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18847 $as_echo "done" >&6; }
18848 if test -n "$EXEEXT"; then
18849 am__EXEEXT_TRUE=
18850 am__EXEEXT_FALSE='#'
18851 else
18852 am__EXEEXT_TRUE='#'
18853 am__EXEEXT_FALSE=
18854 fi
18855
18856 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18857 as_fn_error $? "conditional \"AMDEP\" was never defined.
18858 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18859 fi
18860 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18861 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18862 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18863 fi
18864 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
18865 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
18866 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18867 fi
18868 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
18869 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
18870 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18871 fi
18872 if test -z "${INSTALL_MANPAGES_TRUE}" && test -z "${INSTALL_MANPAGES_FALSE}"; then
18873 as_fn_error $? "conditional \"INSTALL_MANPAGES\" was never defined.
18874 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18875 fi
18876
18877 : "${CONFIG_STATUS=./config.status}"
18878 ac_write_fail=0
18879 ac_clean_files_save=$ac_clean_files
18880 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18881 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18882 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18883 as_write_fail=0
18884 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18885 #! $SHELL
18886 # Generated by $as_me.
18887 # Run this file to recreate the current configuration.
18888 # Compiler output produced by configure, useful for debugging
18889 # configure, is in config.log if it exists.
18890
18891 debug=false
18892 ac_cs_recheck=false
18893 ac_cs_silent=false
18894
18895 SHELL=\${CONFIG_SHELL-$SHELL}
18896 export SHELL
18897 _ASEOF
18898 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18899 ## -------------------- ##
18900 ## M4sh Initialization. ##
18901 ## -------------------- ##
18902
18903 # Be more Bourne compatible
18904 DUALCASE=1; export DUALCASE # for MKS sh
18905 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18906 emulate sh
18907 NULLCMD=:
18908 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18909 # is contrary to our usage. Disable this feature.
18910 alias -g '${1+"$@"}'='"$@"'
18911 setopt NO_GLOB_SUBST
18912 else
18913 case `(set -o) 2>/dev/null` in #(
18914 *posix*) :
18915 set -o posix ;; #(
18916 *) :
18917 ;;
18918 esac
18919 fi
18920
18921
18922 as_nl='
18923 '
18924 export as_nl
18925 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18926 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18927 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18928 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18929 # Prefer a ksh shell builtin over an external printf program on Solaris,
18930 # but without wasting forks for bash or zsh.
18931 if test -z "$BASH_VERSION$ZSH_VERSION" \
18932 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18933 as_echo='print -r --'
18934 as_echo_n='print -rn --'
18935 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18936 as_echo='printf %s\n'
18937 as_echo_n='printf %s'
18938 else
18939 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18940 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18941 as_echo_n='/usr/ucb/echo -n'
18942 else
18943 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18944 as_echo_n_body='eval
18945 arg=$1;
18946 case $arg in #(
18947 *"$as_nl"*)
18948 expr "X$arg" : "X\\(.*\\)$as_nl";
18949 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18950 esac;
18951 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18952 '
18953 export as_echo_n_body
18954 as_echo_n='sh -c $as_echo_n_body as_echo'
18955 fi
18956 export as_echo_body
18957 as_echo='sh -c $as_echo_body as_echo'
18958 fi
18959
18960 # The user is always right.
18961 if test "${PATH_SEPARATOR+set}" != set; then
18962 PATH_SEPARATOR=:
18963 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18964 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18965 PATH_SEPARATOR=';'
18966 }
18967 fi
18968
18969
18970 # IFS
18971 # We need space, tab and new line, in precisely that order. Quoting is
18972 # there to prevent editors from complaining about space-tab.
18973 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18974 # splitting by setting IFS to empty value.)
18975 IFS=" "" $as_nl"
18976
18977 # Find who we are. Look in the path if we contain no directory separator.
18978 as_myself=
18979 case $0 in #((
18980 *[\\/]* ) as_myself=$0 ;;
18981 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18982 for as_dir in $PATH
18983 do
18984 IFS=$as_save_IFS
18985 test -z "$as_dir" && as_dir=.
18986 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18987 done
18988 IFS=$as_save_IFS
18989
18990 ;;
18991 esac
18992 # We did not find ourselves, most probably we were run as `sh COMMAND'
18993 # in which case we are not to be found in the path.
18994 if test "x$as_myself" = x; then
18995 as_myself=$0
18996 fi
18997 if test ! -f "$as_myself"; then
18998 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18999 exit 1
19000 fi
19001
19002 # Unset variables that we do not need and which cause bugs (e.g. in
19003 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19004 # suppresses any "Segmentation fault" message there. '((' could
19005 # trigger a bug in pdksh 5.2.14.
19006 for as_var in BASH_ENV ENV MAIL MAILPATH
19007 do eval test x\${$as_var+set} = xset \
19008 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19009 done
19010 PS1='$ '
19011 PS2='> '
19012 PS4='+ '
19013
19014 # NLS nuisances.
19015 LC_ALL=C
19016 export LC_ALL
19017 LANGUAGE=C
19018 export LANGUAGE
19019
19020 # CDPATH.
19021 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19022
19023
19024 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19025 # ----------------------------------------
19026 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19027 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19028 # script with STATUS, using 1 if that was 0.
19029 as_fn_error ()
19030 {
19031 as_status=$1; test $as_status -eq 0 && as_status=1
19032 if test "$4"; then
19033 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19034 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19035 fi
19036 $as_echo "$as_me: error: $2" >&2
19037 as_fn_exit $as_status
19038 } # as_fn_error
19039
19040
19041 # as_fn_set_status STATUS
19042 # -----------------------
19043 # Set $? to STATUS, without forking.
19044 as_fn_set_status ()
19045 {
19046 return $1
19047 } # as_fn_set_status
19048
19049 # as_fn_exit STATUS
19050 # -----------------
19051 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19052 as_fn_exit ()
19053 {
19054 set +e
19055 as_fn_set_status $1
19056 exit $1
19057 } # as_fn_exit
19058
19059 # as_fn_unset VAR
19060 # ---------------
19061 # Portably unset VAR.
19062 as_fn_unset ()
19063 {
19064 { eval $1=; unset $1;}
19065 }
19066 as_unset=as_fn_unset
19067 # as_fn_append VAR VALUE
19068 # ----------------------
19069 # Append the text in VALUE to the end of the definition contained in VAR. Take
19070 # advantage of any shell optimizations that allow amortized linear growth over
19071 # repeated appends, instead of the typical quadratic growth present in naive
19072 # implementations.
19073 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19074 eval 'as_fn_append ()
19075 {
19076 eval $1+=\$2
19077 }'
19078 else
19079 as_fn_append ()
19080 {
19081 eval $1=\$$1\$2
19082 }
19083 fi # as_fn_append
19084
19085 # as_fn_arith ARG...
19086 # ------------------
19087 # Perform arithmetic evaluation on the ARGs, and store the result in the
19088 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19089 # must be portable across $(()) and expr.
19090 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19091 eval 'as_fn_arith ()
19092 {
19093 as_val=$(( $* ))
19094 }'
19095 else
19096 as_fn_arith ()
19097 {
19098 as_val=`expr "$@" || test $? -eq 1`
19099 }
19100 fi # as_fn_arith
19101
19102
19103 if expr a : '\(a\)' >/dev/null 2>&1 &&
19104 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19105 as_expr=expr
19106 else
19107 as_expr=false
19108 fi
19109
19110 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19111 as_basename=basename
19112 else
19113 as_basename=false
19114 fi
19115
19116 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19117 as_dirname=dirname
19118 else
19119 as_dirname=false
19120 fi
19121
19122 as_me=`$as_basename -- "$0" ||
19123 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19124 X"$0" : 'X\(//\)$' \| \
19125 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19126 $as_echo X/"$0" |
19127 sed '/^.*\/\([^/][^/]*\)\/*$/{
19128 s//\1/
19129 q
19130 }
19131 /^X\/\(\/\/\)$/{
19132 s//\1/
19133 q
19134 }
19135 /^X\/\(\/\).*/{
19136 s//\1/
19137 q
19138 }
19139 s/.*/./; q'`
19140
19141 # Avoid depending upon Character Ranges.
19142 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19143 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19144 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19145 as_cr_digits='0123456789'
19146 as_cr_alnum=$as_cr_Letters$as_cr_digits
19147
19148 ECHO_C= ECHO_N= ECHO_T=
19149 case `echo -n x` in #(((((
19150 -n*)
19151 case `echo 'xy\c'` in
19152 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19153 xy) ECHO_C='\c';;
19154 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19155 ECHO_T=' ';;
19156 esac;;
19157 *)
19158 ECHO_N='-n';;
19159 esac
19160
19161 rm -f conf$$ conf$$.exe conf$$.file
19162 if test -d conf$$.dir; then
19163 rm -f conf$$.dir/conf$$.file
19164 else
19165 rm -f conf$$.dir
19166 mkdir conf$$.dir 2>/dev/null
19167 fi
19168 if (echo >conf$$.file) 2>/dev/null; then
19169 if ln -s conf$$.file conf$$ 2>/dev/null; then
19170 as_ln_s='ln -s'
19171 # ... but there are two gotchas:
19172 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19173 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19174 # In both cases, we have to default to `cp -pR'.
19175 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19176 as_ln_s='cp -pR'
19177 elif ln conf$$.file conf$$ 2>/dev/null; then
19178 as_ln_s=ln
19179 else
19180 as_ln_s='cp -pR'
19181 fi
19182 else
19183 as_ln_s='cp -pR'
19184 fi
19185 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19186 rmdir conf$$.dir 2>/dev/null
19187
19188
19189 # as_fn_mkdir_p
19190 # -------------
19191 # Create "$as_dir" as a directory, including parents if necessary.
19192 as_fn_mkdir_p ()
19193 {
19194
19195 case $as_dir in #(
19196 -*) as_dir=./$as_dir;;
19197 esac
19198 test -d "$as_dir" || eval $as_mkdir_p || {
19199 as_dirs=
19200 while :; do
19201 case $as_dir in #(
19202 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19203 *) as_qdir=$as_dir;;
19204 esac
19205 as_dirs="'$as_qdir' $as_dirs"
19206 as_dir=`$as_dirname -- "$as_dir" ||
19207 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19208 X"$as_dir" : 'X\(//\)[^/]' \| \
19209 X"$as_dir" : 'X\(//\)$' \| \
19210 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19211 $as_echo X"$as_dir" |
19212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19213 s//\1/
19214 q
19215 }
19216 /^X\(\/\/\)[^/].*/{
19217 s//\1/
19218 q
19219 }
19220 /^X\(\/\/\)$/{
19221 s//\1/
19222 q
19223 }
19224 /^X\(\/\).*/{
19225 s//\1/
19226 q
19227 }
19228 s/.*/./; q'`
19229 test -d "$as_dir" && break
19230 done
19231 test -z "$as_dirs" || eval "mkdir $as_dirs"
19232 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19233
19234
19235 } # as_fn_mkdir_p
19236 if mkdir -p . 2>/dev/null; then
19237 as_mkdir_p='mkdir -p "$as_dir"'
19238 else
19239 test -d ./-p && rmdir ./-p
19240 as_mkdir_p=false
19241 fi
19242
19243
19244 # as_fn_executable_p FILE
19245 # -----------------------
19246 # Test if FILE is an executable regular file.
19247 as_fn_executable_p ()
19248 {
19249 test -f "$1" && test -x "$1"
19250 } # as_fn_executable_p
19251 as_test_x='test -x'
19252 as_executable_p=as_fn_executable_p
19253
19254 # Sed expression to map a string onto a valid CPP name.
19255 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19256
19257 # Sed expression to map a string onto a valid variable name.
19258 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19259
19260
19261 exec 6>&1
19262 ## ----------------------------------- ##
19263 ## Main body of $CONFIG_STATUS script. ##
19264 ## ----------------------------------- ##
19265 _ASEOF
19266 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19267
19268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19269 # Save the log message, to keep $0 and so on meaningful, and to
19270 # report actual input values of CONFIG_FILES etc. instead of their
19271 # values after options handling.
19272 ac_log="
19273 This file was extended by libXcomposite $as_me 0.4.5, which was
19274 generated by GNU Autoconf 2.69. Invocation command line was
19275
19276 CONFIG_FILES = $CONFIG_FILES
19277 CONFIG_HEADERS = $CONFIG_HEADERS
19278 CONFIG_LINKS = $CONFIG_LINKS
19279 CONFIG_COMMANDS = $CONFIG_COMMANDS
19280 $ $0 $@
19281
19282 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19283 "
19284
19285 _ACEOF
19286
19287 case $ac_config_files in *"
19288 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19289 esac
19290
19291 case $ac_config_headers in *"
19292 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19293 esac
19294
19295
19296 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19297 # Files that config.status was made for.
19298 config_files="$ac_config_files"
19299 config_headers="$ac_config_headers"
19300 config_commands="$ac_config_commands"
19301
19302 _ACEOF
19303
19304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19305 ac_cs_usage="\
19306 \`$as_me' instantiates files and other configuration actions
19307 from templates according to the current configuration. Unless the files
19308 and actions are specified as TAGs, all are instantiated by default.
19309
19310 Usage: $0 [OPTION]... [TAG]...
19311
19312 -h, --help print this help, then exit
19313 -V, --version print version number and configuration settings, then exit
19314 --config print configuration, then exit
19315 -q, --quiet, --silent
19316 do not print progress messages
19317 -d, --debug don't remove temporary files
19318 --recheck update $as_me by reconfiguring in the same conditions
19319 --file=FILE[:TEMPLATE]
19320 instantiate the configuration file FILE
19321 --header=FILE[:TEMPLATE]
19322 instantiate the configuration header FILE
19323
19324 Configuration files:
19325 $config_files
19326
19327 Configuration headers:
19328 $config_headers
19329
19330 Configuration commands:
19331 $config_commands
19332
19333 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXcomposite/issues>."
19334
19335 _ACEOF
19336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19337 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19338 ac_cs_version="\\
19339 libXcomposite config.status 0.4.5
19340 configured by $0, generated by GNU Autoconf 2.69,
19341 with options \\"\$ac_cs_config\\"
19342
19343 Copyright (C) 2012 Free Software Foundation, Inc.
19344 This config.status script is free software; the Free Software Foundation
19345 gives unlimited permission to copy, distribute and modify it."
19346
19347 ac_pwd='$ac_pwd'
19348 srcdir='$srcdir'
19349 INSTALL='$INSTALL'
19350 MKDIR_P='$MKDIR_P'
19351 AWK='$AWK'
19352 test -n "\$AWK" || AWK=awk
19353 _ACEOF
19354
19355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19356 # The default lists apply if the user does not specify any file.
19357 ac_need_defaults=:
19358 while test $# != 0
19359 do
19360 case $1 in
19361 --*=?*)
19362 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19363 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19364 ac_shift=:
19365 ;;
19366 --*=)
19367 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19368 ac_optarg=
19369 ac_shift=:
19370 ;;
19371 *)
19372 ac_option=$1
19373 ac_optarg=$2
19374 ac_shift=shift
19375 ;;
19376 esac
19377
19378 case $ac_option in
19379 # Handling of the options.
19380 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19381 ac_cs_recheck=: ;;
19382 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19383 $as_echo "$ac_cs_version"; exit ;;
19384 --config | --confi | --conf | --con | --co | --c )
19385 $as_echo "$ac_cs_config"; exit ;;
19386 --debug | --debu | --deb | --de | --d | -d )
19387 debug=: ;;
19388 --file | --fil | --fi | --f )
19389 $ac_shift
19390 case $ac_optarg in
19391 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19392 '') as_fn_error $? "missing file argument" ;;
19393 esac
19394 as_fn_append CONFIG_FILES " '$ac_optarg'"
19395 ac_need_defaults=false;;
19396 --header | --heade | --head | --hea )
19397 $ac_shift
19398 case $ac_optarg in
19399 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19400 esac
19401 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19402 ac_need_defaults=false;;
19403 --he | --h)
19404 # Conflict between --help and --header
19405 as_fn_error $? "ambiguous option: \`$1'
19406 Try \`$0 --help' for more information.";;
19407 --help | --hel | -h )
19408 $as_echo "$ac_cs_usage"; exit ;;
19409 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19410 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19411 ac_cs_silent=: ;;
19412
19413 # This is an error.
19414 -*) as_fn_error $? "unrecognized option: \`$1'
19415 Try \`$0 --help' for more information." ;;
19416
19417 *) as_fn_append ac_config_targets " $1"
19418 ac_need_defaults=false ;;
19419
19420 esac
19421 shift
19422 done
19423
19424 ac_configure_extra_args=
19425
19426 if $ac_cs_silent; then
19427 exec 6>/dev/null
19428 ac_configure_extra_args="$ac_configure_extra_args --silent"
19429 fi
19430
19431 _ACEOF
19432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19433 if \$ac_cs_recheck; then
19434 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19435 shift
19436 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19437 CONFIG_SHELL='$SHELL'
19438 export CONFIG_SHELL
19439 exec "\$@"
19440 fi
19441
19442 _ACEOF
19443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19444 exec 5>>config.log
19445 {
19446 echo
19447 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19448 ## Running $as_me. ##
19449 _ASBOX
19450 $as_echo "$ac_log"
19451 } >&5
19452
19453 _ACEOF
19454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19455 #
19456 # INIT-COMMANDS
19457 #
19458 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19459
19460
19461 # The HP-UX ksh and POSIX shell print the target directory to stdout
19462 # if CDPATH is set.
19463 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19464
19465 sed_quote_subst='$sed_quote_subst'
19466 double_quote_subst='$double_quote_subst'
19467 delay_variable_subst='$delay_variable_subst'
19468 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19469 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19470 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19471 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19472 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19473 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19474 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19475 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19476 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19477 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19478 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19479 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19480 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19481 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19482 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19483 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19484 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19485 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19486 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19487 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19488 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19489 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19490 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19491 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19492 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19493 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19494 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19495 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19496 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19497 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19498 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19499 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19500 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19501 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19502 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19503 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19504 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19505 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19506 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19507 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19508 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19509 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19510 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19511 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19512 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19513 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19514 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19515 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19516 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19517 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19518 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19519 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19520 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19521 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19522 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19523 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19524 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19525 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19526 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"`'
19527 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19528 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19529 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19530 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19531 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19532 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19533 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19534 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19535 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19536 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19537 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19538 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19539 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19540 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19541 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19542 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19543 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19544 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19545 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19546 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19547 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19548 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19549 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19550 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19551 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19552 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19553 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19554 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19555 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19556 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19557 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19558 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19559 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19560 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19561 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19562 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19563 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19564 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19565 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19566 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19567 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19568 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19569 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19570 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19571 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19572 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19573 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19574 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19575 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19576 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19577 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19578 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19579 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19580 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19581 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19582 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19583 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19584 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19585 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19586 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19587 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19588 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19589 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19590 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19591 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19592 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19593 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19594 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19595 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19596 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19597 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19598 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19599 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19600 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19601 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19602 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19603
19604 LTCC='$LTCC'
19605 LTCFLAGS='$LTCFLAGS'
19606 compiler='$compiler_DEFAULT'
19607
19608 # A function that is used when there is no print builtin or printf.
19609 func_fallback_echo ()
19610 {
19611 eval 'cat <<_LTECHO_EOF
19612 \$1
19613 _LTECHO_EOF'
19614 }
19615
19616 # Quote evaled strings.
19617 for var in SHELL \
19618 ECHO \
19619 PATH_SEPARATOR \
19620 SED \
19621 GREP \
19622 EGREP \
19623 FGREP \
19624 LD \
19625 NM \
19626 LN_S \
19627 lt_SP2NL \
19628 lt_NL2SP \
19629 reload_flag \
19630 OBJDUMP \
19631 deplibs_check_method \
19632 file_magic_cmd \
19633 file_magic_glob \
19634 want_nocaseglob \
19635 DLLTOOL \
19636 sharedlib_from_linklib_cmd \
19637 AR \
19638 AR_FLAGS \
19639 archiver_list_spec \
19640 STRIP \
19641 RANLIB \
19642 CC \
19643 CFLAGS \
19644 compiler \
19645 lt_cv_sys_global_symbol_pipe \
19646 lt_cv_sys_global_symbol_to_cdecl \
19647 lt_cv_sys_global_symbol_to_import \
19648 lt_cv_sys_global_symbol_to_c_name_address \
19649 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19650 lt_cv_nm_interface \
19651 nm_file_list_spec \
19652 lt_cv_truncate_bin \
19653 lt_prog_compiler_no_builtin_flag \
19654 lt_prog_compiler_pic \
19655 lt_prog_compiler_wl \
19656 lt_prog_compiler_static \
19657 lt_cv_prog_compiler_c_o \
19658 need_locks \
19659 MANIFEST_TOOL \
19660 DSYMUTIL \
19661 NMEDIT \
19662 LIPO \
19663 OTOOL \
19664 OTOOL64 \
19665 shrext_cmds \
19666 export_dynamic_flag_spec \
19667 whole_archive_flag_spec \
19668 compiler_needs_object \
19669 with_gnu_ld \
19670 allow_undefined_flag \
19671 no_undefined_flag \
19672 hardcode_libdir_flag_spec \
19673 hardcode_libdir_separator \
19674 exclude_expsyms \
19675 include_expsyms \
19676 file_list_spec \
19677 variables_saved_for_relink \
19678 libname_spec \
19679 library_names_spec \
19680 soname_spec \
19681 install_override_mode \
19682 finish_eval \
19683 old_striplib \
19684 striplib; do
19685 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19686 *[\\\\\\\`\\"\\\$]*)
19687 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19688 ;;
19689 *)
19690 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19691 ;;
19692 esac
19693 done
19694
19695 # Double-quote double-evaled strings.
19696 for var in reload_cmds \
19697 old_postinstall_cmds \
19698 old_postuninstall_cmds \
19699 old_archive_cmds \
19700 extract_expsyms_cmds \
19701 old_archive_from_new_cmds \
19702 old_archive_from_expsyms_cmds \
19703 archive_cmds \
19704 archive_expsym_cmds \
19705 module_cmds \
19706 module_expsym_cmds \
19707 export_symbols_cmds \
19708 prelink_cmds \
19709 postlink_cmds \
19710 postinstall_cmds \
19711 postuninstall_cmds \
19712 finish_cmds \
19713 sys_lib_search_path_spec \
19714 configure_time_dlsearch_path \
19715 configure_time_lt_sys_library_path; do
19716 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19717 *[\\\\\\\`\\"\\\$]*)
19718 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19719 ;;
19720 *)
19721 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19722 ;;
19723 esac
19724 done
19725
19726 ac_aux_dir='$ac_aux_dir'
19727
19728 # See if we are running on zsh, and set the options that allow our
19729 # commands through without removal of \ escapes INIT.
19730 if test -n "\${ZSH_VERSION+set}"; then
19731 setopt NO_GLOB_SUBST
19732 fi
19733
19734
19735 PACKAGE='$PACKAGE'
19736 VERSION='$VERSION'
19737 RM='$RM'
19738 ofile='$ofile'
19739
19740
19741
19742
19743 _ACEOF
19744
19745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19746
19747 # Handling of arguments.
19748 for ac_config_target in $ac_config_targets
19749 do
19750 case $ac_config_target in
19751 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19752 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19753 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19754 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19755 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19756 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19757 "xcomposite.pc") CONFIG_FILES="$CONFIG_FILES xcomposite.pc" ;;
19758
19759 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19760 esac
19761 done
19762
19763
19764 # If the user did not use the arguments to specify the items to instantiate,
19765 # then the envvar interface is used. Set only those that are not.
19766 # We use the long form for the default assignment because of an extremely
19767 # bizarre bug on SunOS 4.1.3.
19768 if $ac_need_defaults; then
19769 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19770 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19771 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19772 fi
19773
19774 # Have a temporary directory for convenience. Make it in the build tree
19775 # simply because there is no reason against having it here, and in addition,
19776 # creating and moving files from /tmp can sometimes cause problems.
19777 # Hook for its removal unless debugging.
19778 # Note that there is a small window in which the directory will not be cleaned:
19779 # after its creation but before its name has been assigned to `$tmp'.
19780 $debug ||
19781 {
19782 tmp= ac_tmp=
19783 trap 'exit_status=$?
19784 : "${ac_tmp:=$tmp}"
19785 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19786 ' 0
19787 trap 'as_fn_exit 1' 1 2 13 15
19788 }
19789 # Create a (secure) tmp directory for tmp files.
19790
19791 {
19792 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19793 test -d "$tmp"
19794 } ||
19795 {
19796 tmp=./conf$$-$RANDOM
19797 (umask 077 && mkdir "$tmp")
19798 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19799 ac_tmp=$tmp
19800
19801 # Set up the scripts for CONFIG_FILES section.
19802 # No need to generate them if there are no CONFIG_FILES.
19803 # This happens for instance with `./config.status config.h'.
19804 if test -n "$CONFIG_FILES"; then
19805
19806
19807 ac_cr=`echo X | tr X '\015'`
19808 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19809 # But we know of no other shell where ac_cr would be empty at this
19810 # point, so we can use a bashism as a fallback.
19811 if test "x$ac_cr" = x; then
19812 eval ac_cr=\$\'\\r\'
19813 fi
19814 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19815 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19816 ac_cs_awk_cr='\\r'
19817 else
19818 ac_cs_awk_cr=$ac_cr
19819 fi
19820
19821 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19822 _ACEOF
19823
19824
19825 {
19826 echo "cat >conf$$subs.awk <<_ACEOF" &&
19827 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19828 echo "_ACEOF"
19829 } >conf$$subs.sh ||
19830 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19831 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19832 ac_delim='%!_!# '
19833 for ac_last_try in false false false false false :; do
19834 . ./conf$$subs.sh ||
19835 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19836
19837 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19838 if test $ac_delim_n = $ac_delim_num; then
19839 break
19840 elif $ac_last_try; then
19841 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19842 else
19843 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19844 fi
19845 done
19846 rm -f conf$$subs.sh
19847
19848 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19849 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19850 _ACEOF
19851 sed -n '
19852 h
19853 s/^/S["/; s/!.*/"]=/
19854 p
19855 g
19856 s/^[^!]*!//
19857 :repl
19858 t repl
19859 s/'"$ac_delim"'$//
19860 t delim
19861 :nl
19862 h
19863 s/\(.\{148\}\)..*/\1/
19864 t more1
19865 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19866 p
19867 n
19868 b repl
19869 :more1
19870 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19871 p
19872 g
19873 s/.\{148\}//
19874 t nl
19875 :delim
19876 h
19877 s/\(.\{148\}\)..*/\1/
19878 t more2
19879 s/["\\]/\\&/g; s/^/"/; s/$/"/
19880 p
19881 b
19882 :more2
19883 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19884 p
19885 g
19886 s/.\{148\}//
19887 t delim
19888 ' <conf$$subs.awk | sed '
19889 /^[^""]/{
19890 N
19891 s/\n//
19892 }
19893 ' >>$CONFIG_STATUS || ac_write_fail=1
19894 rm -f conf$$subs.awk
19895 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19896 _ACAWK
19897 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19898 for (key in S) S_is_set[key] = 1
19899 FS = ""
19900
19901 }
19902 {
19903 line = $ 0
19904 nfields = split(line, field, "@")
19905 substed = 0
19906 len = length(field[1])
19907 for (i = 2; i < nfields; i++) {
19908 key = field[i]
19909 keylen = length(key)
19910 if (S_is_set[key]) {
19911 value = S[key]
19912 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19913 len += length(value) + length(field[++i])
19914 substed = 1
19915 } else
19916 len += 1 + keylen
19917 }
19918
19919 print line
19920 }
19921
19922 _ACAWK
19923 _ACEOF
19924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19925 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19926 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19927 else
19928 cat
19929 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19930 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19931 _ACEOF
19932
19933 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19934 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19935 # trailing colons and then remove the whole line if VPATH becomes empty
19936 # (actually we leave an empty line to preserve line numbers).
19937 if test "x$srcdir" = x.; then
19938 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19939 h
19940 s///
19941 s/^/:/
19942 s/[ ]*$/:/
19943 s/:\$(srcdir):/:/g
19944 s/:\${srcdir}:/:/g
19945 s/:@srcdir@:/:/g
19946 s/^:*//
19947 s/:*$//
19948 x
19949 s/\(=[ ]*\).*/\1/
19950 G
19951 s/\n//
19952 s/^[^=]*=[ ]*$//
19953 }'
19954 fi
19955
19956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19957 fi # test -n "$CONFIG_FILES"
19958
19959 # Set up the scripts for CONFIG_HEADERS section.
19960 # No need to generate them if there are no CONFIG_HEADERS.
19961 # This happens for instance with `./config.status Makefile'.
19962 if test -n "$CONFIG_HEADERS"; then
19963 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19964 BEGIN {
19965 _ACEOF
19966
19967 # Transform confdefs.h into an awk script `defines.awk', embedded as
19968 # here-document in config.status, that substitutes the proper values into
19969 # config.h.in to produce config.h.
19970
19971 # Create a delimiter string that does not exist in confdefs.h, to ease
19972 # handling of long lines.
19973 ac_delim='%!_!# '
19974 for ac_last_try in false false :; do
19975 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19976 if test -z "$ac_tt"; then
19977 break
19978 elif $ac_last_try; then
19979 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19980 else
19981 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19982 fi
19983 done
19984
19985 # For the awk script, D is an array of macro values keyed by name,
19986 # likewise P contains macro parameters if any. Preserve backslash
19987 # newline sequences.
19988
19989 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19990 sed -n '
19991 s/.\{148\}/&'"$ac_delim"'/g
19992 t rset
19993 :rset
19994 s/^[ ]*#[ ]*define[ ][ ]*/ /
19995 t def
19996 d
19997 :def
19998 s/\\$//
19999 t bsnl
20000 s/["\\]/\\&/g
20001 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20002 D["\1"]=" \3"/p
20003 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20004 d
20005 :bsnl
20006 s/["\\]/\\&/g
20007 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20008 D["\1"]=" \3\\\\\\n"\\/p
20009 t cont
20010 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20011 t cont
20012 d
20013 :cont
20014 n
20015 s/.\{148\}/&'"$ac_delim"'/g
20016 t clear
20017 :clear
20018 s/\\$//
20019 t bsnlc
20020 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20021 d
20022 :bsnlc
20023 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20024 b cont
20025 ' <confdefs.h | sed '
20026 s/'"$ac_delim"'/"\\\
20027 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20028
20029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20030 for (key in D) D_is_set[key] = 1
20031 FS = ""
20032 }
20033 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20034 line = \$ 0
20035 split(line, arg, " ")
20036 if (arg[1] == "#") {
20037 defundef = arg[2]
20038 mac1 = arg[3]
20039 } else {
20040 defundef = substr(arg[1], 2)
20041 mac1 = arg[2]
20042 }
20043 split(mac1, mac2, "(") #)
20044 macro = mac2[1]
20045 prefix = substr(line, 1, index(line, defundef) - 1)
20046 if (D_is_set[macro]) {
20047 # Preserve the white space surrounding the "#".
20048 print prefix "define", macro P[macro] D[macro]
20049 next
20050 } else {
20051 # Replace #undef with comments. This is necessary, for example,
20052 # in the case of _POSIX_SOURCE, which is predefined and required
20053 # on some systems where configure will not decide to define it.
20054 if (defundef == "undef") {
20055 print "/*", prefix defundef, macro, "*/"
20056 next
20057 }
20058 }
20059 }
20060 { print }
20061 _ACAWK
20062 _ACEOF
20063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20064 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20065 fi # test -n "$CONFIG_HEADERS"
20066
20067
20068 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20069 shift
20070 for ac_tag
20071 do
20072 case $ac_tag in
20073 :[FHLC]) ac_mode=$ac_tag; continue;;
20074 esac
20075 case $ac_mode$ac_tag in
20076 :[FHL]*:*);;
20077 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20078 :[FH]-) ac_tag=-:-;;
20079 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20080 esac
20081 ac_save_IFS=$IFS
20082 IFS=:
20083 set x $ac_tag
20084 IFS=$ac_save_IFS
20085 shift
20086 ac_file=$1
20087 shift
20088
20089 case $ac_mode in
20090 :L) ac_source=$1;;
20091 :[FH])
20092 ac_file_inputs=
20093 for ac_f
20094 do
20095 case $ac_f in
20096 -) ac_f="$ac_tmp/stdin";;
20097 *) # Look for the file first in the build tree, then in the source tree
20098 # (if the path is not absolute). The absolute path cannot be DOS-style,
20099 # because $ac_f cannot contain `:'.
20100 test -f "$ac_f" ||
20101 case $ac_f in
20102 [\\/$]*) false;;
20103 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20104 esac ||
20105 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20106 esac
20107 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20108 as_fn_append ac_file_inputs " '$ac_f'"
20109 done
20110
20111 # Let's still pretend it is `configure' which instantiates (i.e., don't
20112 # use $as_me), people would be surprised to read:
20113 # /* config.h. Generated by config.status. */
20114 configure_input='Generated from '`
20115 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20116 `' by configure.'
20117 if test x"$ac_file" != x-; then
20118 configure_input="$ac_file. $configure_input"
20119 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20120 $as_echo "$as_me: creating $ac_file" >&6;}
20121 fi
20122 # Neutralize special characters interpreted by sed in replacement strings.
20123 case $configure_input in #(
20124 *\&* | *\|* | *\\* )
20125 ac_sed_conf_input=`$as_echo "$configure_input" |
20126 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20127 *) ac_sed_conf_input=$configure_input;;
20128 esac
20129
20130 case $ac_tag in
20131 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20132 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20133 esac
20134 ;;
20135 esac
20136
20137 ac_dir=`$as_dirname -- "$ac_file" ||
20138 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20139 X"$ac_file" : 'X\(//\)[^/]' \| \
20140 X"$ac_file" : 'X\(//\)$' \| \
20141 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20142 $as_echo X"$ac_file" |
20143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20144 s//\1/
20145 q
20146 }
20147 /^X\(\/\/\)[^/].*/{
20148 s//\1/
20149 q
20150 }
20151 /^X\(\/\/\)$/{
20152 s//\1/
20153 q
20154 }
20155 /^X\(\/\).*/{
20156 s//\1/
20157 q
20158 }
20159 s/.*/./; q'`
20160 as_dir="$ac_dir"; as_fn_mkdir_p
20161 ac_builddir=.
20162
20163 case "$ac_dir" in
20164 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20165 *)
20166 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20167 # A ".." for each directory in $ac_dir_suffix.
20168 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20169 case $ac_top_builddir_sub in
20170 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20171 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20172 esac ;;
20173 esac
20174 ac_abs_top_builddir=$ac_pwd
20175 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20176 # for backward compatibility:
20177 ac_top_builddir=$ac_top_build_prefix
20178
20179 case $srcdir in
20180 .) # We are building in place.
20181 ac_srcdir=.
20182 ac_top_srcdir=$ac_top_builddir_sub
20183 ac_abs_top_srcdir=$ac_pwd ;;
20184 [\\/]* | ?:[\\/]* ) # Absolute name.
20185 ac_srcdir=$srcdir$ac_dir_suffix;
20186 ac_top_srcdir=$srcdir
20187 ac_abs_top_srcdir=$srcdir ;;
20188 *) # Relative name.
20189 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20190 ac_top_srcdir=$ac_top_build_prefix$srcdir
20191 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20192 esac
20193 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20194
20195
20196 case $ac_mode in
20197 :F)
20198 #
20199 # CONFIG_FILE
20200 #
20201
20202 case $INSTALL in
20203 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20204 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20205 esac
20206 ac_MKDIR_P=$MKDIR_P
20207 case $MKDIR_P in
20208 [\\/$]* | ?:[\\/]* ) ;;
20209 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20210 esac
20211 _ACEOF
20212
20213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20214 # If the template does not know about datarootdir, expand it.
20215 # FIXME: This hack should be removed a few years after 2.60.
20216 ac_datarootdir_hack=; ac_datarootdir_seen=
20217 ac_sed_dataroot='
20218 /datarootdir/ {
20219 p
20220 q
20221 }
20222 /@datadir@/p
20223 /@docdir@/p
20224 /@infodir@/p
20225 /@localedir@/p
20226 /@mandir@/p'
20227 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20228 *datarootdir*) ac_datarootdir_seen=yes;;
20229 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20231 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20232 _ACEOF
20233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20234 ac_datarootdir_hack='
20235 s&@datadir@&$datadir&g
20236 s&@docdir@&$docdir&g
20237 s&@infodir@&$infodir&g
20238 s&@localedir@&$localedir&g
20239 s&@mandir@&$mandir&g
20240 s&\\\${datarootdir}&$datarootdir&g' ;;
20241 esac
20242 _ACEOF
20243
20244 # Neutralize VPATH when `$srcdir' = `.'.
20245 # Shell code in configure.ac might set extrasub.
20246 # FIXME: do we really want to maintain this feature?
20247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20248 ac_sed_extra="$ac_vpsub
20249 $extrasub
20250 _ACEOF
20251 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20252 :t
20253 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20254 s|@configure_input@|$ac_sed_conf_input|;t t
20255 s&@top_builddir@&$ac_top_builddir_sub&;t t
20256 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20257 s&@srcdir@&$ac_srcdir&;t t
20258 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20259 s&@top_srcdir@&$ac_top_srcdir&;t t
20260 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20261 s&@builddir@&$ac_builddir&;t t
20262 s&@abs_builddir@&$ac_abs_builddir&;t t
20263 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20264 s&@INSTALL@&$ac_INSTALL&;t t
20265 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20266 $ac_datarootdir_hack
20267 "
20268 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20269 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20270
20271 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20272 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20273 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20274 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20276 which seems to be undefined. Please make sure it is defined" >&5
20277 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20278 which seems to be undefined. Please make sure it is defined" >&2;}
20279
20280 rm -f "$ac_tmp/stdin"
20281 case $ac_file in
20282 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20283 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20284 esac \
20285 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20286 ;;
20287 :H)
20288 #
20289 # CONFIG_HEADER
20290 #
20291 if test x"$ac_file" != x-; then
20292 {
20293 $as_echo "/* $configure_input */" \
20294 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20295 } >"$ac_tmp/config.h" \
20296 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20297 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20298 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20299 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20300 else
20301 rm -f "$ac_file"
20302 mv "$ac_tmp/config.h" "$ac_file" \
20303 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20304 fi
20305 else
20306 $as_echo "/* $configure_input */" \
20307 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20308 || as_fn_error $? "could not create -" "$LINENO" 5
20309 fi
20310 # Compute "$ac_file"'s index in $config_headers.
20311 _am_arg="$ac_file"
20312 _am_stamp_count=1
20313 for _am_header in $config_headers :; do
20314 case $_am_header in
20315 $_am_arg | $_am_arg:* )
20316 break ;;
20317 * )
20318 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20319 esac
20320 done
20321 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20322 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20323 X"$_am_arg" : 'X\(//\)[^/]' \| \
20324 X"$_am_arg" : 'X\(//\)$' \| \
20325 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20326 $as_echo X"$_am_arg" |
20327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20328 s//\1/
20329 q
20330 }
20331 /^X\(\/\/\)[^/].*/{
20332 s//\1/
20333 q
20334 }
20335 /^X\(\/\/\)$/{
20336 s//\1/
20337 q
20338 }
20339 /^X\(\/\).*/{
20340 s//\1/
20341 q
20342 }
20343 s/.*/./; q'`/stamp-h$_am_stamp_count
20344 ;;
20345
20346 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20347 $as_echo "$as_me: executing $ac_file commands" >&6;}
20348 ;;
20349 esac
20350
20351
20352 case $ac_file$ac_mode in
20353 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20354 # Older Autoconf quotes --file arguments for eval, but not when files
20355 # are listed without --file. Let's play safe and only enable the eval
20356 # if we detect the quoting.
20357 case $CONFIG_FILES in
20358 *\'*) eval set x "$CONFIG_FILES" ;;
20359 *) set x $CONFIG_FILES ;;
20360 esac
20361 shift
20362 for mf
20363 do
20364 # Strip MF so we end up with the name of the file.
20365 mf=`echo "$mf" | sed -e 's/:.*$//'`
20366 # Check whether this is an Automake generated Makefile or not.
20367 # We used to match only the files named 'Makefile.in', but
20368 # some people rename them; so instead we look at the file content.
20369 # Grep'ing the first line is not enough: some people post-process
20370 # each Makefile.in and add a new line on top of each file to say so.
20371 # Grep'ing the whole file is not good either: AIX grep has a line
20372 # limit of 2048, but all sed's we know have understand at least 4000.
20373 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20374 dirpart=`$as_dirname -- "$mf" ||
20375 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20376 X"$mf" : 'X\(//\)[^/]' \| \
20377 X"$mf" : 'X\(//\)$' \| \
20378 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20379 $as_echo X"$mf" |
20380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20381 s//\1/
20382 q
20383 }
20384 /^X\(\/\/\)[^/].*/{
20385 s//\1/
20386 q
20387 }
20388 /^X\(\/\/\)$/{
20389 s//\1/
20390 q
20391 }
20392 /^X\(\/\).*/{
20393 s//\1/
20394 q
20395 }
20396 s/.*/./; q'`
20397 else
20398 continue
20399 fi
20400 # Extract the definition of DEPDIR, am__include, and am__quote
20401 # from the Makefile without running 'make'.
20402 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20403 test -z "$DEPDIR" && continue
20404 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20405 test -z "$am__include" && continue
20406 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20407 # Find all dependency output files, they are included files with
20408 # $(DEPDIR) in their names. We invoke sed twice because it is the
20409 # simplest approach to changing $(DEPDIR) to its actual value in the
20410 # expansion.
20411 for file in `sed -n "
20412 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20413 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20414 # Make sure the directory exists.
20415 test -f "$dirpart/$file" && continue
20416 fdir=`$as_dirname -- "$file" ||
20417 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20418 X"$file" : 'X\(//\)[^/]' \| \
20419 X"$file" : 'X\(//\)$' \| \
20420 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20421 $as_echo X"$file" |
20422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20423 s//\1/
20424 q
20425 }
20426 /^X\(\/\/\)[^/].*/{
20427 s//\1/
20428 q
20429 }
20430 /^X\(\/\/\)$/{
20431 s//\1/
20432 q
20433 }
20434 /^X\(\/\).*/{
20435 s//\1/
20436 q
20437 }
20438 s/.*/./; q'`
20439 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20440 # echo "creating $dirpart/$file"
20441 echo '# dummy' > "$dirpart/$file"
20442 done
20443 done
20444 }
20445 ;;
20446 "libtool":C)
20447
20448 # See if we are running on zsh, and set the options that allow our
20449 # commands through without removal of \ escapes.
20450 if test -n "${ZSH_VERSION+set}"; then
20451 setopt NO_GLOB_SUBST
20452 fi
20453
20454 cfgfile=${ofile}T
20455 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20456 $RM "$cfgfile"
20457
20458 cat <<_LT_EOF >> "$cfgfile"
20459 #! $SHELL
20460 # Generated automatically by $as_me ($PACKAGE) $VERSION
20461 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20462 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20463
20464 # Provide generalized library-building support services.
20465 # Written by Gordon Matzigkeit, 1996
20466
20467 # Copyright (C) 2014 Free Software Foundation, Inc.
20468 # This is free software; see the source for copying conditions. There is NO
20469 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20470
20471 # GNU Libtool is free software; you can redistribute it and/or modify
20472 # it under the terms of the GNU General Public License as published by
20473 # the Free Software Foundation; either version 2 of of the License, or
20474 # (at your option) any later version.
20475 #
20476 # As a special exception to the GNU General Public License, if you
20477 # distribute this file as part of a program or library that is built
20478 # using GNU Libtool, you may include this file under the same
20479 # distribution terms that you use for the rest of that program.
20480 #
20481 # GNU Libtool is distributed in the hope that it will be useful, but
20482 # WITHOUT ANY WARRANTY; without even the implied warranty of
20483 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20484 # GNU General Public License for more details.
20485 #
20486 # You should have received a copy of the GNU General Public License
20487 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20488
20489
20490 # The names of the tagged configurations supported by this script.
20491 available_tags=''
20492
20493 # Configured defaults for sys_lib_dlsearch_path munging.
20494 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20495
20496 # ### BEGIN LIBTOOL CONFIG
20497
20498 # Which release of libtool.m4 was used?
20499 macro_version=$macro_version
20500 macro_revision=$macro_revision
20501
20502 # Whether or not to build shared libraries.
20503 build_libtool_libs=$enable_shared
20504
20505 # Whether or not to build static libraries.
20506 build_old_libs=$enable_static
20507
20508 # What type of objects to build.
20509 pic_mode=$pic_mode
20510
20511 # Whether or not to optimize for fast installation.
20512 fast_install=$enable_fast_install
20513
20514 # Shared archive member basename,for filename based shared library versioning on AIX.
20515 shared_archive_member_spec=$shared_archive_member_spec
20516
20517 # Shell to use when invoking shell scripts.
20518 SHELL=$lt_SHELL
20519
20520 # An echo program that protects backslashes.
20521 ECHO=$lt_ECHO
20522
20523 # The PATH separator for the build system.
20524 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20525
20526 # The host system.
20527 host_alias=$host_alias
20528 host=$host
20529 host_os=$host_os
20530
20531 # The build system.
20532 build_alias=$build_alias
20533 build=$build
20534 build_os=$build_os
20535
20536 # A sed program that does not truncate output.
20537 SED=$lt_SED
20538
20539 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20540 Xsed="\$SED -e 1s/^X//"
20541
20542 # A grep program that handles long lines.
20543 GREP=$lt_GREP
20544
20545 # An ERE matcher.
20546 EGREP=$lt_EGREP
20547
20548 # A literal string matcher.
20549 FGREP=$lt_FGREP
20550
20551 # A BSD- or MS-compatible name lister.
20552 NM=$lt_NM
20553
20554 # Whether we need soft or hard links.
20555 LN_S=$lt_LN_S
20556
20557 # What is the maximum length of a command?
20558 max_cmd_len=$max_cmd_len
20559
20560 # Object file suffix (normally "o").
20561 objext=$ac_objext
20562
20563 # Executable file suffix (normally "").
20564 exeext=$exeext
20565
20566 # whether the shell understands "unset".
20567 lt_unset=$lt_unset
20568
20569 # turn spaces into newlines.
20570 SP2NL=$lt_lt_SP2NL
20571
20572 # turn newlines into spaces.
20573 NL2SP=$lt_lt_NL2SP
20574
20575 # convert \$build file names to \$host format.
20576 to_host_file_cmd=$lt_cv_to_host_file_cmd
20577
20578 # convert \$build files to toolchain format.
20579 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20580
20581 # An object symbol dumper.
20582 OBJDUMP=$lt_OBJDUMP
20583
20584 # Method to check whether dependent libraries are shared objects.
20585 deplibs_check_method=$lt_deplibs_check_method
20586
20587 # Command to use when deplibs_check_method = "file_magic".
20588 file_magic_cmd=$lt_file_magic_cmd
20589
20590 # How to find potential files when deplibs_check_method = "file_magic".
20591 file_magic_glob=$lt_file_magic_glob
20592
20593 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20594 want_nocaseglob=$lt_want_nocaseglob
20595
20596 # DLL creation program.
20597 DLLTOOL=$lt_DLLTOOL
20598
20599 # Command to associate shared and link libraries.
20600 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20601
20602 # The archiver.
20603 AR=$lt_AR
20604
20605 # Flags to create an archive.
20606 AR_FLAGS=$lt_AR_FLAGS
20607
20608 # How to feed a file listing to the archiver.
20609 archiver_list_spec=$lt_archiver_list_spec
20610
20611 # A symbol stripping program.
20612 STRIP=$lt_STRIP
20613
20614 # Commands used to install an old-style archive.
20615 RANLIB=$lt_RANLIB
20616 old_postinstall_cmds=$lt_old_postinstall_cmds
20617 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20618
20619 # Whether to use a lock for old archive extraction.
20620 lock_old_archive_extraction=$lock_old_archive_extraction
20621
20622 # A C compiler.
20623 LTCC=$lt_CC
20624
20625 # LTCC compiler flags.
20626 LTCFLAGS=$lt_CFLAGS
20627
20628 # Take the output of nm and produce a listing of raw symbols and C names.
20629 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20630
20631 # Transform the output of nm in a proper C declaration.
20632 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20633
20634 # Transform the output of nm into a list of symbols to manually relocate.
20635 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20636
20637 # Transform the output of nm in a C name address pair.
20638 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20639
20640 # Transform the output of nm in a C name address pair when lib prefix is needed.
20641 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20642
20643 # The name lister interface.
20644 nm_interface=$lt_lt_cv_nm_interface
20645
20646 # Specify filename containing input files for \$NM.
20647 nm_file_list_spec=$lt_nm_file_list_spec
20648
20649 # The root where to search for dependent libraries,and where our libraries should be installed.
20650 lt_sysroot=$lt_sysroot
20651
20652 # Command to truncate a binary pipe.
20653 lt_truncate_bin=$lt_lt_cv_truncate_bin
20654
20655 # The name of the directory that contains temporary libtool files.
20656 objdir=$objdir
20657
20658 # Used to examine libraries when file_magic_cmd begins with "file".
20659 MAGIC_CMD=$MAGIC_CMD
20660
20661 # Must we lock files when doing compilation?
20662 need_locks=$lt_need_locks
20663
20664 # Manifest tool.
20665 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20666
20667 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20668 DSYMUTIL=$lt_DSYMUTIL
20669
20670 # Tool to change global to local symbols on Mac OS X.
20671 NMEDIT=$lt_NMEDIT
20672
20673 # Tool to manipulate fat objects and archives on Mac OS X.
20674 LIPO=$lt_LIPO
20675
20676 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20677 OTOOL=$lt_OTOOL
20678
20679 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20680 OTOOL64=$lt_OTOOL64
20681
20682 # Old archive suffix (normally "a").
20683 libext=$libext
20684
20685 # Shared library suffix (normally ".so").
20686 shrext_cmds=$lt_shrext_cmds
20687
20688 # The commands to extract the exported symbol list from a shared archive.
20689 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20690
20691 # Variables whose values should be saved in libtool wrapper scripts and
20692 # restored at link time.
20693 variables_saved_for_relink=$lt_variables_saved_for_relink
20694
20695 # Do we need the "lib" prefix for modules?
20696 need_lib_prefix=$need_lib_prefix
20697
20698 # Do we need a version for libraries?
20699 need_version=$need_version
20700
20701 # Library versioning type.
20702 version_type=$version_type
20703
20704 # Shared library runtime path variable.
20705 runpath_var=$runpath_var
20706
20707 # Shared library path variable.
20708 shlibpath_var=$shlibpath_var
20709
20710 # Is shlibpath searched before the hard-coded library search path?
20711 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20712
20713 # Format of library name prefix.
20714 libname_spec=$lt_libname_spec
20715
20716 # List of archive names. First name is the real one, the rest are links.
20717 # The last name is the one that the linker finds with -lNAME
20718 library_names_spec=$lt_library_names_spec
20719
20720 # The coded name of the library, if different from the real name.
20721 soname_spec=$lt_soname_spec
20722
20723 # Permission mode override for installation of shared libraries.
20724 install_override_mode=$lt_install_override_mode
20725
20726 # Command to use after installation of a shared archive.
20727 postinstall_cmds=$lt_postinstall_cmds
20728
20729 # Command to use after uninstallation of a shared archive.
20730 postuninstall_cmds=$lt_postuninstall_cmds
20731
20732 # Commands used to finish a libtool library installation in a directory.
20733 finish_cmds=$lt_finish_cmds
20734
20735 # As "finish_cmds", except a single script fragment to be evaled but
20736 # not shown.
20737 finish_eval=$lt_finish_eval
20738
20739 # Whether we should hardcode library paths into libraries.
20740 hardcode_into_libs=$hardcode_into_libs
20741
20742 # Compile-time system search path for libraries.
20743 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20744
20745 # Detected run-time system search path for libraries.
20746 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20747
20748 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20749 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20750
20751 # Whether dlopen is supported.
20752 dlopen_support=$enable_dlopen
20753
20754 # Whether dlopen of programs is supported.
20755 dlopen_self=$enable_dlopen_self
20756
20757 # Whether dlopen of statically linked programs is supported.
20758 dlopen_self_static=$enable_dlopen_self_static
20759
20760 # Commands to strip libraries.
20761 old_striplib=$lt_old_striplib
20762 striplib=$lt_striplib
20763
20764
20765 # The linker used to build libraries.
20766 LD=$lt_LD
20767
20768 # How to create reloadable object files.
20769 reload_flag=$lt_reload_flag
20770 reload_cmds=$lt_reload_cmds
20771
20772 # Commands used to build an old-style archive.
20773 old_archive_cmds=$lt_old_archive_cmds
20774
20775 # A language specific compiler.
20776 CC=$lt_compiler
20777
20778 # Is the compiler the GNU compiler?
20779 with_gcc=$GCC
20780
20781 # Compiler flag to turn off builtin functions.
20782 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20783
20784 # Additional compiler flags for building library objects.
20785 pic_flag=$lt_lt_prog_compiler_pic
20786
20787 # How to pass a linker flag through the compiler.
20788 wl=$lt_lt_prog_compiler_wl
20789
20790 # Compiler flag to prevent dynamic linking.
20791 link_static_flag=$lt_lt_prog_compiler_static
20792
20793 # Does compiler simultaneously support -c and -o options?
20794 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20795
20796 # Whether or not to add -lc for building shared libraries.
20797 build_libtool_need_lc=$archive_cmds_need_lc
20798
20799 # Whether or not to disallow shared libs when runtime libs are static.
20800 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20801
20802 # Compiler flag to allow reflexive dlopens.
20803 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20804
20805 # Compiler flag to generate shared objects directly from archives.
20806 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20807
20808 # Whether the compiler copes with passing no objects directly.
20809 compiler_needs_object=$lt_compiler_needs_object
20810
20811 # Create an old-style archive from a shared archive.
20812 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20813
20814 # Create a temporary old-style archive to link instead of a shared archive.
20815 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20816
20817 # Commands used to build a shared archive.
20818 archive_cmds=$lt_archive_cmds
20819 archive_expsym_cmds=$lt_archive_expsym_cmds
20820
20821 # Commands used to build a loadable module if different from building
20822 # a shared archive.
20823 module_cmds=$lt_module_cmds
20824 module_expsym_cmds=$lt_module_expsym_cmds
20825
20826 # Whether we are building with GNU ld or not.
20827 with_gnu_ld=$lt_with_gnu_ld
20828
20829 # Flag that allows shared libraries with undefined symbols to be built.
20830 allow_undefined_flag=$lt_allow_undefined_flag
20831
20832 # Flag that enforces no undefined symbols.
20833 no_undefined_flag=$lt_no_undefined_flag
20834
20835 # Flag to hardcode \$libdir into a binary during linking.
20836 # This must work even if \$libdir does not exist
20837 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20838
20839 # Whether we need a single "-rpath" flag with a separated argument.
20840 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20841
20842 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20843 # DIR into the resulting binary.
20844 hardcode_direct=$hardcode_direct
20845
20846 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20847 # DIR into the resulting binary and the resulting library dependency is
20848 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20849 # library is relocated.
20850 hardcode_direct_absolute=$hardcode_direct_absolute
20851
20852 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20853 # into the resulting binary.
20854 hardcode_minus_L=$hardcode_minus_L
20855
20856 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20857 # into the resulting binary.
20858 hardcode_shlibpath_var=$hardcode_shlibpath_var
20859
20860 # Set to "yes" if building a shared library automatically hardcodes DIR
20861 # into the library and all subsequent libraries and executables linked
20862 # against it.
20863 hardcode_automatic=$hardcode_automatic
20864
20865 # Set to yes if linker adds runtime paths of dependent libraries
20866 # to runtime path list.
20867 inherit_rpath=$inherit_rpath
20868
20869 # Whether libtool must link a program against all its dependency libraries.
20870 link_all_deplibs=$link_all_deplibs
20871
20872 # Set to "yes" if exported symbols are required.
20873 always_export_symbols=$always_export_symbols
20874
20875 # The commands to list exported symbols.
20876 export_symbols_cmds=$lt_export_symbols_cmds
20877
20878 # Symbols that should not be listed in the preloaded symbols.
20879 exclude_expsyms=$lt_exclude_expsyms
20880
20881 # Symbols that must always be exported.
20882 include_expsyms=$lt_include_expsyms
20883
20884 # Commands necessary for linking programs (against libraries) with templates.
20885 prelink_cmds=$lt_prelink_cmds
20886
20887 # Commands necessary for finishing linking programs.
20888 postlink_cmds=$lt_postlink_cmds
20889
20890 # Specify filename containing input files.
20891 file_list_spec=$lt_file_list_spec
20892
20893 # How to hardcode a shared library path into an executable.
20894 hardcode_action=$hardcode_action
20895
20896 # ### END LIBTOOL CONFIG
20897
20898 _LT_EOF
20899
20900 cat <<'_LT_EOF' >> "$cfgfile"
20901
20902 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20903
20904 # func_munge_path_list VARIABLE PATH
20905 # -----------------------------------
20906 # VARIABLE is name of variable containing _space_ separated list of
20907 # directories to be munged by the contents of PATH, which is string
20908 # having a format:
20909 # "DIR[:DIR]:"
20910 # string "DIR[ DIR]" will be prepended to VARIABLE
20911 # ":DIR[:DIR]"
20912 # string "DIR[ DIR]" will be appended to VARIABLE
20913 # "DIRP[:DIRP]::[DIRA:]DIRA"
20914 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20915 # "DIRA[ DIRA]" will be appended to VARIABLE
20916 # "DIR[:DIR]"
20917 # VARIABLE will be replaced by "DIR[ DIR]"
20918 func_munge_path_list ()
20919 {
20920 case x$2 in
20921 x)
20922 ;;
20923 *:)
20924 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20925 ;;
20926 x:*)
20927 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20928 ;;
20929 *::*)
20930 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20931 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20932 ;;
20933 *)
20934 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20935 ;;
20936 esac
20937 }
20938
20939
20940 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
20941 func_cc_basename ()
20942 {
20943 for cc_temp in $*""; do
20944 case $cc_temp in
20945 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20946 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20947 \-*) ;;
20948 *) break;;
20949 esac
20950 done
20951 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20952 }
20953
20954
20955 # ### END FUNCTIONS SHARED WITH CONFIGURE
20956
20957 _LT_EOF
20958
20959 case $host_os in
20960 aix3*)
20961 cat <<\_LT_EOF >> "$cfgfile"
20962 # AIX sometimes has problems with the GCC collect2 program. For some
20963 # reason, if we set the COLLECT_NAMES environment variable, the problems
20964 # vanish in a puff of smoke.
20965 if test set != "${COLLECT_NAMES+set}"; then
20966 COLLECT_NAMES=
20967 export COLLECT_NAMES
20968 fi
20969 _LT_EOF
20970 ;;
20971 esac
20972
20973
20974 ltmain=$ac_aux_dir/ltmain.sh
20975
20976
20977 # We use sed instead of cat because bash on DJGPP gets confused if
20978 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20979 # text mode, it properly converts lines to CR/LF. This bash problem
20980 # is reportedly fixed, but why not run on old versions too?
20981 sed '$q' "$ltmain" >> "$cfgfile" \
20982 || (rm -f "$cfgfile"; exit 1)
20983
20984 mv -f "$cfgfile" "$ofile" ||
20985 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20986 chmod +x "$ofile"
20987
20988 ;;
20989
20990 esac
20991 done # for ac_tag
20992
20993
20994 as_fn_exit 0
20995 _ACEOF
20996 ac_clean_files=$ac_clean_files_save
20997
20998 test $ac_write_fail = 0 ||
20999 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21000
21001
21002 # configure is writing to config.log, and then calls config.status.
21003 # config.status does its own redirection, appending to config.log.
21004 # Unfortunately, on DOS this fails, as config.log is still kept open
21005 # by configure, so config.status won't be able to write to it; its
21006 # output is simply discarded. So we exec the FD to /dev/null,
21007 # effectively closing config.log, so it can be properly (re)opened and
21008 # appended to by config.status. When coming back to configure, we
21009 # need to make the FD available again.
21010 if test "$no_create" != yes; then
21011 ac_cs_success=:
21012 ac_config_status_args=
21013 test "$silent" = yes &&
21014 ac_config_status_args="$ac_config_status_args --quiet"
21015 exec 5>/dev/null
21016 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21017 exec 5>>config.log
21018 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21019 # would make configure fail if this is the last instruction.
21020 $ac_cs_success || as_fn_exit 1
21021 fi
21022 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21024 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21025 fi
21026
21027