configure revision 1.1.1.7 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libXrender 0.9.10.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
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://bugs.freedesktop.org/enter_bug.cgi?product=xorg
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='libXrender'
593 PACKAGE_TARNAME='libXrender'
594 PACKAGE_VERSION='0.9.10'
595 PACKAGE_STRING='libXrender 0.9.10'
596 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
597 PACKAGE_URL=''
598
599 ac_unique_file="Makefile.am"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 RENDER_LIBS
641 RENDER_CFLAGS
642 RENDER_VERSION
643 XTMALLOC_ZERO_CFLAGS
644 XMALLOC_ZERO_CFLAGS
645 MALLOC_ZERO_CFLAGS
646 MAN_SUBSTS
647 XORG_MAN_PAGE
648 ADMIN_MAN_DIR
649 DRIVER_MAN_DIR
650 MISC_MAN_DIR
651 FILE_MAN_DIR
652 LIB_MAN_DIR
653 APP_MAN_DIR
654 ADMIN_MAN_SUFFIX
655 DRIVER_MAN_SUFFIX
656 MISC_MAN_SUFFIX
657 FILE_MAN_SUFFIX
658 LIB_MAN_SUFFIX
659 APP_MAN_SUFFIX
660 INSTALL_CMD
661 PKG_CONFIG_LIBDIR
662 PKG_CONFIG_PATH
663 PKG_CONFIG
664 CHANGELOG_CMD
665 STRICT_CFLAGS
666 CWARNFLAGS
667 BASE_CFLAGS
668 CPP
669 OTOOL64
670 OTOOL
671 LIPO
672 NMEDIT
673 DSYMUTIL
674 MANIFEST_TOOL
675 RANLIB
676 ac_ct_AR
677 AR
678 DLLTOOL
679 OBJDUMP
680 LN_S
681 NM
682 ac_ct_DUMPBIN
683 DUMPBIN
684 LD
685 FGREP
686 EGREP
687 GREP
688 SED
689 am__fastdepCC_FALSE
690 am__fastdepCC_TRUE
691 CCDEPMODE
692 am__nodep
693 AMDEPBACKSLASH
694 AMDEP_FALSE
695 AMDEP_TRUE
696 am__quote
697 am__include
698 DEPDIR
699 OBJEXT
700 EXEEXT
701 ac_ct_CC
702 CPPFLAGS
703 LDFLAGS
704 CFLAGS
705 CC
706 host_os
707 host_vendor
708 host_cpu
709 host
710 build_os
711 build_vendor
712 build_cpu
713 build
714 LIBTOOL
715 AM_BACKSLASH
716 AM_DEFAULT_VERBOSITY
717 AM_DEFAULT_V
718 AM_V
719 am__untar
720 am__tar
721 AMTAR
722 am__leading_dot
723 SET_MAKE
724 AWK
725 mkdir_p
726 MKDIR_P
727 INSTALL_STRIP_PROGRAM
728 STRIP
729 install_sh
730 MAKEINFO
731 AUTOHEADER
732 AUTOMAKE
733 AUTOCONF
734 ACLOCAL
735 VERSION
736 PACKAGE
737 CYGPATH_W
738 am__isrc
739 INSTALL_DATA
740 INSTALL_SCRIPT
741 INSTALL_PROGRAM
742 target_alias
743 host_alias
744 build_alias
745 LIBS
746 ECHO_T
747 ECHO_N
748 ECHO_C
749 DEFS
750 mandir
751 localedir
752 libdir
753 psdir
754 pdfdir
755 dvidir
756 htmldir
757 infodir
758 docdir
759 oldincludedir
760 includedir
761 localstatedir
762 sharedstatedir
763 sysconfdir
764 datadir
765 datarootdir
766 libexecdir
767 sbindir
768 bindir
769 program_transform_name
770 prefix
771 exec_prefix
772 PACKAGE_URL
773 PACKAGE_BUGREPORT
774 PACKAGE_STRING
775 PACKAGE_VERSION
776 PACKAGE_TARNAME
777 PACKAGE_NAME
778 PATH_SEPARATOR
779 SHELL'
780 ac_subst_files=''
781 ac_user_opts='
782 enable_option_checking
783 enable_silent_rules
784 enable_shared
785 enable_static
786 with_pic
787 enable_fast_install
788 enable_dependency_tracking
789 with_gnu_ld
790 with_sysroot
791 enable_libtool_lock
792 enable_selective_werror
793 enable_strict_compilation
794 enable_malloc0returnsnull
795 '
796 ac_precious_vars='build_alias
797 host_alias
798 target_alias
799 CC
800 CFLAGS
801 LDFLAGS
802 LIBS
803 CPPFLAGS
804 CPP
805 PKG_CONFIG
806 PKG_CONFIG_PATH
807 PKG_CONFIG_LIBDIR
808 RENDER_CFLAGS
809 RENDER_LIBS'
810
811
812 # Initialize some variables set by options.
813 ac_init_help=
814 ac_init_version=false
815 ac_unrecognized_opts=
816 ac_unrecognized_sep=
817 # The variables have the same names as the options, with
818 # dashes changed to underlines.
819 cache_file=/dev/null
820 exec_prefix=NONE
821 no_create=
822 no_recursion=
823 prefix=NONE
824 program_prefix=NONE
825 program_suffix=NONE
826 program_transform_name=s,x,x,
827 silent=
828 site=
829 srcdir=
830 verbose=
831 x_includes=NONE
832 x_libraries=NONE
833
834 # Installation directory options.
835 # These are left unexpanded so users can "make install exec_prefix=/foo"
836 # and all the variables that are supposed to be based on exec_prefix
837 # by default will actually change.
838 # Use braces instead of parens because sh, perl, etc. also accept them.
839 # (The list follows the same order as the GNU Coding Standards.)
840 bindir='${exec_prefix}/bin'
841 sbindir='${exec_prefix}/sbin'
842 libexecdir='${exec_prefix}/libexec'
843 datarootdir='${prefix}/share'
844 datadir='${datarootdir}'
845 sysconfdir='${prefix}/etc'
846 sharedstatedir='${prefix}/com'
847 localstatedir='${prefix}/var'
848 includedir='${prefix}/include'
849 oldincludedir='/usr/include'
850 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
851 infodir='${datarootdir}/info'
852 htmldir='${docdir}'
853 dvidir='${docdir}'
854 pdfdir='${docdir}'
855 psdir='${docdir}'
856 libdir='${exec_prefix}/lib'
857 localedir='${datarootdir}/locale'
858 mandir='${datarootdir}/man'
859
860 ac_prev=
861 ac_dashdash=
862 for ac_option
863 do
864 # If the previous option needs an argument, assign it.
865 if test -n "$ac_prev"; then
866 eval $ac_prev=\$ac_option
867 ac_prev=
868 continue
869 fi
870
871 case $ac_option in
872 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
873 *=) ac_optarg= ;;
874 *) ac_optarg=yes ;;
875 esac
876
877 # Accept the important Cygnus configure options, so we can diagnose typos.
878
879 case $ac_dashdash$ac_option in
880 --)
881 ac_dashdash=yes ;;
882
883 -bindir | --bindir | --bindi | --bind | --bin | --bi)
884 ac_prev=bindir ;;
885 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
886 bindir=$ac_optarg ;;
887
888 -build | --build | --buil | --bui | --bu)
889 ac_prev=build_alias ;;
890 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
891 build_alias=$ac_optarg ;;
892
893 -cache-file | --cache-file | --cache-fil | --cache-fi \
894 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
895 ac_prev=cache_file ;;
896 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
897 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
898 cache_file=$ac_optarg ;;
899
900 --config-cache | -C)
901 cache_file=config.cache ;;
902
903 -datadir | --datadir | --datadi | --datad)
904 ac_prev=datadir ;;
905 -datadir=* | --datadir=* | --datadi=* | --datad=*)
906 datadir=$ac_optarg ;;
907
908 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
909 | --dataroo | --dataro | --datar)
910 ac_prev=datarootdir ;;
911 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
912 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
913 datarootdir=$ac_optarg ;;
914
915 -disable-* | --disable-*)
916 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
917 # Reject names that are not valid shell variable names.
918 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919 as_fn_error $? "invalid feature name: $ac_useropt"
920 ac_useropt_orig=$ac_useropt
921 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922 case $ac_user_opts in
923 *"
924 "enable_$ac_useropt"
925 "*) ;;
926 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
927 ac_unrecognized_sep=', ';;
928 esac
929 eval enable_$ac_useropt=no ;;
930
931 -docdir | --docdir | --docdi | --doc | --do)
932 ac_prev=docdir ;;
933 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934 docdir=$ac_optarg ;;
935
936 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937 ac_prev=dvidir ;;
938 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939 dvidir=$ac_optarg ;;
940
941 -enable-* | --enable-*)
942 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945 as_fn_error $? "invalid feature name: $ac_useropt"
946 ac_useropt_orig=$ac_useropt
947 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948 case $ac_user_opts in
949 *"
950 "enable_$ac_useropt"
951 "*) ;;
952 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
953 ac_unrecognized_sep=', ';;
954 esac
955 eval enable_$ac_useropt=\$ac_optarg ;;
956
957 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
958 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
959 | --exec | --exe | --ex)
960 ac_prev=exec_prefix ;;
961 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
962 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
963 | --exec=* | --exe=* | --ex=*)
964 exec_prefix=$ac_optarg ;;
965
966 -gas | --gas | --ga | --g)
967 # Obsolete; use --with-gas.
968 with_gas=yes ;;
969
970 -help | --help | --hel | --he | -h)
971 ac_init_help=long ;;
972 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
973 ac_init_help=recursive ;;
974 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
975 ac_init_help=short ;;
976
977 -host | --host | --hos | --ho)
978 ac_prev=host_alias ;;
979 -host=* | --host=* | --hos=* | --ho=*)
980 host_alias=$ac_optarg ;;
981
982 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
983 ac_prev=htmldir ;;
984 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
985 | --ht=*)
986 htmldir=$ac_optarg ;;
987
988 -includedir | --includedir | --includedi | --included | --include \
989 | --includ | --inclu | --incl | --inc)
990 ac_prev=includedir ;;
991 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
992 | --includ=* | --inclu=* | --incl=* | --inc=*)
993 includedir=$ac_optarg ;;
994
995 -infodir | --infodir | --infodi | --infod | --info | --inf)
996 ac_prev=infodir ;;
997 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
998 infodir=$ac_optarg ;;
999
1000 -libdir | --libdir | --libdi | --libd)
1001 ac_prev=libdir ;;
1002 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1003 libdir=$ac_optarg ;;
1004
1005 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1006 | --libexe | --libex | --libe)
1007 ac_prev=libexecdir ;;
1008 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1009 | --libexe=* | --libex=* | --libe=*)
1010 libexecdir=$ac_optarg ;;
1011
1012 -localedir | --localedir | --localedi | --localed | --locale)
1013 ac_prev=localedir ;;
1014 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1015 localedir=$ac_optarg ;;
1016
1017 -localstatedir | --localstatedir | --localstatedi | --localstated \
1018 | --localstate | --localstat | --localsta | --localst | --locals)
1019 ac_prev=localstatedir ;;
1020 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1021 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1022 localstatedir=$ac_optarg ;;
1023
1024 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1025 ac_prev=mandir ;;
1026 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1027 mandir=$ac_optarg ;;
1028
1029 -nfp | --nfp | --nf)
1030 # Obsolete; use --without-fp.
1031 with_fp=no ;;
1032
1033 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1034 | --no-cr | --no-c | -n)
1035 no_create=yes ;;
1036
1037 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1038 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1039 no_recursion=yes ;;
1040
1041 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1042 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1043 | --oldin | --oldi | --old | --ol | --o)
1044 ac_prev=oldincludedir ;;
1045 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1046 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1047 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1048 oldincludedir=$ac_optarg ;;
1049
1050 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1051 ac_prev=prefix ;;
1052 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1053 prefix=$ac_optarg ;;
1054
1055 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1056 | --program-pre | --program-pr | --program-p)
1057 ac_prev=program_prefix ;;
1058 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1059 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1060 program_prefix=$ac_optarg ;;
1061
1062 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1063 | --program-suf | --program-su | --program-s)
1064 ac_prev=program_suffix ;;
1065 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1066 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1067 program_suffix=$ac_optarg ;;
1068
1069 -program-transform-name | --program-transform-name \
1070 | --program-transform-nam | --program-transform-na \
1071 | --program-transform-n | --program-transform- \
1072 | --program-transform | --program-transfor \
1073 | --program-transfo | --program-transf \
1074 | --program-trans | --program-tran \
1075 | --progr-tra | --program-tr | --program-t)
1076 ac_prev=program_transform_name ;;
1077 -program-transform-name=* | --program-transform-name=* \
1078 | --program-transform-nam=* | --program-transform-na=* \
1079 | --program-transform-n=* | --program-transform-=* \
1080 | --program-transform=* | --program-transfor=* \
1081 | --program-transfo=* | --program-transf=* \
1082 | --program-trans=* | --program-tran=* \
1083 | --progr-tra=* | --program-tr=* | --program-t=*)
1084 program_transform_name=$ac_optarg ;;
1085
1086 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1087 ac_prev=pdfdir ;;
1088 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1089 pdfdir=$ac_optarg ;;
1090
1091 -psdir | --psdir | --psdi | --psd | --ps)
1092 ac_prev=psdir ;;
1093 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1094 psdir=$ac_optarg ;;
1095
1096 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1097 | -silent | --silent | --silen | --sile | --sil)
1098 silent=yes ;;
1099
1100 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1101 ac_prev=sbindir ;;
1102 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1103 | --sbi=* | --sb=*)
1104 sbindir=$ac_optarg ;;
1105
1106 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1107 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1108 | --sharedst | --shareds | --shared | --share | --shar \
1109 | --sha | --sh)
1110 ac_prev=sharedstatedir ;;
1111 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1112 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1113 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1114 | --sha=* | --sh=*)
1115 sharedstatedir=$ac_optarg ;;
1116
1117 -site | --site | --sit)
1118 ac_prev=site ;;
1119 -site=* | --site=* | --sit=*)
1120 site=$ac_optarg ;;
1121
1122 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1123 ac_prev=srcdir ;;
1124 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1125 srcdir=$ac_optarg ;;
1126
1127 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1128 | --syscon | --sysco | --sysc | --sys | --sy)
1129 ac_prev=sysconfdir ;;
1130 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1131 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1132 sysconfdir=$ac_optarg ;;
1133
1134 -target | --target | --targe | --targ | --tar | --ta | --t)
1135 ac_prev=target_alias ;;
1136 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1137 target_alias=$ac_optarg ;;
1138
1139 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1140 verbose=yes ;;
1141
1142 -version | --version | --versio | --versi | --vers | -V)
1143 ac_init_version=: ;;
1144
1145 -with-* | --with-*)
1146 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149 as_fn_error $? "invalid package name: $ac_useropt"
1150 ac_useropt_orig=$ac_useropt
1151 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152 case $ac_user_opts in
1153 *"
1154 "with_$ac_useropt"
1155 "*) ;;
1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1157 ac_unrecognized_sep=', ';;
1158 esac
1159 eval with_$ac_useropt=\$ac_optarg ;;
1160
1161 -without-* | --without-*)
1162 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165 as_fn_error $? "invalid package name: $ac_useropt"
1166 ac_useropt_orig=$ac_useropt
1167 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168 case $ac_user_opts in
1169 *"
1170 "with_$ac_useropt"
1171 "*) ;;
1172 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1173 ac_unrecognized_sep=', ';;
1174 esac
1175 eval with_$ac_useropt=no ;;
1176
1177 --x)
1178 # Obsolete; use --with-x.
1179 with_x=yes ;;
1180
1181 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1182 | --x-incl | --x-inc | --x-in | --x-i)
1183 ac_prev=x_includes ;;
1184 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1185 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1186 x_includes=$ac_optarg ;;
1187
1188 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1189 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1190 ac_prev=x_libraries ;;
1191 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1192 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1193 x_libraries=$ac_optarg ;;
1194
1195 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1196 Try \`$0 --help' for more information"
1197 ;;
1198
1199 *=*)
1200 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1201 # Reject names that are not valid shell variable names.
1202 case $ac_envvar in #(
1203 '' | [0-9]* | *[!_$as_cr_alnum]* )
1204 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1205 esac
1206 eval $ac_envvar=\$ac_optarg
1207 export $ac_envvar ;;
1208
1209 *)
1210 # FIXME: should be removed in autoconf 3.0.
1211 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1212 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1213 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1214 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1215 ;;
1216
1217 esac
1218 done
1219
1220 if test -n "$ac_prev"; then
1221 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1222 as_fn_error $? "missing argument to $ac_option"
1223 fi
1224
1225 if test -n "$ac_unrecognized_opts"; then
1226 case $enable_option_checking in
1227 no) ;;
1228 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1229 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1230 esac
1231 fi
1232
1233 # Check all directory arguments for consistency.
1234 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1235 datadir sysconfdir sharedstatedir localstatedir includedir \
1236 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1237 libdir localedir mandir
1238 do
1239 eval ac_val=\$$ac_var
1240 # Remove trailing slashes.
1241 case $ac_val in
1242 */ )
1243 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1244 eval $ac_var=\$ac_val;;
1245 esac
1246 # Be sure to have absolute directory names.
1247 case $ac_val in
1248 [\\/$]* | ?:[\\/]* ) continue;;
1249 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1250 esac
1251 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1252 done
1253
1254 # There might be people who depend on the old broken behavior: `$host'
1255 # used to hold the argument of --host etc.
1256 # FIXME: To remove some day.
1257 build=$build_alias
1258 host=$host_alias
1259 target=$target_alias
1260
1261 # FIXME: To remove some day.
1262 if test "x$host_alias" != x; then
1263 if test "x$build_alias" = x; then
1264 cross_compiling=maybe
1265 elif test "x$build_alias" != "x$host_alias"; then
1266 cross_compiling=yes
1267 fi
1268 fi
1269
1270 ac_tool_prefix=
1271 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1272
1273 test "$silent" = yes && exec 6>/dev/null
1274
1275
1276 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1277 ac_ls_di=`ls -di .` &&
1278 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1279 as_fn_error $? "working directory cannot be determined"
1280 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1281 as_fn_error $? "pwd does not report name of working directory"
1282
1283
1284 # Find the source files, if location was not specified.
1285 if test -z "$srcdir"; then
1286 ac_srcdir_defaulted=yes
1287 # Try the directory containing this script, then the parent directory.
1288 ac_confdir=`$as_dirname -- "$as_myself" ||
1289 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1290 X"$as_myself" : 'X\(//\)[^/]' \| \
1291 X"$as_myself" : 'X\(//\)$' \| \
1292 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1293 $as_echo X"$as_myself" |
1294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1295 s//\1/
1296 q
1297 }
1298 /^X\(\/\/\)[^/].*/{
1299 s//\1/
1300 q
1301 }
1302 /^X\(\/\/\)$/{
1303 s//\1/
1304 q
1305 }
1306 /^X\(\/\).*/{
1307 s//\1/
1308 q
1309 }
1310 s/.*/./; q'`
1311 srcdir=$ac_confdir
1312 if test ! -r "$srcdir/$ac_unique_file"; then
1313 srcdir=..
1314 fi
1315 else
1316 ac_srcdir_defaulted=no
1317 fi
1318 if test ! -r "$srcdir/$ac_unique_file"; then
1319 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1320 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1321 fi
1322 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1323 ac_abs_confdir=`(
1324 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1325 pwd)`
1326 # When building in place, set srcdir=.
1327 if test "$ac_abs_confdir" = "$ac_pwd"; then
1328 srcdir=.
1329 fi
1330 # Remove unnecessary trailing slashes from srcdir.
1331 # Double slashes in file names in object file debugging info
1332 # mess up M-x gdb in Emacs.
1333 case $srcdir in
1334 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1335 esac
1336 for ac_var in $ac_precious_vars; do
1337 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1338 eval ac_env_${ac_var}_value=\$${ac_var}
1339 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1340 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1341 done
1342
1343 #
1344 # Report the --help message.
1345 #
1346 if test "$ac_init_help" = "long"; then
1347 # Omit some internal or obsolete options to make the list less imposing.
1348 # This message is too long to be a string in the A/UX 3.1 sh.
1349 cat <<_ACEOF
1350 \`configure' configures libXrender 0.9.10 to adapt to many kinds of systems.
1351
1352 Usage: $0 [OPTION]... [VAR=VALUE]...
1353
1354 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1355 VAR=VALUE. See below for descriptions of some of the useful variables.
1356
1357 Defaults for the options are specified in brackets.
1358
1359 Configuration:
1360 -h, --help display this help and exit
1361 --help=short display options specific to this package
1362 --help=recursive display the short help of all the included packages
1363 -V, --version display version information and exit
1364 -q, --quiet, --silent do not print \`checking ...' messages
1365 --cache-file=FILE cache test results in FILE [disabled]
1366 -C, --config-cache alias for \`--cache-file=config.cache'
1367 -n, --no-create do not create output files
1368 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1369
1370 Installation directories:
1371 --prefix=PREFIX install architecture-independent files in PREFIX
1372 [$ac_default_prefix]
1373 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1374 [PREFIX]
1375
1376 By default, \`make install' will install all the files in
1377 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1378 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1379 for instance \`--prefix=\$HOME'.
1380
1381 For better control, use the options below.
1382
1383 Fine tuning of the installation directories:
1384 --bindir=DIR user executables [EPREFIX/bin]
1385 --sbindir=DIR system admin executables [EPREFIX/sbin]
1386 --libexecdir=DIR program executables [EPREFIX/libexec]
1387 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1388 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1389 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1390 --libdir=DIR object code libraries [EPREFIX/lib]
1391 --includedir=DIR C header files [PREFIX/include]
1392 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1393 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1394 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1395 --infodir=DIR info documentation [DATAROOTDIR/info]
1396 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1397 --mandir=DIR man documentation [DATAROOTDIR/man]
1398 --docdir=DIR documentation root [DATAROOTDIR/doc/libXrender]
1399 --htmldir=DIR html documentation [DOCDIR]
1400 --dvidir=DIR dvi documentation [DOCDIR]
1401 --pdfdir=DIR pdf documentation [DOCDIR]
1402 --psdir=DIR ps documentation [DOCDIR]
1403 _ACEOF
1404
1405 cat <<\_ACEOF
1406
1407 Program names:
1408 --program-prefix=PREFIX prepend PREFIX to installed program names
1409 --program-suffix=SUFFIX append SUFFIX to installed program names
1410 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1411
1412 System types:
1413 --build=BUILD configure for building on BUILD [guessed]
1414 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1415 _ACEOF
1416 fi
1417
1418 if test -n "$ac_init_help"; then
1419 case $ac_init_help in
1420 short | recursive ) echo "Configuration of libXrender 0.9.10:";;
1421 esac
1422 cat <<\_ACEOF
1423
1424 Optional Features:
1425 --disable-option-checking ignore unrecognized --enable/--with options
1426 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1427 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1428 --enable-silent-rules less verbose build output (undo: "make V=1")
1429 --disable-silent-rules verbose build output (undo: "make V=0")
1430 --enable-shared[=PKGS] build shared libraries [default=yes]
1431 --enable-static[=PKGS] build static libraries [default=yes]
1432 --enable-fast-install[=PKGS]
1433 optimize for fast installation [default=yes]
1434 --enable-dependency-tracking
1435 do not reject slow dependency extractors
1436 --disable-dependency-tracking
1437 speeds up one-time build
1438 --disable-libtool-lock avoid locking (might break parallel builds)
1439 --disable-selective-werror
1440 Turn off selective compiler errors. (default:
1441 enabled)
1442 --enable-strict-compilation
1443 Enable all warnings from compiler and make them
1444 errors (default: disabled)
1445 --enable-malloc0returnsnull
1446 malloc(0) returns NULL (default: auto)
1447
1448 Optional Packages:
1449 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1450 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1451 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1452 both]
1453 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1454 --with-sysroot=DIR Search for dependent libraries within DIR
1455 (or the compiler's sysroot if not specified).
1456
1457 Some influential environment variables:
1458 CC C compiler command
1459 CFLAGS C compiler flags
1460 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1461 nonstandard directory <lib dir>
1462 LIBS libraries to pass to the linker, e.g. -l<library>
1463 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1464 you have headers in a nonstandard directory <include dir>
1465 CPP C preprocessor
1466 PKG_CONFIG path to pkg-config utility
1467 PKG_CONFIG_PATH
1468 directories to add to pkg-config's search path
1469 PKG_CONFIG_LIBDIR
1470 path overriding pkg-config's built-in search path
1471 RENDER_CFLAGS
1472 C compiler flags for RENDER, overriding pkg-config
1473 RENDER_LIBS linker flags for RENDER, overriding pkg-config
1474
1475 Use these variables to override the choices made by `configure' or to help
1476 it to find libraries and programs with nonstandard names/locations.
1477
1478 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1479 _ACEOF
1480 ac_status=$?
1481 fi
1482
1483 if test "$ac_init_help" = "recursive"; then
1484 # If there are subdirs, report their specific --help.
1485 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1486 test -d "$ac_dir" ||
1487 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1488 continue
1489 ac_builddir=.
1490
1491 case "$ac_dir" in
1492 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493 *)
1494 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1495 # A ".." for each directory in $ac_dir_suffix.
1496 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1497 case $ac_top_builddir_sub in
1498 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1500 esac ;;
1501 esac
1502 ac_abs_top_builddir=$ac_pwd
1503 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1504 # for backward compatibility:
1505 ac_top_builddir=$ac_top_build_prefix
1506
1507 case $srcdir in
1508 .) # We are building in place.
1509 ac_srcdir=.
1510 ac_top_srcdir=$ac_top_builddir_sub
1511 ac_abs_top_srcdir=$ac_pwd ;;
1512 [\\/]* | ?:[\\/]* ) # Absolute name.
1513 ac_srcdir=$srcdir$ac_dir_suffix;
1514 ac_top_srcdir=$srcdir
1515 ac_abs_top_srcdir=$srcdir ;;
1516 *) # Relative name.
1517 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1518 ac_top_srcdir=$ac_top_build_prefix$srcdir
1519 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1520 esac
1521 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1522
1523 cd "$ac_dir" || { ac_status=$?; continue; }
1524 # Check for guested configure.
1525 if test -f "$ac_srcdir/configure.gnu"; then
1526 echo &&
1527 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1528 elif test -f "$ac_srcdir/configure"; then
1529 echo &&
1530 $SHELL "$ac_srcdir/configure" --help=recursive
1531 else
1532 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1533 fi || ac_status=$?
1534 cd "$ac_pwd" || { ac_status=$?; break; }
1535 done
1536 fi
1537
1538 test -n "$ac_init_help" && exit $ac_status
1539 if $ac_init_version; then
1540 cat <<\_ACEOF
1541 libXrender configure 0.9.10
1542 generated by GNU Autoconf 2.69
1543
1544 Copyright (C) 2012 Free Software Foundation, Inc.
1545 This configure script is free software; the Free Software Foundation
1546 gives unlimited permission to copy, distribute and modify it.
1547 _ACEOF
1548 exit
1549 fi
1550
1551 ## ------------------------ ##
1552 ## Autoconf initialization. ##
1553 ## ------------------------ ##
1554
1555 # ac_fn_c_try_compile LINENO
1556 # --------------------------
1557 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1558 ac_fn_c_try_compile ()
1559 {
1560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561 rm -f conftest.$ac_objext
1562 if { { ac_try="$ac_compile"
1563 case "(($ac_try" in
1564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1565 *) ac_try_echo=$ac_try;;
1566 esac
1567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1568 $as_echo "$ac_try_echo"; } >&5
1569 (eval "$ac_compile") 2>conftest.err
1570 ac_status=$?
1571 if test -s conftest.err; then
1572 grep -v '^ *+' conftest.err >conftest.er1
1573 cat conftest.er1 >&5
1574 mv -f conftest.er1 conftest.err
1575 fi
1576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1577 test $ac_status = 0; } && {
1578 test -z "$ac_c_werror_flag" ||
1579 test ! -s conftest.err
1580 } && test -s conftest.$ac_objext; then :
1581 ac_retval=0
1582 else
1583 $as_echo "$as_me: failed program was:" >&5
1584 sed 's/^/| /' conftest.$ac_ext >&5
1585
1586 ac_retval=1
1587 fi
1588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1589 as_fn_set_status $ac_retval
1590
1591 } # ac_fn_c_try_compile
1592
1593 # ac_fn_c_try_link LINENO
1594 # -----------------------
1595 # Try to link conftest.$ac_ext, and return whether this succeeded.
1596 ac_fn_c_try_link ()
1597 {
1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599 rm -f conftest.$ac_objext conftest$ac_exeext
1600 if { { ac_try="$ac_link"
1601 case "(($ac_try" in
1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603 *) ac_try_echo=$ac_try;;
1604 esac
1605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606 $as_echo "$ac_try_echo"; } >&5
1607 (eval "$ac_link") 2>conftest.err
1608 ac_status=$?
1609 if test -s conftest.err; then
1610 grep -v '^ *+' conftest.err >conftest.er1
1611 cat conftest.er1 >&5
1612 mv -f conftest.er1 conftest.err
1613 fi
1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615 test $ac_status = 0; } && {
1616 test -z "$ac_c_werror_flag" ||
1617 test ! -s conftest.err
1618 } && test -s conftest$ac_exeext && {
1619 test "$cross_compiling" = yes ||
1620 test -x conftest$ac_exeext
1621 }; then :
1622 ac_retval=0
1623 else
1624 $as_echo "$as_me: failed program was:" >&5
1625 sed 's/^/| /' conftest.$ac_ext >&5
1626
1627 ac_retval=1
1628 fi
1629 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1630 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1631 # interfere with the next link command; also delete a directory that is
1632 # left behind by Apple's compiler. We do this before executing the actions.
1633 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635 as_fn_set_status $ac_retval
1636
1637 } # ac_fn_c_try_link
1638
1639 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1640 # -------------------------------------------------------
1641 # Tests whether HEADER exists and can be compiled using the include files in
1642 # INCLUDES, setting the cache variable VAR accordingly.
1643 ac_fn_c_check_header_compile ()
1644 {
1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1647 $as_echo_n "checking for $2... " >&6; }
1648 if eval \${$3+:} false; then :
1649 $as_echo_n "(cached) " >&6
1650 else
1651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1652 /* end confdefs.h. */
1653 $4
1654 #include <$2>
1655 _ACEOF
1656 if ac_fn_c_try_compile "$LINENO"; then :
1657 eval "$3=yes"
1658 else
1659 eval "$3=no"
1660 fi
1661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1662 fi
1663 eval ac_res=\$$3
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1665 $as_echo "$ac_res" >&6; }
1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667
1668 } # ac_fn_c_check_header_compile
1669
1670 # ac_fn_c_try_cpp LINENO
1671 # ----------------------
1672 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1673 ac_fn_c_try_cpp ()
1674 {
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 if { { ac_try="$ac_cpp conftest.$ac_ext"
1677 case "(($ac_try" in
1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1680 esac
1681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682 $as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1684 ac_status=$?
1685 if test -s conftest.err; then
1686 grep -v '^ *+' conftest.err >conftest.er1
1687 cat conftest.er1 >&5
1688 mv -f conftest.er1 conftest.err
1689 fi
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; } > conftest.i && {
1692 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1693 test ! -s conftest.err
1694 }; then :
1695 ac_retval=0
1696 else
1697 $as_echo "$as_me: failed program was:" >&5
1698 sed 's/^/| /' conftest.$ac_ext >&5
1699
1700 ac_retval=1
1701 fi
1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703 as_fn_set_status $ac_retval
1704
1705 } # ac_fn_c_try_cpp
1706
1707 # ac_fn_c_try_run LINENO
1708 # ----------------------
1709 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1710 # that executables *can* be run.
1711 ac_fn_c_try_run ()
1712 {
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 if { { ac_try="$ac_link"
1715 case "(($ac_try" in
1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717 *) ac_try_echo=$ac_try;;
1718 esac
1719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 $as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_link") 2>&5
1722 ac_status=$?
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1725 { { case "(($ac_try" in
1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1728 esac
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 $as_echo "$ac_try_echo"; } >&5
1731 (eval "$ac_try") 2>&5
1732 ac_status=$?
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; }; }; then :
1735 ac_retval=0
1736 else
1737 $as_echo "$as_me: program exited with status $ac_status" >&5
1738 $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1740
1741 ac_retval=$ac_status
1742 fi
1743 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745 as_fn_set_status $ac_retval
1746
1747 } # ac_fn_c_try_run
1748
1749 # ac_fn_c_check_func LINENO FUNC VAR
1750 # ----------------------------------
1751 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1752 ac_fn_c_check_func ()
1753 {
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1756 $as_echo_n "checking for $2... " >&6; }
1757 if eval \${$3+:} false; then :
1758 $as_echo_n "(cached) " >&6
1759 else
1760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761 /* end confdefs.h. */
1762 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1764 #define $2 innocuous_$2
1765
1766 /* System header to define __stub macros and hopefully few prototypes,
1767 which can conflict with char $2 (); below.
1768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1769 <limits.h> exists even on freestanding compilers. */
1770
1771 #ifdef __STDC__
1772 # include <limits.h>
1773 #else
1774 # include <assert.h>
1775 #endif
1776
1777 #undef $2
1778
1779 /* Override any GCC internal prototype to avoid an error.
1780 Use char because int might match the return type of a GCC
1781 builtin and then its argument prototype would still apply. */
1782 #ifdef __cplusplus
1783 extern "C"
1784 #endif
1785 char $2 ();
1786 /* The GNU C library defines this for functions which it implements
1787 to always fail with ENOSYS. Some functions are actually named
1788 something starting with __ and the normal name is an alias. */
1789 #if defined __stub_$2 || defined __stub___$2
1790 choke me
1791 #endif
1792
1793 int
1794 main ()
1795 {
1796 return $2 ();
1797 ;
1798 return 0;
1799 }
1800 _ACEOF
1801 if ac_fn_c_try_link "$LINENO"; then :
1802 eval "$3=yes"
1803 else
1804 eval "$3=no"
1805 fi
1806 rm -f core conftest.err conftest.$ac_objext \
1807 conftest$ac_exeext conftest.$ac_ext
1808 fi
1809 eval ac_res=\$$3
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811 $as_echo "$ac_res" >&6; }
1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813
1814 } # ac_fn_c_check_func
1815
1816 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1817 # ---------------------------------------------
1818 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1819 # accordingly.
1820 ac_fn_c_check_decl ()
1821 {
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 as_decl_name=`echo $2|sed 's/ *(.*//'`
1824 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1826 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1827 if eval \${$3+:} false; then :
1828 $as_echo_n "(cached) " >&6
1829 else
1830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831 /* end confdefs.h. */
1832 $4
1833 int
1834 main ()
1835 {
1836 #ifndef $as_decl_name
1837 #ifdef __cplusplus
1838 (void) $as_decl_use;
1839 #else
1840 (void) $as_decl_name;
1841 #endif
1842 #endif
1843
1844 ;
1845 return 0;
1846 }
1847 _ACEOF
1848 if ac_fn_c_try_compile "$LINENO"; then :
1849 eval "$3=yes"
1850 else
1851 eval "$3=no"
1852 fi
1853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1854 fi
1855 eval ac_res=\$$3
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1857 $as_echo "$ac_res" >&6; }
1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859
1860 } # ac_fn_c_check_decl
1861 cat >config.log <<_ACEOF
1862 This file contains any messages produced by compilers while
1863 running configure, to aid debugging if configure makes a mistake.
1864
1865 It was created by libXrender $as_me 0.9.10, which was
1866 generated by GNU Autoconf 2.69. Invocation command line was
1867
1868 $ $0 $@
1869
1870 _ACEOF
1871 exec 5>>config.log
1872 {
1873 cat <<_ASUNAME
1874 ## --------- ##
1875 ## Platform. ##
1876 ## --------- ##
1877
1878 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1879 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1880 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1881 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1882 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1883
1884 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1885 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1886
1887 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1888 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1889 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1890 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1891 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1892 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1893 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1894
1895 _ASUNAME
1896
1897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1898 for as_dir in $PATH
1899 do
1900 IFS=$as_save_IFS
1901 test -z "$as_dir" && as_dir=.
1902 $as_echo "PATH: $as_dir"
1903 done
1904 IFS=$as_save_IFS
1905
1906 } >&5
1907
1908 cat >&5 <<_ACEOF
1909
1910
1911 ## ----------- ##
1912 ## Core tests. ##
1913 ## ----------- ##
1914
1915 _ACEOF
1916
1917
1918 # Keep a trace of the command line.
1919 # Strip out --no-create and --no-recursion so they do not pile up.
1920 # Strip out --silent because we don't want to record it for future runs.
1921 # Also quote any args containing shell meta-characters.
1922 # Make two passes to allow for proper duplicate-argument suppression.
1923 ac_configure_args=
1924 ac_configure_args0=
1925 ac_configure_args1=
1926 ac_must_keep_next=false
1927 for ac_pass in 1 2
1928 do
1929 for ac_arg
1930 do
1931 case $ac_arg in
1932 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1933 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1934 | -silent | --silent | --silen | --sile | --sil)
1935 continue ;;
1936 *\'*)
1937 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1938 esac
1939 case $ac_pass in
1940 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1941 2)
1942 as_fn_append ac_configure_args1 " '$ac_arg'"
1943 if test $ac_must_keep_next = true; then
1944 ac_must_keep_next=false # Got value, back to normal.
1945 else
1946 case $ac_arg in
1947 *=* | --config-cache | -C | -disable-* | --disable-* \
1948 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1949 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1950 | -with-* | --with-* | -without-* | --without-* | --x)
1951 case "$ac_configure_args0 " in
1952 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1953 esac
1954 ;;
1955 -* ) ac_must_keep_next=true ;;
1956 esac
1957 fi
1958 as_fn_append ac_configure_args " '$ac_arg'"
1959 ;;
1960 esac
1961 done
1962 done
1963 { ac_configure_args0=; unset ac_configure_args0;}
1964 { ac_configure_args1=; unset ac_configure_args1;}
1965
1966 # When interrupted or exit'd, cleanup temporary files, and complete
1967 # config.log. We remove comments because anyway the quotes in there
1968 # would cause problems or look ugly.
1969 # WARNING: Use '\'' to represent an apostrophe within the trap.
1970 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1971 trap 'exit_status=$?
1972 # Save into config.log some information that might help in debugging.
1973 {
1974 echo
1975
1976 $as_echo "## ---------------- ##
1977 ## Cache variables. ##
1978 ## ---------------- ##"
1979 echo
1980 # The following way of writing the cache mishandles newlines in values,
1981 (
1982 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1983 eval ac_val=\$$ac_var
1984 case $ac_val in #(
1985 *${as_nl}*)
1986 case $ac_var in #(
1987 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1988 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1989 esac
1990 case $ac_var in #(
1991 _ | IFS | as_nl) ;; #(
1992 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1993 *) { eval $ac_var=; unset $ac_var;} ;;
1994 esac ;;
1995 esac
1996 done
1997 (set) 2>&1 |
1998 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1999 *${as_nl}ac_space=\ *)
2000 sed -n \
2001 "s/'\''/'\''\\\\'\'''\''/g;
2002 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2003 ;; #(
2004 *)
2005 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2006 ;;
2007 esac |
2008 sort
2009 )
2010 echo
2011
2012 $as_echo "## ----------------- ##
2013 ## Output variables. ##
2014 ## ----------------- ##"
2015 echo
2016 for ac_var in $ac_subst_vars
2017 do
2018 eval ac_val=\$$ac_var
2019 case $ac_val in
2020 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2021 esac
2022 $as_echo "$ac_var='\''$ac_val'\''"
2023 done | sort
2024 echo
2025
2026 if test -n "$ac_subst_files"; then
2027 $as_echo "## ------------------- ##
2028 ## File substitutions. ##
2029 ## ------------------- ##"
2030 echo
2031 for ac_var in $ac_subst_files
2032 do
2033 eval ac_val=\$$ac_var
2034 case $ac_val in
2035 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2036 esac
2037 $as_echo "$ac_var='\''$ac_val'\''"
2038 done | sort
2039 echo
2040 fi
2041
2042 if test -s confdefs.h; then
2043 $as_echo "## ----------- ##
2044 ## confdefs.h. ##
2045 ## ----------- ##"
2046 echo
2047 cat confdefs.h
2048 echo
2049 fi
2050 test "$ac_signal" != 0 &&
2051 $as_echo "$as_me: caught signal $ac_signal"
2052 $as_echo "$as_me: exit $exit_status"
2053 } >&5
2054 rm -f core *.core core.conftest.* &&
2055 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2056 exit $exit_status
2057 ' 0
2058 for ac_signal in 1 2 13 15; do
2059 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2060 done
2061 ac_signal=0
2062
2063 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2064 rm -f -r conftest* confdefs.h
2065
2066 $as_echo "/* confdefs.h */" > confdefs.h
2067
2068 # Predefined preprocessor variables.
2069
2070 cat >>confdefs.h <<_ACEOF
2071 #define PACKAGE_NAME "$PACKAGE_NAME"
2072 _ACEOF
2073
2074 cat >>confdefs.h <<_ACEOF
2075 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2076 _ACEOF
2077
2078 cat >>confdefs.h <<_ACEOF
2079 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2080 _ACEOF
2081
2082 cat >>confdefs.h <<_ACEOF
2083 #define PACKAGE_STRING "$PACKAGE_STRING"
2084 _ACEOF
2085
2086 cat >>confdefs.h <<_ACEOF
2087 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2088 _ACEOF
2089
2090 cat >>confdefs.h <<_ACEOF
2091 #define PACKAGE_URL "$PACKAGE_URL"
2092 _ACEOF
2093
2094
2095 # Let the site file select an alternate cache file if it wants to.
2096 # Prefer an explicitly selected file to automatically selected ones.
2097 ac_site_file1=NONE
2098 ac_site_file2=NONE
2099 if test -n "$CONFIG_SITE"; then
2100 # We do not want a PATH search for config.site.
2101 case $CONFIG_SITE in #((
2102 -*) ac_site_file1=./$CONFIG_SITE;;
2103 */*) ac_site_file1=$CONFIG_SITE;;
2104 *) ac_site_file1=./$CONFIG_SITE;;
2105 esac
2106 elif test "x$prefix" != xNONE; then
2107 ac_site_file1=$prefix/share/config.site
2108 ac_site_file2=$prefix/etc/config.site
2109 else
2110 ac_site_file1=$ac_default_prefix/share/config.site
2111 ac_site_file2=$ac_default_prefix/etc/config.site
2112 fi
2113 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2114 do
2115 test "x$ac_site_file" = xNONE && continue
2116 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2118 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2119 sed 's/^/| /' "$ac_site_file" >&5
2120 . "$ac_site_file" \
2121 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2122 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2123 as_fn_error $? "failed to load site script $ac_site_file
2124 See \`config.log' for more details" "$LINENO" 5; }
2125 fi
2126 done
2127
2128 if test -r "$cache_file"; then
2129 # Some versions of bash will fail to source /dev/null (special files
2130 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2131 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2133 $as_echo "$as_me: loading cache $cache_file" >&6;}
2134 case $cache_file in
2135 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2136 *) . "./$cache_file";;
2137 esac
2138 fi
2139 else
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2141 $as_echo "$as_me: creating cache $cache_file" >&6;}
2142 >$cache_file
2143 fi
2144
2145 # Check that the precious variables saved in the cache have kept the same
2146 # value.
2147 ac_cache_corrupted=false
2148 for ac_var in $ac_precious_vars; do
2149 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2150 eval ac_new_set=\$ac_env_${ac_var}_set
2151 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2152 eval ac_new_val=\$ac_env_${ac_var}_value
2153 case $ac_old_set,$ac_new_set in
2154 set,)
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2156 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2157 ac_cache_corrupted=: ;;
2158 ,set)
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2160 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2161 ac_cache_corrupted=: ;;
2162 ,);;
2163 *)
2164 if test "x$ac_old_val" != "x$ac_new_val"; then
2165 # differences in whitespace do not lead to failure.
2166 ac_old_val_w=`echo x $ac_old_val`
2167 ac_new_val_w=`echo x $ac_new_val`
2168 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2170 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2171 ac_cache_corrupted=:
2172 else
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2174 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2175 eval $ac_var=\$ac_old_val
2176 fi
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2178 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2180 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2181 fi;;
2182 esac
2183 # Pass precious variables to config.status.
2184 if test "$ac_new_set" = set; then
2185 case $ac_new_val in
2186 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2187 *) ac_arg=$ac_var=$ac_new_val ;;
2188 esac
2189 case " $ac_configure_args " in
2190 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2191 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2192 esac
2193 fi
2194 done
2195 if $ac_cache_corrupted; then
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2199 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2200 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2201 fi
2202 ## -------------------- ##
2203 ## Main body of script. ##
2204 ## -------------------- ##
2205
2206 ac_ext=c
2207 ac_cpp='$CPP $CPPFLAGS'
2208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2211
2212
2213
2214 ac_config_headers="$ac_config_headers config.h"
2215
2216
2217 # Initialize Automake
2218 am__api_version='1.14'
2219
2220 ac_aux_dir=
2221 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2222 if test -f "$ac_dir/install-sh"; then
2223 ac_aux_dir=$ac_dir
2224 ac_install_sh="$ac_aux_dir/install-sh -c"
2225 break
2226 elif test -f "$ac_dir/install.sh"; then
2227 ac_aux_dir=$ac_dir
2228 ac_install_sh="$ac_aux_dir/install.sh -c"
2229 break
2230 elif test -f "$ac_dir/shtool"; then
2231 ac_aux_dir=$ac_dir
2232 ac_install_sh="$ac_aux_dir/shtool install -c"
2233 break
2234 fi
2235 done
2236 if test -z "$ac_aux_dir"; then
2237 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2238 fi
2239
2240 # These three variables are undocumented and unsupported,
2241 # and are intended to be withdrawn in a future Autoconf release.
2242 # They can cause serious problems if a builder's source tree is in a directory
2243 # whose full name contains unusual characters.
2244 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2245 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2246 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2247
2248
2249 # Find a good install program. We prefer a C program (faster),
2250 # so one script is as good as another. But avoid the broken or
2251 # incompatible versions:
2252 # SysV /etc/install, /usr/sbin/install
2253 # SunOS /usr/etc/install
2254 # IRIX /sbin/install
2255 # AIX /bin/install
2256 # AmigaOS /C/install, which installs bootblocks on floppy discs
2257 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2258 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2259 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2260 # OS/2's system install, which has a completely different semantic
2261 # ./install, which can be erroneously created by make from ./install.sh.
2262 # Reject install programs that cannot install multiple files.
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2264 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2265 if test -z "$INSTALL"; then
2266 if ${ac_cv_path_install+:} false; then :
2267 $as_echo_n "(cached) " >&6
2268 else
2269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2270 for as_dir in $PATH
2271 do
2272 IFS=$as_save_IFS
2273 test -z "$as_dir" && as_dir=.
2274 # Account for people who put trailing slashes in PATH elements.
2275 case $as_dir/ in #((
2276 ./ | .// | /[cC]/* | \
2277 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2278 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2279 /usr/ucb/* ) ;;
2280 *)
2281 # OSF1 and SCO ODT 3.0 have their own names for install.
2282 # Don't use installbsd from OSF since it installs stuff as root
2283 # by default.
2284 for ac_prog in ginstall scoinst install; do
2285 for ac_exec_ext in '' $ac_executable_extensions; do
2286 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2287 if test $ac_prog = install &&
2288 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2289 # AIX install. It has an incompatible calling convention.
2290 :
2291 elif test $ac_prog = install &&
2292 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2293 # program-specific install script used by HP pwplus--don't use.
2294 :
2295 else
2296 rm -rf conftest.one conftest.two conftest.dir
2297 echo one > conftest.one
2298 echo two > conftest.two
2299 mkdir conftest.dir
2300 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2301 test -s conftest.one && test -s conftest.two &&
2302 test -s conftest.dir/conftest.one &&
2303 test -s conftest.dir/conftest.two
2304 then
2305 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2306 break 3
2307 fi
2308 fi
2309 fi
2310 done
2311 done
2312 ;;
2313 esac
2314
2315 done
2316 IFS=$as_save_IFS
2317
2318 rm -rf conftest.one conftest.two conftest.dir
2319
2320 fi
2321 if test "${ac_cv_path_install+set}" = set; then
2322 INSTALL=$ac_cv_path_install
2323 else
2324 # As a last resort, use the slow shell script. Don't cache a
2325 # value for INSTALL within a source directory, because that will
2326 # break other packages using the cache if that directory is
2327 # removed, or if the value is a relative name.
2328 INSTALL=$ac_install_sh
2329 fi
2330 fi
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2332 $as_echo "$INSTALL" >&6; }
2333
2334 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2335 # It thinks the first close brace ends the variable substitution.
2336 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2337
2338 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2339
2340 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2341
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2343 $as_echo_n "checking whether build environment is sane... " >&6; }
2344 # Reject unsafe characters in $srcdir or the absolute working directory
2345 # name. Accept space and tab only in the latter.
2346 am_lf='
2347 '
2348 case `pwd` in
2349 *[\\\"\#\$\&\'\`$am_lf]*)
2350 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2351 esac
2352 case $srcdir in
2353 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2354 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2355 esac
2356
2357 # Do 'set' in a subshell so we don't clobber the current shell's
2358 # arguments. Must try -L first in case configure is actually a
2359 # symlink; some systems play weird games with the mod time of symlinks
2360 # (eg FreeBSD returns the mod time of the symlink's containing
2361 # directory).
2362 if (
2363 am_has_slept=no
2364 for am_try in 1 2; do
2365 echo "timestamp, slept: $am_has_slept" > conftest.file
2366 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2367 if test "$*" = "X"; then
2368 # -L didn't work.
2369 set X `ls -t "$srcdir/configure" conftest.file`
2370 fi
2371 if test "$*" != "X $srcdir/configure conftest.file" \
2372 && test "$*" != "X conftest.file $srcdir/configure"; then
2373
2374 # If neither matched, then we have a broken ls. This can happen
2375 # if, for instance, CONFIG_SHELL is bash and it inherits a
2376 # broken ls alias from the environment. This has actually
2377 # happened. Such a system could not be considered "sane".
2378 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2379 alias in your environment" "$LINENO" 5
2380 fi
2381 if test "$2" = conftest.file || test $am_try -eq 2; then
2382 break
2383 fi
2384 # Just in case.
2385 sleep 1
2386 am_has_slept=yes
2387 done
2388 test "$2" = conftest.file
2389 )
2390 then
2391 # Ok.
2392 :
2393 else
2394 as_fn_error $? "newly created file is older than distributed files!
2395 Check your system clock" "$LINENO" 5
2396 fi
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2398 $as_echo "yes" >&6; }
2399 # If we didn't sleep, we still need to ensure time stamps of config.status and
2400 # generated files are strictly newer.
2401 am_sleep_pid=
2402 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2403 ( sleep 1 ) &
2404 am_sleep_pid=$!
2405 fi
2406
2407 rm -f conftest.file
2408
2409 test "$program_prefix" != NONE &&
2410 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2411 # Use a double $ so make ignores it.
2412 test "$program_suffix" != NONE &&
2413 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2414 # Double any \ or $.
2415 # By default was `s,x,x', remove it if useless.
2416 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2417 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2418
2419 # expand $ac_aux_dir to an absolute path
2420 am_aux_dir=`cd $ac_aux_dir && pwd`
2421
2422 if test x"${MISSING+set}" != xset; then
2423 case $am_aux_dir in
2424 *\ * | *\ *)
2425 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2426 *)
2427 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2428 esac
2429 fi
2430 # Use eval to expand $SHELL
2431 if eval "$MISSING --is-lightweight"; then
2432 am_missing_run="$MISSING "
2433 else
2434 am_missing_run=
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2436 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2437 fi
2438
2439 if test x"${install_sh}" != xset; then
2440 case $am_aux_dir in
2441 *\ * | *\ *)
2442 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2443 *)
2444 install_sh="\${SHELL} $am_aux_dir/install-sh"
2445 esac
2446 fi
2447
2448 # Installed binaries are usually stripped using 'strip' when the user
2449 # run "make install-strip". However 'strip' might not be the right
2450 # tool to use in cross-compilation environments, therefore Automake
2451 # will honor the 'STRIP' environment variable to overrule this program.
2452 if test "$cross_compiling" != no; then
2453 if test -n "$ac_tool_prefix"; then
2454 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2455 set dummy ${ac_tool_prefix}strip; ac_word=$2
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2457 $as_echo_n "checking for $ac_word... " >&6; }
2458 if ${ac_cv_prog_STRIP+:} false; then :
2459 $as_echo_n "(cached) " >&6
2460 else
2461 if test -n "$STRIP"; then
2462 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2463 else
2464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465 for as_dir in $PATH
2466 do
2467 IFS=$as_save_IFS
2468 test -z "$as_dir" && as_dir=.
2469 for ac_exec_ext in '' $ac_executable_extensions; do
2470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2471 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2473 break 2
2474 fi
2475 done
2476 done
2477 IFS=$as_save_IFS
2478
2479 fi
2480 fi
2481 STRIP=$ac_cv_prog_STRIP
2482 if test -n "$STRIP"; then
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2484 $as_echo "$STRIP" >&6; }
2485 else
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2487 $as_echo "no" >&6; }
2488 fi
2489
2490
2491 fi
2492 if test -z "$ac_cv_prog_STRIP"; then
2493 ac_ct_STRIP=$STRIP
2494 # Extract the first word of "strip", so it can be a program name with args.
2495 set dummy strip; ac_word=$2
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2497 $as_echo_n "checking for $ac_word... " >&6; }
2498 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2499 $as_echo_n "(cached) " >&6
2500 else
2501 if test -n "$ac_ct_STRIP"; then
2502 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2503 else
2504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505 for as_dir in $PATH
2506 do
2507 IFS=$as_save_IFS
2508 test -z "$as_dir" && as_dir=.
2509 for ac_exec_ext in '' $ac_executable_extensions; do
2510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2511 ac_cv_prog_ac_ct_STRIP="strip"
2512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2513 break 2
2514 fi
2515 done
2516 done
2517 IFS=$as_save_IFS
2518
2519 fi
2520 fi
2521 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2522 if test -n "$ac_ct_STRIP"; then
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2524 $as_echo "$ac_ct_STRIP" >&6; }
2525 else
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2527 $as_echo "no" >&6; }
2528 fi
2529
2530 if test "x$ac_ct_STRIP" = x; then
2531 STRIP=":"
2532 else
2533 case $cross_compiling:$ac_tool_warned in
2534 yes:)
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2537 ac_tool_warned=yes ;;
2538 esac
2539 STRIP=$ac_ct_STRIP
2540 fi
2541 else
2542 STRIP="$ac_cv_prog_STRIP"
2543 fi
2544
2545 fi
2546 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2547
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2549 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2550 if test -z "$MKDIR_P"; then
2551 if ${ac_cv_path_mkdir+:} false; then :
2552 $as_echo_n "(cached) " >&6
2553 else
2554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2555 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2556 do
2557 IFS=$as_save_IFS
2558 test -z "$as_dir" && as_dir=.
2559 for ac_prog in mkdir gmkdir; do
2560 for ac_exec_ext in '' $ac_executable_extensions; do
2561 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2562 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2563 'mkdir (GNU coreutils) '* | \
2564 'mkdir (coreutils) '* | \
2565 'mkdir (fileutils) '4.1*)
2566 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2567 break 3;;
2568 esac
2569 done
2570 done
2571 done
2572 IFS=$as_save_IFS
2573
2574 fi
2575
2576 test -d ./--version && rmdir ./--version
2577 if test "${ac_cv_path_mkdir+set}" = set; then
2578 MKDIR_P="$ac_cv_path_mkdir -p"
2579 else
2580 # As a last resort, use the slow shell script. Don't cache a
2581 # value for MKDIR_P within a source directory, because that will
2582 # break other packages using the cache if that directory is
2583 # removed, or if the value is a relative name.
2584 MKDIR_P="$ac_install_sh -d"
2585 fi
2586 fi
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2588 $as_echo "$MKDIR_P" >&6; }
2589
2590 for ac_prog in gawk mawk nawk awk
2591 do
2592 # Extract the first word of "$ac_prog", so it can be a program name with args.
2593 set dummy $ac_prog; ac_word=$2
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2595 $as_echo_n "checking for $ac_word... " >&6; }
2596 if ${ac_cv_prog_AWK+:} false; then :
2597 $as_echo_n "(cached) " >&6
2598 else
2599 if test -n "$AWK"; then
2600 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2601 else
2602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603 for as_dir in $PATH
2604 do
2605 IFS=$as_save_IFS
2606 test -z "$as_dir" && as_dir=.
2607 for ac_exec_ext in '' $ac_executable_extensions; do
2608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2609 ac_cv_prog_AWK="$ac_prog"
2610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2611 break 2
2612 fi
2613 done
2614 done
2615 IFS=$as_save_IFS
2616
2617 fi
2618 fi
2619 AWK=$ac_cv_prog_AWK
2620 if test -n "$AWK"; then
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2622 $as_echo "$AWK" >&6; }
2623 else
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2625 $as_echo "no" >&6; }
2626 fi
2627
2628
2629 test -n "$AWK" && break
2630 done
2631
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2633 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2634 set x ${MAKE-make}
2635 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2636 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2637 $as_echo_n "(cached) " >&6
2638 else
2639 cat >conftest.make <<\_ACEOF
2640 SHELL = /bin/sh
2641 all:
2642 @echo '@@@%%%=$(MAKE)=@@@%%%'
2643 _ACEOF
2644 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2645 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2646 *@@@%%%=?*=@@@%%%*)
2647 eval ac_cv_prog_make_${ac_make}_set=yes;;
2648 *)
2649 eval ac_cv_prog_make_${ac_make}_set=no;;
2650 esac
2651 rm -f conftest.make
2652 fi
2653 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2655 $as_echo "yes" >&6; }
2656 SET_MAKE=
2657 else
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2659 $as_echo "no" >&6; }
2660 SET_MAKE="MAKE=${MAKE-make}"
2661 fi
2662
2663 rm -rf .tst 2>/dev/null
2664 mkdir .tst 2>/dev/null
2665 if test -d .tst; then
2666 am__leading_dot=.
2667 else
2668 am__leading_dot=_
2669 fi
2670 rmdir .tst 2>/dev/null
2671
2672 # Check whether --enable-silent-rules was given.
2673 if test "${enable_silent_rules+set}" = set; then :
2674 enableval=$enable_silent_rules;
2675 fi
2676
2677 case $enable_silent_rules in # (((
2678 yes) AM_DEFAULT_VERBOSITY=0;;
2679 no) AM_DEFAULT_VERBOSITY=1;;
2680 *) AM_DEFAULT_VERBOSITY=1;;
2681 esac
2682 am_make=${MAKE-make}
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2684 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2685 if ${am_cv_make_support_nested_variables+:} false; then :
2686 $as_echo_n "(cached) " >&6
2687 else
2688 if $as_echo 'TRUE=$(BAR$(V))
2689 BAR0=false
2690 BAR1=true
2691 V=1
2692 am__doit:
2693 @$(TRUE)
2694 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2695 am_cv_make_support_nested_variables=yes
2696 else
2697 am_cv_make_support_nested_variables=no
2698 fi
2699 fi
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2701 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2702 if test $am_cv_make_support_nested_variables = yes; then
2703 AM_V='$(V)'
2704 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2705 else
2706 AM_V=$AM_DEFAULT_VERBOSITY
2707 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2708 fi
2709 AM_BACKSLASH='\'
2710
2711 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2712 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2713 # is not polluted with repeated "-I."
2714 am__isrc=' -I$(srcdir)'
2715 # test to see if srcdir already configured
2716 if test -f $srcdir/config.status; then
2717 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2718 fi
2719 fi
2720
2721 # test whether we have cygpath
2722 if test -z "$CYGPATH_W"; then
2723 if (cygpath --version) >/dev/null 2>/dev/null; then
2724 CYGPATH_W='cygpath -w'
2725 else
2726 CYGPATH_W=echo
2727 fi
2728 fi
2729
2730
2731 # Define the identity of the package.
2732 PACKAGE='libXrender'
2733 VERSION='0.9.10'
2734
2735
2736 cat >>confdefs.h <<_ACEOF
2737 #define PACKAGE "$PACKAGE"
2738 _ACEOF
2739
2740
2741 cat >>confdefs.h <<_ACEOF
2742 #define VERSION "$VERSION"
2743 _ACEOF
2744
2745 # Some tools Automake needs.
2746
2747 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2748
2749
2750 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2751
2752
2753 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2754
2755
2756 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2757
2758
2759 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2760
2761 # For better backward compatibility. To be removed once Automake 1.9.x
2762 # dies out for good. For more background, see:
2763 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2764 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2765 mkdir_p='$(MKDIR_P)'
2766
2767 # We need awk for the "check" target. The system "awk" is bad on
2768 # some platforms.
2769 # Always define AMTAR for backward compatibility. Yes, it's still used
2770 # in the wild :-( We should find a proper way to deprecate it ...
2771 AMTAR='$${TAR-tar}'
2772
2773
2774 # We'll loop over all known methods to create a tar archive until one works.
2775 _am_tools='gnutar pax cpio none'
2776
2777 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2778
2779
2780
2781
2782
2783
2784 # POSIX will say in a future version that running "rm -f" with no argument
2785 # is OK; and we want to be able to make that assumption in our Makefile
2786 # recipes. So use an aggressive probe to check that the usage we want is
2787 # actually supported "in the wild" to an acceptable degree.
2788 # See automake bug#10828.
2789 # To make any issue more visible, cause the running configure to be aborted
2790 # by default if the 'rm' program in use doesn't match our expectations; the
2791 # user can still override this though.
2792 if rm -f && rm -fr && rm -rf; then : OK; else
2793 cat >&2 <<'END'
2794 Oops!
2795
2796 Your 'rm' program seems unable to run without file operands specified
2797 on the command line, even when the '-f' option is present. This is contrary
2798 to the behaviour of most rm programs out there, and not conforming with
2799 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2800
2801 Please tell bug-automake@gnu.org about your system, including the value
2802 of your $PATH and any error possibly output before this message. This
2803 can help us improve future automake versions.
2804
2805 END
2806 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2807 echo 'Configuration will proceed anyway, since you have set the' >&2
2808 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2809 echo >&2
2810 else
2811 cat >&2 <<'END'
2812 Aborting the configuration process, to ensure you take notice of the issue.
2813
2814 You can download and install GNU coreutils to get an 'rm' implementation
2815 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2816
2817 If you want to complete the configuration process using your problematic
2818 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2819 to "yes", and re-run configure.
2820
2821 END
2822 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2823 fi
2824 fi
2825
2826 # Initialize libtool
2827 case `pwd` in
2828 *\ * | *\ *)
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2830 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2831 esac
2832
2833
2834
2835 macro_version='2.4.2'
2836 macro_revision='1.3337'
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850 ltmain="$ac_aux_dir/ltmain.sh"
2851
2852 # Make sure we can run config.sub.
2853 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2854 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2855
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2857 $as_echo_n "checking build system type... " >&6; }
2858 if ${ac_cv_build+:} false; then :
2859 $as_echo_n "(cached) " >&6
2860 else
2861 ac_build_alias=$build_alias
2862 test "x$ac_build_alias" = x &&
2863 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2864 test "x$ac_build_alias" = x &&
2865 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2866 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2867 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2868
2869 fi
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2871 $as_echo "$ac_cv_build" >&6; }
2872 case $ac_cv_build in
2873 *-*-*) ;;
2874 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2875 esac
2876 build=$ac_cv_build
2877 ac_save_IFS=$IFS; IFS='-'
2878 set x $ac_cv_build
2879 shift
2880 build_cpu=$1
2881 build_vendor=$2
2882 shift; shift
2883 # Remember, the first character of IFS is used to create $*,
2884 # except with old shells:
2885 build_os=$*
2886 IFS=$ac_save_IFS
2887 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2888
2889
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2891 $as_echo_n "checking host system type... " >&6; }
2892 if ${ac_cv_host+:} false; then :
2893 $as_echo_n "(cached) " >&6
2894 else
2895 if test "x$host_alias" = x; then
2896 ac_cv_host=$ac_cv_build
2897 else
2898 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2899 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2900 fi
2901
2902 fi
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2904 $as_echo "$ac_cv_host" >&6; }
2905 case $ac_cv_host in
2906 *-*-*) ;;
2907 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2908 esac
2909 host=$ac_cv_host
2910 ac_save_IFS=$IFS; IFS='-'
2911 set x $ac_cv_host
2912 shift
2913 host_cpu=$1
2914 host_vendor=$2
2915 shift; shift
2916 # Remember, the first character of IFS is used to create $*,
2917 # except with old shells:
2918 host_os=$*
2919 IFS=$ac_save_IFS
2920 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2921
2922
2923 # Backslashify metacharacters that are still active within
2924 # double-quoted strings.
2925 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2926
2927 # Same as above, but do not quote variable references.
2928 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2929
2930 # Sed substitution to delay expansion of an escaped shell variable in a
2931 # double_quote_subst'ed string.
2932 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2933
2934 # Sed substitution to delay expansion of an escaped single quote.
2935 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2936
2937 # Sed substitution to avoid accidental globbing in evaled expressions
2938 no_glob_subst='s/\*/\\\*/g'
2939
2940 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2941 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2942 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2943
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2945 $as_echo_n "checking how to print strings... " >&6; }
2946 # Test print first, because it will be a builtin if present.
2947 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2948 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2949 ECHO='print -r --'
2950 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2951 ECHO='printf %s\n'
2952 else
2953 # Use this function as a fallback that always works.
2954 func_fallback_echo ()
2955 {
2956 eval 'cat <<_LTECHO_EOF
2957 $1
2958 _LTECHO_EOF'
2959 }
2960 ECHO='func_fallback_echo'
2961 fi
2962
2963 # func_echo_all arg...
2964 # Invoke $ECHO with all args, space-separated.
2965 func_echo_all ()
2966 {
2967 $ECHO ""
2968 }
2969
2970 case "$ECHO" in
2971 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2972 $as_echo "printf" >&6; } ;;
2973 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2974 $as_echo "print -r" >&6; } ;;
2975 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2976 $as_echo "cat" >&6; } ;;
2977 esac
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992 DEPDIR="${am__leading_dot}deps"
2993
2994 ac_config_commands="$ac_config_commands depfiles"
2995
2996
2997 am_make=${MAKE-make}
2998 cat > confinc << 'END'
2999 am__doit:
3000 @echo this is the am__doit target
3001 .PHONY: am__doit
3002 END
3003 # If we don't find an include directive, just comment out the code.
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3005 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3006 am__include="#"
3007 am__quote=
3008 _am_result=none
3009 # First try GNU make style include.
3010 echo "include confinc" > confmf
3011 # Ignore all kinds of additional output from 'make'.
3012 case `$am_make -s -f confmf 2> /dev/null` in #(
3013 *the\ am__doit\ target*)
3014 am__include=include
3015 am__quote=
3016 _am_result=GNU
3017 ;;
3018 esac
3019 # Now try BSD make style include.
3020 if test "$am__include" = "#"; then
3021 echo '.include "confinc"' > confmf
3022 case `$am_make -s -f confmf 2> /dev/null` in #(
3023 *the\ am__doit\ target*)
3024 am__include=.include
3025 am__quote="\""
3026 _am_result=BSD
3027 ;;
3028 esac
3029 fi
3030
3031
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3033 $as_echo "$_am_result" >&6; }
3034 rm -f confinc confmf
3035
3036 # Check whether --enable-dependency-tracking was given.
3037 if test "${enable_dependency_tracking+set}" = set; then :
3038 enableval=$enable_dependency_tracking;
3039 fi
3040
3041 if test "x$enable_dependency_tracking" != xno; then
3042 am_depcomp="$ac_aux_dir/depcomp"
3043 AMDEPBACKSLASH='\'
3044 am__nodep='_no'
3045 fi
3046 if test "x$enable_dependency_tracking" != xno; then
3047 AMDEP_TRUE=
3048 AMDEP_FALSE='#'
3049 else
3050 AMDEP_TRUE='#'
3051 AMDEP_FALSE=
3052 fi
3053
3054
3055 ac_ext=c
3056 ac_cpp='$CPP $CPPFLAGS'
3057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3060 if test -n "$ac_tool_prefix"; then
3061 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3062 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064 $as_echo_n "checking for $ac_word... " >&6; }
3065 if ${ac_cv_prog_CC+:} false; then :
3066 $as_echo_n "(cached) " >&6
3067 else
3068 if test -n "$CC"; then
3069 ac_cv_prog_CC="$CC" # Let the user override the test.
3070 else
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072 for as_dir in $PATH
3073 do
3074 IFS=$as_save_IFS
3075 test -z "$as_dir" && as_dir=.
3076 for ac_exec_ext in '' $ac_executable_extensions; do
3077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3080 break 2
3081 fi
3082 done
3083 done
3084 IFS=$as_save_IFS
3085
3086 fi
3087 fi
3088 CC=$ac_cv_prog_CC
3089 if test -n "$CC"; then
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3091 $as_echo "$CC" >&6; }
3092 else
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094 $as_echo "no" >&6; }
3095 fi
3096
3097
3098 fi
3099 if test -z "$ac_cv_prog_CC"; then
3100 ac_ct_CC=$CC
3101 # Extract the first word of "gcc", so it can be a program name with args.
3102 set dummy gcc; ac_word=$2
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3104 $as_echo_n "checking for $ac_word... " >&6; }
3105 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3106 $as_echo_n "(cached) " >&6
3107 else
3108 if test -n "$ac_ct_CC"; then
3109 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3110 else
3111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112 for as_dir in $PATH
3113 do
3114 IFS=$as_save_IFS
3115 test -z "$as_dir" && as_dir=.
3116 for ac_exec_ext in '' $ac_executable_extensions; do
3117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3118 ac_cv_prog_ac_ct_CC="gcc"
3119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3120 break 2
3121 fi
3122 done
3123 done
3124 IFS=$as_save_IFS
3125
3126 fi
3127 fi
3128 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3129 if test -n "$ac_ct_CC"; then
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3131 $as_echo "$ac_ct_CC" >&6; }
3132 else
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3134 $as_echo "no" >&6; }
3135 fi
3136
3137 if test "x$ac_ct_CC" = x; then
3138 CC=""
3139 else
3140 case $cross_compiling:$ac_tool_warned in
3141 yes:)
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3144 ac_tool_warned=yes ;;
3145 esac
3146 CC=$ac_ct_CC
3147 fi
3148 else
3149 CC="$ac_cv_prog_CC"
3150 fi
3151
3152 if test -z "$CC"; then
3153 if test -n "$ac_tool_prefix"; then
3154 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3155 set dummy ${ac_tool_prefix}cc; ac_word=$2
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157 $as_echo_n "checking for $ac_word... " >&6; }
3158 if ${ac_cv_prog_CC+:} false; then :
3159 $as_echo_n "(cached) " >&6
3160 else
3161 if test -n "$CC"; then
3162 ac_cv_prog_CC="$CC" # Let the user override the test.
3163 else
3164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165 for as_dir in $PATH
3166 do
3167 IFS=$as_save_IFS
3168 test -z "$as_dir" && as_dir=.
3169 for ac_exec_ext in '' $ac_executable_extensions; do
3170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3171 ac_cv_prog_CC="${ac_tool_prefix}cc"
3172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3173 break 2
3174 fi
3175 done
3176 done
3177 IFS=$as_save_IFS
3178
3179 fi
3180 fi
3181 CC=$ac_cv_prog_CC
3182 if test -n "$CC"; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3184 $as_echo "$CC" >&6; }
3185 else
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; }
3188 fi
3189
3190
3191 fi
3192 fi
3193 if test -z "$CC"; then
3194 # Extract the first word of "cc", so it can be a program name with args.
3195 set dummy cc; ac_word=$2
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3197 $as_echo_n "checking for $ac_word... " >&6; }
3198 if ${ac_cv_prog_CC+:} false; then :
3199 $as_echo_n "(cached) " >&6
3200 else
3201 if test -n "$CC"; then
3202 ac_cv_prog_CC="$CC" # Let the user override the test.
3203 else
3204 ac_prog_rejected=no
3205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206 for as_dir in $PATH
3207 do
3208 IFS=$as_save_IFS
3209 test -z "$as_dir" && as_dir=.
3210 for ac_exec_ext in '' $ac_executable_extensions; do
3211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3212 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3213 ac_prog_rejected=yes
3214 continue
3215 fi
3216 ac_cv_prog_CC="cc"
3217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3218 break 2
3219 fi
3220 done
3221 done
3222 IFS=$as_save_IFS
3223
3224 if test $ac_prog_rejected = yes; then
3225 # We found a bogon in the path, so make sure we never use it.
3226 set dummy $ac_cv_prog_CC
3227 shift
3228 if test $# != 0; then
3229 # We chose a different compiler from the bogus one.
3230 # However, it has the same basename, so the bogon will be chosen
3231 # first if we set CC to just the basename; use the full file name.
3232 shift
3233 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3234 fi
3235 fi
3236 fi
3237 fi
3238 CC=$ac_cv_prog_CC
3239 if test -n "$CC"; then
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3241 $as_echo "$CC" >&6; }
3242 else
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244 $as_echo "no" >&6; }
3245 fi
3246
3247
3248 fi
3249 if test -z "$CC"; then
3250 if test -n "$ac_tool_prefix"; then
3251 for ac_prog in cl.exe
3252 do
3253 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3254 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3256 $as_echo_n "checking for $ac_word... " >&6; }
3257 if ${ac_cv_prog_CC+:} false; then :
3258 $as_echo_n "(cached) " >&6
3259 else
3260 if test -n "$CC"; then
3261 ac_cv_prog_CC="$CC" # Let the user override the test.
3262 else
3263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264 for as_dir in $PATH
3265 do
3266 IFS=$as_save_IFS
3267 test -z "$as_dir" && as_dir=.
3268 for ac_exec_ext in '' $ac_executable_extensions; do
3269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3270 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3272 break 2
3273 fi
3274 done
3275 done
3276 IFS=$as_save_IFS
3277
3278 fi
3279 fi
3280 CC=$ac_cv_prog_CC
3281 if test -n "$CC"; then
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3283 $as_echo "$CC" >&6; }
3284 else
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286 $as_echo "no" >&6; }
3287 fi
3288
3289
3290 test -n "$CC" && break
3291 done
3292 fi
3293 if test -z "$CC"; then
3294 ac_ct_CC=$CC
3295 for ac_prog in cl.exe
3296 do
3297 # Extract the first word of "$ac_prog", so it can be a program name with args.
3298 set dummy $ac_prog; ac_word=$2
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3300 $as_echo_n "checking for $ac_word... " >&6; }
3301 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3302 $as_echo_n "(cached) " >&6
3303 else
3304 if test -n "$ac_ct_CC"; then
3305 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3306 else
3307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3308 for as_dir in $PATH
3309 do
3310 IFS=$as_save_IFS
3311 test -z "$as_dir" && as_dir=.
3312 for ac_exec_ext in '' $ac_executable_extensions; do
3313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3314 ac_cv_prog_ac_ct_CC="$ac_prog"
3315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3316 break 2
3317 fi
3318 done
3319 done
3320 IFS=$as_save_IFS
3321
3322 fi
3323 fi
3324 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3325 if test -n "$ac_ct_CC"; then
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3327 $as_echo "$ac_ct_CC" >&6; }
3328 else
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330 $as_echo "no" >&6; }
3331 fi
3332
3333
3334 test -n "$ac_ct_CC" && break
3335 done
3336
3337 if test "x$ac_ct_CC" = x; then
3338 CC=""
3339 else
3340 case $cross_compiling:$ac_tool_warned in
3341 yes:)
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3344 ac_tool_warned=yes ;;
3345 esac
3346 CC=$ac_ct_CC
3347 fi
3348 fi
3349
3350 fi
3351
3352
3353 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3355 as_fn_error $? "no acceptable C compiler found in \$PATH
3356 See \`config.log' for more details" "$LINENO" 5; }
3357
3358 # Provide some information about the compiler.
3359 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3360 set X $ac_compile
3361 ac_compiler=$2
3362 for ac_option in --version -v -V -qversion; do
3363 { { ac_try="$ac_compiler $ac_option >&5"
3364 case "(($ac_try" in
3365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366 *) ac_try_echo=$ac_try;;
3367 esac
3368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3369 $as_echo "$ac_try_echo"; } >&5
3370 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3371 ac_status=$?
3372 if test -s conftest.err; then
3373 sed '10a\
3374 ... rest of stderr output deleted ...
3375 10q' conftest.err >conftest.er1
3376 cat conftest.er1 >&5
3377 fi
3378 rm -f conftest.er1 conftest.err
3379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3380 test $ac_status = 0; }
3381 done
3382
3383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384 /* end confdefs.h. */
3385
3386 int
3387 main ()
3388 {
3389
3390 ;
3391 return 0;
3392 }
3393 _ACEOF
3394 ac_clean_files_save=$ac_clean_files
3395 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3396 # Try to create an executable without -o first, disregard a.out.
3397 # It will help us diagnose broken compilers, and finding out an intuition
3398 # of exeext.
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3400 $as_echo_n "checking whether the C compiler works... " >&6; }
3401 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3402
3403 # The possible output files:
3404 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3405
3406 ac_rmfiles=
3407 for ac_file in $ac_files
3408 do
3409 case $ac_file in
3410 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3411 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3412 esac
3413 done
3414 rm -f $ac_rmfiles
3415
3416 if { { ac_try="$ac_link_default"
3417 case "(($ac_try" in
3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419 *) ac_try_echo=$ac_try;;
3420 esac
3421 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3422 $as_echo "$ac_try_echo"; } >&5
3423 (eval "$ac_link_default") 2>&5
3424 ac_status=$?
3425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3426 test $ac_status = 0; }; then :
3427 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3428 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3429 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3430 # so that the user can short-circuit this test for compilers unknown to
3431 # Autoconf.
3432 for ac_file in $ac_files ''
3433 do
3434 test -f "$ac_file" || continue
3435 case $ac_file in
3436 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3437 ;;
3438 [ab].out )
3439 # We found the default executable, but exeext='' is most
3440 # certainly right.
3441 break;;
3442 *.* )
3443 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3444 then :; else
3445 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3446 fi
3447 # We set ac_cv_exeext here because the later test for it is not
3448 # safe: cross compilers may not add the suffix if given an `-o'
3449 # argument, so we may need to know it at that point already.
3450 # Even if this section looks crufty: it has the advantage of
3451 # actually working.
3452 break;;
3453 * )
3454 break;;
3455 esac
3456 done
3457 test "$ac_cv_exeext" = no && ac_cv_exeext=
3458
3459 else
3460 ac_file=''
3461 fi
3462 if test -z "$ac_file"; then :
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3464 $as_echo "no" >&6; }
3465 $as_echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3467
3468 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3470 as_fn_error 77 "C compiler cannot create executables
3471 See \`config.log' for more details" "$LINENO" 5; }
3472 else
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3474 $as_echo "yes" >&6; }
3475 fi
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3477 $as_echo_n "checking for C compiler default output file name... " >&6; }
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3479 $as_echo "$ac_file" >&6; }
3480 ac_exeext=$ac_cv_exeext
3481
3482 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3483 ac_clean_files=$ac_clean_files_save
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3485 $as_echo_n "checking for suffix of executables... " >&6; }
3486 if { { ac_try="$ac_link"
3487 case "(($ac_try" in
3488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489 *) ac_try_echo=$ac_try;;
3490 esac
3491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3492 $as_echo "$ac_try_echo"; } >&5
3493 (eval "$ac_link") 2>&5
3494 ac_status=$?
3495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3496 test $ac_status = 0; }; then :
3497 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3498 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3499 # work properly (i.e., refer to `conftest.exe'), while it won't with
3500 # `rm'.
3501 for ac_file in conftest.exe conftest conftest.*; do
3502 test -f "$ac_file" || continue
3503 case $ac_file in
3504 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3505 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3506 break;;
3507 * ) break;;
3508 esac
3509 done
3510 else
3511 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3512 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3513 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3514 See \`config.log' for more details" "$LINENO" 5; }
3515 fi
3516 rm -f conftest conftest$ac_cv_exeext
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3518 $as_echo "$ac_cv_exeext" >&6; }
3519
3520 rm -f conftest.$ac_ext
3521 EXEEXT=$ac_cv_exeext
3522 ac_exeext=$EXEEXT
3523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524 /* end confdefs.h. */
3525 #include <stdio.h>
3526 int
3527 main ()
3528 {
3529 FILE *f = fopen ("conftest.out", "w");
3530 return ferror (f) || fclose (f) != 0;
3531
3532 ;
3533 return 0;
3534 }
3535 _ACEOF
3536 ac_clean_files="$ac_clean_files conftest.out"
3537 # Check that the compiler produces executables we can run. If not, either
3538 # the compiler is broken, or we cross compile.
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3540 $as_echo_n "checking whether we are cross compiling... " >&6; }
3541 if test "$cross_compiling" != yes; then
3542 { { ac_try="$ac_link"
3543 case "(($ac_try" in
3544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3545 *) ac_try_echo=$ac_try;;
3546 esac
3547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3548 $as_echo "$ac_try_echo"; } >&5
3549 (eval "$ac_link") 2>&5
3550 ac_status=$?
3551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3552 test $ac_status = 0; }
3553 if { ac_try='./conftest$ac_cv_exeext'
3554 { { case "(($ac_try" in
3555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556 *) ac_try_echo=$ac_try;;
3557 esac
3558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3559 $as_echo "$ac_try_echo"; } >&5
3560 (eval "$ac_try") 2>&5
3561 ac_status=$?
3562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3563 test $ac_status = 0; }; }; then
3564 cross_compiling=no
3565 else
3566 if test "$cross_compiling" = maybe; then
3567 cross_compiling=yes
3568 else
3569 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3571 as_fn_error $? "cannot run C compiled programs.
3572 If you meant to cross compile, use \`--host'.
3573 See \`config.log' for more details" "$LINENO" 5; }
3574 fi
3575 fi
3576 fi
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3578 $as_echo "$cross_compiling" >&6; }
3579
3580 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3581 ac_clean_files=$ac_clean_files_save
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3583 $as_echo_n "checking for suffix of object files... " >&6; }
3584 if ${ac_cv_objext+:} false; then :
3585 $as_echo_n "(cached) " >&6
3586 else
3587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3588 /* end confdefs.h. */
3589
3590 int
3591 main ()
3592 {
3593
3594 ;
3595 return 0;
3596 }
3597 _ACEOF
3598 rm -f conftest.o conftest.obj
3599 if { { ac_try="$ac_compile"
3600 case "(($ac_try" in
3601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602 *) ac_try_echo=$ac_try;;
3603 esac
3604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3605 $as_echo "$ac_try_echo"; } >&5
3606 (eval "$ac_compile") 2>&5
3607 ac_status=$?
3608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3609 test $ac_status = 0; }; then :
3610 for ac_file in conftest.o conftest.obj conftest.*; do
3611 test -f "$ac_file" || continue;
3612 case $ac_file in
3613 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3614 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3615 break;;
3616 esac
3617 done
3618 else
3619 $as_echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3621
3622 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3623 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3624 as_fn_error $? "cannot compute suffix of object files: cannot compile
3625 See \`config.log' for more details" "$LINENO" 5; }
3626 fi
3627 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3628 fi
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3630 $as_echo "$ac_cv_objext" >&6; }
3631 OBJEXT=$ac_cv_objext
3632 ac_objext=$OBJEXT
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3634 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3635 if ${ac_cv_c_compiler_gnu+:} false; then :
3636 $as_echo_n "(cached) " >&6
3637 else
3638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3639 /* end confdefs.h. */
3640
3641 int
3642 main ()
3643 {
3644 #ifndef __GNUC__
3645 choke me
3646 #endif
3647
3648 ;
3649 return 0;
3650 }
3651 _ACEOF
3652 if ac_fn_c_try_compile "$LINENO"; then :
3653 ac_compiler_gnu=yes
3654 else
3655 ac_compiler_gnu=no
3656 fi
3657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3658 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3659
3660 fi
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3662 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3663 if test $ac_compiler_gnu = yes; then
3664 GCC=yes
3665 else
3666 GCC=
3667 fi
3668 ac_test_CFLAGS=${CFLAGS+set}
3669 ac_save_CFLAGS=$CFLAGS
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3671 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3672 if ${ac_cv_prog_cc_g+:} false; then :
3673 $as_echo_n "(cached) " >&6
3674 else
3675 ac_save_c_werror_flag=$ac_c_werror_flag
3676 ac_c_werror_flag=yes
3677 ac_cv_prog_cc_g=no
3678 CFLAGS="-g"
3679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680 /* end confdefs.h. */
3681
3682 int
3683 main ()
3684 {
3685
3686 ;
3687 return 0;
3688 }
3689 _ACEOF
3690 if ac_fn_c_try_compile "$LINENO"; then :
3691 ac_cv_prog_cc_g=yes
3692 else
3693 CFLAGS=""
3694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3695 /* end confdefs.h. */
3696
3697 int
3698 main ()
3699 {
3700
3701 ;
3702 return 0;
3703 }
3704 _ACEOF
3705 if ac_fn_c_try_compile "$LINENO"; then :
3706
3707 else
3708 ac_c_werror_flag=$ac_save_c_werror_flag
3709 CFLAGS="-g"
3710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711 /* end confdefs.h. */
3712
3713 int
3714 main ()
3715 {
3716
3717 ;
3718 return 0;
3719 }
3720 _ACEOF
3721 if ac_fn_c_try_compile "$LINENO"; then :
3722 ac_cv_prog_cc_g=yes
3723 fi
3724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3725 fi
3726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3727 fi
3728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3729 ac_c_werror_flag=$ac_save_c_werror_flag
3730 fi
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3732 $as_echo "$ac_cv_prog_cc_g" >&6; }
3733 if test "$ac_test_CFLAGS" = set; then
3734 CFLAGS=$ac_save_CFLAGS
3735 elif test $ac_cv_prog_cc_g = yes; then
3736 if test "$GCC" = yes; then
3737 CFLAGS="-g -O2"
3738 else
3739 CFLAGS="-g"
3740 fi
3741 else
3742 if test "$GCC" = yes; then
3743 CFLAGS="-O2"
3744 else
3745 CFLAGS=
3746 fi
3747 fi
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3749 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3750 if ${ac_cv_prog_cc_c89+:} false; then :
3751 $as_echo_n "(cached) " >&6
3752 else
3753 ac_cv_prog_cc_c89=no
3754 ac_save_CC=$CC
3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h. */
3757 #include <stdarg.h>
3758 #include <stdio.h>
3759 struct stat;
3760 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3761 struct buf { int x; };
3762 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3763 static char *e (p, i)
3764 char **p;
3765 int i;
3766 {
3767 return p[i];
3768 }
3769 static char *f (char * (*g) (char **, int), char **p, ...)
3770 {
3771 char *s;
3772 va_list v;
3773 va_start (v,p);
3774 s = g (p, va_arg (v,int));
3775 va_end (v);
3776 return s;
3777 }
3778
3779 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3780 function prototypes and stuff, but not '\xHH' hex character constants.
3781 These don't provoke an error unfortunately, instead are silently treated
3782 as 'x'. The following induces an error, until -std is added to get
3783 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3784 array size at least. It's necessary to write '\x00'==0 to get something
3785 that's true only with -std. */
3786 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3787
3788 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3789 inside strings and character constants. */
3790 #define FOO(x) 'x'
3791 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3792
3793 int test (int i, double x);
3794 struct s1 {int (*f) (int a);};
3795 struct s2 {int (*f) (double a);};
3796 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3797 int argc;
3798 char **argv;
3799 int
3800 main ()
3801 {
3802 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3803 ;
3804 return 0;
3805 }
3806 _ACEOF
3807 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3808 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3809 do
3810 CC="$ac_save_CC $ac_arg"
3811 if ac_fn_c_try_compile "$LINENO"; then :
3812 ac_cv_prog_cc_c89=$ac_arg
3813 fi
3814 rm -f core conftest.err conftest.$ac_objext
3815 test "x$ac_cv_prog_cc_c89" != "xno" && break
3816 done
3817 rm -f conftest.$ac_ext
3818 CC=$ac_save_CC
3819
3820 fi
3821 # AC_CACHE_VAL
3822 case "x$ac_cv_prog_cc_c89" in
3823 x)
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3825 $as_echo "none needed" >&6; } ;;
3826 xno)
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3828 $as_echo "unsupported" >&6; } ;;
3829 *)
3830 CC="$CC $ac_cv_prog_cc_c89"
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3832 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3833 esac
3834 if test "x$ac_cv_prog_cc_c89" != xno; then :
3835
3836 fi
3837
3838 ac_ext=c
3839 ac_cpp='$CPP $CPPFLAGS'
3840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3843
3844 ac_ext=c
3845 ac_cpp='$CPP $CPPFLAGS'
3846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3850 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3851 if ${am_cv_prog_cc_c_o+:} false; then :
3852 $as_echo_n "(cached) " >&6
3853 else
3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3855 /* end confdefs.h. */
3856
3857 int
3858 main ()
3859 {
3860
3861 ;
3862 return 0;
3863 }
3864 _ACEOF
3865 # Make sure it works both with $CC and with simple cc.
3866 # Following AC_PROG_CC_C_O, we do the test twice because some
3867 # compilers refuse to overwrite an existing .o file with -o,
3868 # though they will create one.
3869 am_cv_prog_cc_c_o=yes
3870 for am_i in 1 2; do
3871 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3872 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3873 ac_status=$?
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); } \
3876 && test -f conftest2.$ac_objext; then
3877 : OK
3878 else
3879 am_cv_prog_cc_c_o=no
3880 break
3881 fi
3882 done
3883 rm -f core conftest*
3884 unset am_i
3885 fi
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3887 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3888 if test "$am_cv_prog_cc_c_o" != yes; then
3889 # Losing compiler, so override with the script.
3890 # FIXME: It is wrong to rewrite CC.
3891 # But if we don't then we get into trouble of one sort or another.
3892 # A longer-term fix would be to have automake use am__CC in this case,
3893 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3894 CC="$am_aux_dir/compile $CC"
3895 fi
3896 ac_ext=c
3897 ac_cpp='$CPP $CPPFLAGS'
3898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3901
3902
3903 depcc="$CC" am_compiler_list=
3904
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3906 $as_echo_n "checking dependency style of $depcc... " >&6; }
3907 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3908 $as_echo_n "(cached) " >&6
3909 else
3910 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3911 # We make a subdir and do the tests there. Otherwise we can end up
3912 # making bogus files that we don't know about and never remove. For
3913 # instance it was reported that on HP-UX the gcc test will end up
3914 # making a dummy file named 'D' -- because '-MD' means "put the output
3915 # in D".
3916 rm -rf conftest.dir
3917 mkdir conftest.dir
3918 # Copy depcomp to subdir because otherwise we won't find it if we're
3919 # using a relative directory.
3920 cp "$am_depcomp" conftest.dir
3921 cd conftest.dir
3922 # We will build objects and dependencies in a subdirectory because
3923 # it helps to detect inapplicable dependency modes. For instance
3924 # both Tru64's cc and ICC support -MD to output dependencies as a
3925 # side effect of compilation, but ICC will put the dependencies in
3926 # the current directory while Tru64 will put them in the object
3927 # directory.
3928 mkdir sub
3929
3930 am_cv_CC_dependencies_compiler_type=none
3931 if test "$am_compiler_list" = ""; then
3932 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3933 fi
3934 am__universal=false
3935 case " $depcc " in #(
3936 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3937 esac
3938
3939 for depmode in $am_compiler_list; do
3940 # Setup a source with many dependencies, because some compilers
3941 # like to wrap large dependency lists on column 80 (with \), and
3942 # we should not choose a depcomp mode which is confused by this.
3943 #
3944 # We need to recreate these files for each test, as the compiler may
3945 # overwrite some of them when testing with obscure command lines.
3946 # This happens at least with the AIX C compiler.
3947 : > sub/conftest.c
3948 for i in 1 2 3 4 5 6; do
3949 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3950 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3951 # Solaris 10 /bin/sh.
3952 echo '/* dummy */' > sub/conftst$i.h
3953 done
3954 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3955
3956 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3957 # mode. It turns out that the SunPro C++ compiler does not properly
3958 # handle '-M -o', and we need to detect this. Also, some Intel
3959 # versions had trouble with output in subdirs.
3960 am__obj=sub/conftest.${OBJEXT-o}
3961 am__minus_obj="-o $am__obj"
3962 case $depmode in
3963 gcc)
3964 # This depmode causes a compiler race in universal mode.
3965 test "$am__universal" = false || continue
3966 ;;
3967 nosideeffect)
3968 # After this tag, mechanisms are not by side-effect, so they'll
3969 # only be used when explicitly requested.
3970 if test "x$enable_dependency_tracking" = xyes; then
3971 continue
3972 else
3973 break
3974 fi
3975 ;;
3976 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3977 # This compiler won't grok '-c -o', but also, the minuso test has
3978 # not run yet. These depmodes are late enough in the game, and
3979 # so weak that their functioning should not be impacted.
3980 am__obj=conftest.${OBJEXT-o}
3981 am__minus_obj=
3982 ;;
3983 none) break ;;
3984 esac
3985 if depmode=$depmode \
3986 source=sub/conftest.c object=$am__obj \
3987 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3988 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3989 >/dev/null 2>conftest.err &&
3990 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3991 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3992 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3993 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3994 # icc doesn't choke on unknown options, it will just issue warnings
3995 # or remarks (even with -Werror). So we grep stderr for any message
3996 # that says an option was ignored or not supported.
3997 # When given -MP, icc 7.0 and 7.1 complain thusly:
3998 # icc: Command line warning: ignoring option '-M'; no argument required
3999 # The diagnosis changed in icc 8.0:
4000 # icc: Command line remark: option '-MP' not supported
4001 if (grep 'ignoring option' conftest.err ||
4002 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4003 am_cv_CC_dependencies_compiler_type=$depmode
4004 break
4005 fi
4006 fi
4007 done
4008
4009 cd ..
4010 rm -rf conftest.dir
4011 else
4012 am_cv_CC_dependencies_compiler_type=none
4013 fi
4014
4015 fi
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4017 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4018 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4019
4020 if
4021 test "x$enable_dependency_tracking" != xno \
4022 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4023 am__fastdepCC_TRUE=
4024 am__fastdepCC_FALSE='#'
4025 else
4026 am__fastdepCC_TRUE='#'
4027 am__fastdepCC_FALSE=
4028 fi
4029
4030
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4032 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4033 if ${ac_cv_path_SED+:} false; then :
4034 $as_echo_n "(cached) " >&6
4035 else
4036 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4037 for ac_i in 1 2 3 4 5 6 7; do
4038 ac_script="$ac_script$as_nl$ac_script"
4039 done
4040 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4041 { ac_script=; unset ac_script;}
4042 if test -z "$SED"; then
4043 ac_path_SED_found=false
4044 # Loop through the user's path and test for each of PROGNAME-LIST
4045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046 for as_dir in $PATH
4047 do
4048 IFS=$as_save_IFS
4049 test -z "$as_dir" && as_dir=.
4050 for ac_prog in sed gsed; do
4051 for ac_exec_ext in '' $ac_executable_extensions; do
4052 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4053 as_fn_executable_p "$ac_path_SED" || continue
4054 # Check for GNU ac_path_SED and select it if it is found.
4055 # Check for GNU $ac_path_SED
4056 case `"$ac_path_SED" --version 2>&1` in
4057 *GNU*)
4058 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4059 *)
4060 ac_count=0
4061 $as_echo_n 0123456789 >"conftest.in"
4062 while :
4063 do
4064 cat "conftest.in" "conftest.in" >"conftest.tmp"
4065 mv "conftest.tmp" "conftest.in"
4066 cp "conftest.in" "conftest.nl"
4067 $as_echo '' >> "conftest.nl"
4068 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4069 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4070 as_fn_arith $ac_count + 1 && ac_count=$as_val
4071 if test $ac_count -gt ${ac_path_SED_max-0}; then
4072 # Best one so far, save it but keep looking for a better one
4073 ac_cv_path_SED="$ac_path_SED"
4074 ac_path_SED_max=$ac_count
4075 fi
4076 # 10*(2^10) chars as input seems more than enough
4077 test $ac_count -gt 10 && break
4078 done
4079 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4080 esac
4081
4082 $ac_path_SED_found && break 3
4083 done
4084 done
4085 done
4086 IFS=$as_save_IFS
4087 if test -z "$ac_cv_path_SED"; then
4088 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4089 fi
4090 else
4091 ac_cv_path_SED=$SED
4092 fi
4093
4094 fi
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4096 $as_echo "$ac_cv_path_SED" >&6; }
4097 SED="$ac_cv_path_SED"
4098 rm -f conftest.sed
4099
4100 test -z "$SED" && SED=sed
4101 Xsed="$SED -e 1s/^X//"
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4114 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4115 if ${ac_cv_path_GREP+:} false; then :
4116 $as_echo_n "(cached) " >&6
4117 else
4118 if test -z "$GREP"; then
4119 ac_path_GREP_found=false
4120 # Loop through the user's path and test for each of PROGNAME-LIST
4121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4122 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4123 do
4124 IFS=$as_save_IFS
4125 test -z "$as_dir" && as_dir=.
4126 for ac_prog in grep ggrep; do
4127 for ac_exec_ext in '' $ac_executable_extensions; do
4128 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4129 as_fn_executable_p "$ac_path_GREP" || continue
4130 # Check for GNU ac_path_GREP and select it if it is found.
4131 # Check for GNU $ac_path_GREP
4132 case `"$ac_path_GREP" --version 2>&1` in
4133 *GNU*)
4134 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4135 *)
4136 ac_count=0
4137 $as_echo_n 0123456789 >"conftest.in"
4138 while :
4139 do
4140 cat "conftest.in" "conftest.in" >"conftest.tmp"
4141 mv "conftest.tmp" "conftest.in"
4142 cp "conftest.in" "conftest.nl"
4143 $as_echo 'GREP' >> "conftest.nl"
4144 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4145 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4146 as_fn_arith $ac_count + 1 && ac_count=$as_val
4147 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4148 # Best one so far, save it but keep looking for a better one
4149 ac_cv_path_GREP="$ac_path_GREP"
4150 ac_path_GREP_max=$ac_count
4151 fi
4152 # 10*(2^10) chars as input seems more than enough
4153 test $ac_count -gt 10 && break
4154 done
4155 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4156 esac
4157
4158 $ac_path_GREP_found && break 3
4159 done
4160 done
4161 done
4162 IFS=$as_save_IFS
4163 if test -z "$ac_cv_path_GREP"; then
4164 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4165 fi
4166 else
4167 ac_cv_path_GREP=$GREP
4168 fi
4169
4170 fi
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4172 $as_echo "$ac_cv_path_GREP" >&6; }
4173 GREP="$ac_cv_path_GREP"
4174
4175
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4177 $as_echo_n "checking for egrep... " >&6; }
4178 if ${ac_cv_path_EGREP+:} false; then :
4179 $as_echo_n "(cached) " >&6
4180 else
4181 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4182 then ac_cv_path_EGREP="$GREP -E"
4183 else
4184 if test -z "$EGREP"; then
4185 ac_path_EGREP_found=false
4186 # Loop through the user's path and test for each of PROGNAME-LIST
4187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4189 do
4190 IFS=$as_save_IFS
4191 test -z "$as_dir" && as_dir=.
4192 for ac_prog in egrep; do
4193 for ac_exec_ext in '' $ac_executable_extensions; do
4194 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4195 as_fn_executable_p "$ac_path_EGREP" || continue
4196 # Check for GNU ac_path_EGREP and select it if it is found.
4197 # Check for GNU $ac_path_EGREP
4198 case `"$ac_path_EGREP" --version 2>&1` in
4199 *GNU*)
4200 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4201 *)
4202 ac_count=0
4203 $as_echo_n 0123456789 >"conftest.in"
4204 while :
4205 do
4206 cat "conftest.in" "conftest.in" >"conftest.tmp"
4207 mv "conftest.tmp" "conftest.in"
4208 cp "conftest.in" "conftest.nl"
4209 $as_echo 'EGREP' >> "conftest.nl"
4210 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4211 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4212 as_fn_arith $ac_count + 1 && ac_count=$as_val
4213 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4214 # Best one so far, save it but keep looking for a better one
4215 ac_cv_path_EGREP="$ac_path_EGREP"
4216 ac_path_EGREP_max=$ac_count
4217 fi
4218 # 10*(2^10) chars as input seems more than enough
4219 test $ac_count -gt 10 && break
4220 done
4221 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4222 esac
4223
4224 $ac_path_EGREP_found && break 3
4225 done
4226 done
4227 done
4228 IFS=$as_save_IFS
4229 if test -z "$ac_cv_path_EGREP"; then
4230 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4231 fi
4232 else
4233 ac_cv_path_EGREP=$EGREP
4234 fi
4235
4236 fi
4237 fi
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4239 $as_echo "$ac_cv_path_EGREP" >&6; }
4240 EGREP="$ac_cv_path_EGREP"
4241
4242
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4244 $as_echo_n "checking for fgrep... " >&6; }
4245 if ${ac_cv_path_FGREP+:} false; then :
4246 $as_echo_n "(cached) " >&6
4247 else
4248 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4249 then ac_cv_path_FGREP="$GREP -F"
4250 else
4251 if test -z "$FGREP"; then
4252 ac_path_FGREP_found=false
4253 # Loop through the user's path and test for each of PROGNAME-LIST
4254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4256 do
4257 IFS=$as_save_IFS
4258 test -z "$as_dir" && as_dir=.
4259 for ac_prog in fgrep; do
4260 for ac_exec_ext in '' $ac_executable_extensions; do
4261 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4262 as_fn_executable_p "$ac_path_FGREP" || continue
4263 # Check for GNU ac_path_FGREP and select it if it is found.
4264 # Check for GNU $ac_path_FGREP
4265 case `"$ac_path_FGREP" --version 2>&1` in
4266 *GNU*)
4267 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4268 *)
4269 ac_count=0
4270 $as_echo_n 0123456789 >"conftest.in"
4271 while :
4272 do
4273 cat "conftest.in" "conftest.in" >"conftest.tmp"
4274 mv "conftest.tmp" "conftest.in"
4275 cp "conftest.in" "conftest.nl"
4276 $as_echo 'FGREP' >> "conftest.nl"
4277 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4278 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4279 as_fn_arith $ac_count + 1 && ac_count=$as_val
4280 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4281 # Best one so far, save it but keep looking for a better one
4282 ac_cv_path_FGREP="$ac_path_FGREP"
4283 ac_path_FGREP_max=$ac_count
4284 fi
4285 # 10*(2^10) chars as input seems more than enough
4286 test $ac_count -gt 10 && break
4287 done
4288 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4289 esac
4290
4291 $ac_path_FGREP_found && break 3
4292 done
4293 done
4294 done
4295 IFS=$as_save_IFS
4296 if test -z "$ac_cv_path_FGREP"; then
4297 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4298 fi
4299 else
4300 ac_cv_path_FGREP=$FGREP
4301 fi
4302
4303 fi
4304 fi
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4306 $as_echo "$ac_cv_path_FGREP" >&6; }
4307 FGREP="$ac_cv_path_FGREP"
4308
4309
4310 test -z "$GREP" && GREP=grep
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330 # Check whether --with-gnu-ld was given.
4331 if test "${with_gnu_ld+set}" = set; then :
4332 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4333 else
4334 with_gnu_ld=no
4335 fi
4336
4337 ac_prog=ld
4338 if test "$GCC" = yes; then
4339 # Check if gcc -print-prog-name=ld gives a path.
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4341 $as_echo_n "checking for ld used by $CC... " >&6; }
4342 case $host in
4343 *-*-mingw*)
4344 # gcc leaves a trailing carriage return which upsets mingw
4345 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4346 *)
4347 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4348 esac
4349 case $ac_prog in
4350 # Accept absolute paths.
4351 [\\/]* | ?:[\\/]*)
4352 re_direlt='/[^/][^/]*/\.\./'
4353 # Canonicalize the pathname of ld
4354 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4355 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4356 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4357 done
4358 test -z "$LD" && LD="$ac_prog"
4359 ;;
4360 "")
4361 # If it fails, then pretend we aren't using GCC.
4362 ac_prog=ld
4363 ;;
4364 *)
4365 # If it is relative, then search for the first ld in PATH.
4366 with_gnu_ld=unknown
4367 ;;
4368 esac
4369 elif test "$with_gnu_ld" = yes; then
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4371 $as_echo_n "checking for GNU ld... " >&6; }
4372 else
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4374 $as_echo_n "checking for non-GNU ld... " >&6; }
4375 fi
4376 if ${lt_cv_path_LD+:} false; then :
4377 $as_echo_n "(cached) " >&6
4378 else
4379 if test -z "$LD"; then
4380 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4381 for ac_dir in $PATH; do
4382 IFS="$lt_save_ifs"
4383 test -z "$ac_dir" && ac_dir=.
4384 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4385 lt_cv_path_LD="$ac_dir/$ac_prog"
4386 # Check to see if the program is GNU ld. I'd rather use --version,
4387 # but apparently some variants of GNU ld only accept -v.
4388 # Break only if it was the GNU/non-GNU ld that we prefer.
4389 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4390 *GNU* | *'with BFD'*)
4391 test "$with_gnu_ld" != no && break
4392 ;;
4393 *)
4394 test "$with_gnu_ld" != yes && break
4395 ;;
4396 esac
4397 fi
4398 done
4399 IFS="$lt_save_ifs"
4400 else
4401 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4402 fi
4403 fi
4404
4405 LD="$lt_cv_path_LD"
4406 if test -n "$LD"; then
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4408 $as_echo "$LD" >&6; }
4409 else
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4411 $as_echo "no" >&6; }
4412 fi
4413 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4415 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4416 if ${lt_cv_prog_gnu_ld+:} false; then :
4417 $as_echo_n "(cached) " >&6
4418 else
4419 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4420 case `$LD -v 2>&1 </dev/null` in
4421 *GNU* | *'with BFD'*)
4422 lt_cv_prog_gnu_ld=yes
4423 ;;
4424 *)
4425 lt_cv_prog_gnu_ld=no
4426 ;;
4427 esac
4428 fi
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4430 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4431 with_gnu_ld=$lt_cv_prog_gnu_ld
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4442 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4443 if ${lt_cv_path_NM+:} false; then :
4444 $as_echo_n "(cached) " >&6
4445 else
4446 if test -n "$NM"; then
4447 # Let the user override the test.
4448 lt_cv_path_NM="$NM"
4449 else
4450 lt_nm_to_check="${ac_tool_prefix}nm"
4451 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4452 lt_nm_to_check="$lt_nm_to_check nm"
4453 fi
4454 for lt_tmp_nm in $lt_nm_to_check; do
4455 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4456 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4457 IFS="$lt_save_ifs"
4458 test -z "$ac_dir" && ac_dir=.
4459 tmp_nm="$ac_dir/$lt_tmp_nm"
4460 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4461 # Check to see if the nm accepts a BSD-compat flag.
4462 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4463 # nm: unknown option "B" ignored
4464 # Tru64's nm complains that /dev/null is an invalid object file
4465 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4466 */dev/null* | *'Invalid file or object type'*)
4467 lt_cv_path_NM="$tmp_nm -B"
4468 break
4469 ;;
4470 *)
4471 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4472 */dev/null*)
4473 lt_cv_path_NM="$tmp_nm -p"
4474 break
4475 ;;
4476 *)
4477 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4478 continue # so that we can try to find one that supports BSD flags
4479 ;;
4480 esac
4481 ;;
4482 esac
4483 fi
4484 done
4485 IFS="$lt_save_ifs"
4486 done
4487 : ${lt_cv_path_NM=no}
4488 fi
4489 fi
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4491 $as_echo "$lt_cv_path_NM" >&6; }
4492 if test "$lt_cv_path_NM" != "no"; then
4493 NM="$lt_cv_path_NM"
4494 else
4495 # Didn't find any BSD compatible name lister, look for dumpbin.
4496 if test -n "$DUMPBIN"; then :
4497 # Let the user override the test.
4498 else
4499 if test -n "$ac_tool_prefix"; then
4500 for ac_prog in dumpbin "link -dump"
4501 do
4502 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4503 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4505 $as_echo_n "checking for $ac_word... " >&6; }
4506 if ${ac_cv_prog_DUMPBIN+:} false; then :
4507 $as_echo_n "(cached) " >&6
4508 else
4509 if test -n "$DUMPBIN"; then
4510 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4511 else
4512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513 for as_dir in $PATH
4514 do
4515 IFS=$as_save_IFS
4516 test -z "$as_dir" && as_dir=.
4517 for ac_exec_ext in '' $ac_executable_extensions; do
4518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4519 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4521 break 2
4522 fi
4523 done
4524 done
4525 IFS=$as_save_IFS
4526
4527 fi
4528 fi
4529 DUMPBIN=$ac_cv_prog_DUMPBIN
4530 if test -n "$DUMPBIN"; then
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4532 $as_echo "$DUMPBIN" >&6; }
4533 else
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4535 $as_echo "no" >&6; }
4536 fi
4537
4538
4539 test -n "$DUMPBIN" && break
4540 done
4541 fi
4542 if test -z "$DUMPBIN"; then
4543 ac_ct_DUMPBIN=$DUMPBIN
4544 for ac_prog in dumpbin "link -dump"
4545 do
4546 # Extract the first word of "$ac_prog", so it can be a program name with args.
4547 set dummy $ac_prog; ac_word=$2
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4549 $as_echo_n "checking for $ac_word... " >&6; }
4550 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4551 $as_echo_n "(cached) " >&6
4552 else
4553 if test -n "$ac_ct_DUMPBIN"; then
4554 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4555 else
4556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557 for as_dir in $PATH
4558 do
4559 IFS=$as_save_IFS
4560 test -z "$as_dir" && as_dir=.
4561 for ac_exec_ext in '' $ac_executable_extensions; do
4562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4563 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4565 break 2
4566 fi
4567 done
4568 done
4569 IFS=$as_save_IFS
4570
4571 fi
4572 fi
4573 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4574 if test -n "$ac_ct_DUMPBIN"; then
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4576 $as_echo "$ac_ct_DUMPBIN" >&6; }
4577 else
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4579 $as_echo "no" >&6; }
4580 fi
4581
4582
4583 test -n "$ac_ct_DUMPBIN" && break
4584 done
4585
4586 if test "x$ac_ct_DUMPBIN" = x; then
4587 DUMPBIN=":"
4588 else
4589 case $cross_compiling:$ac_tool_warned in
4590 yes:)
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4592 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4593 ac_tool_warned=yes ;;
4594 esac
4595 DUMPBIN=$ac_ct_DUMPBIN
4596 fi
4597 fi
4598
4599 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4600 *COFF*)
4601 DUMPBIN="$DUMPBIN -symbols"
4602 ;;
4603 *)
4604 DUMPBIN=:
4605 ;;
4606 esac
4607 fi
4608
4609 if test "$DUMPBIN" != ":"; then
4610 NM="$DUMPBIN"
4611 fi
4612 fi
4613 test -z "$NM" && NM=nm
4614
4615
4616
4617
4618
4619
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4621 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4622 if ${lt_cv_nm_interface+:} false; then :
4623 $as_echo_n "(cached) " >&6
4624 else
4625 lt_cv_nm_interface="BSD nm"
4626 echo "int some_variable = 0;" > conftest.$ac_ext
4627 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4628 (eval "$ac_compile" 2>conftest.err)
4629 cat conftest.err >&5
4630 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4631 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4632 cat conftest.err >&5
4633 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4634 cat conftest.out >&5
4635 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4636 lt_cv_nm_interface="MS dumpbin"
4637 fi
4638 rm -f conftest*
4639 fi
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4641 $as_echo "$lt_cv_nm_interface" >&6; }
4642
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4644 $as_echo_n "checking whether ln -s works... " >&6; }
4645 LN_S=$as_ln_s
4646 if test "$LN_S" = "ln -s"; then
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4648 $as_echo "yes" >&6; }
4649 else
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4651 $as_echo "no, using $LN_S" >&6; }
4652 fi
4653
4654 # find the maximum length of command line arguments
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4656 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4657 if ${lt_cv_sys_max_cmd_len+:} false; then :
4658 $as_echo_n "(cached) " >&6
4659 else
4660 i=0
4661 teststring="ABCD"
4662
4663 case $build_os in
4664 msdosdjgpp*)
4665 # On DJGPP, this test can blow up pretty badly due to problems in libc
4666 # (any single argument exceeding 2000 bytes causes a buffer overrun
4667 # during glob expansion). Even if it were fixed, the result of this
4668 # check would be larger than it should be.
4669 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4670 ;;
4671
4672 gnu*)
4673 # Under GNU Hurd, this test is not required because there is
4674 # no limit to the length of command line arguments.
4675 # Libtool will interpret -1 as no limit whatsoever
4676 lt_cv_sys_max_cmd_len=-1;
4677 ;;
4678
4679 cygwin* | mingw* | cegcc*)
4680 # On Win9x/ME, this test blows up -- it succeeds, but takes
4681 # about 5 minutes as the teststring grows exponentially.
4682 # Worse, since 9x/ME are not pre-emptively multitasking,
4683 # you end up with a "frozen" computer, even though with patience
4684 # the test eventually succeeds (with a max line length of 256k).
4685 # Instead, let's just punt: use the minimum linelength reported by
4686 # all of the supported platforms: 8192 (on NT/2K/XP).
4687 lt_cv_sys_max_cmd_len=8192;
4688 ;;
4689
4690 mint*)
4691 # On MiNT this can take a long time and run out of memory.
4692 lt_cv_sys_max_cmd_len=8192;
4693 ;;
4694
4695 amigaos*)
4696 # On AmigaOS with pdksh, this test takes hours, literally.
4697 # So we just punt and use a minimum line length of 8192.
4698 lt_cv_sys_max_cmd_len=8192;
4699 ;;
4700
4701 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4702 # This has been around since 386BSD, at least. Likely further.
4703 if test -x /sbin/sysctl; then
4704 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4705 elif test -x /usr/sbin/sysctl; then
4706 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4707 else
4708 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4709 fi
4710 # And add a safety zone
4711 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4712 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4713 ;;
4714
4715 interix*)
4716 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4717 lt_cv_sys_max_cmd_len=196608
4718 ;;
4719
4720 os2*)
4721 # The test takes a long time on OS/2.
4722 lt_cv_sys_max_cmd_len=8192
4723 ;;
4724
4725 osf*)
4726 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4727 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4728 # nice to cause kernel panics so lets avoid the loop below.
4729 # First set a reasonable default.
4730 lt_cv_sys_max_cmd_len=16384
4731 #
4732 if test -x /sbin/sysconfig; then
4733 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4734 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4735 esac
4736 fi
4737 ;;
4738 sco3.2v5*)
4739 lt_cv_sys_max_cmd_len=102400
4740 ;;
4741 sysv5* | sco5v6* | sysv4.2uw2*)
4742 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4743 if test -n "$kargmax"; then
4744 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4745 else
4746 lt_cv_sys_max_cmd_len=32768
4747 fi
4748 ;;
4749 *)
4750 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4751 if test -n "$lt_cv_sys_max_cmd_len" && \
4752 test undefined != "$lt_cv_sys_max_cmd_len"; then
4753 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4754 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4755 else
4756 # Make teststring a little bigger before we do anything with it.
4757 # a 1K string should be a reasonable start.
4758 for i in 1 2 3 4 5 6 7 8 ; do
4759 teststring=$teststring$teststring
4760 done
4761 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4762 # If test is not a shell built-in, we'll probably end up computing a
4763 # maximum length that is only half of the actual maximum length, but
4764 # we can't tell.
4765 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4766 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4767 test $i != 17 # 1/2 MB should be enough
4768 do
4769 i=`expr $i + 1`
4770 teststring=$teststring$teststring
4771 done
4772 # Only check the string length outside the loop.
4773 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4774 teststring=
4775 # Add a significant safety factor because C++ compilers can tack on
4776 # massive amounts of additional arguments before passing them to the
4777 # linker. It appears as though 1/2 is a usable value.
4778 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4779 fi
4780 ;;
4781 esac
4782
4783 fi
4784
4785 if test -n $lt_cv_sys_max_cmd_len ; then
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4787 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4788 else
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4790 $as_echo "none" >&6; }
4791 fi
4792 max_cmd_len=$lt_cv_sys_max_cmd_len
4793
4794
4795
4796
4797
4798
4799 : ${CP="cp -f"}
4800 : ${MV="mv -f"}
4801 : ${RM="rm -f"}
4802
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4804 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4805 # Try some XSI features
4806 xsi_shell=no
4807 ( _lt_dummy="a/b/c"
4808 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4809 = c,a/b,b/c, \
4810 && eval 'test $(( 1 + 1 )) -eq 2 \
4811 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4812 && xsi_shell=yes
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4814 $as_echo "$xsi_shell" >&6; }
4815
4816
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4818 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4819 lt_shell_append=no
4820 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4821 >/dev/null 2>&1 \
4822 && lt_shell_append=yes
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4824 $as_echo "$lt_shell_append" >&6; }
4825
4826
4827 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4828 lt_unset=unset
4829 else
4830 lt_unset=false
4831 fi
4832
4833
4834
4835
4836
4837 # test EBCDIC or ASCII
4838 case `echo X|tr X '\101'` in
4839 A) # ASCII based system
4840 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4841 lt_SP2NL='tr \040 \012'
4842 lt_NL2SP='tr \015\012 \040\040'
4843 ;;
4844 *) # EBCDIC based system
4845 lt_SP2NL='tr \100 \n'
4846 lt_NL2SP='tr \r\n \100\100'
4847 ;;
4848 esac
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4859 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4860 if ${lt_cv_to_host_file_cmd+:} false; then :
4861 $as_echo_n "(cached) " >&6
4862 else
4863 case $host in
4864 *-*-mingw* )
4865 case $build in
4866 *-*-mingw* ) # actually msys
4867 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4868 ;;
4869 *-*-cygwin* )
4870 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4871 ;;
4872 * ) # otherwise, assume *nix
4873 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4874 ;;
4875 esac
4876 ;;
4877 *-*-cygwin* )
4878 case $build in
4879 *-*-mingw* ) # actually msys
4880 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4881 ;;
4882 *-*-cygwin* )
4883 lt_cv_to_host_file_cmd=func_convert_file_noop
4884 ;;
4885 * ) # otherwise, assume *nix
4886 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4887 ;;
4888 esac
4889 ;;
4890 * ) # unhandled hosts (and "normal" native builds)
4891 lt_cv_to_host_file_cmd=func_convert_file_noop
4892 ;;
4893 esac
4894
4895 fi
4896
4897 to_host_file_cmd=$lt_cv_to_host_file_cmd
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4899 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4900
4901
4902
4903
4904
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4906 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4907 if ${lt_cv_to_tool_file_cmd+:} false; then :
4908 $as_echo_n "(cached) " >&6
4909 else
4910 #assume ordinary cross tools, or native build.
4911 lt_cv_to_tool_file_cmd=func_convert_file_noop
4912 case $host in
4913 *-*-mingw* )
4914 case $build in
4915 *-*-mingw* ) # actually msys
4916 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4917 ;;
4918 esac
4919 ;;
4920 esac
4921
4922 fi
4923
4924 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4926 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4927
4928
4929
4930
4931
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4933 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4934 if ${lt_cv_ld_reload_flag+:} false; then :
4935 $as_echo_n "(cached) " >&6
4936 else
4937 lt_cv_ld_reload_flag='-r'
4938 fi
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4940 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4941 reload_flag=$lt_cv_ld_reload_flag
4942 case $reload_flag in
4943 "" | " "*) ;;
4944 *) reload_flag=" $reload_flag" ;;
4945 esac
4946 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4947 case $host_os in
4948 cygwin* | mingw* | pw32* | cegcc*)
4949 if test "$GCC" != yes; then
4950 reload_cmds=false
4951 fi
4952 ;;
4953 darwin*)
4954 if test "$GCC" = yes; then
4955 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4956 else
4957 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4958 fi
4959 ;;
4960 esac
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970 if test -n "$ac_tool_prefix"; then
4971 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4972 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4974 $as_echo_n "checking for $ac_word... " >&6; }
4975 if ${ac_cv_prog_OBJDUMP+:} false; then :
4976 $as_echo_n "(cached) " >&6
4977 else
4978 if test -n "$OBJDUMP"; then
4979 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4980 else
4981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4982 for as_dir in $PATH
4983 do
4984 IFS=$as_save_IFS
4985 test -z "$as_dir" && as_dir=.
4986 for ac_exec_ext in '' $ac_executable_extensions; do
4987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4988 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4990 break 2
4991 fi
4992 done
4993 done
4994 IFS=$as_save_IFS
4995
4996 fi
4997 fi
4998 OBJDUMP=$ac_cv_prog_OBJDUMP
4999 if test -n "$OBJDUMP"; then
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5001 $as_echo "$OBJDUMP" >&6; }
5002 else
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5004 $as_echo "no" >&6; }
5005 fi
5006
5007
5008 fi
5009 if test -z "$ac_cv_prog_OBJDUMP"; then
5010 ac_ct_OBJDUMP=$OBJDUMP
5011 # Extract the first word of "objdump", so it can be a program name with args.
5012 set dummy objdump; ac_word=$2
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5014 $as_echo_n "checking for $ac_word... " >&6; }
5015 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5016 $as_echo_n "(cached) " >&6
5017 else
5018 if test -n "$ac_ct_OBJDUMP"; then
5019 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5020 else
5021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022 for as_dir in $PATH
5023 do
5024 IFS=$as_save_IFS
5025 test -z "$as_dir" && as_dir=.
5026 for ac_exec_ext in '' $ac_executable_extensions; do
5027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5028 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5030 break 2
5031 fi
5032 done
5033 done
5034 IFS=$as_save_IFS
5035
5036 fi
5037 fi
5038 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5039 if test -n "$ac_ct_OBJDUMP"; then
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5041 $as_echo "$ac_ct_OBJDUMP" >&6; }
5042 else
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5044 $as_echo "no" >&6; }
5045 fi
5046
5047 if test "x$ac_ct_OBJDUMP" = x; then
5048 OBJDUMP="false"
5049 else
5050 case $cross_compiling:$ac_tool_warned in
5051 yes:)
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5054 ac_tool_warned=yes ;;
5055 esac
5056 OBJDUMP=$ac_ct_OBJDUMP
5057 fi
5058 else
5059 OBJDUMP="$ac_cv_prog_OBJDUMP"
5060 fi
5061
5062 test -z "$OBJDUMP" && OBJDUMP=objdump
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5073 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5074 if ${lt_cv_deplibs_check_method+:} false; then :
5075 $as_echo_n "(cached) " >&6
5076 else
5077 lt_cv_file_magic_cmd='$MAGIC_CMD'
5078 lt_cv_file_magic_test_file=
5079 lt_cv_deplibs_check_method='unknown'
5080 # Need to set the preceding variable on all platforms that support
5081 # interlibrary dependencies.
5082 # 'none' -- dependencies not supported.
5083 # `unknown' -- same as none, but documents that we really don't know.
5084 # 'pass_all' -- all dependencies passed with no checks.
5085 # 'test_compile' -- check by making test program.
5086 # 'file_magic [[regex]]' -- check by looking for files in library path
5087 # which responds to the $file_magic_cmd with a given extended regex.
5088 # If you have `file' or equivalent on your system and you're not sure
5089 # whether `pass_all' will *always* work, you probably want this one.
5090
5091 case $host_os in
5092 aix[4-9]*)
5093 lt_cv_deplibs_check_method=pass_all
5094 ;;
5095
5096 beos*)
5097 lt_cv_deplibs_check_method=pass_all
5098 ;;
5099
5100 bsdi[45]*)
5101 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5102 lt_cv_file_magic_cmd='/usr/bin/file -L'
5103 lt_cv_file_magic_test_file=/shlib/libc.so
5104 ;;
5105
5106 cygwin*)
5107 # func_win32_libid is a shell function defined in ltmain.sh
5108 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5109 lt_cv_file_magic_cmd='func_win32_libid'
5110 ;;
5111
5112 mingw* | pw32*)
5113 # Base MSYS/MinGW do not provide the 'file' command needed by
5114 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5115 # unless we find 'file', for example because we are cross-compiling.
5116 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5117 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5118 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5119 lt_cv_file_magic_cmd='func_win32_libid'
5120 else
5121 # Keep this pattern in sync with the one in func_win32_libid.
5122 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5123 lt_cv_file_magic_cmd='$OBJDUMP -f'
5124 fi
5125 ;;
5126
5127 cegcc*)
5128 # use the weaker test based on 'objdump'. See mingw*.
5129 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5130 lt_cv_file_magic_cmd='$OBJDUMP -f'
5131 ;;
5132
5133 darwin* | rhapsody*)
5134 lt_cv_deplibs_check_method=pass_all
5135 ;;
5136
5137 freebsd* | dragonfly*)
5138 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5139 case $host_cpu in
5140 i*86 )
5141 # Not sure whether the presence of OpenBSD here was a mistake.
5142 # Let's accept both of them until this is cleared up.
5143 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5144 lt_cv_file_magic_cmd=/usr/bin/file
5145 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5146 ;;
5147 esac
5148 else
5149 lt_cv_deplibs_check_method=pass_all
5150 fi
5151 ;;
5152
5153 haiku*)
5154 lt_cv_deplibs_check_method=pass_all
5155 ;;
5156
5157 hpux10.20* | hpux11*)
5158 lt_cv_file_magic_cmd=/usr/bin/file
5159 case $host_cpu in
5160 ia64*)
5161 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5162 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5163 ;;
5164 hppa*64*)
5165 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]'
5166 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5167 ;;
5168 *)
5169 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5170 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5171 ;;
5172 esac
5173 ;;
5174
5175 interix[3-9]*)
5176 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5177 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5178 ;;
5179
5180 irix5* | irix6* | nonstopux*)
5181 case $LD in
5182 *-32|*"-32 ") libmagic=32-bit;;
5183 *-n32|*"-n32 ") libmagic=N32;;
5184 *-64|*"-64 ") libmagic=64-bit;;
5185 *) libmagic=never-match;;
5186 esac
5187 lt_cv_deplibs_check_method=pass_all
5188 ;;
5189
5190 # This must be glibc/ELF.
5191 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5192 lt_cv_deplibs_check_method=pass_all
5193 ;;
5194
5195 netbsd* | netbsdelf*-gnu)
5196 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5197 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5198 else
5199 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5200 fi
5201 ;;
5202
5203 newos6*)
5204 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5205 lt_cv_file_magic_cmd=/usr/bin/file
5206 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5207 ;;
5208
5209 *nto* | *qnx*)
5210 lt_cv_deplibs_check_method=pass_all
5211 ;;
5212
5213 openbsd*)
5214 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5215 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5216 else
5217 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5218 fi
5219 ;;
5220
5221 osf3* | osf4* | osf5*)
5222 lt_cv_deplibs_check_method=pass_all
5223 ;;
5224
5225 rdos*)
5226 lt_cv_deplibs_check_method=pass_all
5227 ;;
5228
5229 solaris*)
5230 lt_cv_deplibs_check_method=pass_all
5231 ;;
5232
5233 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5234 lt_cv_deplibs_check_method=pass_all
5235 ;;
5236
5237 sysv4 | sysv4.3*)
5238 case $host_vendor in
5239 motorola)
5240 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]'
5241 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5242 ;;
5243 ncr)
5244 lt_cv_deplibs_check_method=pass_all
5245 ;;
5246 sequent)
5247 lt_cv_file_magic_cmd='/bin/file'
5248 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5249 ;;
5250 sni)
5251 lt_cv_file_magic_cmd='/bin/file'
5252 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5253 lt_cv_file_magic_test_file=/lib/libc.so
5254 ;;
5255 siemens)
5256 lt_cv_deplibs_check_method=pass_all
5257 ;;
5258 pc)
5259 lt_cv_deplibs_check_method=pass_all
5260 ;;
5261 esac
5262 ;;
5263
5264 tpf*)
5265 lt_cv_deplibs_check_method=pass_all
5266 ;;
5267 esac
5268
5269 fi
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5271 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5272
5273 file_magic_glob=
5274 want_nocaseglob=no
5275 if test "$build" = "$host"; then
5276 case $host_os in
5277 mingw* | pw32*)
5278 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5279 want_nocaseglob=yes
5280 else
5281 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5282 fi
5283 ;;
5284 esac
5285 fi
5286
5287 file_magic_cmd=$lt_cv_file_magic_cmd
5288 deplibs_check_method=$lt_cv_deplibs_check_method
5289 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312 if test -n "$ac_tool_prefix"; then
5313 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5314 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5316 $as_echo_n "checking for $ac_word... " >&6; }
5317 if ${ac_cv_prog_DLLTOOL+:} false; then :
5318 $as_echo_n "(cached) " >&6
5319 else
5320 if test -n "$DLLTOOL"; then
5321 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5322 else
5323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324 for as_dir in $PATH
5325 do
5326 IFS=$as_save_IFS
5327 test -z "$as_dir" && as_dir=.
5328 for ac_exec_ext in '' $ac_executable_extensions; do
5329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5330 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5332 break 2
5333 fi
5334 done
5335 done
5336 IFS=$as_save_IFS
5337
5338 fi
5339 fi
5340 DLLTOOL=$ac_cv_prog_DLLTOOL
5341 if test -n "$DLLTOOL"; then
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5343 $as_echo "$DLLTOOL" >&6; }
5344 else
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5346 $as_echo "no" >&6; }
5347 fi
5348
5349
5350 fi
5351 if test -z "$ac_cv_prog_DLLTOOL"; then
5352 ac_ct_DLLTOOL=$DLLTOOL
5353 # Extract the first word of "dlltool", so it can be a program name with args.
5354 set dummy dlltool; ac_word=$2
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5356 $as_echo_n "checking for $ac_word... " >&6; }
5357 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5358 $as_echo_n "(cached) " >&6
5359 else
5360 if test -n "$ac_ct_DLLTOOL"; then
5361 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5362 else
5363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364 for as_dir in $PATH
5365 do
5366 IFS=$as_save_IFS
5367 test -z "$as_dir" && as_dir=.
5368 for ac_exec_ext in '' $ac_executable_extensions; do
5369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5370 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5372 break 2
5373 fi
5374 done
5375 done
5376 IFS=$as_save_IFS
5377
5378 fi
5379 fi
5380 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5381 if test -n "$ac_ct_DLLTOOL"; then
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5383 $as_echo "$ac_ct_DLLTOOL" >&6; }
5384 else
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5386 $as_echo "no" >&6; }
5387 fi
5388
5389 if test "x$ac_ct_DLLTOOL" = x; then
5390 DLLTOOL="false"
5391 else
5392 case $cross_compiling:$ac_tool_warned in
5393 yes:)
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5396 ac_tool_warned=yes ;;
5397 esac
5398 DLLTOOL=$ac_ct_DLLTOOL
5399 fi
5400 else
5401 DLLTOOL="$ac_cv_prog_DLLTOOL"
5402 fi
5403
5404 test -z "$DLLTOOL" && DLLTOOL=dlltool
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5416 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5417 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5418 $as_echo_n "(cached) " >&6
5419 else
5420 lt_cv_sharedlib_from_linklib_cmd='unknown'
5421
5422 case $host_os in
5423 cygwin* | mingw* | pw32* | cegcc*)
5424 # two different shell functions defined in ltmain.sh
5425 # decide which to use based on capabilities of $DLLTOOL
5426 case `$DLLTOOL --help 2>&1` in
5427 *--identify-strict*)
5428 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5429 ;;
5430 *)
5431 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5432 ;;
5433 esac
5434 ;;
5435 *)
5436 # fallback: assume linklib IS sharedlib
5437 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5438 ;;
5439 esac
5440
5441 fi
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5443 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5444 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5445 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5446
5447
5448
5449
5450
5451
5452
5453
5454 if test -n "$ac_tool_prefix"; then
5455 for ac_prog in ar
5456 do
5457 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5458 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5460 $as_echo_n "checking for $ac_word... " >&6; }
5461 if ${ac_cv_prog_AR+:} false; then :
5462 $as_echo_n "(cached) " >&6
5463 else
5464 if test -n "$AR"; then
5465 ac_cv_prog_AR="$AR" # Let the user override the test.
5466 else
5467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468 for as_dir in $PATH
5469 do
5470 IFS=$as_save_IFS
5471 test -z "$as_dir" && as_dir=.
5472 for ac_exec_ext in '' $ac_executable_extensions; do
5473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5474 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5476 break 2
5477 fi
5478 done
5479 done
5480 IFS=$as_save_IFS
5481
5482 fi
5483 fi
5484 AR=$ac_cv_prog_AR
5485 if test -n "$AR"; then
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5487 $as_echo "$AR" >&6; }
5488 else
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5490 $as_echo "no" >&6; }
5491 fi
5492
5493
5494 test -n "$AR" && break
5495 done
5496 fi
5497 if test -z "$AR"; then
5498 ac_ct_AR=$AR
5499 for ac_prog in ar
5500 do
5501 # Extract the first word of "$ac_prog", so it can be a program name with args.
5502 set dummy $ac_prog; ac_word=$2
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5504 $as_echo_n "checking for $ac_word... " >&6; }
5505 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5506 $as_echo_n "(cached) " >&6
5507 else
5508 if test -n "$ac_ct_AR"; then
5509 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5510 else
5511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512 for as_dir in $PATH
5513 do
5514 IFS=$as_save_IFS
5515 test -z "$as_dir" && as_dir=.
5516 for ac_exec_ext in '' $ac_executable_extensions; do
5517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5518 ac_cv_prog_ac_ct_AR="$ac_prog"
5519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5520 break 2
5521 fi
5522 done
5523 done
5524 IFS=$as_save_IFS
5525
5526 fi
5527 fi
5528 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5529 if test -n "$ac_ct_AR"; then
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5531 $as_echo "$ac_ct_AR" >&6; }
5532 else
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5534 $as_echo "no" >&6; }
5535 fi
5536
5537
5538 test -n "$ac_ct_AR" && break
5539 done
5540
5541 if test "x$ac_ct_AR" = x; then
5542 AR="false"
5543 else
5544 case $cross_compiling:$ac_tool_warned in
5545 yes:)
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5547 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5548 ac_tool_warned=yes ;;
5549 esac
5550 AR=$ac_ct_AR
5551 fi
5552 fi
5553
5554 : ${AR=ar}
5555 : ${AR_FLAGS=cru}
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5568 $as_echo_n "checking for archiver @FILE support... " >&6; }
5569 if ${lt_cv_ar_at_file+:} false; then :
5570 $as_echo_n "(cached) " >&6
5571 else
5572 lt_cv_ar_at_file=no
5573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h. */
5575
5576 int
5577 main ()
5578 {
5579
5580 ;
5581 return 0;
5582 }
5583 _ACEOF
5584 if ac_fn_c_try_compile "$LINENO"; then :
5585 echo conftest.$ac_objext > conftest.lst
5586 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5587 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5588 (eval $lt_ar_try) 2>&5
5589 ac_status=$?
5590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5591 test $ac_status = 0; }
5592 if test "$ac_status" -eq 0; then
5593 # Ensure the archiver fails upon bogus file names.
5594 rm -f conftest.$ac_objext libconftest.a
5595 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5596 (eval $lt_ar_try) 2>&5
5597 ac_status=$?
5598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5599 test $ac_status = 0; }
5600 if test "$ac_status" -ne 0; then
5601 lt_cv_ar_at_file=@
5602 fi
5603 fi
5604 rm -f conftest.* libconftest.a
5605
5606 fi
5607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5608
5609 fi
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5611 $as_echo "$lt_cv_ar_at_file" >&6; }
5612
5613 if test "x$lt_cv_ar_at_file" = xno; then
5614 archiver_list_spec=
5615 else
5616 archiver_list_spec=$lt_cv_ar_at_file
5617 fi
5618
5619
5620
5621
5622
5623
5624
5625 if test -n "$ac_tool_prefix"; then
5626 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5627 set dummy ${ac_tool_prefix}strip; ac_word=$2
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5629 $as_echo_n "checking for $ac_word... " >&6; }
5630 if ${ac_cv_prog_STRIP+:} false; then :
5631 $as_echo_n "(cached) " >&6
5632 else
5633 if test -n "$STRIP"; then
5634 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5635 else
5636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5637 for as_dir in $PATH
5638 do
5639 IFS=$as_save_IFS
5640 test -z "$as_dir" && as_dir=.
5641 for ac_exec_ext in '' $ac_executable_extensions; do
5642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5643 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5645 break 2
5646 fi
5647 done
5648 done
5649 IFS=$as_save_IFS
5650
5651 fi
5652 fi
5653 STRIP=$ac_cv_prog_STRIP
5654 if test -n "$STRIP"; then
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5656 $as_echo "$STRIP" >&6; }
5657 else
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5659 $as_echo "no" >&6; }
5660 fi
5661
5662
5663 fi
5664 if test -z "$ac_cv_prog_STRIP"; then
5665 ac_ct_STRIP=$STRIP
5666 # Extract the first word of "strip", so it can be a program name with args.
5667 set dummy strip; ac_word=$2
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5669 $as_echo_n "checking for $ac_word... " >&6; }
5670 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5671 $as_echo_n "(cached) " >&6
5672 else
5673 if test -n "$ac_ct_STRIP"; then
5674 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5675 else
5676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677 for as_dir in $PATH
5678 do
5679 IFS=$as_save_IFS
5680 test -z "$as_dir" && as_dir=.
5681 for ac_exec_ext in '' $ac_executable_extensions; do
5682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5683 ac_cv_prog_ac_ct_STRIP="strip"
5684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5685 break 2
5686 fi
5687 done
5688 done
5689 IFS=$as_save_IFS
5690
5691 fi
5692 fi
5693 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5694 if test -n "$ac_ct_STRIP"; then
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5696 $as_echo "$ac_ct_STRIP" >&6; }
5697 else
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5699 $as_echo "no" >&6; }
5700 fi
5701
5702 if test "x$ac_ct_STRIP" = x; then
5703 STRIP=":"
5704 else
5705 case $cross_compiling:$ac_tool_warned in
5706 yes:)
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5708 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5709 ac_tool_warned=yes ;;
5710 esac
5711 STRIP=$ac_ct_STRIP
5712 fi
5713 else
5714 STRIP="$ac_cv_prog_STRIP"
5715 fi
5716
5717 test -z "$STRIP" && STRIP=:
5718
5719
5720
5721
5722
5723
5724 if test -n "$ac_tool_prefix"; then
5725 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5726 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5728 $as_echo_n "checking for $ac_word... " >&6; }
5729 if ${ac_cv_prog_RANLIB+:} false; then :
5730 $as_echo_n "(cached) " >&6
5731 else
5732 if test -n "$RANLIB"; then
5733 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5734 else
5735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5736 for as_dir in $PATH
5737 do
5738 IFS=$as_save_IFS
5739 test -z "$as_dir" && as_dir=.
5740 for ac_exec_ext in '' $ac_executable_extensions; do
5741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5742 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5744 break 2
5745 fi
5746 done
5747 done
5748 IFS=$as_save_IFS
5749
5750 fi
5751 fi
5752 RANLIB=$ac_cv_prog_RANLIB
5753 if test -n "$RANLIB"; then
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5755 $as_echo "$RANLIB" >&6; }
5756 else
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5758 $as_echo "no" >&6; }
5759 fi
5760
5761
5762 fi
5763 if test -z "$ac_cv_prog_RANLIB"; then
5764 ac_ct_RANLIB=$RANLIB
5765 # Extract the first word of "ranlib", so it can be a program name with args.
5766 set dummy ranlib; ac_word=$2
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5768 $as_echo_n "checking for $ac_word... " >&6; }
5769 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5770 $as_echo_n "(cached) " >&6
5771 else
5772 if test -n "$ac_ct_RANLIB"; then
5773 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5774 else
5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776 for as_dir in $PATH
5777 do
5778 IFS=$as_save_IFS
5779 test -z "$as_dir" && as_dir=.
5780 for ac_exec_ext in '' $ac_executable_extensions; do
5781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5782 ac_cv_prog_ac_ct_RANLIB="ranlib"
5783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5784 break 2
5785 fi
5786 done
5787 done
5788 IFS=$as_save_IFS
5789
5790 fi
5791 fi
5792 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5793 if test -n "$ac_ct_RANLIB"; then
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5795 $as_echo "$ac_ct_RANLIB" >&6; }
5796 else
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5798 $as_echo "no" >&6; }
5799 fi
5800
5801 if test "x$ac_ct_RANLIB" = x; then
5802 RANLIB=":"
5803 else
5804 case $cross_compiling:$ac_tool_warned in
5805 yes:)
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5808 ac_tool_warned=yes ;;
5809 esac
5810 RANLIB=$ac_ct_RANLIB
5811 fi
5812 else
5813 RANLIB="$ac_cv_prog_RANLIB"
5814 fi
5815
5816 test -z "$RANLIB" && RANLIB=:
5817
5818
5819
5820
5821
5822
5823 # Determine commands to create old-style static archives.
5824 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5825 old_postinstall_cmds='chmod 644 $oldlib'
5826 old_postuninstall_cmds=
5827
5828 if test -n "$RANLIB"; then
5829 case $host_os in
5830 openbsd*)
5831 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5832 ;;
5833 *)
5834 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5835 ;;
5836 esac
5837 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5838 fi
5839
5840 case $host_os in
5841 darwin*)
5842 lock_old_archive_extraction=yes ;;
5843 *)
5844 lock_old_archive_extraction=no ;;
5845 esac
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885 # If no C compiler was specified, use CC.
5886 LTCC=${LTCC-"$CC"}
5887
5888 # If no C compiler flags were specified, use CFLAGS.
5889 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5890
5891 # Allow CC to be a program name with arguments.
5892 compiler=$CC
5893
5894
5895 # Check for command to grab the raw symbol name followed by C symbol from nm.
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5897 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5898 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5899 $as_echo_n "(cached) " >&6
5900 else
5901
5902 # These are sane defaults that work on at least a few old systems.
5903 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5904
5905 # Character class describing NM global symbol codes.
5906 symcode='[BCDEGRST]'
5907
5908 # Regexp to match symbols that can be accessed directly from C.
5909 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5910
5911 # Define system-specific variables.
5912 case $host_os in
5913 aix*)
5914 symcode='[BCDT]'
5915 ;;
5916 cygwin* | mingw* | pw32* | cegcc*)
5917 symcode='[ABCDGISTW]'
5918 ;;
5919 hpux*)
5920 if test "$host_cpu" = ia64; then
5921 symcode='[ABCDEGRST]'
5922 fi
5923 ;;
5924 irix* | nonstopux*)
5925 symcode='[BCDEGRST]'
5926 ;;
5927 osf*)
5928 symcode='[BCDEGQRST]'
5929 ;;
5930 solaris*)
5931 symcode='[BDRT]'
5932 ;;
5933 sco3.2v5*)
5934 symcode='[DT]'
5935 ;;
5936 sysv4.2uw2*)
5937 symcode='[DT]'
5938 ;;
5939 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5940 symcode='[ABDT]'
5941 ;;
5942 sysv4)
5943 symcode='[DFNSTU]'
5944 ;;
5945 esac
5946
5947 # If we're using GNU nm, then use its standard symbol codes.
5948 case `$NM -V 2>&1` in
5949 *GNU* | *'with BFD'*)
5950 symcode='[ABCDGIRSTW]' ;;
5951 esac
5952
5953 # Transform an extracted symbol line into a proper C declaration.
5954 # Some systems (esp. on ia64) link data and code symbols differently,
5955 # so use this general approach.
5956 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5957
5958 # Transform an extracted symbol line into symbol name and symbol address
5959 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5960 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5961
5962 # Handle CRLF in mingw tool chain
5963 opt_cr=
5964 case $build_os in
5965 mingw*)
5966 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5967 ;;
5968 esac
5969
5970 # Try without a prefix underscore, then with it.
5971 for ac_symprfx in "" "_"; do
5972
5973 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5974 symxfrm="\\1 $ac_symprfx\\2 \\2"
5975
5976 # Write the raw and C identifiers.
5977 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5978 # Fake it for dumpbin and say T for any non-static function
5979 # and D for any global variable.
5980 # Also find C++ and __fastcall symbols from MSVC++,
5981 # which start with @ or ?.
5982 lt_cv_sys_global_symbol_pipe="$AWK '"\
5983 " {last_section=section; section=\$ 3};"\
5984 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5985 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5986 " \$ 0!~/External *\|/{next};"\
5987 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5988 " {if(hide[section]) next};"\
5989 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5990 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5991 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5992 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5993 " ' prfx=^$ac_symprfx"
5994 else
5995 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5996 fi
5997 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5998
5999 # Check to see that the pipe works correctly.
6000 pipe_works=no
6001
6002 rm -f conftest*
6003 cat > conftest.$ac_ext <<_LT_EOF
6004 #ifdef __cplusplus
6005 extern "C" {
6006 #endif
6007 char nm_test_var;
6008 void nm_test_func(void);
6009 void nm_test_func(void){}
6010 #ifdef __cplusplus
6011 }
6012 #endif
6013 int main(){nm_test_var='a';nm_test_func();return(0);}
6014 _LT_EOF
6015
6016 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6017 (eval $ac_compile) 2>&5
6018 ac_status=$?
6019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6020 test $ac_status = 0; }; then
6021 # Now try to grab the symbols.
6022 nlist=conftest.nm
6023 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6024 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6025 ac_status=$?
6026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6027 test $ac_status = 0; } && test -s "$nlist"; then
6028 # Try sorting and uniquifying the output.
6029 if sort "$nlist" | uniq > "$nlist"T; then
6030 mv -f "$nlist"T "$nlist"
6031 else
6032 rm -f "$nlist"T
6033 fi
6034
6035 # Make sure that we snagged all the symbols we need.
6036 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6037 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6038 cat <<_LT_EOF > conftest.$ac_ext
6039 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6040 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6041 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6042 relocations are performed -- see ld's documentation on pseudo-relocs. */
6043 # define LT_DLSYM_CONST
6044 #elif defined(__osf__)
6045 /* This system does not cope well with relocations in const data. */
6046 # define LT_DLSYM_CONST
6047 #else
6048 # define LT_DLSYM_CONST const
6049 #endif
6050
6051 #ifdef __cplusplus
6052 extern "C" {
6053 #endif
6054
6055 _LT_EOF
6056 # Now generate the symbol file.
6057 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6058
6059 cat <<_LT_EOF >> conftest.$ac_ext
6060
6061 /* The mapping between symbol names and symbols. */
6062 LT_DLSYM_CONST struct {
6063 const char *name;
6064 void *address;
6065 }
6066 lt__PROGRAM__LTX_preloaded_symbols[] =
6067 {
6068 { "@PROGRAM@", (void *) 0 },
6069 _LT_EOF
6070 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6071 cat <<\_LT_EOF >> conftest.$ac_ext
6072 {0, (void *) 0}
6073 };
6074
6075 /* This works around a problem in FreeBSD linker */
6076 #ifdef FREEBSD_WORKAROUND
6077 static const void *lt_preloaded_setup() {
6078 return lt__PROGRAM__LTX_preloaded_symbols;
6079 }
6080 #endif
6081
6082 #ifdef __cplusplus
6083 }
6084 #endif
6085 _LT_EOF
6086 # Now try linking the two files.
6087 mv conftest.$ac_objext conftstm.$ac_objext
6088 lt_globsym_save_LIBS=$LIBS
6089 lt_globsym_save_CFLAGS=$CFLAGS
6090 LIBS="conftstm.$ac_objext"
6091 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6092 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6093 (eval $ac_link) 2>&5
6094 ac_status=$?
6095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6096 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6097 pipe_works=yes
6098 fi
6099 LIBS=$lt_globsym_save_LIBS
6100 CFLAGS=$lt_globsym_save_CFLAGS
6101 else
6102 echo "cannot find nm_test_func in $nlist" >&5
6103 fi
6104 else
6105 echo "cannot find nm_test_var in $nlist" >&5
6106 fi
6107 else
6108 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6109 fi
6110 else
6111 echo "$progname: failed program was:" >&5
6112 cat conftest.$ac_ext >&5
6113 fi
6114 rm -rf conftest* conftst*
6115
6116 # Do not use the global_symbol_pipe unless it works.
6117 if test "$pipe_works" = yes; then
6118 break
6119 else
6120 lt_cv_sys_global_symbol_pipe=
6121 fi
6122 done
6123
6124 fi
6125
6126 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6127 lt_cv_sys_global_symbol_to_cdecl=
6128 fi
6129 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6131 $as_echo "failed" >&6; }
6132 else
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6134 $as_echo "ok" >&6; }
6135 fi
6136
6137 # Response file support.
6138 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6139 nm_file_list_spec='@'
6140 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6141 nm_file_list_spec='@'
6142 fi
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6171 $as_echo_n "checking for sysroot... " >&6; }
6172
6173 # Check whether --with-sysroot was given.
6174 if test "${with_sysroot+set}" = set; then :
6175 withval=$with_sysroot;
6176 else
6177 with_sysroot=no
6178 fi
6179
6180
6181 lt_sysroot=
6182 case ${with_sysroot} in #(
6183 yes)
6184 if test "$GCC" = yes; then
6185 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6186 fi
6187 ;; #(
6188 /*)
6189 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6190 ;; #(
6191 no|'')
6192 ;; #(
6193 *)
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6195 $as_echo "${with_sysroot}" >&6; }
6196 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6197 ;;
6198 esac
6199
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6201 $as_echo "${lt_sysroot:-no}" >&6; }
6202
6203
6204
6205
6206
6207 # Check whether --enable-libtool-lock was given.
6208 if test "${enable_libtool_lock+set}" = set; then :
6209 enableval=$enable_libtool_lock;
6210 fi
6211
6212 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6213
6214 # Some flags need to be propagated to the compiler or linker for good
6215 # libtool support.
6216 case $host in
6217 ia64-*-hpux*)
6218 # Find out which ABI we are using.
6219 echo 'int i;' > conftest.$ac_ext
6220 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6221 (eval $ac_compile) 2>&5
6222 ac_status=$?
6223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6224 test $ac_status = 0; }; then
6225 case `/usr/bin/file conftest.$ac_objext` in
6226 *ELF-32*)
6227 HPUX_IA64_MODE="32"
6228 ;;
6229 *ELF-64*)
6230 HPUX_IA64_MODE="64"
6231 ;;
6232 esac
6233 fi
6234 rm -rf conftest*
6235 ;;
6236 *-*-irix6*)
6237 # Find out which ABI we are using.
6238 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6240 (eval $ac_compile) 2>&5
6241 ac_status=$?
6242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6243 test $ac_status = 0; }; then
6244 if test "$lt_cv_prog_gnu_ld" = yes; then
6245 case `/usr/bin/file conftest.$ac_objext` in
6246 *32-bit*)
6247 LD="${LD-ld} -melf32bsmip"
6248 ;;
6249 *N32*)
6250 LD="${LD-ld} -melf32bmipn32"
6251 ;;
6252 *64-bit*)
6253 LD="${LD-ld} -melf64bmip"
6254 ;;
6255 esac
6256 else
6257 case `/usr/bin/file conftest.$ac_objext` in
6258 *32-bit*)
6259 LD="${LD-ld} -32"
6260 ;;
6261 *N32*)
6262 LD="${LD-ld} -n32"
6263 ;;
6264 *64-bit*)
6265 LD="${LD-ld} -64"
6266 ;;
6267 esac
6268 fi
6269 fi
6270 rm -rf conftest*
6271 ;;
6272
6273 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6274 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6275 # Find out which ABI we are using.
6276 echo 'int i;' > conftest.$ac_ext
6277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6278 (eval $ac_compile) 2>&5
6279 ac_status=$?
6280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6281 test $ac_status = 0; }; then
6282 case `/usr/bin/file conftest.o` in
6283 *32-bit*)
6284 case $host in
6285 x86_64-*kfreebsd*-gnu)
6286 LD="${LD-ld} -m elf_i386_fbsd"
6287 ;;
6288 x86_64-*linux*)
6289 case `/usr/bin/file conftest.o` in
6290 *x86-64*)
6291 LD="${LD-ld} -m elf32_x86_64"
6292 ;;
6293 *)
6294 LD="${LD-ld} -m elf_i386"
6295 ;;
6296 esac
6297 ;;
6298 powerpc64le-*)
6299 LD="${LD-ld} -m elf32lppclinux"
6300 ;;
6301 powerpc64-*)
6302 LD="${LD-ld} -m elf32ppclinux"
6303 ;;
6304 s390x-*linux*)
6305 LD="${LD-ld} -m elf_s390"
6306 ;;
6307 sparc64-*linux*)
6308 LD="${LD-ld} -m elf32_sparc"
6309 ;;
6310 esac
6311 ;;
6312 *64-bit*)
6313 case $host in
6314 x86_64-*kfreebsd*-gnu)
6315 LD="${LD-ld} -m elf_x86_64_fbsd"
6316 ;;
6317 x86_64-*linux*)
6318 LD="${LD-ld} -m elf_x86_64"
6319 ;;
6320 powerpcle-*)
6321 LD="${LD-ld} -m elf64lppc"
6322 ;;
6323 powerpc-*)
6324 LD="${LD-ld} -m elf64ppc"
6325 ;;
6326 s390*-*linux*|s390*-*tpf*)
6327 LD="${LD-ld} -m elf64_s390"
6328 ;;
6329 sparc*-*linux*)
6330 LD="${LD-ld} -m elf64_sparc"
6331 ;;
6332 esac
6333 ;;
6334 esac
6335 fi
6336 rm -rf conftest*
6337 ;;
6338
6339 *-*-sco3.2v5*)
6340 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6341 SAVE_CFLAGS="$CFLAGS"
6342 CFLAGS="$CFLAGS -belf"
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6344 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6345 if ${lt_cv_cc_needs_belf+:} false; then :
6346 $as_echo_n "(cached) " >&6
6347 else
6348 ac_ext=c
6349 ac_cpp='$CPP $CPPFLAGS'
6350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6353
6354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6355 /* end confdefs.h. */
6356
6357 int
6358 main ()
6359 {
6360
6361 ;
6362 return 0;
6363 }
6364 _ACEOF
6365 if ac_fn_c_try_link "$LINENO"; then :
6366 lt_cv_cc_needs_belf=yes
6367 else
6368 lt_cv_cc_needs_belf=no
6369 fi
6370 rm -f core conftest.err conftest.$ac_objext \
6371 conftest$ac_exeext conftest.$ac_ext
6372 ac_ext=c
6373 ac_cpp='$CPP $CPPFLAGS'
6374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6377
6378 fi
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6380 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6381 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6382 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6383 CFLAGS="$SAVE_CFLAGS"
6384 fi
6385 ;;
6386 *-*solaris*)
6387 # Find out which ABI we are using.
6388 echo 'int i;' > conftest.$ac_ext
6389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6390 (eval $ac_compile) 2>&5
6391 ac_status=$?
6392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6393 test $ac_status = 0; }; then
6394 case `/usr/bin/file conftest.o` in
6395 *64-bit*)
6396 case $lt_cv_prog_gnu_ld in
6397 yes*)
6398 case $host in
6399 i?86-*-solaris*)
6400 LD="${LD-ld} -m elf_x86_64"
6401 ;;
6402 sparc*-*-solaris*)
6403 LD="${LD-ld} -m elf64_sparc"
6404 ;;
6405 esac
6406 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6407 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6408 LD="${LD-ld}_sol2"
6409 fi
6410 ;;
6411 *)
6412 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6413 LD="${LD-ld} -64"
6414 fi
6415 ;;
6416 esac
6417 ;;
6418 esac
6419 fi
6420 rm -rf conftest*
6421 ;;
6422 esac
6423
6424 need_locks="$enable_libtool_lock"
6425
6426 if test -n "$ac_tool_prefix"; then
6427 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6428 set dummy ${ac_tool_prefix}mt; ac_word=$2
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6430 $as_echo_n "checking for $ac_word... " >&6; }
6431 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6432 $as_echo_n "(cached) " >&6
6433 else
6434 if test -n "$MANIFEST_TOOL"; then
6435 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6436 else
6437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438 for as_dir in $PATH
6439 do
6440 IFS=$as_save_IFS
6441 test -z "$as_dir" && as_dir=.
6442 for ac_exec_ext in '' $ac_executable_extensions; do
6443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6444 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6446 break 2
6447 fi
6448 done
6449 done
6450 IFS=$as_save_IFS
6451
6452 fi
6453 fi
6454 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6455 if test -n "$MANIFEST_TOOL"; then
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6457 $as_echo "$MANIFEST_TOOL" >&6; }
6458 else
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6460 $as_echo "no" >&6; }
6461 fi
6462
6463
6464 fi
6465 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6466 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6467 # Extract the first word of "mt", so it can be a program name with args.
6468 set dummy mt; ac_word=$2
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6470 $as_echo_n "checking for $ac_word... " >&6; }
6471 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6472 $as_echo_n "(cached) " >&6
6473 else
6474 if test -n "$ac_ct_MANIFEST_TOOL"; then
6475 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6476 else
6477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6478 for as_dir in $PATH
6479 do
6480 IFS=$as_save_IFS
6481 test -z "$as_dir" && as_dir=.
6482 for ac_exec_ext in '' $ac_executable_extensions; do
6483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6484 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6486 break 2
6487 fi
6488 done
6489 done
6490 IFS=$as_save_IFS
6491
6492 fi
6493 fi
6494 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6495 if test -n "$ac_ct_MANIFEST_TOOL"; then
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6497 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6498 else
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500 $as_echo "no" >&6; }
6501 fi
6502
6503 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6504 MANIFEST_TOOL=":"
6505 else
6506 case $cross_compiling:$ac_tool_warned in
6507 yes:)
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6510 ac_tool_warned=yes ;;
6511 esac
6512 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6513 fi
6514 else
6515 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6516 fi
6517
6518 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6520 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6521 if ${lt_cv_path_mainfest_tool+:} false; then :
6522 $as_echo_n "(cached) " >&6
6523 else
6524 lt_cv_path_mainfest_tool=no
6525 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6526 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6527 cat conftest.err >&5
6528 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6529 lt_cv_path_mainfest_tool=yes
6530 fi
6531 rm -f conftest*
6532 fi
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6534 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6535 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6536 MANIFEST_TOOL=:
6537 fi
6538
6539
6540
6541
6542
6543
6544 case $host_os in
6545 rhapsody* | darwin*)
6546 if test -n "$ac_tool_prefix"; then
6547 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6548 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6550 $as_echo_n "checking for $ac_word... " >&6; }
6551 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6552 $as_echo_n "(cached) " >&6
6553 else
6554 if test -n "$DSYMUTIL"; then
6555 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6556 else
6557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6558 for as_dir in $PATH
6559 do
6560 IFS=$as_save_IFS
6561 test -z "$as_dir" && as_dir=.
6562 for ac_exec_ext in '' $ac_executable_extensions; do
6563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6564 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6566 break 2
6567 fi
6568 done
6569 done
6570 IFS=$as_save_IFS
6571
6572 fi
6573 fi
6574 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6575 if test -n "$DSYMUTIL"; then
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6577 $as_echo "$DSYMUTIL" >&6; }
6578 else
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6580 $as_echo "no" >&6; }
6581 fi
6582
6583
6584 fi
6585 if test -z "$ac_cv_prog_DSYMUTIL"; then
6586 ac_ct_DSYMUTIL=$DSYMUTIL
6587 # Extract the first word of "dsymutil", so it can be a program name with args.
6588 set dummy dsymutil; ac_word=$2
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6590 $as_echo_n "checking for $ac_word... " >&6; }
6591 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6592 $as_echo_n "(cached) " >&6
6593 else
6594 if test -n "$ac_ct_DSYMUTIL"; then
6595 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6596 else
6597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598 for as_dir in $PATH
6599 do
6600 IFS=$as_save_IFS
6601 test -z "$as_dir" && as_dir=.
6602 for ac_exec_ext in '' $ac_executable_extensions; do
6603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6604 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6606 break 2
6607 fi
6608 done
6609 done
6610 IFS=$as_save_IFS
6611
6612 fi
6613 fi
6614 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6615 if test -n "$ac_ct_DSYMUTIL"; then
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6617 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6618 else
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6620 $as_echo "no" >&6; }
6621 fi
6622
6623 if test "x$ac_ct_DSYMUTIL" = x; then
6624 DSYMUTIL=":"
6625 else
6626 case $cross_compiling:$ac_tool_warned in
6627 yes:)
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6629 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6630 ac_tool_warned=yes ;;
6631 esac
6632 DSYMUTIL=$ac_ct_DSYMUTIL
6633 fi
6634 else
6635 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6636 fi
6637
6638 if test -n "$ac_tool_prefix"; then
6639 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6640 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6642 $as_echo_n "checking for $ac_word... " >&6; }
6643 if ${ac_cv_prog_NMEDIT+:} false; then :
6644 $as_echo_n "(cached) " >&6
6645 else
6646 if test -n "$NMEDIT"; then
6647 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6648 else
6649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650 for as_dir in $PATH
6651 do
6652 IFS=$as_save_IFS
6653 test -z "$as_dir" && as_dir=.
6654 for ac_exec_ext in '' $ac_executable_extensions; do
6655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6656 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6658 break 2
6659 fi
6660 done
6661 done
6662 IFS=$as_save_IFS
6663
6664 fi
6665 fi
6666 NMEDIT=$ac_cv_prog_NMEDIT
6667 if test -n "$NMEDIT"; then
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6669 $as_echo "$NMEDIT" >&6; }
6670 else
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6672 $as_echo "no" >&6; }
6673 fi
6674
6675
6676 fi
6677 if test -z "$ac_cv_prog_NMEDIT"; then
6678 ac_ct_NMEDIT=$NMEDIT
6679 # Extract the first word of "nmedit", so it can be a program name with args.
6680 set dummy nmedit; ac_word=$2
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6682 $as_echo_n "checking for $ac_word... " >&6; }
6683 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6684 $as_echo_n "(cached) " >&6
6685 else
6686 if test -n "$ac_ct_NMEDIT"; then
6687 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6688 else
6689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690 for as_dir in $PATH
6691 do
6692 IFS=$as_save_IFS
6693 test -z "$as_dir" && as_dir=.
6694 for ac_exec_ext in '' $ac_executable_extensions; do
6695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6696 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6698 break 2
6699 fi
6700 done
6701 done
6702 IFS=$as_save_IFS
6703
6704 fi
6705 fi
6706 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6707 if test -n "$ac_ct_NMEDIT"; then
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6709 $as_echo "$ac_ct_NMEDIT" >&6; }
6710 else
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6712 $as_echo "no" >&6; }
6713 fi
6714
6715 if test "x$ac_ct_NMEDIT" = x; then
6716 NMEDIT=":"
6717 else
6718 case $cross_compiling:$ac_tool_warned in
6719 yes:)
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6722 ac_tool_warned=yes ;;
6723 esac
6724 NMEDIT=$ac_ct_NMEDIT
6725 fi
6726 else
6727 NMEDIT="$ac_cv_prog_NMEDIT"
6728 fi
6729
6730 if test -n "$ac_tool_prefix"; then
6731 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6732 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6734 $as_echo_n "checking for $ac_word... " >&6; }
6735 if ${ac_cv_prog_LIPO+:} false; then :
6736 $as_echo_n "(cached) " >&6
6737 else
6738 if test -n "$LIPO"; then
6739 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6740 else
6741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742 for as_dir in $PATH
6743 do
6744 IFS=$as_save_IFS
6745 test -z "$as_dir" && as_dir=.
6746 for ac_exec_ext in '' $ac_executable_extensions; do
6747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6748 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6750 break 2
6751 fi
6752 done
6753 done
6754 IFS=$as_save_IFS
6755
6756 fi
6757 fi
6758 LIPO=$ac_cv_prog_LIPO
6759 if test -n "$LIPO"; then
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6761 $as_echo "$LIPO" >&6; }
6762 else
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6764 $as_echo "no" >&6; }
6765 fi
6766
6767
6768 fi
6769 if test -z "$ac_cv_prog_LIPO"; then
6770 ac_ct_LIPO=$LIPO
6771 # Extract the first word of "lipo", so it can be a program name with args.
6772 set dummy lipo; ac_word=$2
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6774 $as_echo_n "checking for $ac_word... " >&6; }
6775 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6776 $as_echo_n "(cached) " >&6
6777 else
6778 if test -n "$ac_ct_LIPO"; then
6779 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6780 else
6781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6782 for as_dir in $PATH
6783 do
6784 IFS=$as_save_IFS
6785 test -z "$as_dir" && as_dir=.
6786 for ac_exec_ext in '' $ac_executable_extensions; do
6787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6788 ac_cv_prog_ac_ct_LIPO="lipo"
6789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6790 break 2
6791 fi
6792 done
6793 done
6794 IFS=$as_save_IFS
6795
6796 fi
6797 fi
6798 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6799 if test -n "$ac_ct_LIPO"; then
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6801 $as_echo "$ac_ct_LIPO" >&6; }
6802 else
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6804 $as_echo "no" >&6; }
6805 fi
6806
6807 if test "x$ac_ct_LIPO" = x; then
6808 LIPO=":"
6809 else
6810 case $cross_compiling:$ac_tool_warned in
6811 yes:)
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6813 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6814 ac_tool_warned=yes ;;
6815 esac
6816 LIPO=$ac_ct_LIPO
6817 fi
6818 else
6819 LIPO="$ac_cv_prog_LIPO"
6820 fi
6821
6822 if test -n "$ac_tool_prefix"; then
6823 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6824 set dummy ${ac_tool_prefix}otool; ac_word=$2
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6826 $as_echo_n "checking for $ac_word... " >&6; }
6827 if ${ac_cv_prog_OTOOL+:} false; then :
6828 $as_echo_n "(cached) " >&6
6829 else
6830 if test -n "$OTOOL"; then
6831 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6832 else
6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834 for as_dir in $PATH
6835 do
6836 IFS=$as_save_IFS
6837 test -z "$as_dir" && as_dir=.
6838 for ac_exec_ext in '' $ac_executable_extensions; do
6839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6840 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6842 break 2
6843 fi
6844 done
6845 done
6846 IFS=$as_save_IFS
6847
6848 fi
6849 fi
6850 OTOOL=$ac_cv_prog_OTOOL
6851 if test -n "$OTOOL"; then
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6853 $as_echo "$OTOOL" >&6; }
6854 else
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6856 $as_echo "no" >&6; }
6857 fi
6858
6859
6860 fi
6861 if test -z "$ac_cv_prog_OTOOL"; then
6862 ac_ct_OTOOL=$OTOOL
6863 # Extract the first word of "otool", so it can be a program name with args.
6864 set dummy otool; ac_word=$2
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6866 $as_echo_n "checking for $ac_word... " >&6; }
6867 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6868 $as_echo_n "(cached) " >&6
6869 else
6870 if test -n "$ac_ct_OTOOL"; then
6871 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6872 else
6873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874 for as_dir in $PATH
6875 do
6876 IFS=$as_save_IFS
6877 test -z "$as_dir" && as_dir=.
6878 for ac_exec_ext in '' $ac_executable_extensions; do
6879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6880 ac_cv_prog_ac_ct_OTOOL="otool"
6881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6882 break 2
6883 fi
6884 done
6885 done
6886 IFS=$as_save_IFS
6887
6888 fi
6889 fi
6890 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6891 if test -n "$ac_ct_OTOOL"; then
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6893 $as_echo "$ac_ct_OTOOL" >&6; }
6894 else
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6896 $as_echo "no" >&6; }
6897 fi
6898
6899 if test "x$ac_ct_OTOOL" = x; then
6900 OTOOL=":"
6901 else
6902 case $cross_compiling:$ac_tool_warned in
6903 yes:)
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6906 ac_tool_warned=yes ;;
6907 esac
6908 OTOOL=$ac_ct_OTOOL
6909 fi
6910 else
6911 OTOOL="$ac_cv_prog_OTOOL"
6912 fi
6913
6914 if test -n "$ac_tool_prefix"; then
6915 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6916 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6918 $as_echo_n "checking for $ac_word... " >&6; }
6919 if ${ac_cv_prog_OTOOL64+:} false; then :
6920 $as_echo_n "(cached) " >&6
6921 else
6922 if test -n "$OTOOL64"; then
6923 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6924 else
6925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926 for as_dir in $PATH
6927 do
6928 IFS=$as_save_IFS
6929 test -z "$as_dir" && as_dir=.
6930 for ac_exec_ext in '' $ac_executable_extensions; do
6931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6932 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6934 break 2
6935 fi
6936 done
6937 done
6938 IFS=$as_save_IFS
6939
6940 fi
6941 fi
6942 OTOOL64=$ac_cv_prog_OTOOL64
6943 if test -n "$OTOOL64"; then
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6945 $as_echo "$OTOOL64" >&6; }
6946 else
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6948 $as_echo "no" >&6; }
6949 fi
6950
6951
6952 fi
6953 if test -z "$ac_cv_prog_OTOOL64"; then
6954 ac_ct_OTOOL64=$OTOOL64
6955 # Extract the first word of "otool64", so it can be a program name with args.
6956 set dummy otool64; ac_word=$2
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6958 $as_echo_n "checking for $ac_word... " >&6; }
6959 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6960 $as_echo_n "(cached) " >&6
6961 else
6962 if test -n "$ac_ct_OTOOL64"; then
6963 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6964 else
6965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6966 for as_dir in $PATH
6967 do
6968 IFS=$as_save_IFS
6969 test -z "$as_dir" && as_dir=.
6970 for ac_exec_ext in '' $ac_executable_extensions; do
6971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6972 ac_cv_prog_ac_ct_OTOOL64="otool64"
6973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6974 break 2
6975 fi
6976 done
6977 done
6978 IFS=$as_save_IFS
6979
6980 fi
6981 fi
6982 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6983 if test -n "$ac_ct_OTOOL64"; then
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6985 $as_echo "$ac_ct_OTOOL64" >&6; }
6986 else
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6988 $as_echo "no" >&6; }
6989 fi
6990
6991 if test "x$ac_ct_OTOOL64" = x; then
6992 OTOOL64=":"
6993 else
6994 case $cross_compiling:$ac_tool_warned in
6995 yes:)
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6997 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6998 ac_tool_warned=yes ;;
6999 esac
7000 OTOOL64=$ac_ct_OTOOL64
7001 fi
7002 else
7003 OTOOL64="$ac_cv_prog_OTOOL64"
7004 fi
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7033 $as_echo_n "checking for -single_module linker flag... " >&6; }
7034 if ${lt_cv_apple_cc_single_mod+:} false; then :
7035 $as_echo_n "(cached) " >&6
7036 else
7037 lt_cv_apple_cc_single_mod=no
7038 if test -z "${LT_MULTI_MODULE}"; then
7039 # By default we will add the -single_module flag. You can override
7040 # by either setting the environment variable LT_MULTI_MODULE
7041 # non-empty at configure time, or by adding -multi_module to the
7042 # link flags.
7043 rm -rf libconftest.dylib*
7044 echo "int foo(void){return 1;}" > conftest.c
7045 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7046 -dynamiclib -Wl,-single_module conftest.c" >&5
7047 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7048 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7049 _lt_result=$?
7050 # If there is a non-empty error log, and "single_module"
7051 # appears in it, assume the flag caused a linker warning
7052 if test -s conftest.err && $GREP single_module conftest.err; then
7053 cat conftest.err >&5
7054 # Otherwise, if the output was created with a 0 exit code from
7055 # the compiler, it worked.
7056 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7057 lt_cv_apple_cc_single_mod=yes
7058 else
7059 cat conftest.err >&5
7060 fi
7061 rm -rf libconftest.dylib*
7062 rm -f conftest.*
7063 fi
7064 fi
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7066 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7067
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7069 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7070 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7071 $as_echo_n "(cached) " >&6
7072 else
7073 lt_cv_ld_exported_symbols_list=no
7074 save_LDFLAGS=$LDFLAGS
7075 echo "_main" > conftest.sym
7076 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7078 /* end confdefs.h. */
7079
7080 int
7081 main ()
7082 {
7083
7084 ;
7085 return 0;
7086 }
7087 _ACEOF
7088 if ac_fn_c_try_link "$LINENO"; then :
7089 lt_cv_ld_exported_symbols_list=yes
7090 else
7091 lt_cv_ld_exported_symbols_list=no
7092 fi
7093 rm -f core conftest.err conftest.$ac_objext \
7094 conftest$ac_exeext conftest.$ac_ext
7095 LDFLAGS="$save_LDFLAGS"
7096
7097 fi
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7099 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7100
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7102 $as_echo_n "checking for -force_load linker flag... " >&6; }
7103 if ${lt_cv_ld_force_load+:} false; then :
7104 $as_echo_n "(cached) " >&6
7105 else
7106 lt_cv_ld_force_load=no
7107 cat > conftest.c << _LT_EOF
7108 int forced_loaded() { return 2;}
7109 _LT_EOF
7110 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7111 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7112 echo "$AR cru libconftest.a conftest.o" >&5
7113 $AR cru libconftest.a conftest.o 2>&5
7114 echo "$RANLIB libconftest.a" >&5
7115 $RANLIB libconftest.a 2>&5
7116 cat > conftest.c << _LT_EOF
7117 int main() { return 0;}
7118 _LT_EOF
7119 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7120 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7121 _lt_result=$?
7122 if test -s conftest.err && $GREP force_load conftest.err; then
7123 cat conftest.err >&5
7124 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7125 lt_cv_ld_force_load=yes
7126 else
7127 cat conftest.err >&5
7128 fi
7129 rm -f conftest.err libconftest.a conftest conftest.c
7130 rm -rf conftest.dSYM
7131
7132 fi
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7134 $as_echo "$lt_cv_ld_force_load" >&6; }
7135 case $host_os in
7136 rhapsody* | darwin1.[012])
7137 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7138 darwin1.*)
7139 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7140 darwin*) # darwin 5.x on
7141 # if running on 10.5 or later, the deployment target defaults
7142 # to the OS version, if on x86, and 10.4, the deployment
7143 # target defaults to 10.4. Don't you love it?
7144 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7145 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7146 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7147 10.[012]*)
7148 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7149 10.*)
7150 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7151 esac
7152 ;;
7153 esac
7154 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7155 _lt_dar_single_mod='$single_module'
7156 fi
7157 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7158 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7159 else
7160 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7161 fi
7162 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7163 _lt_dsymutil='~$DSYMUTIL $lib || :'
7164 else
7165 _lt_dsymutil=
7166 fi
7167 ;;
7168 esac
7169
7170 ac_ext=c
7171 ac_cpp='$CPP $CPPFLAGS'
7172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7176 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7177 # On Suns, sometimes $CPP names a directory.
7178 if test -n "$CPP" && test -d "$CPP"; then
7179 CPP=
7180 fi
7181 if test -z "$CPP"; then
7182 if ${ac_cv_prog_CPP+:} false; then :
7183 $as_echo_n "(cached) " >&6
7184 else
7185 # Double quotes because CPP needs to be expanded
7186 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7187 do
7188 ac_preproc_ok=false
7189 for ac_c_preproc_warn_flag in '' yes
7190 do
7191 # Use a header file that comes with gcc, so configuring glibc
7192 # with a fresh cross-compiler works.
7193 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7194 # <limits.h> exists even on freestanding compilers.
7195 # On the NeXT, cc -E runs the code through the compiler's parser,
7196 # not just through cpp. "Syntax error" is here to catch this case.
7197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7198 /* end confdefs.h. */
7199 #ifdef __STDC__
7200 # include <limits.h>
7201 #else
7202 # include <assert.h>
7203 #endif
7204 Syntax error
7205 _ACEOF
7206 if ac_fn_c_try_cpp "$LINENO"; then :
7207
7208 else
7209 # Broken: fails on valid input.
7210 continue
7211 fi
7212 rm -f conftest.err conftest.i conftest.$ac_ext
7213
7214 # OK, works on sane cases. Now check whether nonexistent headers
7215 # can be detected and how.
7216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7217 /* end confdefs.h. */
7218 #include <ac_nonexistent.h>
7219 _ACEOF
7220 if ac_fn_c_try_cpp "$LINENO"; then :
7221 # Broken: success on invalid input.
7222 continue
7223 else
7224 # Passes both tests.
7225 ac_preproc_ok=:
7226 break
7227 fi
7228 rm -f conftest.err conftest.i conftest.$ac_ext
7229
7230 done
7231 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7232 rm -f conftest.i conftest.err conftest.$ac_ext
7233 if $ac_preproc_ok; then :
7234 break
7235 fi
7236
7237 done
7238 ac_cv_prog_CPP=$CPP
7239
7240 fi
7241 CPP=$ac_cv_prog_CPP
7242 else
7243 ac_cv_prog_CPP=$CPP
7244 fi
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7246 $as_echo "$CPP" >&6; }
7247 ac_preproc_ok=false
7248 for ac_c_preproc_warn_flag in '' yes
7249 do
7250 # Use a header file that comes with gcc, so configuring glibc
7251 # with a fresh cross-compiler works.
7252 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7253 # <limits.h> exists even on freestanding compilers.
7254 # On the NeXT, cc -E runs the code through the compiler's parser,
7255 # not just through cpp. "Syntax error" is here to catch this case.
7256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7257 /* end confdefs.h. */
7258 #ifdef __STDC__
7259 # include <limits.h>
7260 #else
7261 # include <assert.h>
7262 #endif
7263 Syntax error
7264 _ACEOF
7265 if ac_fn_c_try_cpp "$LINENO"; then :
7266
7267 else
7268 # Broken: fails on valid input.
7269 continue
7270 fi
7271 rm -f conftest.err conftest.i conftest.$ac_ext
7272
7273 # OK, works on sane cases. Now check whether nonexistent headers
7274 # can be detected and how.
7275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7276 /* end confdefs.h. */
7277 #include <ac_nonexistent.h>
7278 _ACEOF
7279 if ac_fn_c_try_cpp "$LINENO"; then :
7280 # Broken: success on invalid input.
7281 continue
7282 else
7283 # Passes both tests.
7284 ac_preproc_ok=:
7285 break
7286 fi
7287 rm -f conftest.err conftest.i conftest.$ac_ext
7288
7289 done
7290 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7291 rm -f conftest.i conftest.err conftest.$ac_ext
7292 if $ac_preproc_ok; then :
7293
7294 else
7295 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7297 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7298 See \`config.log' for more details" "$LINENO" 5; }
7299 fi
7300
7301 ac_ext=c
7302 ac_cpp='$CPP $CPPFLAGS'
7303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7306
7307
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7309 $as_echo_n "checking for ANSI C header files... " >&6; }
7310 if ${ac_cv_header_stdc+:} false; then :
7311 $as_echo_n "(cached) " >&6
7312 else
7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314 /* end confdefs.h. */
7315 #include <stdlib.h>
7316 #include <stdarg.h>
7317 #include <string.h>
7318 #include <float.h>
7319
7320 int
7321 main ()
7322 {
7323
7324 ;
7325 return 0;
7326 }
7327 _ACEOF
7328 if ac_fn_c_try_compile "$LINENO"; then :
7329 ac_cv_header_stdc=yes
7330 else
7331 ac_cv_header_stdc=no
7332 fi
7333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7334
7335 if test $ac_cv_header_stdc = yes; then
7336 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7338 /* end confdefs.h. */
7339 #include <string.h>
7340
7341 _ACEOF
7342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7343 $EGREP "memchr" >/dev/null 2>&1; then :
7344
7345 else
7346 ac_cv_header_stdc=no
7347 fi
7348 rm -f conftest*
7349
7350 fi
7351
7352 if test $ac_cv_header_stdc = yes; then
7353 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7355 /* end confdefs.h. */
7356 #include <stdlib.h>
7357
7358 _ACEOF
7359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7360 $EGREP "free" >/dev/null 2>&1; then :
7361
7362 else
7363 ac_cv_header_stdc=no
7364 fi
7365 rm -f conftest*
7366
7367 fi
7368
7369 if test $ac_cv_header_stdc = yes; then
7370 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7371 if test "$cross_compiling" = yes; then :
7372 :
7373 else
7374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7375 /* end confdefs.h. */
7376 #include <ctype.h>
7377 #include <stdlib.h>
7378 #if ((' ' & 0x0FF) == 0x020)
7379 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7380 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7381 #else
7382 # define ISLOWER(c) \
7383 (('a' <= (c) && (c) <= 'i') \
7384 || ('j' <= (c) && (c) <= 'r') \
7385 || ('s' <= (c) && (c) <= 'z'))
7386 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7387 #endif
7388
7389 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7390 int
7391 main ()
7392 {
7393 int i;
7394 for (i = 0; i < 256; i++)
7395 if (XOR (islower (i), ISLOWER (i))
7396 || toupper (i) != TOUPPER (i))
7397 return 2;
7398 return 0;
7399 }
7400 _ACEOF
7401 if ac_fn_c_try_run "$LINENO"; then :
7402
7403 else
7404 ac_cv_header_stdc=no
7405 fi
7406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7407 conftest.$ac_objext conftest.beam conftest.$ac_ext
7408 fi
7409
7410 fi
7411 fi
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7413 $as_echo "$ac_cv_header_stdc" >&6; }
7414 if test $ac_cv_header_stdc = yes; then
7415
7416 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7417
7418 fi
7419
7420 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7421 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7422 inttypes.h stdint.h unistd.h
7423 do :
7424 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7425 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7426 "
7427 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7428 cat >>confdefs.h <<_ACEOF
7429 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7430 _ACEOF
7431
7432 fi
7433
7434 done
7435
7436
7437 for ac_header in dlfcn.h
7438 do :
7439 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7440 "
7441 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7442 cat >>confdefs.h <<_ACEOF
7443 #define HAVE_DLFCN_H 1
7444 _ACEOF
7445
7446 fi
7447
7448 done
7449
7450
7451
7452
7453
7454 # Set options
7455
7456
7457
7458 enable_dlopen=no
7459
7460
7461 enable_win32_dll=no
7462
7463
7464 # Check whether --enable-shared was given.
7465 if test "${enable_shared+set}" = set; then :
7466 enableval=$enable_shared; p=${PACKAGE-default}
7467 case $enableval in
7468 yes) enable_shared=yes ;;
7469 no) enable_shared=no ;;
7470 *)
7471 enable_shared=no
7472 # Look at the argument we got. We use all the common list separators.
7473 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7474 for pkg in $enableval; do
7475 IFS="$lt_save_ifs"
7476 if test "X$pkg" = "X$p"; then
7477 enable_shared=yes
7478 fi
7479 done
7480 IFS="$lt_save_ifs"
7481 ;;
7482 esac
7483 else
7484 enable_shared=yes
7485 fi
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495 # Check whether --enable-static was given.
7496 if test "${enable_static+set}" = set; then :
7497 enableval=$enable_static; p=${PACKAGE-default}
7498 case $enableval in
7499 yes) enable_static=yes ;;
7500 no) enable_static=no ;;
7501 *)
7502 enable_static=no
7503 # Look at the argument we got. We use all the common list separators.
7504 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7505 for pkg in $enableval; do
7506 IFS="$lt_save_ifs"
7507 if test "X$pkg" = "X$p"; then
7508 enable_static=yes
7509 fi
7510 done
7511 IFS="$lt_save_ifs"
7512 ;;
7513 esac
7514 else
7515 enable_static=yes
7516 fi
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527 # Check whether --with-pic was given.
7528 if test "${with_pic+set}" = set; then :
7529 withval=$with_pic; lt_p=${PACKAGE-default}
7530 case $withval in
7531 yes|no) pic_mode=$withval ;;
7532 *)
7533 pic_mode=default
7534 # Look at the argument we got. We use all the common list separators.
7535 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7536 for lt_pkg in $withval; do
7537 IFS="$lt_save_ifs"
7538 if test "X$lt_pkg" = "X$lt_p"; then
7539 pic_mode=yes
7540 fi
7541 done
7542 IFS="$lt_save_ifs"
7543 ;;
7544 esac
7545 else
7546 pic_mode=default
7547 fi
7548
7549
7550 test -z "$pic_mode" && pic_mode=default
7551
7552
7553
7554
7555
7556
7557
7558 # Check whether --enable-fast-install was given.
7559 if test "${enable_fast_install+set}" = set; then :
7560 enableval=$enable_fast_install; p=${PACKAGE-default}
7561 case $enableval in
7562 yes) enable_fast_install=yes ;;
7563 no) enable_fast_install=no ;;
7564 *)
7565 enable_fast_install=no
7566 # Look at the argument we got. We use all the common list separators.
7567 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7568 for pkg in $enableval; do
7569 IFS="$lt_save_ifs"
7570 if test "X$pkg" = "X$p"; then
7571 enable_fast_install=yes
7572 fi
7573 done
7574 IFS="$lt_save_ifs"
7575 ;;
7576 esac
7577 else
7578 enable_fast_install=yes
7579 fi
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591 # This can be used to rebuild libtool when needed
7592 LIBTOOL_DEPS="$ltmain"
7593
7594 # Always use our own libtool.
7595 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626 test -z "$LN_S" && LN_S="ln -s"
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641 if test -n "${ZSH_VERSION+set}" ; then
7642 setopt NO_GLOB_SUBST
7643 fi
7644
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7646 $as_echo_n "checking for objdir... " >&6; }
7647 if ${lt_cv_objdir+:} false; then :
7648 $as_echo_n "(cached) " >&6
7649 else
7650 rm -f .libs 2>/dev/null
7651 mkdir .libs 2>/dev/null
7652 if test -d .libs; then
7653 lt_cv_objdir=.libs
7654 else
7655 # MS-DOS does not allow filenames that begin with a dot.
7656 lt_cv_objdir=_libs
7657 fi
7658 rmdir .libs 2>/dev/null
7659 fi
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7661 $as_echo "$lt_cv_objdir" >&6; }
7662 objdir=$lt_cv_objdir
7663
7664
7665
7666
7667
7668 cat >>confdefs.h <<_ACEOF
7669 #define LT_OBJDIR "$lt_cv_objdir/"
7670 _ACEOF
7671
7672
7673
7674
7675 case $host_os in
7676 aix3*)
7677 # AIX sometimes has problems with the GCC collect2 program. For some
7678 # reason, if we set the COLLECT_NAMES environment variable, the problems
7679 # vanish in a puff of smoke.
7680 if test "X${COLLECT_NAMES+set}" != Xset; then
7681 COLLECT_NAMES=
7682 export COLLECT_NAMES
7683 fi
7684 ;;
7685 esac
7686
7687 # Global variables:
7688 ofile=libtool
7689 can_build_shared=yes
7690
7691 # All known linkers require a `.a' archive for static linking (except MSVC,
7692 # which needs '.lib').
7693 libext=a
7694
7695 with_gnu_ld="$lt_cv_prog_gnu_ld"
7696
7697 old_CC="$CC"
7698 old_CFLAGS="$CFLAGS"
7699
7700 # Set sane defaults for various variables
7701 test -z "$CC" && CC=cc
7702 test -z "$LTCC" && LTCC=$CC
7703 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7704 test -z "$LD" && LD=ld
7705 test -z "$ac_objext" && ac_objext=o
7706
7707 for cc_temp in $compiler""; do
7708 case $cc_temp in
7709 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7710 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7711 \-*) ;;
7712 *) break;;
7713 esac
7714 done
7715 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7716
7717
7718 # Only perform the check for file, if the check method requires it
7719 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7720 case $deplibs_check_method in
7721 file_magic*)
7722 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7724 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7725 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7726 $as_echo_n "(cached) " >&6
7727 else
7728 case $MAGIC_CMD in
7729 [\\/*] | ?:[\\/]*)
7730 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7731 ;;
7732 *)
7733 lt_save_MAGIC_CMD="$MAGIC_CMD"
7734 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7735 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7736 for ac_dir in $ac_dummy; do
7737 IFS="$lt_save_ifs"
7738 test -z "$ac_dir" && ac_dir=.
7739 if test -f $ac_dir/${ac_tool_prefix}file; then
7740 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7741 if test -n "$file_magic_test_file"; then
7742 case $deplibs_check_method in
7743 "file_magic "*)
7744 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7745 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7746 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7747 $EGREP "$file_magic_regex" > /dev/null; then
7748 :
7749 else
7750 cat <<_LT_EOF 1>&2
7751
7752 *** Warning: the command libtool uses to detect shared libraries,
7753 *** $file_magic_cmd, produces output that libtool cannot recognize.
7754 *** The result is that libtool may fail to recognize shared libraries
7755 *** as such. This will affect the creation of libtool libraries that
7756 *** depend on shared libraries, but programs linked with such libtool
7757 *** libraries will work regardless of this problem. Nevertheless, you
7758 *** may want to report the problem to your system manager and/or to
7759 *** bug-libtool@gnu.org
7760
7761 _LT_EOF
7762 fi ;;
7763 esac
7764 fi
7765 break
7766 fi
7767 done
7768 IFS="$lt_save_ifs"
7769 MAGIC_CMD="$lt_save_MAGIC_CMD"
7770 ;;
7771 esac
7772 fi
7773
7774 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7775 if test -n "$MAGIC_CMD"; then
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7777 $as_echo "$MAGIC_CMD" >&6; }
7778 else
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7780 $as_echo "no" >&6; }
7781 fi
7782
7783
7784
7785
7786
7787 if test -z "$lt_cv_path_MAGIC_CMD"; then
7788 if test -n "$ac_tool_prefix"; then
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7790 $as_echo_n "checking for file... " >&6; }
7791 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7792 $as_echo_n "(cached) " >&6
7793 else
7794 case $MAGIC_CMD in
7795 [\\/*] | ?:[\\/]*)
7796 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7797 ;;
7798 *)
7799 lt_save_MAGIC_CMD="$MAGIC_CMD"
7800 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7801 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7802 for ac_dir in $ac_dummy; do
7803 IFS="$lt_save_ifs"
7804 test -z "$ac_dir" && ac_dir=.
7805 if test -f $ac_dir/file; then
7806 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7807 if test -n "$file_magic_test_file"; then
7808 case $deplibs_check_method in
7809 "file_magic "*)
7810 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7811 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7812 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7813 $EGREP "$file_magic_regex" > /dev/null; then
7814 :
7815 else
7816 cat <<_LT_EOF 1>&2
7817
7818 *** Warning: the command libtool uses to detect shared libraries,
7819 *** $file_magic_cmd, produces output that libtool cannot recognize.
7820 *** The result is that libtool may fail to recognize shared libraries
7821 *** as such. This will affect the creation of libtool libraries that
7822 *** depend on shared libraries, but programs linked with such libtool
7823 *** libraries will work regardless of this problem. Nevertheless, you
7824 *** may want to report the problem to your system manager and/or to
7825 *** bug-libtool@gnu.org
7826
7827 _LT_EOF
7828 fi ;;
7829 esac
7830 fi
7831 break
7832 fi
7833 done
7834 IFS="$lt_save_ifs"
7835 MAGIC_CMD="$lt_save_MAGIC_CMD"
7836 ;;
7837 esac
7838 fi
7839
7840 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7841 if test -n "$MAGIC_CMD"; then
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7843 $as_echo "$MAGIC_CMD" >&6; }
7844 else
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7846 $as_echo "no" >&6; }
7847 fi
7848
7849
7850 else
7851 MAGIC_CMD=:
7852 fi
7853 fi
7854
7855 fi
7856 ;;
7857 esac
7858
7859 # Use C for the default configuration in the libtool script
7860
7861 lt_save_CC="$CC"
7862 ac_ext=c
7863 ac_cpp='$CPP $CPPFLAGS'
7864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7867
7868
7869 # Source file extension for C test sources.
7870 ac_ext=c
7871
7872 # Object file extension for compiled C test sources.
7873 objext=o
7874 objext=$objext
7875
7876 # Code to be used in simple compile tests
7877 lt_simple_compile_test_code="int some_variable = 0;"
7878
7879 # Code to be used in simple link tests
7880 lt_simple_link_test_code='int main(){return(0);}'
7881
7882
7883
7884
7885
7886
7887
7888 # If no C compiler was specified, use CC.
7889 LTCC=${LTCC-"$CC"}
7890
7891 # If no C compiler flags were specified, use CFLAGS.
7892 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7893
7894 # Allow CC to be a program name with arguments.
7895 compiler=$CC
7896
7897 # Save the default compiler, since it gets overwritten when the other
7898 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7899 compiler_DEFAULT=$CC
7900
7901 # save warnings/boilerplate of simple test code
7902 ac_outfile=conftest.$ac_objext
7903 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7904 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7905 _lt_compiler_boilerplate=`cat conftest.err`
7906 $RM conftest*
7907
7908 ac_outfile=conftest.$ac_objext
7909 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7910 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7911 _lt_linker_boilerplate=`cat conftest.err`
7912 $RM -r conftest*
7913
7914
7915 if test -n "$compiler"; then
7916
7917 lt_prog_compiler_no_builtin_flag=
7918
7919 if test "$GCC" = yes; then
7920 case $cc_basename in
7921 nvcc*)
7922 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7923 *)
7924 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7925 esac
7926
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7928 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7929 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7930 $as_echo_n "(cached) " >&6
7931 else
7932 lt_cv_prog_compiler_rtti_exceptions=no
7933 ac_outfile=conftest.$ac_objext
7934 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7935 lt_compiler_flag="-fno-rtti -fno-exceptions"
7936 # Insert the option either (1) after the last *FLAGS variable, or
7937 # (2) before a word containing "conftest.", or (3) at the end.
7938 # Note that $ac_compile itself does not contain backslashes and begins
7939 # with a dollar sign (not a hyphen), so the echo should work correctly.
7940 # The option is referenced via a variable to avoid confusing sed.
7941 lt_compile=`echo "$ac_compile" | $SED \
7942 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7943 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7944 -e 's:$: $lt_compiler_flag:'`
7945 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7946 (eval "$lt_compile" 2>conftest.err)
7947 ac_status=$?
7948 cat conftest.err >&5
7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 if (exit $ac_status) && test -s "$ac_outfile"; then
7951 # The compiler can only warn and ignore the option if not recognized
7952 # So say no if there are warnings other than the usual output.
7953 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7954 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7955 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7956 lt_cv_prog_compiler_rtti_exceptions=yes
7957 fi
7958 fi
7959 $RM conftest*
7960
7961 fi
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7963 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7964
7965 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7966 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7967 else
7968 :
7969 fi
7970
7971 fi
7972
7973
7974
7975
7976
7977
7978 lt_prog_compiler_wl=
7979 lt_prog_compiler_pic=
7980 lt_prog_compiler_static=
7981
7982
7983 if test "$GCC" = yes; then
7984 lt_prog_compiler_wl='-Wl,'
7985 lt_prog_compiler_static='-static'
7986
7987 case $host_os in
7988 aix*)
7989 # All AIX code is PIC.
7990 if test "$host_cpu" = ia64; then
7991 # AIX 5 now supports IA64 processor
7992 lt_prog_compiler_static='-Bstatic'
7993 fi
7994 ;;
7995
7996 amigaos*)
7997 case $host_cpu in
7998 powerpc)
7999 # see comment about AmigaOS4 .so support
8000 lt_prog_compiler_pic='-fPIC'
8001 ;;
8002 m68k)
8003 # FIXME: we need at least 68020 code to build shared libraries, but
8004 # adding the `-m68020' flag to GCC prevents building anything better,
8005 # like `-m68040'.
8006 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8007 ;;
8008 esac
8009 ;;
8010
8011 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8012 # PIC is the default for these OSes.
8013 ;;
8014
8015 mingw* | cygwin* | pw32* | os2* | cegcc*)
8016 # This hack is so that the source file can tell whether it is being
8017 # built for inclusion in a dll (and should export symbols for example).
8018 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8019 # (--disable-auto-import) libraries
8020 lt_prog_compiler_pic='-DDLL_EXPORT'
8021 ;;
8022
8023 darwin* | rhapsody*)
8024 # PIC is the default on this platform
8025 # Common symbols not allowed in MH_DYLIB files
8026 lt_prog_compiler_pic='-fno-common'
8027 ;;
8028
8029 haiku*)
8030 # PIC is the default for Haiku.
8031 # The "-static" flag exists, but is broken.
8032 lt_prog_compiler_static=
8033 ;;
8034
8035 hpux*)
8036 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8037 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8038 # sets the default TLS model and affects inlining.
8039 case $host_cpu in
8040 hppa*64*)
8041 # +Z the default
8042 ;;
8043 *)
8044 lt_prog_compiler_pic='-fPIC'
8045 ;;
8046 esac
8047 ;;
8048
8049 interix[3-9]*)
8050 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8051 # Instead, we relocate shared libraries at runtime.
8052 ;;
8053
8054 msdosdjgpp*)
8055 # Just because we use GCC doesn't mean we suddenly get shared libraries
8056 # on systems that don't support them.
8057 lt_prog_compiler_can_build_shared=no
8058 enable_shared=no
8059 ;;
8060
8061 *nto* | *qnx*)
8062 # QNX uses GNU C++, but need to define -shared option too, otherwise
8063 # it will coredump.
8064 lt_prog_compiler_pic='-fPIC -shared'
8065 ;;
8066
8067 sysv4*MP*)
8068 if test -d /usr/nec; then
8069 lt_prog_compiler_pic=-Kconform_pic
8070 fi
8071 ;;
8072
8073 *)
8074 lt_prog_compiler_pic='-fPIC'
8075 ;;
8076 esac
8077
8078 case $cc_basename in
8079 nvcc*) # Cuda Compiler Driver 2.2
8080 lt_prog_compiler_wl='-Xlinker '
8081 if test -n "$lt_prog_compiler_pic"; then
8082 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8083 fi
8084 ;;
8085 esac
8086 else
8087 # PORTME Check for flag to pass linker flags through the system compiler.
8088 case $host_os in
8089 aix*)
8090 lt_prog_compiler_wl='-Wl,'
8091 if test "$host_cpu" = ia64; then
8092 # AIX 5 now supports IA64 processor
8093 lt_prog_compiler_static='-Bstatic'
8094 else
8095 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8096 fi
8097 ;;
8098
8099 mingw* | cygwin* | pw32* | os2* | cegcc*)
8100 # This hack is so that the source file can tell whether it is being
8101 # built for inclusion in a dll (and should export symbols for example).
8102 lt_prog_compiler_pic='-DDLL_EXPORT'
8103 ;;
8104
8105 hpux9* | hpux10* | hpux11*)
8106 lt_prog_compiler_wl='-Wl,'
8107 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8108 # not for PA HP-UX.
8109 case $host_cpu in
8110 hppa*64*|ia64*)
8111 # +Z the default
8112 ;;
8113 *)
8114 lt_prog_compiler_pic='+Z'
8115 ;;
8116 esac
8117 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8118 lt_prog_compiler_static='${wl}-a ${wl}archive'
8119 ;;
8120
8121 irix5* | irix6* | nonstopux*)
8122 lt_prog_compiler_wl='-Wl,'
8123 # PIC (with -KPIC) is the default.
8124 lt_prog_compiler_static='-non_shared'
8125 ;;
8126
8127 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8128 case $cc_basename in
8129 # old Intel for x86_64 which still supported -KPIC.
8130 ecc*)
8131 lt_prog_compiler_wl='-Wl,'
8132 lt_prog_compiler_pic='-KPIC'
8133 lt_prog_compiler_static='-static'
8134 ;;
8135 # icc used to be incompatible with GCC.
8136 # ICC 10 doesn't accept -KPIC any more.
8137 icc* | ifort*)
8138 lt_prog_compiler_wl='-Wl,'
8139 lt_prog_compiler_pic='-fPIC'
8140 lt_prog_compiler_static='-static'
8141 ;;
8142 # Lahey Fortran 8.1.
8143 lf95*)
8144 lt_prog_compiler_wl='-Wl,'
8145 lt_prog_compiler_pic='--shared'
8146 lt_prog_compiler_static='--static'
8147 ;;
8148 nagfor*)
8149 # NAG Fortran compiler
8150 lt_prog_compiler_wl='-Wl,-Wl,,'
8151 lt_prog_compiler_pic='-PIC'
8152 lt_prog_compiler_static='-Bstatic'
8153 ;;
8154 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8155 # Portland Group compilers (*not* the Pentium gcc compiler,
8156 # which looks to be a dead project)
8157 lt_prog_compiler_wl='-Wl,'
8158 lt_prog_compiler_pic='-fpic'
8159 lt_prog_compiler_static='-Bstatic'
8160 ;;
8161 ccc*)
8162 lt_prog_compiler_wl='-Wl,'
8163 # All Alpha code is PIC.
8164 lt_prog_compiler_static='-non_shared'
8165 ;;
8166 xl* | bgxl* | bgf* | mpixl*)
8167 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8168 lt_prog_compiler_wl='-Wl,'
8169 lt_prog_compiler_pic='-qpic'
8170 lt_prog_compiler_static='-qstaticlink'
8171 ;;
8172 *)
8173 case `$CC -V 2>&1 | sed 5q` in
8174 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8175 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8176 lt_prog_compiler_pic='-KPIC'
8177 lt_prog_compiler_static='-Bstatic'
8178 lt_prog_compiler_wl=''
8179 ;;
8180 *Sun\ F* | *Sun*Fortran*)
8181 lt_prog_compiler_pic='-KPIC'
8182 lt_prog_compiler_static='-Bstatic'
8183 lt_prog_compiler_wl='-Qoption ld '
8184 ;;
8185 *Sun\ C*)
8186 # Sun C 5.9
8187 lt_prog_compiler_pic='-KPIC'
8188 lt_prog_compiler_static='-Bstatic'
8189 lt_prog_compiler_wl='-Wl,'
8190 ;;
8191 *Intel*\ [CF]*Compiler*)
8192 lt_prog_compiler_wl='-Wl,'
8193 lt_prog_compiler_pic='-fPIC'
8194 lt_prog_compiler_static='-static'
8195 ;;
8196 *Portland\ Group*)
8197 lt_prog_compiler_wl='-Wl,'
8198 lt_prog_compiler_pic='-fpic'
8199 lt_prog_compiler_static='-Bstatic'
8200 ;;
8201 esac
8202 ;;
8203 esac
8204 ;;
8205
8206 newsos6)
8207 lt_prog_compiler_pic='-KPIC'
8208 lt_prog_compiler_static='-Bstatic'
8209 ;;
8210
8211 *nto* | *qnx*)
8212 # QNX uses GNU C++, but need to define -shared option too, otherwise
8213 # it will coredump.
8214 lt_prog_compiler_pic='-fPIC -shared'
8215 ;;
8216
8217 osf3* | osf4* | osf5*)
8218 lt_prog_compiler_wl='-Wl,'
8219 # All OSF/1 code is PIC.
8220 lt_prog_compiler_static='-non_shared'
8221 ;;
8222
8223 rdos*)
8224 lt_prog_compiler_static='-non_shared'
8225 ;;
8226
8227 solaris*)
8228 lt_prog_compiler_pic='-KPIC'
8229 lt_prog_compiler_static='-Bstatic'
8230 case $cc_basename in
8231 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8232 lt_prog_compiler_wl='-Qoption ld ';;
8233 *)
8234 lt_prog_compiler_wl='-Wl,';;
8235 esac
8236 ;;
8237
8238 sunos4*)
8239 lt_prog_compiler_wl='-Qoption ld '
8240 lt_prog_compiler_pic='-PIC'
8241 lt_prog_compiler_static='-Bstatic'
8242 ;;
8243
8244 sysv4 | sysv4.2uw2* | sysv4.3*)
8245 lt_prog_compiler_wl='-Wl,'
8246 lt_prog_compiler_pic='-KPIC'
8247 lt_prog_compiler_static='-Bstatic'
8248 ;;
8249
8250 sysv4*MP*)
8251 if test -d /usr/nec ;then
8252 lt_prog_compiler_pic='-Kconform_pic'
8253 lt_prog_compiler_static='-Bstatic'
8254 fi
8255 ;;
8256
8257 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8258 lt_prog_compiler_wl='-Wl,'
8259 lt_prog_compiler_pic='-KPIC'
8260 lt_prog_compiler_static='-Bstatic'
8261 ;;
8262
8263 unicos*)
8264 lt_prog_compiler_wl='-Wl,'
8265 lt_prog_compiler_can_build_shared=no
8266 ;;
8267
8268 uts4*)
8269 lt_prog_compiler_pic='-pic'
8270 lt_prog_compiler_static='-Bstatic'
8271 ;;
8272
8273 *)
8274 lt_prog_compiler_can_build_shared=no
8275 ;;
8276 esac
8277 fi
8278
8279 case $host_os in
8280 # For platforms which do not support PIC, -DPIC is meaningless:
8281 *djgpp*)
8282 lt_prog_compiler_pic=
8283 ;;
8284 *)
8285 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8286 ;;
8287 esac
8288
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8290 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8291 if ${lt_cv_prog_compiler_pic+:} false; then :
8292 $as_echo_n "(cached) " >&6
8293 else
8294 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8295 fi
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8297 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8298 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8299
8300 #
8301 # Check to make sure the PIC flag actually works.
8302 #
8303 if test -n "$lt_prog_compiler_pic"; then
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8305 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8306 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8307 $as_echo_n "(cached) " >&6
8308 else
8309 lt_cv_prog_compiler_pic_works=no
8310 ac_outfile=conftest.$ac_objext
8311 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8312 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8313 # Insert the option either (1) after the last *FLAGS variable, or
8314 # (2) before a word containing "conftest.", or (3) at the end.
8315 # Note that $ac_compile itself does not contain backslashes and begins
8316 # with a dollar sign (not a hyphen), so the echo should work correctly.
8317 # The option is referenced via a variable to avoid confusing sed.
8318 lt_compile=`echo "$ac_compile" | $SED \
8319 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8320 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8321 -e 's:$: $lt_compiler_flag:'`
8322 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8323 (eval "$lt_compile" 2>conftest.err)
8324 ac_status=$?
8325 cat conftest.err >&5
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 if (exit $ac_status) && test -s "$ac_outfile"; then
8328 # The compiler can only warn and ignore the option if not recognized
8329 # So say no if there are warnings other than the usual output.
8330 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8331 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8332 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8333 lt_cv_prog_compiler_pic_works=yes
8334 fi
8335 fi
8336 $RM conftest*
8337
8338 fi
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8340 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8341
8342 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8343 case $lt_prog_compiler_pic in
8344 "" | " "*) ;;
8345 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8346 esac
8347 else
8348 lt_prog_compiler_pic=
8349 lt_prog_compiler_can_build_shared=no
8350 fi
8351
8352 fi
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364 #
8365 # Check to make sure the static flag actually works.
8366 #
8367 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8369 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8370 if ${lt_cv_prog_compiler_static_works+:} false; then :
8371 $as_echo_n "(cached) " >&6
8372 else
8373 lt_cv_prog_compiler_static_works=no
8374 save_LDFLAGS="$LDFLAGS"
8375 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8376 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8377 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8378 # The linker can only warn and ignore the option if not recognized
8379 # So say no if there are warnings
8380 if test -s conftest.err; then
8381 # Append any errors to the config.log.
8382 cat conftest.err 1>&5
8383 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8384 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8385 if diff conftest.exp conftest.er2 >/dev/null; then
8386 lt_cv_prog_compiler_static_works=yes
8387 fi
8388 else
8389 lt_cv_prog_compiler_static_works=yes
8390 fi
8391 fi
8392 $RM -r conftest*
8393 LDFLAGS="$save_LDFLAGS"
8394
8395 fi
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8397 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8398
8399 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8400 :
8401 else
8402 lt_prog_compiler_static=
8403 fi
8404
8405
8406
8407
8408
8409
8410
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8412 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8413 if ${lt_cv_prog_compiler_c_o+:} false; then :
8414 $as_echo_n "(cached) " >&6
8415 else
8416 lt_cv_prog_compiler_c_o=no
8417 $RM -r conftest 2>/dev/null
8418 mkdir conftest
8419 cd conftest
8420 mkdir out
8421 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8422
8423 lt_compiler_flag="-o out/conftest2.$ac_objext"
8424 # Insert the option either (1) after the last *FLAGS variable, or
8425 # (2) before a word containing "conftest.", or (3) at the end.
8426 # Note that $ac_compile itself does not contain backslashes and begins
8427 # with a dollar sign (not a hyphen), so the echo should work correctly.
8428 lt_compile=`echo "$ac_compile" | $SED \
8429 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8431 -e 's:$: $lt_compiler_flag:'`
8432 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8433 (eval "$lt_compile" 2>out/conftest.err)
8434 ac_status=$?
8435 cat out/conftest.err >&5
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8438 then
8439 # The compiler can only warn and ignore the option if not recognized
8440 # So say no if there are warnings
8441 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8442 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8443 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8444 lt_cv_prog_compiler_c_o=yes
8445 fi
8446 fi
8447 chmod u+w . 2>&5
8448 $RM conftest*
8449 # SGI C++ compiler will create directory out/ii_files/ for
8450 # template instantiation
8451 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8452 $RM out/* && rmdir out
8453 cd ..
8454 $RM -r conftest
8455 $RM conftest*
8456
8457 fi
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8459 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8460
8461
8462
8463
8464
8465
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8467 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8468 if ${lt_cv_prog_compiler_c_o+:} false; then :
8469 $as_echo_n "(cached) " >&6
8470 else
8471 lt_cv_prog_compiler_c_o=no
8472 $RM -r conftest 2>/dev/null
8473 mkdir conftest
8474 cd conftest
8475 mkdir out
8476 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8477
8478 lt_compiler_flag="-o out/conftest2.$ac_objext"
8479 # Insert the option either (1) after the last *FLAGS variable, or
8480 # (2) before a word containing "conftest.", or (3) at the end.
8481 # Note that $ac_compile itself does not contain backslashes and begins
8482 # with a dollar sign (not a hyphen), so the echo should work correctly.
8483 lt_compile=`echo "$ac_compile" | $SED \
8484 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8485 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8486 -e 's:$: $lt_compiler_flag:'`
8487 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8488 (eval "$lt_compile" 2>out/conftest.err)
8489 ac_status=$?
8490 cat out/conftest.err >&5
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8493 then
8494 # The compiler can only warn and ignore the option if not recognized
8495 # So say no if there are warnings
8496 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8497 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8498 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8499 lt_cv_prog_compiler_c_o=yes
8500 fi
8501 fi
8502 chmod u+w . 2>&5
8503 $RM conftest*
8504 # SGI C++ compiler will create directory out/ii_files/ for
8505 # template instantiation
8506 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8507 $RM out/* && rmdir out
8508 cd ..
8509 $RM -r conftest
8510 $RM conftest*
8511
8512 fi
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8514 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8515
8516
8517
8518
8519 hard_links="nottested"
8520 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8521 # do not overwrite the value of need_locks provided by the user
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8523 $as_echo_n "checking if we can lock with hard links... " >&6; }
8524 hard_links=yes
8525 $RM conftest*
8526 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8527 touch conftest.a
8528 ln conftest.a conftest.b 2>&5 || hard_links=no
8529 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8531 $as_echo "$hard_links" >&6; }
8532 if test "$hard_links" = no; then
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8534 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8535 need_locks=warn
8536 fi
8537 else
8538 need_locks=no
8539 fi
8540
8541
8542
8543
8544
8545
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8547 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8548
8549 runpath_var=
8550 allow_undefined_flag=
8551 always_export_symbols=no
8552 archive_cmds=
8553 archive_expsym_cmds=
8554 compiler_needs_object=no
8555 enable_shared_with_static_runtimes=no
8556 export_dynamic_flag_spec=
8557 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8558 hardcode_automatic=no
8559 hardcode_direct=no
8560 hardcode_direct_absolute=no
8561 hardcode_libdir_flag_spec=
8562 hardcode_libdir_separator=
8563 hardcode_minus_L=no
8564 hardcode_shlibpath_var=unsupported
8565 inherit_rpath=no
8566 link_all_deplibs=unknown
8567 module_cmds=
8568 module_expsym_cmds=
8569 old_archive_from_new_cmds=
8570 old_archive_from_expsyms_cmds=
8571 thread_safe_flag_spec=
8572 whole_archive_flag_spec=
8573 # include_expsyms should be a list of space-separated symbols to be *always*
8574 # included in the symbol list
8575 include_expsyms=
8576 # exclude_expsyms can be an extended regexp of symbols to exclude
8577 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8578 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8579 # as well as any symbol that contains `d'.
8580 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8581 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8582 # platforms (ab)use it in PIC code, but their linkers get confused if
8583 # the symbol is explicitly referenced. Since portable code cannot
8584 # rely on this symbol name, it's probably fine to never include it in
8585 # preloaded symbol tables.
8586 # Exclude shared library initialization/finalization symbols.
8587 extract_expsyms_cmds=
8588
8589 case $host_os in
8590 cygwin* | mingw* | pw32* | cegcc*)
8591 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8592 # When not using gcc, we currently assume that we are using
8593 # Microsoft Visual C++.
8594 if test "$GCC" != yes; then
8595 with_gnu_ld=no
8596 fi
8597 ;;
8598 interix*)
8599 # we just hope/assume this is gcc and not c89 (= MSVC++)
8600 with_gnu_ld=yes
8601 ;;
8602 openbsd*)
8603 with_gnu_ld=no
8604 ;;
8605 linux* | k*bsd*-gnu | gnu*)
8606 link_all_deplibs=no
8607 ;;
8608 esac
8609
8610 ld_shlibs=yes
8611
8612 # On some targets, GNU ld is compatible enough with the native linker
8613 # that we're better off using the native interface for both.
8614 lt_use_gnu_ld_interface=no
8615 if test "$with_gnu_ld" = yes; then
8616 case $host_os in
8617 aix*)
8618 # The AIX port of GNU ld has always aspired to compatibility
8619 # with the native linker. However, as the warning in the GNU ld
8620 # block says, versions before 2.19.5* couldn't really create working
8621 # shared libraries, regardless of the interface used.
8622 case `$LD -v 2>&1` in
8623 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8624 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8625 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8626 *)
8627 lt_use_gnu_ld_interface=yes
8628 ;;
8629 esac
8630 ;;
8631 *)
8632 lt_use_gnu_ld_interface=yes
8633 ;;
8634 esac
8635 fi
8636
8637 if test "$lt_use_gnu_ld_interface" = yes; then
8638 # If archive_cmds runs LD, not CC, wlarc should be empty
8639 wlarc='${wl}'
8640
8641 # Set some defaults for GNU ld with shared library support. These
8642 # are reset later if shared libraries are not supported. Putting them
8643 # here allows them to be overridden if necessary.
8644 runpath_var=LD_RUN_PATH
8645 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8646 export_dynamic_flag_spec='${wl}--export-dynamic'
8647 # ancient GNU ld didn't support --whole-archive et. al.
8648 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8649 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8650 else
8651 whole_archive_flag_spec=
8652 fi
8653 supports_anon_versioning=no
8654 case `$LD -v 2>&1` in
8655 *GNU\ gold*) supports_anon_versioning=yes ;;
8656 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8657 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8658 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8659 *\ 2.11.*) ;; # other 2.11 versions
8660 *) supports_anon_versioning=yes ;;
8661 esac
8662
8663 # See if GNU ld supports shared libraries.
8664 case $host_os in
8665 aix[3-9]*)
8666 # On AIX/PPC, the GNU linker is very broken
8667 if test "$host_cpu" != ia64; then
8668 ld_shlibs=no
8669 cat <<_LT_EOF 1>&2
8670
8671 *** Warning: the GNU linker, at least up to release 2.19, is reported
8672 *** to be unable to reliably create shared libraries on AIX.
8673 *** Therefore, libtool is disabling shared libraries support. If you
8674 *** really care for shared libraries, you may want to install binutils
8675 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8676 *** You will then need to restart the configuration process.
8677
8678 _LT_EOF
8679 fi
8680 ;;
8681
8682 amigaos*)
8683 case $host_cpu in
8684 powerpc)
8685 # see comment about AmigaOS4 .so support
8686 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8687 archive_expsym_cmds=''
8688 ;;
8689 m68k)
8690 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)'
8691 hardcode_libdir_flag_spec='-L$libdir'
8692 hardcode_minus_L=yes
8693 ;;
8694 esac
8695 ;;
8696
8697 beos*)
8698 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8699 allow_undefined_flag=unsupported
8700 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8701 # support --undefined. This deserves some investigation. FIXME
8702 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8703 else
8704 ld_shlibs=no
8705 fi
8706 ;;
8707
8708 cygwin* | mingw* | pw32* | cegcc*)
8709 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8710 # as there is no search path for DLLs.
8711 hardcode_libdir_flag_spec='-L$libdir'
8712 export_dynamic_flag_spec='${wl}--export-all-symbols'
8713 allow_undefined_flag=unsupported
8714 always_export_symbols=no
8715 enable_shared_with_static_runtimes=yes
8716 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'
8717 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8718
8719 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8720 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8721 # If the export-symbols file already is a .def file (1st line
8722 # is EXPORTS), use it as is; otherwise, prepend...
8723 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8724 cp $export_symbols $output_objdir/$soname.def;
8725 else
8726 echo EXPORTS > $output_objdir/$soname.def;
8727 cat $export_symbols >> $output_objdir/$soname.def;
8728 fi~
8729 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8730 else
8731 ld_shlibs=no
8732 fi
8733 ;;
8734
8735 haiku*)
8736 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8737 link_all_deplibs=yes
8738 ;;
8739
8740 interix[3-9]*)
8741 hardcode_direct=no
8742 hardcode_shlibpath_var=no
8743 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8744 export_dynamic_flag_spec='${wl}-E'
8745 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8746 # Instead, shared libraries are loaded at an image base (0x10000000 by
8747 # default) and relocated if they conflict, which is a slow very memory
8748 # consuming and fragmenting process. To avoid this, we pick a random,
8749 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8750 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8751 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8752 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'
8753 ;;
8754
8755 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8756 tmp_diet=no
8757 if test "$host_os" = linux-dietlibc; then
8758 case $cc_basename in
8759 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8760 esac
8761 fi
8762 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8763 && test "$tmp_diet" = no
8764 then
8765 tmp_addflag=' $pic_flag'
8766 tmp_sharedflag='-shared'
8767 case $cc_basename,$host_cpu in
8768 pgcc*) # Portland Group C compiler
8769 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'
8770 tmp_addflag=' $pic_flag'
8771 ;;
8772 pgf77* | pgf90* | pgf95* | pgfortran*)
8773 # Portland Group f77 and f90 compilers
8774 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'
8775 tmp_addflag=' $pic_flag -Mnomain' ;;
8776 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8777 tmp_addflag=' -i_dynamic' ;;
8778 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8779 tmp_addflag=' -i_dynamic -nofor_main' ;;
8780 ifc* | ifort*) # Intel Fortran compiler
8781 tmp_addflag=' -nofor_main' ;;
8782 lf95*) # Lahey Fortran 8.1
8783 whole_archive_flag_spec=
8784 tmp_sharedflag='--shared' ;;
8785 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8786 tmp_sharedflag='-qmkshrobj'
8787 tmp_addflag= ;;
8788 nvcc*) # Cuda Compiler Driver 2.2
8789 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'
8790 compiler_needs_object=yes
8791 ;;
8792 esac
8793 case `$CC -V 2>&1 | sed 5q` in
8794 *Sun\ C*) # Sun C 5.9
8795 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'
8796 compiler_needs_object=yes
8797 tmp_sharedflag='-G' ;;
8798 *Sun\ F*) # Sun Fortran 8.3
8799 tmp_sharedflag='-G' ;;
8800 esac
8801 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8802
8803 if test "x$supports_anon_versioning" = xyes; then
8804 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8805 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8806 echo "local: *; };" >> $output_objdir/$libname.ver~
8807 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8808 fi
8809
8810 case $cc_basename in
8811 xlf* | bgf* | bgxlf* | mpixlf*)
8812 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8813 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8814 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8815 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8816 if test "x$supports_anon_versioning" = xyes; then
8817 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8818 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8819 echo "local: *; };" >> $output_objdir/$libname.ver~
8820 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8821 fi
8822 ;;
8823 esac
8824 else
8825 ld_shlibs=no
8826 fi
8827 ;;
8828
8829 netbsd* | netbsdelf*-gnu)
8830 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8831 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8832 wlarc=
8833 else
8834 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8835 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8836 fi
8837 ;;
8838
8839 solaris*)
8840 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8841 ld_shlibs=no
8842 cat <<_LT_EOF 1>&2
8843
8844 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8845 *** create shared libraries on Solaris systems. Therefore, libtool
8846 *** is disabling shared libraries support. We urge you to upgrade GNU
8847 *** binutils to release 2.9.1 or newer. Another option is to modify
8848 *** your PATH or compiler configuration so that the native linker is
8849 *** used, and then restart.
8850
8851 _LT_EOF
8852 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8853 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8854 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8855 else
8856 ld_shlibs=no
8857 fi
8858 ;;
8859
8860 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8861 case `$LD -v 2>&1` in
8862 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8863 ld_shlibs=no
8864 cat <<_LT_EOF 1>&2
8865
8866 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8867 *** reliably create shared libraries on SCO systems. Therefore, libtool
8868 *** is disabling shared libraries support. We urge you to upgrade GNU
8869 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8870 *** your PATH or compiler configuration so that the native linker is
8871 *** used, and then restart.
8872
8873 _LT_EOF
8874 ;;
8875 *)
8876 # For security reasons, it is highly recommended that you always
8877 # use absolute paths for naming shared libraries, and exclude the
8878 # DT_RUNPATH tag from executables and libraries. But doing so
8879 # requires that you compile everything twice, which is a pain.
8880 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8881 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8882 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8883 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8884 else
8885 ld_shlibs=no
8886 fi
8887 ;;
8888 esac
8889 ;;
8890
8891 sunos4*)
8892 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8893 wlarc=
8894 hardcode_direct=yes
8895 hardcode_shlibpath_var=no
8896 ;;
8897
8898 *)
8899 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8900 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8901 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8902 else
8903 ld_shlibs=no
8904 fi
8905 ;;
8906 esac
8907
8908 if test "$ld_shlibs" = no; then
8909 runpath_var=
8910 hardcode_libdir_flag_spec=
8911 export_dynamic_flag_spec=
8912 whole_archive_flag_spec=
8913 fi
8914 else
8915 # PORTME fill in a description of your system's linker (not GNU ld)
8916 case $host_os in
8917 aix3*)
8918 allow_undefined_flag=unsupported
8919 always_export_symbols=yes
8920 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'
8921 # Note: this linker hardcodes the directories in LIBPATH if there
8922 # are no directories specified by -L.
8923 hardcode_minus_L=yes
8924 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8925 # Neither direct hardcoding nor static linking is supported with a
8926 # broken collect2.
8927 hardcode_direct=unsupported
8928 fi
8929 ;;
8930
8931 aix[4-9]*)
8932 if test "$host_cpu" = ia64; then
8933 # On IA64, the linker does run time linking by default, so we don't
8934 # have to do anything special.
8935 aix_use_runtimelinking=no
8936 exp_sym_flag='-Bexport'
8937 no_entry_flag=""
8938 else
8939 # If we're using GNU nm, then we don't want the "-C" option.
8940 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8941 # Also, AIX nm treats weak defined symbols like other global
8942 # defined symbols, whereas GNU nm marks them as "W".
8943 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8944 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8945 else
8946 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8947 fi
8948 aix_use_runtimelinking=no
8949
8950 # Test if we are trying to use run time linking or normal
8951 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8952 # need to do runtime linking.
8953 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8954 for ld_flag in $LDFLAGS; do
8955 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8956 aix_use_runtimelinking=yes
8957 break
8958 fi
8959 done
8960 ;;
8961 esac
8962
8963 exp_sym_flag='-bexport'
8964 no_entry_flag='-bnoentry'
8965 fi
8966
8967 # When large executables or shared objects are built, AIX ld can
8968 # have problems creating the table of contents. If linking a library
8969 # or program results in "error TOC overflow" add -mminimal-toc to
8970 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8971 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8972
8973 archive_cmds=''
8974 hardcode_direct=yes
8975 hardcode_direct_absolute=yes
8976 hardcode_libdir_separator=':'
8977 link_all_deplibs=yes
8978 file_list_spec='${wl}-f,'
8979
8980 if test "$GCC" = yes; then
8981 case $host_os in aix4.[012]|aix4.[012].*)
8982 # We only want to do this on AIX 4.2 and lower, the check
8983 # below for broken collect2 doesn't work under 4.3+
8984 collect2name=`${CC} -print-prog-name=collect2`
8985 if test -f "$collect2name" &&
8986 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8987 then
8988 # We have reworked collect2
8989 :
8990 else
8991 # We have old collect2
8992 hardcode_direct=unsupported
8993 # It fails to find uninstalled libraries when the uninstalled
8994 # path is not listed in the libpath. Setting hardcode_minus_L
8995 # to unsupported forces relinking
8996 hardcode_minus_L=yes
8997 hardcode_libdir_flag_spec='-L$libdir'
8998 hardcode_libdir_separator=
8999 fi
9000 ;;
9001 esac
9002 shared_flag='-shared'
9003 if test "$aix_use_runtimelinking" = yes; then
9004 shared_flag="$shared_flag "'${wl}-G'
9005 fi
9006 link_all_deplibs=no
9007 else
9008 # not using gcc
9009 if test "$host_cpu" = ia64; then
9010 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9011 # chokes on -Wl,-G. The following line is correct:
9012 shared_flag='-G'
9013 else
9014 if test "$aix_use_runtimelinking" = yes; then
9015 shared_flag='${wl}-G'
9016 else
9017 shared_flag='${wl}-bM:SRE'
9018 fi
9019 fi
9020 fi
9021
9022 export_dynamic_flag_spec='${wl}-bexpall'
9023 # It seems that -bexpall does not export symbols beginning with
9024 # underscore (_), so it is better to generate a list of symbols to export.
9025 always_export_symbols=yes
9026 if test "$aix_use_runtimelinking" = yes; then
9027 # Warning - without using the other runtime loading flags (-brtl),
9028 # -berok will link without error, but may produce a broken library.
9029 allow_undefined_flag='-berok'
9030 # Determine the default libpath from the value encoded in an
9031 # empty executable.
9032 if test "${lt_cv_aix_libpath+set}" = set; then
9033 aix_libpath=$lt_cv_aix_libpath
9034 else
9035 if ${lt_cv_aix_libpath_+:} false; then :
9036 $as_echo_n "(cached) " >&6
9037 else
9038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9039 /* end confdefs.h. */
9040
9041 int
9042 main ()
9043 {
9044
9045 ;
9046 return 0;
9047 }
9048 _ACEOF
9049 if ac_fn_c_try_link "$LINENO"; then :
9050
9051 lt_aix_libpath_sed='
9052 /Import File Strings/,/^$/ {
9053 /^0/ {
9054 s/^0 *\([^ ]*\) *$/\1/
9055 p
9056 }
9057 }'
9058 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9059 # Check for a 64-bit object if we didn't find anything.
9060 if test -z "$lt_cv_aix_libpath_"; then
9061 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9062 fi
9063 fi
9064 rm -f core conftest.err conftest.$ac_objext \
9065 conftest$ac_exeext conftest.$ac_ext
9066 if test -z "$lt_cv_aix_libpath_"; then
9067 lt_cv_aix_libpath_="/usr/lib:/lib"
9068 fi
9069
9070 fi
9071
9072 aix_libpath=$lt_cv_aix_libpath_
9073 fi
9074
9075 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9076 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9077 else
9078 if test "$host_cpu" = ia64; then
9079 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9080 allow_undefined_flag="-z nodefs"
9081 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"
9082 else
9083 # Determine the default libpath from the value encoded in an
9084 # empty executable.
9085 if test "${lt_cv_aix_libpath+set}" = set; then
9086 aix_libpath=$lt_cv_aix_libpath
9087 else
9088 if ${lt_cv_aix_libpath_+:} false; then :
9089 $as_echo_n "(cached) " >&6
9090 else
9091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9092 /* end confdefs.h. */
9093
9094 int
9095 main ()
9096 {
9097
9098 ;
9099 return 0;
9100 }
9101 _ACEOF
9102 if ac_fn_c_try_link "$LINENO"; then :
9103
9104 lt_aix_libpath_sed='
9105 /Import File Strings/,/^$/ {
9106 /^0/ {
9107 s/^0 *\([^ ]*\) *$/\1/
9108 p
9109 }
9110 }'
9111 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9112 # Check for a 64-bit object if we didn't find anything.
9113 if test -z "$lt_cv_aix_libpath_"; then
9114 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9115 fi
9116 fi
9117 rm -f core conftest.err conftest.$ac_objext \
9118 conftest$ac_exeext conftest.$ac_ext
9119 if test -z "$lt_cv_aix_libpath_"; then
9120 lt_cv_aix_libpath_="/usr/lib:/lib"
9121 fi
9122
9123 fi
9124
9125 aix_libpath=$lt_cv_aix_libpath_
9126 fi
9127
9128 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9129 # Warning - without using the other run time loading flags,
9130 # -berok will link without error, but may produce a broken library.
9131 no_undefined_flag=' ${wl}-bernotok'
9132 allow_undefined_flag=' ${wl}-berok'
9133 if test "$with_gnu_ld" = yes; then
9134 # We only use this code for GNU lds that support --whole-archive.
9135 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9136 else
9137 # Exported symbols can be pulled into shared objects from archives
9138 whole_archive_flag_spec='$convenience'
9139 fi
9140 archive_cmds_need_lc=yes
9141 # This is similar to how AIX traditionally builds its shared libraries.
9142 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9143 fi
9144 fi
9145 ;;
9146
9147 amigaos*)
9148 case $host_cpu in
9149 powerpc)
9150 # see comment about AmigaOS4 .so support
9151 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9152 archive_expsym_cmds=''
9153 ;;
9154 m68k)
9155 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)'
9156 hardcode_libdir_flag_spec='-L$libdir'
9157 hardcode_minus_L=yes
9158 ;;
9159 esac
9160 ;;
9161
9162 bsdi[45]*)
9163 export_dynamic_flag_spec=-rdynamic
9164 ;;
9165
9166 cygwin* | mingw* | pw32* | cegcc*)
9167 # When not using gcc, we currently assume that we are using
9168 # Microsoft Visual C++.
9169 # hardcode_libdir_flag_spec is actually meaningless, as there is
9170 # no search path for DLLs.
9171 case $cc_basename in
9172 cl*)
9173 # Native MSVC
9174 hardcode_libdir_flag_spec=' '
9175 allow_undefined_flag=unsupported
9176 always_export_symbols=yes
9177 file_list_spec='@'
9178 # Tell ltmain to make .lib files, not .a files.
9179 libext=lib
9180 # Tell ltmain to make .dll files, not .so files.
9181 shrext_cmds=".dll"
9182 # FIXME: Setting linknames here is a bad hack.
9183 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9184 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9185 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9186 else
9187 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9188 fi~
9189 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9190 linknames='
9191 # The linker will not automatically build a static lib if we build a DLL.
9192 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9193 enable_shared_with_static_runtimes=yes
9194 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9195 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9196 # Don't use ranlib
9197 old_postinstall_cmds='chmod 644 $oldlib'
9198 postlink_cmds='lt_outputfile="@OUTPUT@"~
9199 lt_tool_outputfile="@TOOL_OUTPUT@"~
9200 case $lt_outputfile in
9201 *.exe|*.EXE) ;;
9202 *)
9203 lt_outputfile="$lt_outputfile.exe"
9204 lt_tool_outputfile="$lt_tool_outputfile.exe"
9205 ;;
9206 esac~
9207 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9208 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9209 $RM "$lt_outputfile.manifest";
9210 fi'
9211 ;;
9212 *)
9213 # Assume MSVC wrapper
9214 hardcode_libdir_flag_spec=' '
9215 allow_undefined_flag=unsupported
9216 # Tell ltmain to make .lib files, not .a files.
9217 libext=lib
9218 # Tell ltmain to make .dll files, not .so files.
9219 shrext_cmds=".dll"
9220 # FIXME: Setting linknames here is a bad hack.
9221 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9222 # The linker will automatically build a .lib file if we build a DLL.
9223 old_archive_from_new_cmds='true'
9224 # FIXME: Should let the user specify the lib program.
9225 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9226 enable_shared_with_static_runtimes=yes
9227 ;;
9228 esac
9229 ;;
9230
9231 darwin* | rhapsody*)
9232
9233
9234 archive_cmds_need_lc=no
9235 hardcode_direct=no
9236 hardcode_automatic=yes
9237 hardcode_shlibpath_var=unsupported
9238 if test "$lt_cv_ld_force_load" = "yes"; then
9239 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\"`'
9240
9241 else
9242 whole_archive_flag_spec=''
9243 fi
9244 link_all_deplibs=yes
9245 allow_undefined_flag="$_lt_dar_allow_undefined"
9246 case $cc_basename in
9247 ifort*) _lt_dar_can_shared=yes ;;
9248 *) _lt_dar_can_shared=$GCC ;;
9249 esac
9250 if test "$_lt_dar_can_shared" = "yes"; then
9251 output_verbose_link_cmd=func_echo_all
9252 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9253 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9254 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}"
9255 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}"
9256
9257 else
9258 ld_shlibs=no
9259 fi
9260
9261 ;;
9262
9263 dgux*)
9264 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9265 hardcode_libdir_flag_spec='-L$libdir'
9266 hardcode_shlibpath_var=no
9267 ;;
9268
9269 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9270 # support. Future versions do this automatically, but an explicit c++rt0.o
9271 # does not break anything, and helps significantly (at the cost of a little
9272 # extra space).
9273 freebsd2.2*)
9274 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9275 hardcode_libdir_flag_spec='-R$libdir'
9276 hardcode_direct=yes
9277 hardcode_shlibpath_var=no
9278 ;;
9279
9280 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9281 freebsd2.*)
9282 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9283 hardcode_direct=yes
9284 hardcode_minus_L=yes
9285 hardcode_shlibpath_var=no
9286 ;;
9287
9288 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9289 freebsd* | dragonfly*)
9290 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9291 hardcode_libdir_flag_spec='-R$libdir'
9292 hardcode_direct=yes
9293 hardcode_shlibpath_var=no
9294 ;;
9295
9296 hpux9*)
9297 if test "$GCC" = yes; then
9298 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9299 else
9300 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9301 fi
9302 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9303 hardcode_libdir_separator=:
9304 hardcode_direct=yes
9305
9306 # hardcode_minus_L: Not really in the search PATH,
9307 # but as the default location of the library.
9308 hardcode_minus_L=yes
9309 export_dynamic_flag_spec='${wl}-E'
9310 ;;
9311
9312 hpux10*)
9313 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9314 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9315 else
9316 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9317 fi
9318 if test "$with_gnu_ld" = no; then
9319 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9320 hardcode_libdir_separator=:
9321 hardcode_direct=yes
9322 hardcode_direct_absolute=yes
9323 export_dynamic_flag_spec='${wl}-E'
9324 # hardcode_minus_L: Not really in the search PATH,
9325 # but as the default location of the library.
9326 hardcode_minus_L=yes
9327 fi
9328 ;;
9329
9330 hpux11*)
9331 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9332 case $host_cpu in
9333 hppa*64*)
9334 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9335 ;;
9336 ia64*)
9337 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9338 ;;
9339 *)
9340 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9341 ;;
9342 esac
9343 else
9344 case $host_cpu in
9345 hppa*64*)
9346 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9347 ;;
9348 ia64*)
9349 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9350 ;;
9351 *)
9352
9353 # Older versions of the 11.00 compiler do not understand -b yet
9354 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9356 $as_echo_n "checking if $CC understands -b... " >&6; }
9357 if ${lt_cv_prog_compiler__b+:} false; then :
9358 $as_echo_n "(cached) " >&6
9359 else
9360 lt_cv_prog_compiler__b=no
9361 save_LDFLAGS="$LDFLAGS"
9362 LDFLAGS="$LDFLAGS -b"
9363 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9364 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9365 # The linker can only warn and ignore the option if not recognized
9366 # So say no if there are warnings
9367 if test -s conftest.err; then
9368 # Append any errors to the config.log.
9369 cat conftest.err 1>&5
9370 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9371 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9372 if diff conftest.exp conftest.er2 >/dev/null; then
9373 lt_cv_prog_compiler__b=yes
9374 fi
9375 else
9376 lt_cv_prog_compiler__b=yes
9377 fi
9378 fi
9379 $RM -r conftest*
9380 LDFLAGS="$save_LDFLAGS"
9381
9382 fi
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9384 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9385
9386 if test x"$lt_cv_prog_compiler__b" = xyes; then
9387 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9388 else
9389 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9390 fi
9391
9392 ;;
9393 esac
9394 fi
9395 if test "$with_gnu_ld" = no; then
9396 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9397 hardcode_libdir_separator=:
9398
9399 case $host_cpu in
9400 hppa*64*|ia64*)
9401 hardcode_direct=no
9402 hardcode_shlibpath_var=no
9403 ;;
9404 *)
9405 hardcode_direct=yes
9406 hardcode_direct_absolute=yes
9407 export_dynamic_flag_spec='${wl}-E'
9408
9409 # hardcode_minus_L: Not really in the search PATH,
9410 # but as the default location of the library.
9411 hardcode_minus_L=yes
9412 ;;
9413 esac
9414 fi
9415 ;;
9416
9417 irix5* | irix6* | nonstopux*)
9418 if test "$GCC" = yes; then
9419 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'
9420 # Try to use the -exported_symbol ld option, if it does not
9421 # work, assume that -exports_file does not work either and
9422 # implicitly export all symbols.
9423 # This should be the same for all languages, so no per-tag cache variable.
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9425 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9426 if ${lt_cv_irix_exported_symbol+:} false; then :
9427 $as_echo_n "(cached) " >&6
9428 else
9429 save_LDFLAGS="$LDFLAGS"
9430 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9432 /* end confdefs.h. */
9433 int foo (void) { return 0; }
9434 _ACEOF
9435 if ac_fn_c_try_link "$LINENO"; then :
9436 lt_cv_irix_exported_symbol=yes
9437 else
9438 lt_cv_irix_exported_symbol=no
9439 fi
9440 rm -f core conftest.err conftest.$ac_objext \
9441 conftest$ac_exeext conftest.$ac_ext
9442 LDFLAGS="$save_LDFLAGS"
9443 fi
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9445 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9446 if test "$lt_cv_irix_exported_symbol" = yes; then
9447 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'
9448 fi
9449 else
9450 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'
9451 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'
9452 fi
9453 archive_cmds_need_lc='no'
9454 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9455 hardcode_libdir_separator=:
9456 inherit_rpath=yes
9457 link_all_deplibs=yes
9458 ;;
9459
9460 netbsd* | netbsdelf*-gnu)
9461 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9462 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9463 else
9464 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9465 fi
9466 hardcode_libdir_flag_spec='-R$libdir'
9467 hardcode_direct=yes
9468 hardcode_shlibpath_var=no
9469 ;;
9470
9471 newsos6)
9472 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9473 hardcode_direct=yes
9474 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9475 hardcode_libdir_separator=:
9476 hardcode_shlibpath_var=no
9477 ;;
9478
9479 *nto* | *qnx*)
9480 ;;
9481
9482 openbsd*)
9483 if test -f /usr/libexec/ld.so; then
9484 hardcode_direct=yes
9485 hardcode_shlibpath_var=no
9486 hardcode_direct_absolute=yes
9487 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9488 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9489 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9490 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9491 export_dynamic_flag_spec='${wl}-E'
9492 else
9493 case $host_os in
9494 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9495 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9496 hardcode_libdir_flag_spec='-R$libdir'
9497 ;;
9498 *)
9499 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9500 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9501 ;;
9502 esac
9503 fi
9504 else
9505 ld_shlibs=no
9506 fi
9507 ;;
9508
9509 os2*)
9510 hardcode_libdir_flag_spec='-L$libdir'
9511 hardcode_minus_L=yes
9512 allow_undefined_flag=unsupported
9513 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9514 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9515 ;;
9516
9517 osf3*)
9518 if test "$GCC" = yes; then
9519 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9520 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'
9521 else
9522 allow_undefined_flag=' -expect_unresolved \*'
9523 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'
9524 fi
9525 archive_cmds_need_lc='no'
9526 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9527 hardcode_libdir_separator=:
9528 ;;
9529
9530 osf4* | osf5*) # as osf3* with the addition of -msym flag
9531 if test "$GCC" = yes; then
9532 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9533 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'
9534 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9535 else
9536 allow_undefined_flag=' -expect_unresolved \*'
9537 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'
9538 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~
9539 $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'
9540
9541 # Both c and cxx compiler support -rpath directly
9542 hardcode_libdir_flag_spec='-rpath $libdir'
9543 fi
9544 archive_cmds_need_lc='no'
9545 hardcode_libdir_separator=:
9546 ;;
9547
9548 solaris*)
9549 no_undefined_flag=' -z defs'
9550 if test "$GCC" = yes; then
9551 wlarc='${wl}'
9552 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9553 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9554 $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'
9555 else
9556 case `$CC -V 2>&1` in
9557 *"Compilers 5.0"*)
9558 wlarc=''
9559 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9560 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9561 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9562 ;;
9563 *)
9564 wlarc='${wl}'
9565 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9566 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9567 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9568 ;;
9569 esac
9570 fi
9571 hardcode_libdir_flag_spec='-R$libdir'
9572 hardcode_shlibpath_var=no
9573 case $host_os in
9574 solaris2.[0-5] | solaris2.[0-5].*) ;;
9575 *)
9576 # The compiler driver will combine and reorder linker options,
9577 # but understands `-z linker_flag'. GCC discards it without `$wl',
9578 # but is careful enough not to reorder.
9579 # Supported since Solaris 2.6 (maybe 2.5.1?)
9580 if test "$GCC" = yes; then
9581 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9582 else
9583 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9584 fi
9585 ;;
9586 esac
9587 link_all_deplibs=yes
9588 ;;
9589
9590 sunos4*)
9591 if test "x$host_vendor" = xsequent; then
9592 # Use $CC to link under sequent, because it throws in some extra .o
9593 # files that make .init and .fini sections work.
9594 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9595 else
9596 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9597 fi
9598 hardcode_libdir_flag_spec='-L$libdir'
9599 hardcode_direct=yes
9600 hardcode_minus_L=yes
9601 hardcode_shlibpath_var=no
9602 ;;
9603
9604 sysv4)
9605 case $host_vendor in
9606 sni)
9607 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9608 hardcode_direct=yes # is this really true???
9609 ;;
9610 siemens)
9611 ## LD is ld it makes a PLAMLIB
9612 ## CC just makes a GrossModule.
9613 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9614 reload_cmds='$CC -r -o $output$reload_objs'
9615 hardcode_direct=no
9616 ;;
9617 motorola)
9618 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9619 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9620 ;;
9621 esac
9622 runpath_var='LD_RUN_PATH'
9623 hardcode_shlibpath_var=no
9624 ;;
9625
9626 sysv4.3*)
9627 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9628 hardcode_shlibpath_var=no
9629 export_dynamic_flag_spec='-Bexport'
9630 ;;
9631
9632 sysv4*MP*)
9633 if test -d /usr/nec; then
9634 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9635 hardcode_shlibpath_var=no
9636 runpath_var=LD_RUN_PATH
9637 hardcode_runpath_var=yes
9638 ld_shlibs=yes
9639 fi
9640 ;;
9641
9642 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9643 no_undefined_flag='${wl}-z,text'
9644 archive_cmds_need_lc=no
9645 hardcode_shlibpath_var=no
9646 runpath_var='LD_RUN_PATH'
9647
9648 if test "$GCC" = yes; then
9649 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9650 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9651 else
9652 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9653 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9654 fi
9655 ;;
9656
9657 sysv5* | sco3.2v5* | sco5v6*)
9658 # Note: We can NOT use -z defs as we might desire, because we do not
9659 # link with -lc, and that would cause any symbols used from libc to
9660 # always be unresolved, which means just about no library would
9661 # ever link correctly. If we're not using GNU ld we use -z text
9662 # though, which does catch some bad symbols but isn't as heavy-handed
9663 # as -z defs.
9664 no_undefined_flag='${wl}-z,text'
9665 allow_undefined_flag='${wl}-z,nodefs'
9666 archive_cmds_need_lc=no
9667 hardcode_shlibpath_var=no
9668 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9669 hardcode_libdir_separator=':'
9670 link_all_deplibs=yes
9671 export_dynamic_flag_spec='${wl}-Bexport'
9672 runpath_var='LD_RUN_PATH'
9673
9674 if test "$GCC" = yes; then
9675 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9676 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9677 else
9678 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9679 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9680 fi
9681 ;;
9682
9683 uts4*)
9684 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9685 hardcode_libdir_flag_spec='-L$libdir'
9686 hardcode_shlibpath_var=no
9687 ;;
9688
9689 *)
9690 ld_shlibs=no
9691 ;;
9692 esac
9693
9694 if test x$host_vendor = xsni; then
9695 case $host in
9696 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9697 export_dynamic_flag_spec='${wl}-Blargedynsym'
9698 ;;
9699 esac
9700 fi
9701 fi
9702
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9704 $as_echo "$ld_shlibs" >&6; }
9705 test "$ld_shlibs" = no && can_build_shared=no
9706
9707 with_gnu_ld=$with_gnu_ld
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723 #
9724 # Do we need to explicitly link libc?
9725 #
9726 case "x$archive_cmds_need_lc" in
9727 x|xyes)
9728 # Assume -lc should be added
9729 archive_cmds_need_lc=yes
9730
9731 if test "$enable_shared" = yes && test "$GCC" = yes; then
9732 case $archive_cmds in
9733 *'~'*)
9734 # FIXME: we may have to deal with multi-command sequences.
9735 ;;
9736 '$CC '*)
9737 # Test whether the compiler implicitly links with -lc since on some
9738 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9739 # to ld, don't add -lc before -lgcc.
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9741 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9742 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9743 $as_echo_n "(cached) " >&6
9744 else
9745 $RM conftest*
9746 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9747
9748 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9749 (eval $ac_compile) 2>&5
9750 ac_status=$?
9751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9752 test $ac_status = 0; } 2>conftest.err; then
9753 soname=conftest
9754 lib=conftest
9755 libobjs=conftest.$ac_objext
9756 deplibs=
9757 wl=$lt_prog_compiler_wl
9758 pic_flag=$lt_prog_compiler_pic
9759 compiler_flags=-v
9760 linker_flags=-v
9761 verstring=
9762 output_objdir=.
9763 libname=conftest
9764 lt_save_allow_undefined_flag=$allow_undefined_flag
9765 allow_undefined_flag=
9766 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9767 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9768 ac_status=$?
9769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9770 test $ac_status = 0; }
9771 then
9772 lt_cv_archive_cmds_need_lc=no
9773 else
9774 lt_cv_archive_cmds_need_lc=yes
9775 fi
9776 allow_undefined_flag=$lt_save_allow_undefined_flag
9777 else
9778 cat conftest.err 1>&5
9779 fi
9780 $RM conftest*
9781
9782 fi
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9784 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9785 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9786 ;;
9787 esac
9788 fi
9789 ;;
9790 esac
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9944 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9945
9946 if test "$GCC" = yes; then
9947 case $host_os in
9948 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9949 *) lt_awk_arg="/^libraries:/" ;;
9950 esac
9951 case $host_os in
9952 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9953 *) lt_sed_strip_eq="s,=/,/,g" ;;
9954 esac
9955 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9956 case $lt_search_path_spec in
9957 *\;*)
9958 # if the path contains ";" then we assume it to be the separator
9959 # otherwise default to the standard path separator (i.e. ":") - it is
9960 # assumed that no part of a normal pathname contains ";" but that should
9961 # okay in the real world where ";" in dirpaths is itself problematic.
9962 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9963 ;;
9964 *)
9965 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9966 ;;
9967 esac
9968 # Ok, now we have the path, separated by spaces, we can step through it
9969 # and add multilib dir if necessary.
9970 lt_tmp_lt_search_path_spec=
9971 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9972 for lt_sys_path in $lt_search_path_spec; do
9973 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9974 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9975 else
9976 test -d "$lt_sys_path" && \
9977 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9978 fi
9979 done
9980 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9981 BEGIN {RS=" "; FS="/|\n";} {
9982 lt_foo="";
9983 lt_count=0;
9984 for (lt_i = NF; lt_i > 0; lt_i--) {
9985 if ($lt_i != "" && $lt_i != ".") {
9986 if ($lt_i == "..") {
9987 lt_count++;
9988 } else {
9989 if (lt_count == 0) {
9990 lt_foo="/" $lt_i lt_foo;
9991 } else {
9992 lt_count--;
9993 }
9994 }
9995 }
9996 }
9997 if (lt_foo != "") { lt_freq[lt_foo]++; }
9998 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9999 }'`
10000 # AWK program above erroneously prepends '/' to C:/dos/paths
10001 # for these hosts.
10002 case $host_os in
10003 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10004 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10005 esac
10006 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10007 else
10008 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10009 fi
10010 library_names_spec=
10011 libname_spec='lib$name'
10012 soname_spec=
10013 shrext_cmds=".so"
10014 postinstall_cmds=
10015 postuninstall_cmds=
10016 finish_cmds=
10017 finish_eval=
10018 shlibpath_var=
10019 shlibpath_overrides_runpath=unknown
10020 version_type=none
10021 dynamic_linker="$host_os ld.so"
10022 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10023 need_lib_prefix=unknown
10024 hardcode_into_libs=no
10025
10026 # when you set need_version to no, make sure it does not cause -set_version
10027 # flags to be left without arguments
10028 need_version=unknown
10029
10030 case $host_os in
10031 aix3*)
10032 version_type=linux # correct to gnu/linux during the next big refactor
10033 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10034 shlibpath_var=LIBPATH
10035
10036 # AIX 3 has no versioning support, so we append a major version to the name.
10037 soname_spec='${libname}${release}${shared_ext}$major'
10038 ;;
10039
10040 aix[4-9]*)
10041 version_type=linux # correct to gnu/linux during the next big refactor
10042 need_lib_prefix=no
10043 need_version=no
10044 hardcode_into_libs=yes
10045 if test "$host_cpu" = ia64; then
10046 # AIX 5 supports IA64
10047 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10048 shlibpath_var=LD_LIBRARY_PATH
10049 else
10050 # With GCC up to 2.95.x, collect2 would create an import file
10051 # for dependence libraries. The import file would start with
10052 # the line `#! .'. This would cause the generated library to
10053 # depend on `.', always an invalid library. This was fixed in
10054 # development snapshots of GCC prior to 3.0.
10055 case $host_os in
10056 aix4 | aix4.[01] | aix4.[01].*)
10057 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10058 echo ' yes '
10059 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10060 :
10061 else
10062 can_build_shared=no
10063 fi
10064 ;;
10065 esac
10066 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10067 # soname into executable. Probably we can add versioning support to
10068 # collect2, so additional links can be useful in future.
10069 if test "$aix_use_runtimelinking" = yes; then
10070 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10071 # instead of lib<name>.a to let people know that these are not
10072 # typical AIX shared libraries.
10073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10074 else
10075 # We preserve .a as extension for shared libraries through AIX4.2
10076 # and later when we are not doing run time linking.
10077 library_names_spec='${libname}${release}.a $libname.a'
10078 soname_spec='${libname}${release}${shared_ext}$major'
10079 fi
10080 shlibpath_var=LIBPATH
10081 fi
10082 ;;
10083
10084 amigaos*)
10085 case $host_cpu in
10086 powerpc)
10087 # Since July 2007 AmigaOS4 officially supports .so libraries.
10088 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10090 ;;
10091 m68k)
10092 library_names_spec='$libname.ixlibrary $libname.a'
10093 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10094 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10095 ;;
10096 esac
10097 ;;
10098
10099 beos*)
10100 library_names_spec='${libname}${shared_ext}'
10101 dynamic_linker="$host_os ld.so"
10102 shlibpath_var=LIBRARY_PATH
10103 ;;
10104
10105 bsdi[45]*)
10106 version_type=linux # correct to gnu/linux during the next big refactor
10107 need_version=no
10108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10109 soname_spec='${libname}${release}${shared_ext}$major'
10110 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10111 shlibpath_var=LD_LIBRARY_PATH
10112 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10113 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10114 # the default ld.so.conf also contains /usr/contrib/lib and
10115 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10116 # libtool to hard-code these into programs
10117 ;;
10118
10119 cygwin* | mingw* | pw32* | cegcc*)
10120 version_type=windows
10121 shrext_cmds=".dll"
10122 need_version=no
10123 need_lib_prefix=no
10124
10125 case $GCC,$cc_basename in
10126 yes,*)
10127 # gcc
10128 library_names_spec='$libname.dll.a'
10129 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10130 postinstall_cmds='base_file=`basename \${file}`~
10131 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10132 dldir=$destdir/`dirname \$dlpath`~
10133 test -d \$dldir || mkdir -p \$dldir~
10134 $install_prog $dir/$dlname \$dldir/$dlname~
10135 chmod a+x \$dldir/$dlname~
10136 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10137 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10138 fi'
10139 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10140 dlpath=$dir/\$dldll~
10141 $RM \$dlpath'
10142 shlibpath_overrides_runpath=yes
10143
10144 case $host_os in
10145 cygwin*)
10146 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10147 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10148
10149 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10150 ;;
10151 mingw* | cegcc*)
10152 # MinGW DLLs use traditional 'lib' prefix
10153 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10154 ;;
10155 pw32*)
10156 # pw32 DLLs use 'pw' prefix rather than 'lib'
10157 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10158 ;;
10159 esac
10160 dynamic_linker='Win32 ld.exe'
10161 ;;
10162
10163 *,cl*)
10164 # Native MSVC
10165 libname_spec='$name'
10166 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10167 library_names_spec='${libname}.dll.lib'
10168
10169 case $build_os in
10170 mingw*)
10171 sys_lib_search_path_spec=
10172 lt_save_ifs=$IFS
10173 IFS=';'
10174 for lt_path in $LIB
10175 do
10176 IFS=$lt_save_ifs
10177 # Let DOS variable expansion print the short 8.3 style file name.
10178 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10179 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10180 done
10181 IFS=$lt_save_ifs
10182 # Convert to MSYS style.
10183 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10184 ;;
10185 cygwin*)
10186 # Convert to unix form, then to dos form, then back to unix form
10187 # but this time dos style (no spaces!) so that the unix form looks
10188 # like /cygdrive/c/PROGRA~1:/cygdr...
10189 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10190 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10191 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10192 ;;
10193 *)
10194 sys_lib_search_path_spec="$LIB"
10195 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10196 # It is most probably a Windows format PATH.
10197 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10198 else
10199 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10200 fi
10201 # FIXME: find the short name or the path components, as spaces are
10202 # common. (e.g. "Program Files" -> "PROGRA~1")
10203 ;;
10204 esac
10205
10206 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10207 postinstall_cmds='base_file=`basename \${file}`~
10208 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10209 dldir=$destdir/`dirname \$dlpath`~
10210 test -d \$dldir || mkdir -p \$dldir~
10211 $install_prog $dir/$dlname \$dldir/$dlname'
10212 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10213 dlpath=$dir/\$dldll~
10214 $RM \$dlpath'
10215 shlibpath_overrides_runpath=yes
10216 dynamic_linker='Win32 link.exe'
10217 ;;
10218
10219 *)
10220 # Assume MSVC wrapper
10221 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10222 dynamic_linker='Win32 ld.exe'
10223 ;;
10224 esac
10225 # FIXME: first we should search . and the directory the executable is in
10226 shlibpath_var=PATH
10227 ;;
10228
10229 darwin* | rhapsody*)
10230 dynamic_linker="$host_os dyld"
10231 version_type=darwin
10232 need_lib_prefix=no
10233 need_version=no
10234 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10235 soname_spec='${libname}${release}${major}$shared_ext'
10236 shlibpath_overrides_runpath=yes
10237 shlibpath_var=DYLD_LIBRARY_PATH
10238 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10239
10240 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10241 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10242 ;;
10243
10244 dgux*)
10245 version_type=linux # correct to gnu/linux during the next big refactor
10246 need_lib_prefix=no
10247 need_version=no
10248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10249 soname_spec='${libname}${release}${shared_ext}$major'
10250 shlibpath_var=LD_LIBRARY_PATH
10251 ;;
10252
10253 freebsd* | dragonfly*)
10254 # DragonFly does not have aout. When/if they implement a new
10255 # versioning mechanism, adjust this.
10256 if test -x /usr/bin/objformat; then
10257 objformat=`/usr/bin/objformat`
10258 else
10259 case $host_os in
10260 freebsd[23].*) objformat=aout ;;
10261 *) objformat=elf ;;
10262 esac
10263 fi
10264 version_type=freebsd-$objformat
10265 case $version_type in
10266 freebsd-elf*)
10267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10268 need_version=no
10269 need_lib_prefix=no
10270 ;;
10271 freebsd-*)
10272 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10273 need_version=yes
10274 ;;
10275 esac
10276 shlibpath_var=LD_LIBRARY_PATH
10277 case $host_os in
10278 freebsd2.*)
10279 shlibpath_overrides_runpath=yes
10280 ;;
10281 freebsd3.[01]* | freebsdelf3.[01]*)
10282 shlibpath_overrides_runpath=yes
10283 hardcode_into_libs=yes
10284 ;;
10285 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10286 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10287 shlibpath_overrides_runpath=no
10288 hardcode_into_libs=yes
10289 ;;
10290 *) # from 4.6 on, and DragonFly
10291 shlibpath_overrides_runpath=yes
10292 hardcode_into_libs=yes
10293 ;;
10294 esac
10295 ;;
10296
10297 haiku*)
10298 version_type=linux # correct to gnu/linux during the next big refactor
10299 need_lib_prefix=no
10300 need_version=no
10301 dynamic_linker="$host_os runtime_loader"
10302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10303 soname_spec='${libname}${release}${shared_ext}$major'
10304 shlibpath_var=LIBRARY_PATH
10305 shlibpath_overrides_runpath=yes
10306 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10307 hardcode_into_libs=yes
10308 ;;
10309
10310 hpux9* | hpux10* | hpux11*)
10311 # Give a soname corresponding to the major version so that dld.sl refuses to
10312 # link against other versions.
10313 version_type=sunos
10314 need_lib_prefix=no
10315 need_version=no
10316 case $host_cpu in
10317 ia64*)
10318 shrext_cmds='.so'
10319 hardcode_into_libs=yes
10320 dynamic_linker="$host_os dld.so"
10321 shlibpath_var=LD_LIBRARY_PATH
10322 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10324 soname_spec='${libname}${release}${shared_ext}$major'
10325 if test "X$HPUX_IA64_MODE" = X32; then
10326 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10327 else
10328 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10329 fi
10330 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10331 ;;
10332 hppa*64*)
10333 shrext_cmds='.sl'
10334 hardcode_into_libs=yes
10335 dynamic_linker="$host_os dld.sl"
10336 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10337 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10339 soname_spec='${libname}${release}${shared_ext}$major'
10340 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10341 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10342 ;;
10343 *)
10344 shrext_cmds='.sl'
10345 dynamic_linker="$host_os dld.sl"
10346 shlibpath_var=SHLIB_PATH
10347 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10349 soname_spec='${libname}${release}${shared_ext}$major'
10350 ;;
10351 esac
10352 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10353 postinstall_cmds='chmod 555 $lib'
10354 # or fails outright, so override atomically:
10355 install_override_mode=555
10356 ;;
10357
10358 interix[3-9]*)
10359 version_type=linux # correct to gnu/linux during the next big refactor
10360 need_lib_prefix=no
10361 need_version=no
10362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10363 soname_spec='${libname}${release}${shared_ext}$major'
10364 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10365 shlibpath_var=LD_LIBRARY_PATH
10366 shlibpath_overrides_runpath=no
10367 hardcode_into_libs=yes
10368 ;;
10369
10370 irix5* | irix6* | nonstopux*)
10371 case $host_os in
10372 nonstopux*) version_type=nonstopux ;;
10373 *)
10374 if test "$lt_cv_prog_gnu_ld" = yes; then
10375 version_type=linux # correct to gnu/linux during the next big refactor
10376 else
10377 version_type=irix
10378 fi ;;
10379 esac
10380 need_lib_prefix=no
10381 need_version=no
10382 soname_spec='${libname}${release}${shared_ext}$major'
10383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10384 case $host_os in
10385 irix5* | nonstopux*)
10386 libsuff= shlibsuff=
10387 ;;
10388 *)
10389 case $LD in # libtool.m4 will add one of these switches to LD
10390 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10391 libsuff= shlibsuff= libmagic=32-bit;;
10392 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10393 libsuff=32 shlibsuff=N32 libmagic=N32;;
10394 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10395 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10396 *) libsuff= shlibsuff= libmagic=never-match;;
10397 esac
10398 ;;
10399 esac
10400 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10401 shlibpath_overrides_runpath=no
10402 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10403 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10404 hardcode_into_libs=yes
10405 ;;
10406
10407 # No shared lib support for Linux oldld, aout, or coff.
10408 linux*oldld* | linux*aout* | linux*coff*)
10409 dynamic_linker=no
10410 ;;
10411
10412 # This must be glibc/ELF.
10413 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10414 version_type=linux # correct to gnu/linux during the next big refactor
10415 need_lib_prefix=no
10416 need_version=no
10417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10418 soname_spec='${libname}${release}${shared_ext}$major'
10419 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10420 shlibpath_var=LD_LIBRARY_PATH
10421 shlibpath_overrides_runpath=no
10422
10423 # Some binutils ld are patched to set DT_RUNPATH
10424 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10425 $as_echo_n "(cached) " >&6
10426 else
10427 lt_cv_shlibpath_overrides_runpath=no
10428 save_LDFLAGS=$LDFLAGS
10429 save_libdir=$libdir
10430 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10431 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10433 /* end confdefs.h. */
10434
10435 int
10436 main ()
10437 {
10438
10439 ;
10440 return 0;
10441 }
10442 _ACEOF
10443 if ac_fn_c_try_link "$LINENO"; then :
10444 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10445 lt_cv_shlibpath_overrides_runpath=yes
10446 fi
10447 fi
10448 rm -f core conftest.err conftest.$ac_objext \
10449 conftest$ac_exeext conftest.$ac_ext
10450 LDFLAGS=$save_LDFLAGS
10451 libdir=$save_libdir
10452
10453 fi
10454
10455 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10456
10457 # This implies no fast_install, which is unacceptable.
10458 # Some rework will be needed to allow for fast_install
10459 # before this can be enabled.
10460 hardcode_into_libs=yes
10461
10462 # Append ld.so.conf contents to the search path
10463 if test -f /etc/ld.so.conf; then
10464 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' ' '`
10465 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10466 fi
10467
10468 # We used to test for /lib/ld.so.1 and disable shared libraries on
10469 # powerpc, because MkLinux only supported shared libraries with the
10470 # GNU dynamic linker. Since this was broken with cross compilers,
10471 # most powerpc-linux boxes support dynamic linking these days and
10472 # people can always --disable-shared, the test was removed, and we
10473 # assume the GNU/Linux dynamic linker is in use.
10474 dynamic_linker='GNU/Linux ld.so'
10475 ;;
10476
10477 netbsdelf*-gnu)
10478 version_type=linux
10479 need_lib_prefix=no
10480 need_version=no
10481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10482 soname_spec='${libname}${release}${shared_ext}$major'
10483 shlibpath_var=LD_LIBRARY_PATH
10484 shlibpath_overrides_runpath=no
10485 hardcode_into_libs=yes
10486 dynamic_linker='NetBSD ld.elf_so'
10487 ;;
10488
10489 netbsd*)
10490 version_type=sunos
10491 need_lib_prefix=no
10492 need_version=no
10493 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10495 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10496 dynamic_linker='NetBSD (a.out) ld.so'
10497 else
10498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10499 soname_spec='${libname}${release}${shared_ext}$major'
10500 dynamic_linker='NetBSD ld.elf_so'
10501 fi
10502 shlibpath_var=LD_LIBRARY_PATH
10503 shlibpath_overrides_runpath=yes
10504 hardcode_into_libs=yes
10505 ;;
10506
10507 newsos6)
10508 version_type=linux # correct to gnu/linux during the next big refactor
10509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10510 shlibpath_var=LD_LIBRARY_PATH
10511 shlibpath_overrides_runpath=yes
10512 ;;
10513
10514 *nto* | *qnx*)
10515 version_type=qnx
10516 need_lib_prefix=no
10517 need_version=no
10518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10519 soname_spec='${libname}${release}${shared_ext}$major'
10520 shlibpath_var=LD_LIBRARY_PATH
10521 shlibpath_overrides_runpath=no
10522 hardcode_into_libs=yes
10523 dynamic_linker='ldqnx.so'
10524 ;;
10525
10526 openbsd*)
10527 version_type=sunos
10528 sys_lib_dlsearch_path_spec="/usr/lib"
10529 need_lib_prefix=no
10530 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10531 case $host_os in
10532 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10533 *) need_version=no ;;
10534 esac
10535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10536 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10537 shlibpath_var=LD_LIBRARY_PATH
10538 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10539 case $host_os in
10540 openbsd2.[89] | openbsd2.[89].*)
10541 shlibpath_overrides_runpath=no
10542 ;;
10543 *)
10544 shlibpath_overrides_runpath=yes
10545 ;;
10546 esac
10547 else
10548 shlibpath_overrides_runpath=yes
10549 fi
10550 ;;
10551
10552 os2*)
10553 libname_spec='$name'
10554 shrext_cmds=".dll"
10555 need_lib_prefix=no
10556 library_names_spec='$libname${shared_ext} $libname.a'
10557 dynamic_linker='OS/2 ld.exe'
10558 shlibpath_var=LIBPATH
10559 ;;
10560
10561 osf3* | osf4* | osf5*)
10562 version_type=osf
10563 need_lib_prefix=no
10564 need_version=no
10565 soname_spec='${libname}${release}${shared_ext}$major'
10566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10567 shlibpath_var=LD_LIBRARY_PATH
10568 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10569 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10570 ;;
10571
10572 rdos*)
10573 dynamic_linker=no
10574 ;;
10575
10576 solaris*)
10577 version_type=linux # correct to gnu/linux during the next big refactor
10578 need_lib_prefix=no
10579 need_version=no
10580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10581 soname_spec='${libname}${release}${shared_ext}$major'
10582 shlibpath_var=LD_LIBRARY_PATH
10583 shlibpath_overrides_runpath=yes
10584 hardcode_into_libs=yes
10585 # ldd complains unless libraries are executable
10586 postinstall_cmds='chmod +x $lib'
10587 ;;
10588
10589 sunos4*)
10590 version_type=sunos
10591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10592 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10593 shlibpath_var=LD_LIBRARY_PATH
10594 shlibpath_overrides_runpath=yes
10595 if test "$with_gnu_ld" = yes; then
10596 need_lib_prefix=no
10597 fi
10598 need_version=yes
10599 ;;
10600
10601 sysv4 | sysv4.3*)
10602 version_type=linux # correct to gnu/linux during the next big refactor
10603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10604 soname_spec='${libname}${release}${shared_ext}$major'
10605 shlibpath_var=LD_LIBRARY_PATH
10606 case $host_vendor in
10607 sni)
10608 shlibpath_overrides_runpath=no
10609 need_lib_prefix=no
10610 runpath_var=LD_RUN_PATH
10611 ;;
10612 siemens)
10613 need_lib_prefix=no
10614 ;;
10615 motorola)
10616 need_lib_prefix=no
10617 need_version=no
10618 shlibpath_overrides_runpath=no
10619 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10620 ;;
10621 esac
10622 ;;
10623
10624 sysv4*MP*)
10625 if test -d /usr/nec ;then
10626 version_type=linux # correct to gnu/linux during the next big refactor
10627 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10628 soname_spec='$libname${shared_ext}.$major'
10629 shlibpath_var=LD_LIBRARY_PATH
10630 fi
10631 ;;
10632
10633 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10634 version_type=freebsd-elf
10635 need_lib_prefix=no
10636 need_version=no
10637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10638 soname_spec='${libname}${release}${shared_ext}$major'
10639 shlibpath_var=LD_LIBRARY_PATH
10640 shlibpath_overrides_runpath=yes
10641 hardcode_into_libs=yes
10642 if test "$with_gnu_ld" = yes; then
10643 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10644 else
10645 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10646 case $host_os in
10647 sco3.2v5*)
10648 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10649 ;;
10650 esac
10651 fi
10652 sys_lib_dlsearch_path_spec='/usr/lib'
10653 ;;
10654
10655 tpf*)
10656 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10657 version_type=linux # correct to gnu/linux during the next big refactor
10658 need_lib_prefix=no
10659 need_version=no
10660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10661 shlibpath_var=LD_LIBRARY_PATH
10662 shlibpath_overrides_runpath=no
10663 hardcode_into_libs=yes
10664 ;;
10665
10666 uts4*)
10667 version_type=linux # correct to gnu/linux during the next big refactor
10668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10669 soname_spec='${libname}${release}${shared_ext}$major'
10670 shlibpath_var=LD_LIBRARY_PATH
10671 ;;
10672
10673 *)
10674 dynamic_linker=no
10675 ;;
10676 esac
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10678 $as_echo "$dynamic_linker" >&6; }
10679 test "$dynamic_linker" = no && can_build_shared=no
10680
10681 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10682 if test "$GCC" = yes; then
10683 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10684 fi
10685
10686 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10687 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10688 fi
10689 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10690 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10691 fi
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10785 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10786 hardcode_action=
10787 if test -n "$hardcode_libdir_flag_spec" ||
10788 test -n "$runpath_var" ||
10789 test "X$hardcode_automatic" = "Xyes" ; then
10790
10791 # We can hardcode non-existent directories.
10792 if test "$hardcode_direct" != no &&
10793 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10794 # have to relink, otherwise we might link with an installed library
10795 # when we should be linking with a yet-to-be-installed one
10796 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10797 test "$hardcode_minus_L" != no; then
10798 # Linking always hardcodes the temporary library directory.
10799 hardcode_action=relink
10800 else
10801 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10802 hardcode_action=immediate
10803 fi
10804 else
10805 # We cannot hardcode anything, or else we can only hardcode existing
10806 # directories.
10807 hardcode_action=unsupported
10808 fi
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10810 $as_echo "$hardcode_action" >&6; }
10811
10812 if test "$hardcode_action" = relink ||
10813 test "$inherit_rpath" = yes; then
10814 # Fast installation is not supported
10815 enable_fast_install=no
10816 elif test "$shlibpath_overrides_runpath" = yes ||
10817 test "$enable_shared" = no; then
10818 # Fast installation is not necessary
10819 enable_fast_install=needless
10820 fi
10821
10822
10823
10824
10825
10826
10827 if test "x$enable_dlopen" != xyes; then
10828 enable_dlopen=unknown
10829 enable_dlopen_self=unknown
10830 enable_dlopen_self_static=unknown
10831 else
10832 lt_cv_dlopen=no
10833 lt_cv_dlopen_libs=
10834
10835 case $host_os in
10836 beos*)
10837 lt_cv_dlopen="load_add_on"
10838 lt_cv_dlopen_libs=
10839 lt_cv_dlopen_self=yes
10840 ;;
10841
10842 mingw* | pw32* | cegcc*)
10843 lt_cv_dlopen="LoadLibrary"
10844 lt_cv_dlopen_libs=
10845 ;;
10846
10847 cygwin*)
10848 lt_cv_dlopen="dlopen"
10849 lt_cv_dlopen_libs=
10850 ;;
10851
10852 darwin*)
10853 # if libdl is installed we need to link against it
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10855 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10856 if ${ac_cv_lib_dl_dlopen+:} false; then :
10857 $as_echo_n "(cached) " >&6
10858 else
10859 ac_check_lib_save_LIBS=$LIBS
10860 LIBS="-ldl $LIBS"
10861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10862 /* end confdefs.h. */
10863
10864 /* Override any GCC internal prototype to avoid an error.
10865 Use char because int might match the return type of a GCC
10866 builtin and then its argument prototype would still apply. */
10867 #ifdef __cplusplus
10868 extern "C"
10869 #endif
10870 char dlopen ();
10871 int
10872 main ()
10873 {
10874 return dlopen ();
10875 ;
10876 return 0;
10877 }
10878 _ACEOF
10879 if ac_fn_c_try_link "$LINENO"; then :
10880 ac_cv_lib_dl_dlopen=yes
10881 else
10882 ac_cv_lib_dl_dlopen=no
10883 fi
10884 rm -f core conftest.err conftest.$ac_objext \
10885 conftest$ac_exeext conftest.$ac_ext
10886 LIBS=$ac_check_lib_save_LIBS
10887 fi
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10889 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10890 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10891 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10892 else
10893
10894 lt_cv_dlopen="dyld"
10895 lt_cv_dlopen_libs=
10896 lt_cv_dlopen_self=yes
10897
10898 fi
10899
10900 ;;
10901
10902 *)
10903 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10904 if test "x$ac_cv_func_shl_load" = xyes; then :
10905 lt_cv_dlopen="shl_load"
10906 else
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10908 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10909 if ${ac_cv_lib_dld_shl_load+:} false; then :
10910 $as_echo_n "(cached) " >&6
10911 else
10912 ac_check_lib_save_LIBS=$LIBS
10913 LIBS="-ldld $LIBS"
10914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10915 /* end confdefs.h. */
10916
10917 /* Override any GCC internal prototype to avoid an error.
10918 Use char because int might match the return type of a GCC
10919 builtin and then its argument prototype would still apply. */
10920 #ifdef __cplusplus
10921 extern "C"
10922 #endif
10923 char shl_load ();
10924 int
10925 main ()
10926 {
10927 return shl_load ();
10928 ;
10929 return 0;
10930 }
10931 _ACEOF
10932 if ac_fn_c_try_link "$LINENO"; then :
10933 ac_cv_lib_dld_shl_load=yes
10934 else
10935 ac_cv_lib_dld_shl_load=no
10936 fi
10937 rm -f core conftest.err conftest.$ac_objext \
10938 conftest$ac_exeext conftest.$ac_ext
10939 LIBS=$ac_check_lib_save_LIBS
10940 fi
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10942 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10943 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10944 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10945 else
10946 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10947 if test "x$ac_cv_func_dlopen" = xyes; then :
10948 lt_cv_dlopen="dlopen"
10949 else
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10951 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10952 if ${ac_cv_lib_dl_dlopen+:} false; then :
10953 $as_echo_n "(cached) " >&6
10954 else
10955 ac_check_lib_save_LIBS=$LIBS
10956 LIBS="-ldl $LIBS"
10957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10958 /* end confdefs.h. */
10959
10960 /* Override any GCC internal prototype to avoid an error.
10961 Use char because int might match the return type of a GCC
10962 builtin and then its argument prototype would still apply. */
10963 #ifdef __cplusplus
10964 extern "C"
10965 #endif
10966 char dlopen ();
10967 int
10968 main ()
10969 {
10970 return dlopen ();
10971 ;
10972 return 0;
10973 }
10974 _ACEOF
10975 if ac_fn_c_try_link "$LINENO"; then :
10976 ac_cv_lib_dl_dlopen=yes
10977 else
10978 ac_cv_lib_dl_dlopen=no
10979 fi
10980 rm -f core conftest.err conftest.$ac_objext \
10981 conftest$ac_exeext conftest.$ac_ext
10982 LIBS=$ac_check_lib_save_LIBS
10983 fi
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10985 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10986 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10987 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10988 else
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10990 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10991 if ${ac_cv_lib_svld_dlopen+:} false; then :
10992 $as_echo_n "(cached) " >&6
10993 else
10994 ac_check_lib_save_LIBS=$LIBS
10995 LIBS="-lsvld $LIBS"
10996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10997 /* end confdefs.h. */
10998
10999 /* Override any GCC internal prototype to avoid an error.
11000 Use char because int might match the return type of a GCC
11001 builtin and then its argument prototype would still apply. */
11002 #ifdef __cplusplus
11003 extern "C"
11004 #endif
11005 char dlopen ();
11006 int
11007 main ()
11008 {
11009 return dlopen ();
11010 ;
11011 return 0;
11012 }
11013 _ACEOF
11014 if ac_fn_c_try_link "$LINENO"; then :
11015 ac_cv_lib_svld_dlopen=yes
11016 else
11017 ac_cv_lib_svld_dlopen=no
11018 fi
11019 rm -f core conftest.err conftest.$ac_objext \
11020 conftest$ac_exeext conftest.$ac_ext
11021 LIBS=$ac_check_lib_save_LIBS
11022 fi
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11024 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11025 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11026 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11027 else
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11029 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11030 if ${ac_cv_lib_dld_dld_link+:} false; then :
11031 $as_echo_n "(cached) " >&6
11032 else
11033 ac_check_lib_save_LIBS=$LIBS
11034 LIBS="-ldld $LIBS"
11035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11036 /* end confdefs.h. */
11037
11038 /* Override any GCC internal prototype to avoid an error.
11039 Use char because int might match the return type of a GCC
11040 builtin and then its argument prototype would still apply. */
11041 #ifdef __cplusplus
11042 extern "C"
11043 #endif
11044 char dld_link ();
11045 int
11046 main ()
11047 {
11048 return dld_link ();
11049 ;
11050 return 0;
11051 }
11052 _ACEOF
11053 if ac_fn_c_try_link "$LINENO"; then :
11054 ac_cv_lib_dld_dld_link=yes
11055 else
11056 ac_cv_lib_dld_dld_link=no
11057 fi
11058 rm -f core conftest.err conftest.$ac_objext \
11059 conftest$ac_exeext conftest.$ac_ext
11060 LIBS=$ac_check_lib_save_LIBS
11061 fi
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11063 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11064 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11065 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11066 fi
11067
11068
11069 fi
11070
11071
11072 fi
11073
11074
11075 fi
11076
11077
11078 fi
11079
11080
11081 fi
11082
11083 ;;
11084 esac
11085
11086 if test "x$lt_cv_dlopen" != xno; then
11087 enable_dlopen=yes
11088 else
11089 enable_dlopen=no
11090 fi
11091
11092 case $lt_cv_dlopen in
11093 dlopen)
11094 save_CPPFLAGS="$CPPFLAGS"
11095 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11096
11097 save_LDFLAGS="$LDFLAGS"
11098 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11099
11100 save_LIBS="$LIBS"
11101 LIBS="$lt_cv_dlopen_libs $LIBS"
11102
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11104 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11105 if ${lt_cv_dlopen_self+:} false; then :
11106 $as_echo_n "(cached) " >&6
11107 else
11108 if test "$cross_compiling" = yes; then :
11109 lt_cv_dlopen_self=cross
11110 else
11111 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11112 lt_status=$lt_dlunknown
11113 cat > conftest.$ac_ext <<_LT_EOF
11114 #line $LINENO "configure"
11115 #include "confdefs.h"
11116
11117 #if HAVE_DLFCN_H
11118 #include <dlfcn.h>
11119 #endif
11120
11121 #include <stdio.h>
11122
11123 #ifdef RTLD_GLOBAL
11124 # define LT_DLGLOBAL RTLD_GLOBAL
11125 #else
11126 # ifdef DL_GLOBAL
11127 # define LT_DLGLOBAL DL_GLOBAL
11128 # else
11129 # define LT_DLGLOBAL 0
11130 # endif
11131 #endif
11132
11133 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11134 find out it does not work in some platform. */
11135 #ifndef LT_DLLAZY_OR_NOW
11136 # ifdef RTLD_LAZY
11137 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11138 # else
11139 # ifdef DL_LAZY
11140 # define LT_DLLAZY_OR_NOW DL_LAZY
11141 # else
11142 # ifdef RTLD_NOW
11143 # define LT_DLLAZY_OR_NOW RTLD_NOW
11144 # else
11145 # ifdef DL_NOW
11146 # define LT_DLLAZY_OR_NOW DL_NOW
11147 # else
11148 # define LT_DLLAZY_OR_NOW 0
11149 # endif
11150 # endif
11151 # endif
11152 # endif
11153 #endif
11154
11155 /* When -fvisbility=hidden is used, assume the code has been annotated
11156 correspondingly for the symbols needed. */
11157 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11158 int fnord () __attribute__((visibility("default")));
11159 #endif
11160
11161 int fnord () { return 42; }
11162 int main ()
11163 {
11164 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11165 int status = $lt_dlunknown;
11166
11167 if (self)
11168 {
11169 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11170 else
11171 {
11172 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11173 else puts (dlerror ());
11174 }
11175 /* dlclose (self); */
11176 }
11177 else
11178 puts (dlerror ());
11179
11180 return status;
11181 }
11182 _LT_EOF
11183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11184 (eval $ac_link) 2>&5
11185 ac_status=$?
11186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11187 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11188 (./conftest; exit; ) >&5 2>/dev/null
11189 lt_status=$?
11190 case x$lt_status in
11191 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11192 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11193 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11194 esac
11195 else :
11196 # compilation failed
11197 lt_cv_dlopen_self=no
11198 fi
11199 fi
11200 rm -fr conftest*
11201
11202
11203 fi
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11205 $as_echo "$lt_cv_dlopen_self" >&6; }
11206
11207 if test "x$lt_cv_dlopen_self" = xyes; then
11208 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11210 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11211 if ${lt_cv_dlopen_self_static+:} false; then :
11212 $as_echo_n "(cached) " >&6
11213 else
11214 if test "$cross_compiling" = yes; then :
11215 lt_cv_dlopen_self_static=cross
11216 else
11217 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11218 lt_status=$lt_dlunknown
11219 cat > conftest.$ac_ext <<_LT_EOF
11220 #line $LINENO "configure"
11221 #include "confdefs.h"
11222
11223 #if HAVE_DLFCN_H
11224 #include <dlfcn.h>
11225 #endif
11226
11227 #include <stdio.h>
11228
11229 #ifdef RTLD_GLOBAL
11230 # define LT_DLGLOBAL RTLD_GLOBAL
11231 #else
11232 # ifdef DL_GLOBAL
11233 # define LT_DLGLOBAL DL_GLOBAL
11234 # else
11235 # define LT_DLGLOBAL 0
11236 # endif
11237 #endif
11238
11239 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11240 find out it does not work in some platform. */
11241 #ifndef LT_DLLAZY_OR_NOW
11242 # ifdef RTLD_LAZY
11243 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11244 # else
11245 # ifdef DL_LAZY
11246 # define LT_DLLAZY_OR_NOW DL_LAZY
11247 # else
11248 # ifdef RTLD_NOW
11249 # define LT_DLLAZY_OR_NOW RTLD_NOW
11250 # else
11251 # ifdef DL_NOW
11252 # define LT_DLLAZY_OR_NOW DL_NOW
11253 # else
11254 # define LT_DLLAZY_OR_NOW 0
11255 # endif
11256 # endif
11257 # endif
11258 # endif
11259 #endif
11260
11261 /* When -fvisbility=hidden is used, assume the code has been annotated
11262 correspondingly for the symbols needed. */
11263 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11264 int fnord () __attribute__((visibility("default")));
11265 #endif
11266
11267 int fnord () { return 42; }
11268 int main ()
11269 {
11270 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11271 int status = $lt_dlunknown;
11272
11273 if (self)
11274 {
11275 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11276 else
11277 {
11278 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11279 else puts (dlerror ());
11280 }
11281 /* dlclose (self); */
11282 }
11283 else
11284 puts (dlerror ());
11285
11286 return status;
11287 }
11288 _LT_EOF
11289 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11290 (eval $ac_link) 2>&5
11291 ac_status=$?
11292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11293 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11294 (./conftest; exit; ) >&5 2>/dev/null
11295 lt_status=$?
11296 case x$lt_status in
11297 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11298 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11299 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11300 esac
11301 else :
11302 # compilation failed
11303 lt_cv_dlopen_self_static=no
11304 fi
11305 fi
11306 rm -fr conftest*
11307
11308
11309 fi
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11311 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11312 fi
11313
11314 CPPFLAGS="$save_CPPFLAGS"
11315 LDFLAGS="$save_LDFLAGS"
11316 LIBS="$save_LIBS"
11317 ;;
11318 esac
11319
11320 case $lt_cv_dlopen_self in
11321 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11322 *) enable_dlopen_self=unknown ;;
11323 esac
11324
11325 case $lt_cv_dlopen_self_static in
11326 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11327 *) enable_dlopen_self_static=unknown ;;
11328 esac
11329 fi
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347 striplib=
11348 old_striplib=
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11350 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11351 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11352 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11353 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11355 $as_echo "yes" >&6; }
11356 else
11357 # FIXME - insert some real tests, host_os isn't really good enough
11358 case $host_os in
11359 darwin*)
11360 if test -n "$STRIP" ; then
11361 striplib="$STRIP -x"
11362 old_striplib="$STRIP -S"
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11364 $as_echo "yes" >&6; }
11365 else
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11367 $as_echo "no" >&6; }
11368 fi
11369 ;;
11370 *)
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11372 $as_echo "no" >&6; }
11373 ;;
11374 esac
11375 fi
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388 # Report which library types will actually be built
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11390 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11392 $as_echo "$can_build_shared" >&6; }
11393
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11395 $as_echo_n "checking whether to build shared libraries... " >&6; }
11396 test "$can_build_shared" = "no" && enable_shared=no
11397
11398 # On AIX, shared libraries and static libraries use the same namespace, and
11399 # are all built from PIC.
11400 case $host_os in
11401 aix3*)
11402 test "$enable_shared" = yes && enable_static=no
11403 if test -n "$RANLIB"; then
11404 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11405 postinstall_cmds='$RANLIB $lib'
11406 fi
11407 ;;
11408
11409 aix[4-9]*)
11410 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11411 test "$enable_shared" = yes && enable_static=no
11412 fi
11413 ;;
11414 esac
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11416 $as_echo "$enable_shared" >&6; }
11417
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11419 $as_echo_n "checking whether to build static libraries... " >&6; }
11420 # Make sure either enable_shared or enable_static is yes.
11421 test "$enable_shared" = yes || enable_static=yes
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11423 $as_echo "$enable_static" >&6; }
11424
11425
11426
11427
11428 fi
11429 ac_ext=c
11430 ac_cpp='$CPP $CPPFLAGS'
11431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11434
11435 CC="$lt_save_CC"
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451 ac_config_commands="$ac_config_commands libtool"
11452
11453
11454
11455
11456 # Only expand once:
11457
11458
11459
11460 # Require X.Org macros 1.8 or later for AC_PROG_INSTALL
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11473 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11474 if ${ac_cv_prog_cc_c99+:} false; then :
11475 $as_echo_n "(cached) " >&6
11476 else
11477 ac_cv_prog_cc_c99=no
11478 ac_save_CC=$CC
11479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11480 /* end confdefs.h. */
11481 #include <stdarg.h>
11482 #include <stdbool.h>
11483 #include <stdlib.h>
11484 #include <wchar.h>
11485 #include <stdio.h>
11486
11487 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11488 #define debug(...) fprintf (stderr, __VA_ARGS__)
11489 #define showlist(...) puts (#__VA_ARGS__)
11490 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11491 static void
11492 test_varargs_macros (void)
11493 {
11494 int x = 1234;
11495 int y = 5678;
11496 debug ("Flag");
11497 debug ("X = %d\n", x);
11498 showlist (The first, second, and third items.);
11499 report (x>y, "x is %d but y is %d", x, y);
11500 }
11501
11502 // Check long long types.
11503 #define BIG64 18446744073709551615ull
11504 #define BIG32 4294967295ul
11505 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11506 #if !BIG_OK
11507 your preprocessor is broken;
11508 #endif
11509 #if BIG_OK
11510 #else
11511 your preprocessor is broken;
11512 #endif
11513 static long long int bignum = -9223372036854775807LL;
11514 static unsigned long long int ubignum = BIG64;
11515
11516 struct incomplete_array
11517 {
11518 int datasize;
11519 double data[];
11520 };
11521
11522 struct named_init {
11523 int number;
11524 const wchar_t *name;
11525 double average;
11526 };
11527
11528 typedef const char *ccp;
11529
11530 static inline int
11531 test_restrict (ccp restrict text)
11532 {
11533 // See if C++-style comments work.
11534 // Iterate through items via the restricted pointer.
11535 // Also check for declarations in for loops.
11536 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11537 continue;
11538 return 0;
11539 }
11540
11541 // Check varargs and va_copy.
11542 static void
11543 test_varargs (const char *format, ...)
11544 {
11545 va_list args;
11546 va_start (args, format);
11547 va_list args_copy;
11548 va_copy (args_copy, args);
11549
11550 const char *str;
11551 int number;
11552 float fnumber;
11553
11554 while (*format)
11555 {
11556 switch (*format++)
11557 {
11558 case 's': // string
11559 str = va_arg (args_copy, const char *);
11560 break;
11561 case 'd': // int
11562 number = va_arg (args_copy, int);
11563 break;
11564 case 'f': // float
11565 fnumber = va_arg (args_copy, double);
11566 break;
11567 default:
11568 break;
11569 }
11570 }
11571 va_end (args_copy);
11572 va_end (args);
11573 }
11574
11575 int
11576 main ()
11577 {
11578
11579 // Check bool.
11580 _Bool success = false;
11581
11582 // Check restrict.
11583 if (test_restrict ("String literal") == 0)
11584 success = true;
11585 char *restrict newvar = "Another string";
11586
11587 // Check varargs.
11588 test_varargs ("s, d' f .", "string", 65, 34.234);
11589 test_varargs_macros ();
11590
11591 // Check flexible array members.
11592 struct incomplete_array *ia =
11593 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11594 ia->datasize = 10;
11595 for (int i = 0; i < ia->datasize; ++i)
11596 ia->data[i] = i * 1.234;
11597
11598 // Check named initializers.
11599 struct named_init ni = {
11600 .number = 34,
11601 .name = L"Test wide string",
11602 .average = 543.34343,
11603 };
11604
11605 ni.number = 58;
11606
11607 int dynamic_array[ni.number];
11608 dynamic_array[ni.number - 1] = 543;
11609
11610 // work around unused variable warnings
11611 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11612 || dynamic_array[ni.number - 1] != 543);
11613
11614 ;
11615 return 0;
11616 }
11617 _ACEOF
11618 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
11619 do
11620 CC="$ac_save_CC $ac_arg"
11621 if ac_fn_c_try_compile "$LINENO"; then :
11622 ac_cv_prog_cc_c99=$ac_arg
11623 fi
11624 rm -f core conftest.err conftest.$ac_objext
11625 test "x$ac_cv_prog_cc_c99" != "xno" && break
11626 done
11627 rm -f conftest.$ac_ext
11628 CC=$ac_save_CC
11629
11630 fi
11631 # AC_CACHE_VAL
11632 case "x$ac_cv_prog_cc_c99" in
11633 x)
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11635 $as_echo "none needed" >&6; } ;;
11636 xno)
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11638 $as_echo "unsupported" >&6; } ;;
11639 *)
11640 CC="$CC $ac_cv_prog_cc_c99"
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11642 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11643 esac
11644 if test "x$ac_cv_prog_cc_c99" != xno; then :
11645
11646 fi
11647
11648
11649
11650
11651
11652
11653 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11654 if test "x$ac_cv_have_decl___clang__" = xyes; then :
11655 CLANGCC="yes"
11656 else
11657 CLANGCC="no"
11658 fi
11659
11660 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11661 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11662 INTELCC="yes"
11663 else
11664 INTELCC="no"
11665 fi
11666
11667 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11668 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11669 SUNCC="yes"
11670 else
11671 SUNCC="no"
11672 fi
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11683 if test -n "$ac_tool_prefix"; then
11684 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11685 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11687 $as_echo_n "checking for $ac_word... " >&6; }
11688 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11689 $as_echo_n "(cached) " >&6
11690 else
11691 case $PKG_CONFIG in
11692 [\\/]* | ?:[\\/]*)
11693 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11694 ;;
11695 *)
11696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11697 for as_dir in $PATH
11698 do
11699 IFS=$as_save_IFS
11700 test -z "$as_dir" && as_dir=.
11701 for ac_exec_ext in '' $ac_executable_extensions; do
11702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11703 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11705 break 2
11706 fi
11707 done
11708 done
11709 IFS=$as_save_IFS
11710
11711 ;;
11712 esac
11713 fi
11714 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11715 if test -n "$PKG_CONFIG"; then
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11717 $as_echo "$PKG_CONFIG" >&6; }
11718 else
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11720 $as_echo "no" >&6; }
11721 fi
11722
11723
11724 fi
11725 if test -z "$ac_cv_path_PKG_CONFIG"; then
11726 ac_pt_PKG_CONFIG=$PKG_CONFIG
11727 # Extract the first word of "pkg-config", so it can be a program name with args.
11728 set dummy pkg-config; ac_word=$2
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11730 $as_echo_n "checking for $ac_word... " >&6; }
11731 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11732 $as_echo_n "(cached) " >&6
11733 else
11734 case $ac_pt_PKG_CONFIG in
11735 [\\/]* | ?:[\\/]*)
11736 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11737 ;;
11738 *)
11739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11740 for as_dir in $PATH
11741 do
11742 IFS=$as_save_IFS
11743 test -z "$as_dir" && as_dir=.
11744 for ac_exec_ext in '' $ac_executable_extensions; do
11745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11746 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11748 break 2
11749 fi
11750 done
11751 done
11752 IFS=$as_save_IFS
11753
11754 ;;
11755 esac
11756 fi
11757 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11758 if test -n "$ac_pt_PKG_CONFIG"; then
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11760 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11761 else
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11763 $as_echo "no" >&6; }
11764 fi
11765
11766 if test "x$ac_pt_PKG_CONFIG" = x; then
11767 PKG_CONFIG=""
11768 else
11769 case $cross_compiling:$ac_tool_warned in
11770 yes:)
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11773 ac_tool_warned=yes ;;
11774 esac
11775 PKG_CONFIG=$ac_pt_PKG_CONFIG
11776 fi
11777 else
11778 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11779 fi
11780
11781 fi
11782 if test -n "$PKG_CONFIG"; then
11783 _pkg_min_version=0.9.0
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11785 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11786 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11788 $as_echo "yes" >&6; }
11789 else
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11791 $as_echo "no" >&6; }
11792 PKG_CONFIG=""
11793 fi
11794 fi
11795
11796
11797
11798
11799
11800 # Check whether --enable-selective-werror was given.
11801 if test "${enable_selective_werror+set}" = set; then :
11802 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11803 else
11804 SELECTIVE_WERROR=yes
11805 fi
11806
11807
11808
11809
11810
11811 # -v is too short to test reliably with XORG_TESTSET_CFLAG
11812 if test "x$SUNCC" = "xyes"; then
11813 BASE_CFLAGS="-v"
11814 else
11815 BASE_CFLAGS=""
11816 fi
11817
11818 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832 xorg_testset_save_CFLAGS="$CFLAGS"
11833
11834 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11835 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11837 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11838 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11839 $as_echo_n "(cached) " >&6
11840 else
11841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11842 /* end confdefs.h. */
11843 int i;
11844 _ACEOF
11845 if ac_fn_c_try_compile "$LINENO"; then :
11846 xorg_cv_cc_flag_unknown_warning_option=yes
11847 else
11848 xorg_cv_cc_flag_unknown_warning_option=no
11849 fi
11850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11851 fi
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11853 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11854 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11855 CFLAGS="$xorg_testset_save_CFLAGS"
11856 fi
11857
11858 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11859 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11860 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11861 fi
11862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11864 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11865 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11866 $as_echo_n "(cached) " >&6
11867 else
11868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11869 /* end confdefs.h. */
11870 int i;
11871 _ACEOF
11872 if ac_fn_c_try_compile "$LINENO"; then :
11873 xorg_cv_cc_flag_unused_command_line_argument=yes
11874 else
11875 xorg_cv_cc_flag_unused_command_line_argument=no
11876 fi
11877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11878 fi
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11880 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11881 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11882 CFLAGS="$xorg_testset_save_CFLAGS"
11883 fi
11884
11885 found="no"
11886
11887 if test $found = "no" ; then
11888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11889 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11890 fi
11891
11892 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11894 fi
11895
11896 CFLAGS="$CFLAGS -Wall"
11897
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
11899 $as_echo_n "checking if $CC supports -Wall... " >&6; }
11900 cacheid=xorg_cv_cc_flag__Wall
11901 if eval \${$cacheid+:} false; then :
11902 $as_echo_n "(cached) " >&6
11903 else
11904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11905 /* end confdefs.h. */
11906 int i;
11907 int
11908 main ()
11909 {
11910
11911 ;
11912 return 0;
11913 }
11914 _ACEOF
11915 if ac_fn_c_try_link "$LINENO"; then :
11916 eval $cacheid=yes
11917 else
11918 eval $cacheid=no
11919 fi
11920 rm -f core conftest.err conftest.$ac_objext \
11921 conftest$ac_exeext conftest.$ac_ext
11922 fi
11923
11924
11925 CFLAGS="$xorg_testset_save_CFLAGS"
11926
11927 eval supported=\$$cacheid
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11929 $as_echo "$supported" >&6; }
11930 if test "$supported" = "yes" ; then
11931 BASE_CFLAGS="$BASE_CFLAGS -Wall"
11932 found="yes"
11933 fi
11934 fi
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950 xorg_testset_save_CFLAGS="$CFLAGS"
11951
11952 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11953 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11955 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11956 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11957 $as_echo_n "(cached) " >&6
11958 else
11959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11960 /* end confdefs.h. */
11961 int i;
11962 _ACEOF
11963 if ac_fn_c_try_compile "$LINENO"; then :
11964 xorg_cv_cc_flag_unknown_warning_option=yes
11965 else
11966 xorg_cv_cc_flag_unknown_warning_option=no
11967 fi
11968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11969 fi
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11971 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11972 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11973 CFLAGS="$xorg_testset_save_CFLAGS"
11974 fi
11975
11976 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11978 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11979 fi
11980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11982 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11983 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11984 $as_echo_n "(cached) " >&6
11985 else
11986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11987 /* end confdefs.h. */
11988 int i;
11989 _ACEOF
11990 if ac_fn_c_try_compile "$LINENO"; then :
11991 xorg_cv_cc_flag_unused_command_line_argument=yes
11992 else
11993 xorg_cv_cc_flag_unused_command_line_argument=no
11994 fi
11995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11996 fi
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11998 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11999 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12000 CFLAGS="$xorg_testset_save_CFLAGS"
12001 fi
12002
12003 found="no"
12004
12005 if test $found = "no" ; then
12006 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12007 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12008 fi
12009
12010 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12012 fi
12013
12014 CFLAGS="$CFLAGS -Wpointer-arith"
12015
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12017 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12018 cacheid=xorg_cv_cc_flag__Wpointer_arith
12019 if eval \${$cacheid+:} false; then :
12020 $as_echo_n "(cached) " >&6
12021 else
12022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12023 /* end confdefs.h. */
12024 int i;
12025 int
12026 main ()
12027 {
12028
12029 ;
12030 return 0;
12031 }
12032 _ACEOF
12033 if ac_fn_c_try_link "$LINENO"; then :
12034 eval $cacheid=yes
12035 else
12036 eval $cacheid=no
12037 fi
12038 rm -f core conftest.err conftest.$ac_objext \
12039 conftest$ac_exeext conftest.$ac_ext
12040 fi
12041
12042
12043 CFLAGS="$xorg_testset_save_CFLAGS"
12044
12045 eval supported=\$$cacheid
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12047 $as_echo "$supported" >&6; }
12048 if test "$supported" = "yes" ; then
12049 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12050 found="yes"
12051 fi
12052 fi
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068 xorg_testset_save_CFLAGS="$CFLAGS"
12069
12070 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12071 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12073 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12074 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12075 $as_echo_n "(cached) " >&6
12076 else
12077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12078 /* end confdefs.h. */
12079 int i;
12080 _ACEOF
12081 if ac_fn_c_try_compile "$LINENO"; then :
12082 xorg_cv_cc_flag_unknown_warning_option=yes
12083 else
12084 xorg_cv_cc_flag_unknown_warning_option=no
12085 fi
12086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12087 fi
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12089 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12090 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12091 CFLAGS="$xorg_testset_save_CFLAGS"
12092 fi
12093
12094 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12095 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12096 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12097 fi
12098 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12100 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12101 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12102 $as_echo_n "(cached) " >&6
12103 else
12104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12105 /* end confdefs.h. */
12106 int i;
12107 _ACEOF
12108 if ac_fn_c_try_compile "$LINENO"; then :
12109 xorg_cv_cc_flag_unused_command_line_argument=yes
12110 else
12111 xorg_cv_cc_flag_unused_command_line_argument=no
12112 fi
12113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12114 fi
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12116 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12117 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12118 CFLAGS="$xorg_testset_save_CFLAGS"
12119 fi
12120
12121 found="no"
12122
12123 if test $found = "no" ; then
12124 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12125 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12126 fi
12127
12128 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12130 fi
12131
12132 CFLAGS="$CFLAGS -Wmissing-declarations"
12133
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12135 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12136 cacheid=xorg_cv_cc_flag__Wmissing_declarations
12137 if eval \${$cacheid+:} false; then :
12138 $as_echo_n "(cached) " >&6
12139 else
12140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12141 /* end confdefs.h. */
12142 int i;
12143 int
12144 main ()
12145 {
12146
12147 ;
12148 return 0;
12149 }
12150 _ACEOF
12151 if ac_fn_c_try_link "$LINENO"; then :
12152 eval $cacheid=yes
12153 else
12154 eval $cacheid=no
12155 fi
12156 rm -f core conftest.err conftest.$ac_objext \
12157 conftest$ac_exeext conftest.$ac_ext
12158 fi
12159
12160
12161 CFLAGS="$xorg_testset_save_CFLAGS"
12162
12163 eval supported=\$$cacheid
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12165 $as_echo "$supported" >&6; }
12166 if test "$supported" = "yes" ; then
12167 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12168 found="yes"
12169 fi
12170 fi
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186 xorg_testset_save_CFLAGS="$CFLAGS"
12187
12188 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12189 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12191 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12192 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12193 $as_echo_n "(cached) " >&6
12194 else
12195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12196 /* end confdefs.h. */
12197 int i;
12198 _ACEOF
12199 if ac_fn_c_try_compile "$LINENO"; then :
12200 xorg_cv_cc_flag_unknown_warning_option=yes
12201 else
12202 xorg_cv_cc_flag_unknown_warning_option=no
12203 fi
12204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12205 fi
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12207 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12208 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12209 CFLAGS="$xorg_testset_save_CFLAGS"
12210 fi
12211
12212 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12213 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12214 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12215 fi
12216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12218 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12219 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12220 $as_echo_n "(cached) " >&6
12221 else
12222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12223 /* end confdefs.h. */
12224 int i;
12225 _ACEOF
12226 if ac_fn_c_try_compile "$LINENO"; then :
12227 xorg_cv_cc_flag_unused_command_line_argument=yes
12228 else
12229 xorg_cv_cc_flag_unused_command_line_argument=no
12230 fi
12231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12232 fi
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12234 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12235 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12236 CFLAGS="$xorg_testset_save_CFLAGS"
12237 fi
12238
12239 found="no"
12240
12241 if test $found = "no" ; then
12242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12243 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12244 fi
12245
12246 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12248 fi
12249
12250 CFLAGS="$CFLAGS -Wformat=2"
12251
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12253 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12254 cacheid=xorg_cv_cc_flag__Wformat_2
12255 if eval \${$cacheid+:} false; then :
12256 $as_echo_n "(cached) " >&6
12257 else
12258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12259 /* end confdefs.h. */
12260 int i;
12261 int
12262 main ()
12263 {
12264
12265 ;
12266 return 0;
12267 }
12268 _ACEOF
12269 if ac_fn_c_try_link "$LINENO"; then :
12270 eval $cacheid=yes
12271 else
12272 eval $cacheid=no
12273 fi
12274 rm -f core conftest.err conftest.$ac_objext \
12275 conftest$ac_exeext conftest.$ac_ext
12276 fi
12277
12278
12279 CFLAGS="$xorg_testset_save_CFLAGS"
12280
12281 eval supported=\$$cacheid
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12283 $as_echo "$supported" >&6; }
12284 if test "$supported" = "yes" ; then
12285 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12286 found="yes"
12287 fi
12288 fi
12289
12290 if test $found = "no" ; then
12291 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12292 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12293 fi
12294
12295 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12297 fi
12298
12299 CFLAGS="$CFLAGS -Wformat"
12300
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12302 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12303 cacheid=xorg_cv_cc_flag__Wformat
12304 if eval \${$cacheid+:} false; then :
12305 $as_echo_n "(cached) " >&6
12306 else
12307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12308 /* end confdefs.h. */
12309 int i;
12310 int
12311 main ()
12312 {
12313
12314 ;
12315 return 0;
12316 }
12317 _ACEOF
12318 if ac_fn_c_try_link "$LINENO"; then :
12319 eval $cacheid=yes
12320 else
12321 eval $cacheid=no
12322 fi
12323 rm -f core conftest.err conftest.$ac_objext \
12324 conftest$ac_exeext conftest.$ac_ext
12325 fi
12326
12327
12328 CFLAGS="$xorg_testset_save_CFLAGS"
12329
12330 eval supported=\$$cacheid
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12332 $as_echo "$supported" >&6; }
12333 if test "$supported" = "yes" ; then
12334 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12335 found="yes"
12336 fi
12337 fi
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355 xorg_testset_save_CFLAGS="$CFLAGS"
12356
12357 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12358 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12360 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12361 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12362 $as_echo_n "(cached) " >&6
12363 else
12364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12365 /* end confdefs.h. */
12366 int i;
12367 _ACEOF
12368 if ac_fn_c_try_compile "$LINENO"; then :
12369 xorg_cv_cc_flag_unknown_warning_option=yes
12370 else
12371 xorg_cv_cc_flag_unknown_warning_option=no
12372 fi
12373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12374 fi
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12376 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12377 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12378 CFLAGS="$xorg_testset_save_CFLAGS"
12379 fi
12380
12381 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12382 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12383 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12384 fi
12385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12387 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12388 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12389 $as_echo_n "(cached) " >&6
12390 else
12391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12392 /* end confdefs.h. */
12393 int i;
12394 _ACEOF
12395 if ac_fn_c_try_compile "$LINENO"; then :
12396 xorg_cv_cc_flag_unused_command_line_argument=yes
12397 else
12398 xorg_cv_cc_flag_unused_command_line_argument=no
12399 fi
12400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12401 fi
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12403 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12404 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12405 CFLAGS="$xorg_testset_save_CFLAGS"
12406 fi
12407
12408 found="no"
12409
12410 if test $found = "no" ; then
12411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12412 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12413 fi
12414
12415 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12417 fi
12418
12419 CFLAGS="$CFLAGS -Wstrict-prototypes"
12420
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12422 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12423 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12424 if eval \${$cacheid+:} false; then :
12425 $as_echo_n "(cached) " >&6
12426 else
12427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12428 /* end confdefs.h. */
12429 int i;
12430 int
12431 main ()
12432 {
12433
12434 ;
12435 return 0;
12436 }
12437 _ACEOF
12438 if ac_fn_c_try_link "$LINENO"; then :
12439 eval $cacheid=yes
12440 else
12441 eval $cacheid=no
12442 fi
12443 rm -f core conftest.err conftest.$ac_objext \
12444 conftest$ac_exeext conftest.$ac_ext
12445 fi
12446
12447
12448 CFLAGS="$xorg_testset_save_CFLAGS"
12449
12450 eval supported=\$$cacheid
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12452 $as_echo "$supported" >&6; }
12453 if test "$supported" = "yes" ; then
12454 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12455 found="yes"
12456 fi
12457 fi
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473 xorg_testset_save_CFLAGS="$CFLAGS"
12474
12475 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12476 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12478 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12479 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12480 $as_echo_n "(cached) " >&6
12481 else
12482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12483 /* end confdefs.h. */
12484 int i;
12485 _ACEOF
12486 if ac_fn_c_try_compile "$LINENO"; then :
12487 xorg_cv_cc_flag_unknown_warning_option=yes
12488 else
12489 xorg_cv_cc_flag_unknown_warning_option=no
12490 fi
12491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12492 fi
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12494 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12495 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12496 CFLAGS="$xorg_testset_save_CFLAGS"
12497 fi
12498
12499 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12500 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12501 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12502 fi
12503 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12505 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12506 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12507 $as_echo_n "(cached) " >&6
12508 else
12509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12510 /* end confdefs.h. */
12511 int i;
12512 _ACEOF
12513 if ac_fn_c_try_compile "$LINENO"; then :
12514 xorg_cv_cc_flag_unused_command_line_argument=yes
12515 else
12516 xorg_cv_cc_flag_unused_command_line_argument=no
12517 fi
12518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12519 fi
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12521 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12522 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12523 CFLAGS="$xorg_testset_save_CFLAGS"
12524 fi
12525
12526 found="no"
12527
12528 if test $found = "no" ; then
12529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12530 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12531 fi
12532
12533 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12535 fi
12536
12537 CFLAGS="$CFLAGS -Wmissing-prototypes"
12538
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12540 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12541 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
12542 if eval \${$cacheid+:} false; then :
12543 $as_echo_n "(cached) " >&6
12544 else
12545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12546 /* end confdefs.h. */
12547 int i;
12548 int
12549 main ()
12550 {
12551
12552 ;
12553 return 0;
12554 }
12555 _ACEOF
12556 if ac_fn_c_try_link "$LINENO"; then :
12557 eval $cacheid=yes
12558 else
12559 eval $cacheid=no
12560 fi
12561 rm -f core conftest.err conftest.$ac_objext \
12562 conftest$ac_exeext conftest.$ac_ext
12563 fi
12564
12565
12566 CFLAGS="$xorg_testset_save_CFLAGS"
12567
12568 eval supported=\$$cacheid
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12570 $as_echo "$supported" >&6; }
12571 if test "$supported" = "yes" ; then
12572 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12573 found="yes"
12574 fi
12575 fi
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591 xorg_testset_save_CFLAGS="$CFLAGS"
12592
12593 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12594 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12596 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12597 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12598 $as_echo_n "(cached) " >&6
12599 else
12600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12601 /* end confdefs.h. */
12602 int i;
12603 _ACEOF
12604 if ac_fn_c_try_compile "$LINENO"; then :
12605 xorg_cv_cc_flag_unknown_warning_option=yes
12606 else
12607 xorg_cv_cc_flag_unknown_warning_option=no
12608 fi
12609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12610 fi
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12612 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12613 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12614 CFLAGS="$xorg_testset_save_CFLAGS"
12615 fi
12616
12617 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12618 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12619 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12620 fi
12621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12623 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12624 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12625 $as_echo_n "(cached) " >&6
12626 else
12627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12628 /* end confdefs.h. */
12629 int i;
12630 _ACEOF
12631 if ac_fn_c_try_compile "$LINENO"; then :
12632 xorg_cv_cc_flag_unused_command_line_argument=yes
12633 else
12634 xorg_cv_cc_flag_unused_command_line_argument=no
12635 fi
12636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12637 fi
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12639 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12640 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12641 CFLAGS="$xorg_testset_save_CFLAGS"
12642 fi
12643
12644 found="no"
12645
12646 if test $found = "no" ; then
12647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12648 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12649 fi
12650
12651 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12653 fi
12654
12655 CFLAGS="$CFLAGS -Wnested-externs"
12656
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12658 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12659 cacheid=xorg_cv_cc_flag__Wnested_externs
12660 if eval \${$cacheid+:} false; then :
12661 $as_echo_n "(cached) " >&6
12662 else
12663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12664 /* end confdefs.h. */
12665 int i;
12666 int
12667 main ()
12668 {
12669
12670 ;
12671 return 0;
12672 }
12673 _ACEOF
12674 if ac_fn_c_try_link "$LINENO"; then :
12675 eval $cacheid=yes
12676 else
12677 eval $cacheid=no
12678 fi
12679 rm -f core conftest.err conftest.$ac_objext \
12680 conftest$ac_exeext conftest.$ac_ext
12681 fi
12682
12683
12684 CFLAGS="$xorg_testset_save_CFLAGS"
12685
12686 eval supported=\$$cacheid
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12688 $as_echo "$supported" >&6; }
12689 if test "$supported" = "yes" ; then
12690 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12691 found="yes"
12692 fi
12693 fi
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709 xorg_testset_save_CFLAGS="$CFLAGS"
12710
12711 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12712 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12714 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12715 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12716 $as_echo_n "(cached) " >&6
12717 else
12718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12719 /* end confdefs.h. */
12720 int i;
12721 _ACEOF
12722 if ac_fn_c_try_compile "$LINENO"; then :
12723 xorg_cv_cc_flag_unknown_warning_option=yes
12724 else
12725 xorg_cv_cc_flag_unknown_warning_option=no
12726 fi
12727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12728 fi
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12730 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12731 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12732 CFLAGS="$xorg_testset_save_CFLAGS"
12733 fi
12734
12735 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12737 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12738 fi
12739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12741 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12742 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12743 $as_echo_n "(cached) " >&6
12744 else
12745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12746 /* end confdefs.h. */
12747 int i;
12748 _ACEOF
12749 if ac_fn_c_try_compile "$LINENO"; then :
12750 xorg_cv_cc_flag_unused_command_line_argument=yes
12751 else
12752 xorg_cv_cc_flag_unused_command_line_argument=no
12753 fi
12754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12755 fi
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12757 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12758 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12759 CFLAGS="$xorg_testset_save_CFLAGS"
12760 fi
12761
12762 found="no"
12763
12764 if test $found = "no" ; then
12765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12766 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12767 fi
12768
12769 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12771 fi
12772
12773 CFLAGS="$CFLAGS -Wbad-function-cast"
12774
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12776 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12777 cacheid=xorg_cv_cc_flag__Wbad_function_cast
12778 if eval \${$cacheid+:} false; then :
12779 $as_echo_n "(cached) " >&6
12780 else
12781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12782 /* end confdefs.h. */
12783 int i;
12784 int
12785 main ()
12786 {
12787
12788 ;
12789 return 0;
12790 }
12791 _ACEOF
12792 if ac_fn_c_try_link "$LINENO"; then :
12793 eval $cacheid=yes
12794 else
12795 eval $cacheid=no
12796 fi
12797 rm -f core conftest.err conftest.$ac_objext \
12798 conftest$ac_exeext conftest.$ac_ext
12799 fi
12800
12801
12802 CFLAGS="$xorg_testset_save_CFLAGS"
12803
12804 eval supported=\$$cacheid
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12806 $as_echo "$supported" >&6; }
12807 if test "$supported" = "yes" ; then
12808 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12809 found="yes"
12810 fi
12811 fi
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827 xorg_testset_save_CFLAGS="$CFLAGS"
12828
12829 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12830 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12832 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12833 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12834 $as_echo_n "(cached) " >&6
12835 else
12836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12837 /* end confdefs.h. */
12838 int i;
12839 _ACEOF
12840 if ac_fn_c_try_compile "$LINENO"; then :
12841 xorg_cv_cc_flag_unknown_warning_option=yes
12842 else
12843 xorg_cv_cc_flag_unknown_warning_option=no
12844 fi
12845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12846 fi
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12848 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12849 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12850 CFLAGS="$xorg_testset_save_CFLAGS"
12851 fi
12852
12853 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12856 fi
12857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12859 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12860 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12861 $as_echo_n "(cached) " >&6
12862 else
12863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12864 /* end confdefs.h. */
12865 int i;
12866 _ACEOF
12867 if ac_fn_c_try_compile "$LINENO"; then :
12868 xorg_cv_cc_flag_unused_command_line_argument=yes
12869 else
12870 xorg_cv_cc_flag_unused_command_line_argument=no
12871 fi
12872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12873 fi
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12875 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12876 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12877 CFLAGS="$xorg_testset_save_CFLAGS"
12878 fi
12879
12880 found="no"
12881
12882 if test $found = "no" ; then
12883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12884 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12885 fi
12886
12887 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12889 fi
12890
12891 CFLAGS="$CFLAGS -Wold-style-definition"
12892
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
12894 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
12895 cacheid=xorg_cv_cc_flag__Wold_style_definition
12896 if eval \${$cacheid+:} false; then :
12897 $as_echo_n "(cached) " >&6
12898 else
12899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12900 /* end confdefs.h. */
12901 int i;
12902 int
12903 main ()
12904 {
12905
12906 ;
12907 return 0;
12908 }
12909 _ACEOF
12910 if ac_fn_c_try_link "$LINENO"; then :
12911 eval $cacheid=yes
12912 else
12913 eval $cacheid=no
12914 fi
12915 rm -f core conftest.err conftest.$ac_objext \
12916 conftest$ac_exeext conftest.$ac_ext
12917 fi
12918
12919
12920 CFLAGS="$xorg_testset_save_CFLAGS"
12921
12922 eval supported=\$$cacheid
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12924 $as_echo "$supported" >&6; }
12925 if test "$supported" = "yes" ; then
12926 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
12927 found="yes"
12928 fi
12929 fi
12930
12931 if test $found = "no" ; then
12932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12933 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12934 fi
12935
12936 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12937 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12938 fi
12939
12940 CFLAGS="$CFLAGS -fd"
12941
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
12943 $as_echo_n "checking if $CC supports -fd... " >&6; }
12944 cacheid=xorg_cv_cc_flag__fd
12945 if eval \${$cacheid+:} false; then :
12946 $as_echo_n "(cached) " >&6
12947 else
12948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12949 /* end confdefs.h. */
12950 int i;
12951 int
12952 main ()
12953 {
12954
12955 ;
12956 return 0;
12957 }
12958 _ACEOF
12959 if ac_fn_c_try_link "$LINENO"; then :
12960 eval $cacheid=yes
12961 else
12962 eval $cacheid=no
12963 fi
12964 rm -f core conftest.err conftest.$ac_objext \
12965 conftest$ac_exeext conftest.$ac_ext
12966 fi
12967
12968
12969 CFLAGS="$xorg_testset_save_CFLAGS"
12970
12971 eval supported=\$$cacheid
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12973 $as_echo "$supported" >&6; }
12974 if test "$supported" = "yes" ; then
12975 BASE_CFLAGS="$BASE_CFLAGS -fd"
12976 found="yes"
12977 fi
12978 fi
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994 xorg_testset_save_CFLAGS="$CFLAGS"
12995
12996 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12997 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12999 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13000 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13001 $as_echo_n "(cached) " >&6
13002 else
13003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13004 /* end confdefs.h. */
13005 int i;
13006 _ACEOF
13007 if ac_fn_c_try_compile "$LINENO"; then :
13008 xorg_cv_cc_flag_unknown_warning_option=yes
13009 else
13010 xorg_cv_cc_flag_unknown_warning_option=no
13011 fi
13012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13013 fi
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13015 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13016 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13017 CFLAGS="$xorg_testset_save_CFLAGS"
13018 fi
13019
13020 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13021 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13022 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13023 fi
13024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13026 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13027 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13028 $as_echo_n "(cached) " >&6
13029 else
13030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13031 /* end confdefs.h. */
13032 int i;
13033 _ACEOF
13034 if ac_fn_c_try_compile "$LINENO"; then :
13035 xorg_cv_cc_flag_unused_command_line_argument=yes
13036 else
13037 xorg_cv_cc_flag_unused_command_line_argument=no
13038 fi
13039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13040 fi
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13042 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13043 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13044 CFLAGS="$xorg_testset_save_CFLAGS"
13045 fi
13046
13047 found="no"
13048
13049 if test $found = "no" ; then
13050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13052 fi
13053
13054 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13056 fi
13057
13058 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13059
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13061 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13062 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13063 if eval \${$cacheid+:} false; then :
13064 $as_echo_n "(cached) " >&6
13065 else
13066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13067 /* end confdefs.h. */
13068 int i;
13069 int
13070 main ()
13071 {
13072
13073 ;
13074 return 0;
13075 }
13076 _ACEOF
13077 if ac_fn_c_try_link "$LINENO"; then :
13078 eval $cacheid=yes
13079 else
13080 eval $cacheid=no
13081 fi
13082 rm -f core conftest.err conftest.$ac_objext \
13083 conftest$ac_exeext conftest.$ac_ext
13084 fi
13085
13086
13087 CFLAGS="$xorg_testset_save_CFLAGS"
13088
13089 eval supported=\$$cacheid
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13091 $as_echo "$supported" >&6; }
13092 if test "$supported" = "yes" ; then
13093 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13094 found="yes"
13095 fi
13096 fi
13097
13098
13099
13100
13101
13102 # This chunk adds additional warnings that could catch undesired effects.
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116 xorg_testset_save_CFLAGS="$CFLAGS"
13117
13118 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13121 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13122 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13123 $as_echo_n "(cached) " >&6
13124 else
13125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13126 /* end confdefs.h. */
13127 int i;
13128 _ACEOF
13129 if ac_fn_c_try_compile "$LINENO"; then :
13130 xorg_cv_cc_flag_unknown_warning_option=yes
13131 else
13132 xorg_cv_cc_flag_unknown_warning_option=no
13133 fi
13134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13135 fi
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13137 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13138 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13139 CFLAGS="$xorg_testset_save_CFLAGS"
13140 fi
13141
13142 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13143 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13144 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13145 fi
13146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13148 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13149 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13150 $as_echo_n "(cached) " >&6
13151 else
13152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13153 /* end confdefs.h. */
13154 int i;
13155 _ACEOF
13156 if ac_fn_c_try_compile "$LINENO"; then :
13157 xorg_cv_cc_flag_unused_command_line_argument=yes
13158 else
13159 xorg_cv_cc_flag_unused_command_line_argument=no
13160 fi
13161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13162 fi
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13164 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13165 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13166 CFLAGS="$xorg_testset_save_CFLAGS"
13167 fi
13168
13169 found="no"
13170
13171 if test $found = "no" ; then
13172 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13173 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13174 fi
13175
13176 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13178 fi
13179
13180 CFLAGS="$CFLAGS -Wunused"
13181
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13183 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
13184 cacheid=xorg_cv_cc_flag__Wunused
13185 if eval \${$cacheid+:} false; then :
13186 $as_echo_n "(cached) " >&6
13187 else
13188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13189 /* end confdefs.h. */
13190 int i;
13191 int
13192 main ()
13193 {
13194
13195 ;
13196 return 0;
13197 }
13198 _ACEOF
13199 if ac_fn_c_try_link "$LINENO"; then :
13200 eval $cacheid=yes
13201 else
13202 eval $cacheid=no
13203 fi
13204 rm -f core conftest.err conftest.$ac_objext \
13205 conftest$ac_exeext conftest.$ac_ext
13206 fi
13207
13208
13209 CFLAGS="$xorg_testset_save_CFLAGS"
13210
13211 eval supported=\$$cacheid
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13213 $as_echo "$supported" >&6; }
13214 if test "$supported" = "yes" ; then
13215 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13216 found="yes"
13217 fi
13218 fi
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234 xorg_testset_save_CFLAGS="$CFLAGS"
13235
13236 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13239 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13240 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13241 $as_echo_n "(cached) " >&6
13242 else
13243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13244 /* end confdefs.h. */
13245 int i;
13246 _ACEOF
13247 if ac_fn_c_try_compile "$LINENO"; then :
13248 xorg_cv_cc_flag_unknown_warning_option=yes
13249 else
13250 xorg_cv_cc_flag_unknown_warning_option=no
13251 fi
13252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13253 fi
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13255 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13256 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13257 CFLAGS="$xorg_testset_save_CFLAGS"
13258 fi
13259
13260 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13261 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13262 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13263 fi
13264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13266 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13267 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13268 $as_echo_n "(cached) " >&6
13269 else
13270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13271 /* end confdefs.h. */
13272 int i;
13273 _ACEOF
13274 if ac_fn_c_try_compile "$LINENO"; then :
13275 xorg_cv_cc_flag_unused_command_line_argument=yes
13276 else
13277 xorg_cv_cc_flag_unused_command_line_argument=no
13278 fi
13279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13280 fi
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13282 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13283 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13284 CFLAGS="$xorg_testset_save_CFLAGS"
13285 fi
13286
13287 found="no"
13288
13289 if test $found = "no" ; then
13290 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13291 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13292 fi
13293
13294 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13296 fi
13297
13298 CFLAGS="$CFLAGS -Wuninitialized"
13299
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13301 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13302 cacheid=xorg_cv_cc_flag__Wuninitialized
13303 if eval \${$cacheid+:} false; then :
13304 $as_echo_n "(cached) " >&6
13305 else
13306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13307 /* end confdefs.h. */
13308 int i;
13309 int
13310 main ()
13311 {
13312
13313 ;
13314 return 0;
13315 }
13316 _ACEOF
13317 if ac_fn_c_try_link "$LINENO"; then :
13318 eval $cacheid=yes
13319 else
13320 eval $cacheid=no
13321 fi
13322 rm -f core conftest.err conftest.$ac_objext \
13323 conftest$ac_exeext conftest.$ac_ext
13324 fi
13325
13326
13327 CFLAGS="$xorg_testset_save_CFLAGS"
13328
13329 eval supported=\$$cacheid
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13331 $as_echo "$supported" >&6; }
13332 if test "$supported" = "yes" ; then
13333 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13334 found="yes"
13335 fi
13336 fi
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352 xorg_testset_save_CFLAGS="$CFLAGS"
13353
13354 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13355 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13357 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13358 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13359 $as_echo_n "(cached) " >&6
13360 else
13361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13362 /* end confdefs.h. */
13363 int i;
13364 _ACEOF
13365 if ac_fn_c_try_compile "$LINENO"; then :
13366 xorg_cv_cc_flag_unknown_warning_option=yes
13367 else
13368 xorg_cv_cc_flag_unknown_warning_option=no
13369 fi
13370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13371 fi
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13373 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13374 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13375 CFLAGS="$xorg_testset_save_CFLAGS"
13376 fi
13377
13378 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13379 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13380 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13381 fi
13382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13384 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13385 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13386 $as_echo_n "(cached) " >&6
13387 else
13388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13389 /* end confdefs.h. */
13390 int i;
13391 _ACEOF
13392 if ac_fn_c_try_compile "$LINENO"; then :
13393 xorg_cv_cc_flag_unused_command_line_argument=yes
13394 else
13395 xorg_cv_cc_flag_unused_command_line_argument=no
13396 fi
13397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13398 fi
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13400 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13401 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13402 CFLAGS="$xorg_testset_save_CFLAGS"
13403 fi
13404
13405 found="no"
13406
13407 if test $found = "no" ; then
13408 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13409 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13410 fi
13411
13412 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13414 fi
13415
13416 CFLAGS="$CFLAGS -Wshadow"
13417
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13419 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13420 cacheid=xorg_cv_cc_flag__Wshadow
13421 if eval \${$cacheid+:} false; then :
13422 $as_echo_n "(cached) " >&6
13423 else
13424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13425 /* end confdefs.h. */
13426 int i;
13427 int
13428 main ()
13429 {
13430
13431 ;
13432 return 0;
13433 }
13434 _ACEOF
13435 if ac_fn_c_try_link "$LINENO"; then :
13436 eval $cacheid=yes
13437 else
13438 eval $cacheid=no
13439 fi
13440 rm -f core conftest.err conftest.$ac_objext \
13441 conftest$ac_exeext conftest.$ac_ext
13442 fi
13443
13444
13445 CFLAGS="$xorg_testset_save_CFLAGS"
13446
13447 eval supported=\$$cacheid
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13449 $as_echo "$supported" >&6; }
13450 if test "$supported" = "yes" ; then
13451 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13452 found="yes"
13453 fi
13454 fi
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470 xorg_testset_save_CFLAGS="$CFLAGS"
13471
13472 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13473 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13475 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13476 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13477 $as_echo_n "(cached) " >&6
13478 else
13479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13480 /* end confdefs.h. */
13481 int i;
13482 _ACEOF
13483 if ac_fn_c_try_compile "$LINENO"; then :
13484 xorg_cv_cc_flag_unknown_warning_option=yes
13485 else
13486 xorg_cv_cc_flag_unknown_warning_option=no
13487 fi
13488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13489 fi
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13491 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13492 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13493 CFLAGS="$xorg_testset_save_CFLAGS"
13494 fi
13495
13496 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13498 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13499 fi
13500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13502 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13503 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13504 $as_echo_n "(cached) " >&6
13505 else
13506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13507 /* end confdefs.h. */
13508 int i;
13509 _ACEOF
13510 if ac_fn_c_try_compile "$LINENO"; then :
13511 xorg_cv_cc_flag_unused_command_line_argument=yes
13512 else
13513 xorg_cv_cc_flag_unused_command_line_argument=no
13514 fi
13515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13516 fi
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13518 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13519 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13520 CFLAGS="$xorg_testset_save_CFLAGS"
13521 fi
13522
13523 found="no"
13524
13525 if test $found = "no" ; then
13526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13527 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13528 fi
13529
13530 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13532 fi
13533
13534 CFLAGS="$CFLAGS -Wmissing-noreturn"
13535
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13537 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13538 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
13539 if eval \${$cacheid+:} false; then :
13540 $as_echo_n "(cached) " >&6
13541 else
13542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13543 /* end confdefs.h. */
13544 int i;
13545 int
13546 main ()
13547 {
13548
13549 ;
13550 return 0;
13551 }
13552 _ACEOF
13553 if ac_fn_c_try_link "$LINENO"; then :
13554 eval $cacheid=yes
13555 else
13556 eval $cacheid=no
13557 fi
13558 rm -f core conftest.err conftest.$ac_objext \
13559 conftest$ac_exeext conftest.$ac_ext
13560 fi
13561
13562
13563 CFLAGS="$xorg_testset_save_CFLAGS"
13564
13565 eval supported=\$$cacheid
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13567 $as_echo "$supported" >&6; }
13568 if test "$supported" = "yes" ; then
13569 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13570 found="yes"
13571 fi
13572 fi
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588 xorg_testset_save_CFLAGS="$CFLAGS"
13589
13590 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13591 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13593 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13594 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13595 $as_echo_n "(cached) " >&6
13596 else
13597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13598 /* end confdefs.h. */
13599 int i;
13600 _ACEOF
13601 if ac_fn_c_try_compile "$LINENO"; then :
13602 xorg_cv_cc_flag_unknown_warning_option=yes
13603 else
13604 xorg_cv_cc_flag_unknown_warning_option=no
13605 fi
13606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13607 fi
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13609 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13610 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13611 CFLAGS="$xorg_testset_save_CFLAGS"
13612 fi
13613
13614 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13616 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13617 fi
13618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13620 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13621 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13622 $as_echo_n "(cached) " >&6
13623 else
13624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13625 /* end confdefs.h. */
13626 int i;
13627 _ACEOF
13628 if ac_fn_c_try_compile "$LINENO"; then :
13629 xorg_cv_cc_flag_unused_command_line_argument=yes
13630 else
13631 xorg_cv_cc_flag_unused_command_line_argument=no
13632 fi
13633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13634 fi
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13636 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13637 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13638 CFLAGS="$xorg_testset_save_CFLAGS"
13639 fi
13640
13641 found="no"
13642
13643 if test $found = "no" ; then
13644 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13645 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13646 fi
13647
13648 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13650 fi
13651
13652 CFLAGS="$CFLAGS -Wmissing-format-attribute"
13653
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13655 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13656 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
13657 if eval \${$cacheid+:} false; then :
13658 $as_echo_n "(cached) " >&6
13659 else
13660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13661 /* end confdefs.h. */
13662 int i;
13663 int
13664 main ()
13665 {
13666
13667 ;
13668 return 0;
13669 }
13670 _ACEOF
13671 if ac_fn_c_try_link "$LINENO"; then :
13672 eval $cacheid=yes
13673 else
13674 eval $cacheid=no
13675 fi
13676 rm -f core conftest.err conftest.$ac_objext \
13677 conftest$ac_exeext conftest.$ac_ext
13678 fi
13679
13680
13681 CFLAGS="$xorg_testset_save_CFLAGS"
13682
13683 eval supported=\$$cacheid
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13685 $as_echo "$supported" >&6; }
13686 if test "$supported" = "yes" ; then
13687 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13688 found="yes"
13689 fi
13690 fi
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706 xorg_testset_save_CFLAGS="$CFLAGS"
13707
13708 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13709 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13711 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13712 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13713 $as_echo_n "(cached) " >&6
13714 else
13715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13716 /* end confdefs.h. */
13717 int i;
13718 _ACEOF
13719 if ac_fn_c_try_compile "$LINENO"; then :
13720 xorg_cv_cc_flag_unknown_warning_option=yes
13721 else
13722 xorg_cv_cc_flag_unknown_warning_option=no
13723 fi
13724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13725 fi
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13727 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13728 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13729 CFLAGS="$xorg_testset_save_CFLAGS"
13730 fi
13731
13732 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13734 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13735 fi
13736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13738 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13739 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13740 $as_echo_n "(cached) " >&6
13741 else
13742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13743 /* end confdefs.h. */
13744 int i;
13745 _ACEOF
13746 if ac_fn_c_try_compile "$LINENO"; then :
13747 xorg_cv_cc_flag_unused_command_line_argument=yes
13748 else
13749 xorg_cv_cc_flag_unused_command_line_argument=no
13750 fi
13751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13752 fi
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13754 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13755 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13756 CFLAGS="$xorg_testset_save_CFLAGS"
13757 fi
13758
13759 found="no"
13760
13761 if test $found = "no" ; then
13762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13763 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13764 fi
13765
13766 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13768 fi
13769
13770 CFLAGS="$CFLAGS -Wredundant-decls"
13771
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13773 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13774 cacheid=xorg_cv_cc_flag__Wredundant_decls
13775 if eval \${$cacheid+:} false; then :
13776 $as_echo_n "(cached) " >&6
13777 else
13778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13779 /* end confdefs.h. */
13780 int i;
13781 int
13782 main ()
13783 {
13784
13785 ;
13786 return 0;
13787 }
13788 _ACEOF
13789 if ac_fn_c_try_link "$LINENO"; then :
13790 eval $cacheid=yes
13791 else
13792 eval $cacheid=no
13793 fi
13794 rm -f core conftest.err conftest.$ac_objext \
13795 conftest$ac_exeext conftest.$ac_ext
13796 fi
13797
13798
13799 CFLAGS="$xorg_testset_save_CFLAGS"
13800
13801 eval supported=\$$cacheid
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13803 $as_echo "$supported" >&6; }
13804 if test "$supported" = "yes" ; then
13805 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13806 found="yes"
13807 fi
13808 fi
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824 xorg_testset_save_CFLAGS="$CFLAGS"
13825
13826 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13827 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13829 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13830 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13831 $as_echo_n "(cached) " >&6
13832 else
13833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13834 /* end confdefs.h. */
13835 int i;
13836 _ACEOF
13837 if ac_fn_c_try_compile "$LINENO"; then :
13838 xorg_cv_cc_flag_unknown_warning_option=yes
13839 else
13840 xorg_cv_cc_flag_unknown_warning_option=no
13841 fi
13842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13843 fi
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13845 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13846 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13847 CFLAGS="$xorg_testset_save_CFLAGS"
13848 fi
13849
13850 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13852 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13853 fi
13854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13856 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13857 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13858 $as_echo_n "(cached) " >&6
13859 else
13860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13861 /* end confdefs.h. */
13862 int i;
13863 _ACEOF
13864 if ac_fn_c_try_compile "$LINENO"; then :
13865 xorg_cv_cc_flag_unused_command_line_argument=yes
13866 else
13867 xorg_cv_cc_flag_unused_command_line_argument=no
13868 fi
13869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13870 fi
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13872 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13873 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13874 CFLAGS="$xorg_testset_save_CFLAGS"
13875 fi
13876
13877 found="no"
13878
13879 if test $found = "no" ; then
13880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13882 fi
13883
13884 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13886 fi
13887
13888 CFLAGS="$CFLAGS -Wlogical-op"
13889
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
13891 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
13892 cacheid=xorg_cv_cc_flag__Wlogical_op
13893 if eval \${$cacheid+:} false; then :
13894 $as_echo_n "(cached) " >&6
13895 else
13896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13897 /* end confdefs.h. */
13898 int i;
13899 int
13900 main ()
13901 {
13902
13903 ;
13904 return 0;
13905 }
13906 _ACEOF
13907 if ac_fn_c_try_link "$LINENO"; then :
13908 eval $cacheid=yes
13909 else
13910 eval $cacheid=no
13911 fi
13912 rm -f core conftest.err conftest.$ac_objext \
13913 conftest$ac_exeext conftest.$ac_ext
13914 fi
13915
13916
13917 CFLAGS="$xorg_testset_save_CFLAGS"
13918
13919 eval supported=\$$cacheid
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13921 $as_echo "$supported" >&6; }
13922 if test "$supported" = "yes" ; then
13923 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
13924 found="yes"
13925 fi
13926 fi
13927
13928
13929
13930 # These are currently disabled because they are noisy. They will be enabled
13931 # in the future once the codebase is sufficiently modernized to silence
13932 # them. For now, I don't want them to drown out the other warnings.
13933 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
13934 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
13935 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
13936
13937 # Turn some warnings into errors, so we don't accidently get successful builds
13938 # when there are problems that should be fixed.
13939
13940 if test "x$SELECTIVE_WERROR" = "xyes" ; then
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954 xorg_testset_save_CFLAGS="$CFLAGS"
13955
13956 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13957 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13959 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13960 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13961 $as_echo_n "(cached) " >&6
13962 else
13963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13964 /* end confdefs.h. */
13965 int i;
13966 _ACEOF
13967 if ac_fn_c_try_compile "$LINENO"; then :
13968 xorg_cv_cc_flag_unknown_warning_option=yes
13969 else
13970 xorg_cv_cc_flag_unknown_warning_option=no
13971 fi
13972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13973 fi
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13975 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13976 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13977 CFLAGS="$xorg_testset_save_CFLAGS"
13978 fi
13979
13980 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13982 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13983 fi
13984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13986 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13987 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13988 $as_echo_n "(cached) " >&6
13989 else
13990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13991 /* end confdefs.h. */
13992 int i;
13993 _ACEOF
13994 if ac_fn_c_try_compile "$LINENO"; then :
13995 xorg_cv_cc_flag_unused_command_line_argument=yes
13996 else
13997 xorg_cv_cc_flag_unused_command_line_argument=no
13998 fi
13999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14000 fi
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14002 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14003 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14004 CFLAGS="$xorg_testset_save_CFLAGS"
14005 fi
14006
14007 found="no"
14008
14009 if test $found = "no" ; then
14010 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14011 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14012 fi
14013
14014 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14016 fi
14017
14018 CFLAGS="$CFLAGS -Werror=implicit"
14019
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14021 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14022 cacheid=xorg_cv_cc_flag__Werror_implicit
14023 if eval \${$cacheid+:} false; then :
14024 $as_echo_n "(cached) " >&6
14025 else
14026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14027 /* end confdefs.h. */
14028 int i;
14029 int
14030 main ()
14031 {
14032
14033 ;
14034 return 0;
14035 }
14036 _ACEOF
14037 if ac_fn_c_try_link "$LINENO"; then :
14038 eval $cacheid=yes
14039 else
14040 eval $cacheid=no
14041 fi
14042 rm -f core conftest.err conftest.$ac_objext \
14043 conftest$ac_exeext conftest.$ac_ext
14044 fi
14045
14046
14047 CFLAGS="$xorg_testset_save_CFLAGS"
14048
14049 eval supported=\$$cacheid
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14051 $as_echo "$supported" >&6; }
14052 if test "$supported" = "yes" ; then
14053 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14054 found="yes"
14055 fi
14056 fi
14057
14058 if test $found = "no" ; then
14059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14060 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14061 fi
14062
14063 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14065 fi
14066
14067 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14068
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14070 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14071 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14072 if eval \${$cacheid+:} false; then :
14073 $as_echo_n "(cached) " >&6
14074 else
14075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14076 /* end confdefs.h. */
14077 int i;
14078 int
14079 main ()
14080 {
14081
14082 ;
14083 return 0;
14084 }
14085 _ACEOF
14086 if ac_fn_c_try_link "$LINENO"; then :
14087 eval $cacheid=yes
14088 else
14089 eval $cacheid=no
14090 fi
14091 rm -f core conftest.err conftest.$ac_objext \
14092 conftest$ac_exeext conftest.$ac_ext
14093 fi
14094
14095
14096 CFLAGS="$xorg_testset_save_CFLAGS"
14097
14098 eval supported=\$$cacheid
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14100 $as_echo "$supported" >&6; }
14101 if test "$supported" = "yes" ; then
14102 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14103 found="yes"
14104 fi
14105 fi
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121 xorg_testset_save_CFLAGS="$CFLAGS"
14122
14123 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14124 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14126 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14127 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14128 $as_echo_n "(cached) " >&6
14129 else
14130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14131 /* end confdefs.h. */
14132 int i;
14133 _ACEOF
14134 if ac_fn_c_try_compile "$LINENO"; then :
14135 xorg_cv_cc_flag_unknown_warning_option=yes
14136 else
14137 xorg_cv_cc_flag_unknown_warning_option=no
14138 fi
14139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14140 fi
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14142 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14143 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14144 CFLAGS="$xorg_testset_save_CFLAGS"
14145 fi
14146
14147 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14148 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14149 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14150 fi
14151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14153 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14154 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14155 $as_echo_n "(cached) " >&6
14156 else
14157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14158 /* end confdefs.h. */
14159 int i;
14160 _ACEOF
14161 if ac_fn_c_try_compile "$LINENO"; then :
14162 xorg_cv_cc_flag_unused_command_line_argument=yes
14163 else
14164 xorg_cv_cc_flag_unused_command_line_argument=no
14165 fi
14166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14167 fi
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14169 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14170 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14171 CFLAGS="$xorg_testset_save_CFLAGS"
14172 fi
14173
14174 found="no"
14175
14176 if test $found = "no" ; then
14177 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14178 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14179 fi
14180
14181 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14183 fi
14184
14185 CFLAGS="$CFLAGS -Werror=nonnull"
14186
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14188 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14189 cacheid=xorg_cv_cc_flag__Werror_nonnull
14190 if eval \${$cacheid+:} false; then :
14191 $as_echo_n "(cached) " >&6
14192 else
14193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14194 /* end confdefs.h. */
14195 int i;
14196 int
14197 main ()
14198 {
14199
14200 ;
14201 return 0;
14202 }
14203 _ACEOF
14204 if ac_fn_c_try_link "$LINENO"; then :
14205 eval $cacheid=yes
14206 else
14207 eval $cacheid=no
14208 fi
14209 rm -f core conftest.err conftest.$ac_objext \
14210 conftest$ac_exeext conftest.$ac_ext
14211 fi
14212
14213
14214 CFLAGS="$xorg_testset_save_CFLAGS"
14215
14216 eval supported=\$$cacheid
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14218 $as_echo "$supported" >&6; }
14219 if test "$supported" = "yes" ; then
14220 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14221 found="yes"
14222 fi
14223 fi
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239 xorg_testset_save_CFLAGS="$CFLAGS"
14240
14241 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14242 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14244 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14245 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14246 $as_echo_n "(cached) " >&6
14247 else
14248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14249 /* end confdefs.h. */
14250 int i;
14251 _ACEOF
14252 if ac_fn_c_try_compile "$LINENO"; then :
14253 xorg_cv_cc_flag_unknown_warning_option=yes
14254 else
14255 xorg_cv_cc_flag_unknown_warning_option=no
14256 fi
14257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14258 fi
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14260 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14261 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14262 CFLAGS="$xorg_testset_save_CFLAGS"
14263 fi
14264
14265 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14266 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14267 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14268 fi
14269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14271 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14272 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14273 $as_echo_n "(cached) " >&6
14274 else
14275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14276 /* end confdefs.h. */
14277 int i;
14278 _ACEOF
14279 if ac_fn_c_try_compile "$LINENO"; then :
14280 xorg_cv_cc_flag_unused_command_line_argument=yes
14281 else
14282 xorg_cv_cc_flag_unused_command_line_argument=no
14283 fi
14284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14285 fi
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14287 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14288 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14289 CFLAGS="$xorg_testset_save_CFLAGS"
14290 fi
14291
14292 found="no"
14293
14294 if test $found = "no" ; then
14295 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14296 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14297 fi
14298
14299 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14301 fi
14302
14303 CFLAGS="$CFLAGS -Werror=init-self"
14304
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14306 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14307 cacheid=xorg_cv_cc_flag__Werror_init_self
14308 if eval \${$cacheid+:} false; then :
14309 $as_echo_n "(cached) " >&6
14310 else
14311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14312 /* end confdefs.h. */
14313 int i;
14314 int
14315 main ()
14316 {
14317
14318 ;
14319 return 0;
14320 }
14321 _ACEOF
14322 if ac_fn_c_try_link "$LINENO"; then :
14323 eval $cacheid=yes
14324 else
14325 eval $cacheid=no
14326 fi
14327 rm -f core conftest.err conftest.$ac_objext \
14328 conftest$ac_exeext conftest.$ac_ext
14329 fi
14330
14331
14332 CFLAGS="$xorg_testset_save_CFLAGS"
14333
14334 eval supported=\$$cacheid
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14336 $as_echo "$supported" >&6; }
14337 if test "$supported" = "yes" ; then
14338 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14339 found="yes"
14340 fi
14341 fi
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357 xorg_testset_save_CFLAGS="$CFLAGS"
14358
14359 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14360 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14362 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14363 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14364 $as_echo_n "(cached) " >&6
14365 else
14366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14367 /* end confdefs.h. */
14368 int i;
14369 _ACEOF
14370 if ac_fn_c_try_compile "$LINENO"; then :
14371 xorg_cv_cc_flag_unknown_warning_option=yes
14372 else
14373 xorg_cv_cc_flag_unknown_warning_option=no
14374 fi
14375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14376 fi
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14378 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14379 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14380 CFLAGS="$xorg_testset_save_CFLAGS"
14381 fi
14382
14383 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14384 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14385 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14386 fi
14387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14389 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14390 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14391 $as_echo_n "(cached) " >&6
14392 else
14393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14394 /* end confdefs.h. */
14395 int i;
14396 _ACEOF
14397 if ac_fn_c_try_compile "$LINENO"; then :
14398 xorg_cv_cc_flag_unused_command_line_argument=yes
14399 else
14400 xorg_cv_cc_flag_unused_command_line_argument=no
14401 fi
14402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14403 fi
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14405 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14406 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14407 CFLAGS="$xorg_testset_save_CFLAGS"
14408 fi
14409
14410 found="no"
14411
14412 if test $found = "no" ; then
14413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14414 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14415 fi
14416
14417 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14419 fi
14420
14421 CFLAGS="$CFLAGS -Werror=main"
14422
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14424 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14425 cacheid=xorg_cv_cc_flag__Werror_main
14426 if eval \${$cacheid+:} false; then :
14427 $as_echo_n "(cached) " >&6
14428 else
14429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14430 /* end confdefs.h. */
14431 int i;
14432 int
14433 main ()
14434 {
14435
14436 ;
14437 return 0;
14438 }
14439 _ACEOF
14440 if ac_fn_c_try_link "$LINENO"; then :
14441 eval $cacheid=yes
14442 else
14443 eval $cacheid=no
14444 fi
14445 rm -f core conftest.err conftest.$ac_objext \
14446 conftest$ac_exeext conftest.$ac_ext
14447 fi
14448
14449
14450 CFLAGS="$xorg_testset_save_CFLAGS"
14451
14452 eval supported=\$$cacheid
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14454 $as_echo "$supported" >&6; }
14455 if test "$supported" = "yes" ; then
14456 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14457 found="yes"
14458 fi
14459 fi
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475 xorg_testset_save_CFLAGS="$CFLAGS"
14476
14477 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14478 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14480 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14481 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14482 $as_echo_n "(cached) " >&6
14483 else
14484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14485 /* end confdefs.h. */
14486 int i;
14487 _ACEOF
14488 if ac_fn_c_try_compile "$LINENO"; then :
14489 xorg_cv_cc_flag_unknown_warning_option=yes
14490 else
14491 xorg_cv_cc_flag_unknown_warning_option=no
14492 fi
14493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14494 fi
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14496 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14497 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14498 CFLAGS="$xorg_testset_save_CFLAGS"
14499 fi
14500
14501 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14502 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14503 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14504 fi
14505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14507 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14508 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14509 $as_echo_n "(cached) " >&6
14510 else
14511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14512 /* end confdefs.h. */
14513 int i;
14514 _ACEOF
14515 if ac_fn_c_try_compile "$LINENO"; then :
14516 xorg_cv_cc_flag_unused_command_line_argument=yes
14517 else
14518 xorg_cv_cc_flag_unused_command_line_argument=no
14519 fi
14520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14521 fi
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14523 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14524 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14525 CFLAGS="$xorg_testset_save_CFLAGS"
14526 fi
14527
14528 found="no"
14529
14530 if test $found = "no" ; then
14531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14532 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14533 fi
14534
14535 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14536 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14537 fi
14538
14539 CFLAGS="$CFLAGS -Werror=missing-braces"
14540
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14542 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14543 cacheid=xorg_cv_cc_flag__Werror_missing_braces
14544 if eval \${$cacheid+:} false; then :
14545 $as_echo_n "(cached) " >&6
14546 else
14547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14548 /* end confdefs.h. */
14549 int i;
14550 int
14551 main ()
14552 {
14553
14554 ;
14555 return 0;
14556 }
14557 _ACEOF
14558 if ac_fn_c_try_link "$LINENO"; then :
14559 eval $cacheid=yes
14560 else
14561 eval $cacheid=no
14562 fi
14563 rm -f core conftest.err conftest.$ac_objext \
14564 conftest$ac_exeext conftest.$ac_ext
14565 fi
14566
14567
14568 CFLAGS="$xorg_testset_save_CFLAGS"
14569
14570 eval supported=\$$cacheid
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14572 $as_echo "$supported" >&6; }
14573 if test "$supported" = "yes" ; then
14574 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14575 found="yes"
14576 fi
14577 fi
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593 xorg_testset_save_CFLAGS="$CFLAGS"
14594
14595 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14596 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14598 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14599 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14600 $as_echo_n "(cached) " >&6
14601 else
14602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14603 /* end confdefs.h. */
14604 int i;
14605 _ACEOF
14606 if ac_fn_c_try_compile "$LINENO"; then :
14607 xorg_cv_cc_flag_unknown_warning_option=yes
14608 else
14609 xorg_cv_cc_flag_unknown_warning_option=no
14610 fi
14611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14612 fi
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14614 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14615 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14616 CFLAGS="$xorg_testset_save_CFLAGS"
14617 fi
14618
14619 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14620 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14621 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14622 fi
14623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14625 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14626 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14627 $as_echo_n "(cached) " >&6
14628 else
14629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14630 /* end confdefs.h. */
14631 int i;
14632 _ACEOF
14633 if ac_fn_c_try_compile "$LINENO"; then :
14634 xorg_cv_cc_flag_unused_command_line_argument=yes
14635 else
14636 xorg_cv_cc_flag_unused_command_line_argument=no
14637 fi
14638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14639 fi
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14641 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14642 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14643 CFLAGS="$xorg_testset_save_CFLAGS"
14644 fi
14645
14646 found="no"
14647
14648 if test $found = "no" ; then
14649 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14650 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14651 fi
14652
14653 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14654 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14655 fi
14656
14657 CFLAGS="$CFLAGS -Werror=sequence-point"
14658
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14660 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14661 cacheid=xorg_cv_cc_flag__Werror_sequence_point
14662 if eval \${$cacheid+:} false; then :
14663 $as_echo_n "(cached) " >&6
14664 else
14665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14666 /* end confdefs.h. */
14667 int i;
14668 int
14669 main ()
14670 {
14671
14672 ;
14673 return 0;
14674 }
14675 _ACEOF
14676 if ac_fn_c_try_link "$LINENO"; then :
14677 eval $cacheid=yes
14678 else
14679 eval $cacheid=no
14680 fi
14681 rm -f core conftest.err conftest.$ac_objext \
14682 conftest$ac_exeext conftest.$ac_ext
14683 fi
14684
14685
14686 CFLAGS="$xorg_testset_save_CFLAGS"
14687
14688 eval supported=\$$cacheid
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14690 $as_echo "$supported" >&6; }
14691 if test "$supported" = "yes" ; then
14692 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14693 found="yes"
14694 fi
14695 fi
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711 xorg_testset_save_CFLAGS="$CFLAGS"
14712
14713 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14714 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14716 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14717 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14718 $as_echo_n "(cached) " >&6
14719 else
14720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14721 /* end confdefs.h. */
14722 int i;
14723 _ACEOF
14724 if ac_fn_c_try_compile "$LINENO"; then :
14725 xorg_cv_cc_flag_unknown_warning_option=yes
14726 else
14727 xorg_cv_cc_flag_unknown_warning_option=no
14728 fi
14729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14730 fi
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14732 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14733 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14734 CFLAGS="$xorg_testset_save_CFLAGS"
14735 fi
14736
14737 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14738 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14739 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14740 fi
14741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14743 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14744 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14745 $as_echo_n "(cached) " >&6
14746 else
14747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14748 /* end confdefs.h. */
14749 int i;
14750 _ACEOF
14751 if ac_fn_c_try_compile "$LINENO"; then :
14752 xorg_cv_cc_flag_unused_command_line_argument=yes
14753 else
14754 xorg_cv_cc_flag_unused_command_line_argument=no
14755 fi
14756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14757 fi
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14759 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14760 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14761 CFLAGS="$xorg_testset_save_CFLAGS"
14762 fi
14763
14764 found="no"
14765
14766 if test $found = "no" ; then
14767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14768 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14769 fi
14770
14771 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14773 fi
14774
14775 CFLAGS="$CFLAGS -Werror=return-type"
14776
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14778 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14779 cacheid=xorg_cv_cc_flag__Werror_return_type
14780 if eval \${$cacheid+:} false; then :
14781 $as_echo_n "(cached) " >&6
14782 else
14783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14784 /* end confdefs.h. */
14785 int i;
14786 int
14787 main ()
14788 {
14789
14790 ;
14791 return 0;
14792 }
14793 _ACEOF
14794 if ac_fn_c_try_link "$LINENO"; then :
14795 eval $cacheid=yes
14796 else
14797 eval $cacheid=no
14798 fi
14799 rm -f core conftest.err conftest.$ac_objext \
14800 conftest$ac_exeext conftest.$ac_ext
14801 fi
14802
14803
14804 CFLAGS="$xorg_testset_save_CFLAGS"
14805
14806 eval supported=\$$cacheid
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14808 $as_echo "$supported" >&6; }
14809 if test "$supported" = "yes" ; then
14810 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14811 found="yes"
14812 fi
14813 fi
14814
14815 if test $found = "no" ; then
14816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14817 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14818 fi
14819
14820 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14821 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14822 fi
14823
14824 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14825
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14827 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14828 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
14829 if eval \${$cacheid+:} false; then :
14830 $as_echo_n "(cached) " >&6
14831 else
14832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14833 /* end confdefs.h. */
14834 int i;
14835 int
14836 main ()
14837 {
14838
14839 ;
14840 return 0;
14841 }
14842 _ACEOF
14843 if ac_fn_c_try_link "$LINENO"; then :
14844 eval $cacheid=yes
14845 else
14846 eval $cacheid=no
14847 fi
14848 rm -f core conftest.err conftest.$ac_objext \
14849 conftest$ac_exeext conftest.$ac_ext
14850 fi
14851
14852
14853 CFLAGS="$xorg_testset_save_CFLAGS"
14854
14855 eval supported=\$$cacheid
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14857 $as_echo "$supported" >&6; }
14858 if test "$supported" = "yes" ; then
14859 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14860 found="yes"
14861 fi
14862 fi
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878 xorg_testset_save_CFLAGS="$CFLAGS"
14879
14880 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14883 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14884 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14885 $as_echo_n "(cached) " >&6
14886 else
14887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14888 /* end confdefs.h. */
14889 int i;
14890 _ACEOF
14891 if ac_fn_c_try_compile "$LINENO"; then :
14892 xorg_cv_cc_flag_unknown_warning_option=yes
14893 else
14894 xorg_cv_cc_flag_unknown_warning_option=no
14895 fi
14896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14897 fi
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14899 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14900 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14901 CFLAGS="$xorg_testset_save_CFLAGS"
14902 fi
14903
14904 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14905 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14906 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14907 fi
14908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14910 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14911 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14912 $as_echo_n "(cached) " >&6
14913 else
14914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14915 /* end confdefs.h. */
14916 int i;
14917 _ACEOF
14918 if ac_fn_c_try_compile "$LINENO"; then :
14919 xorg_cv_cc_flag_unused_command_line_argument=yes
14920 else
14921 xorg_cv_cc_flag_unused_command_line_argument=no
14922 fi
14923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14924 fi
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14926 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14927 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14928 CFLAGS="$xorg_testset_save_CFLAGS"
14929 fi
14930
14931 found="no"
14932
14933 if test $found = "no" ; then
14934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14935 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14936 fi
14937
14938 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14939 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14940 fi
14941
14942 CFLAGS="$CFLAGS -Werror=trigraphs"
14943
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
14945 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
14946 cacheid=xorg_cv_cc_flag__Werror_trigraphs
14947 if eval \${$cacheid+:} false; then :
14948 $as_echo_n "(cached) " >&6
14949 else
14950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14951 /* end confdefs.h. */
14952 int i;
14953 int
14954 main ()
14955 {
14956
14957 ;
14958 return 0;
14959 }
14960 _ACEOF
14961 if ac_fn_c_try_link "$LINENO"; then :
14962 eval $cacheid=yes
14963 else
14964 eval $cacheid=no
14965 fi
14966 rm -f core conftest.err conftest.$ac_objext \
14967 conftest$ac_exeext conftest.$ac_ext
14968 fi
14969
14970
14971 CFLAGS="$xorg_testset_save_CFLAGS"
14972
14973 eval supported=\$$cacheid
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14975 $as_echo "$supported" >&6; }
14976 if test "$supported" = "yes" ; then
14977 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
14978 found="yes"
14979 fi
14980 fi
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996 xorg_testset_save_CFLAGS="$CFLAGS"
14997
14998 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14999 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15001 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15002 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15003 $as_echo_n "(cached) " >&6
15004 else
15005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15006 /* end confdefs.h. */
15007 int i;
15008 _ACEOF
15009 if ac_fn_c_try_compile "$LINENO"; then :
15010 xorg_cv_cc_flag_unknown_warning_option=yes
15011 else
15012 xorg_cv_cc_flag_unknown_warning_option=no
15013 fi
15014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15015 fi
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15017 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15018 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15019 CFLAGS="$xorg_testset_save_CFLAGS"
15020 fi
15021
15022 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15023 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15024 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15025 fi
15026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15028 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15029 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15030 $as_echo_n "(cached) " >&6
15031 else
15032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15033 /* end confdefs.h. */
15034 int i;
15035 _ACEOF
15036 if ac_fn_c_try_compile "$LINENO"; then :
15037 xorg_cv_cc_flag_unused_command_line_argument=yes
15038 else
15039 xorg_cv_cc_flag_unused_command_line_argument=no
15040 fi
15041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15042 fi
15043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15044 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15045 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15046 CFLAGS="$xorg_testset_save_CFLAGS"
15047 fi
15048
15049 found="no"
15050
15051 if test $found = "no" ; then
15052 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15053 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15054 fi
15055
15056 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15057 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15058 fi
15059
15060 CFLAGS="$CFLAGS -Werror=array-bounds"
15061
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15063 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15064 cacheid=xorg_cv_cc_flag__Werror_array_bounds
15065 if eval \${$cacheid+:} false; then :
15066 $as_echo_n "(cached) " >&6
15067 else
15068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15069 /* end confdefs.h. */
15070 int i;
15071 int
15072 main ()
15073 {
15074
15075 ;
15076 return 0;
15077 }
15078 _ACEOF
15079 if ac_fn_c_try_link "$LINENO"; then :
15080 eval $cacheid=yes
15081 else
15082 eval $cacheid=no
15083 fi
15084 rm -f core conftest.err conftest.$ac_objext \
15085 conftest$ac_exeext conftest.$ac_ext
15086 fi
15087
15088
15089 CFLAGS="$xorg_testset_save_CFLAGS"
15090
15091 eval supported=\$$cacheid
15092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15093 $as_echo "$supported" >&6; }
15094 if test "$supported" = "yes" ; then
15095 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15096 found="yes"
15097 fi
15098 fi
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114 xorg_testset_save_CFLAGS="$CFLAGS"
15115
15116 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15117 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15119 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15120 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15121 $as_echo_n "(cached) " >&6
15122 else
15123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15124 /* end confdefs.h. */
15125 int i;
15126 _ACEOF
15127 if ac_fn_c_try_compile "$LINENO"; then :
15128 xorg_cv_cc_flag_unknown_warning_option=yes
15129 else
15130 xorg_cv_cc_flag_unknown_warning_option=no
15131 fi
15132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15133 fi
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15135 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15136 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15137 CFLAGS="$xorg_testset_save_CFLAGS"
15138 fi
15139
15140 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15141 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15142 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15143 fi
15144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15146 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15147 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15148 $as_echo_n "(cached) " >&6
15149 else
15150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15151 /* end confdefs.h. */
15152 int i;
15153 _ACEOF
15154 if ac_fn_c_try_compile "$LINENO"; then :
15155 xorg_cv_cc_flag_unused_command_line_argument=yes
15156 else
15157 xorg_cv_cc_flag_unused_command_line_argument=no
15158 fi
15159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15160 fi
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15162 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15163 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15164 CFLAGS="$xorg_testset_save_CFLAGS"
15165 fi
15166
15167 found="no"
15168
15169 if test $found = "no" ; then
15170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15171 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15172 fi
15173
15174 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15175 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15176 fi
15177
15178 CFLAGS="$CFLAGS -Werror=write-strings"
15179
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15181 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15182 cacheid=xorg_cv_cc_flag__Werror_write_strings
15183 if eval \${$cacheid+:} false; then :
15184 $as_echo_n "(cached) " >&6
15185 else
15186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15187 /* end confdefs.h. */
15188 int i;
15189 int
15190 main ()
15191 {
15192
15193 ;
15194 return 0;
15195 }
15196 _ACEOF
15197 if ac_fn_c_try_link "$LINENO"; then :
15198 eval $cacheid=yes
15199 else
15200 eval $cacheid=no
15201 fi
15202 rm -f core conftest.err conftest.$ac_objext \
15203 conftest$ac_exeext conftest.$ac_ext
15204 fi
15205
15206
15207 CFLAGS="$xorg_testset_save_CFLAGS"
15208
15209 eval supported=\$$cacheid
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15211 $as_echo "$supported" >&6; }
15212 if test "$supported" = "yes" ; then
15213 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15214 found="yes"
15215 fi
15216 fi
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232 xorg_testset_save_CFLAGS="$CFLAGS"
15233
15234 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15235 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15237 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15238 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15239 $as_echo_n "(cached) " >&6
15240 else
15241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15242 /* end confdefs.h. */
15243 int i;
15244 _ACEOF
15245 if ac_fn_c_try_compile "$LINENO"; then :
15246 xorg_cv_cc_flag_unknown_warning_option=yes
15247 else
15248 xorg_cv_cc_flag_unknown_warning_option=no
15249 fi
15250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15251 fi
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15253 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15254 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15255 CFLAGS="$xorg_testset_save_CFLAGS"
15256 fi
15257
15258 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15259 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15260 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15261 fi
15262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15264 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15265 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15266 $as_echo_n "(cached) " >&6
15267 else
15268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15269 /* end confdefs.h. */
15270 int i;
15271 _ACEOF
15272 if ac_fn_c_try_compile "$LINENO"; then :
15273 xorg_cv_cc_flag_unused_command_line_argument=yes
15274 else
15275 xorg_cv_cc_flag_unused_command_line_argument=no
15276 fi
15277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15278 fi
15279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15280 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15281 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15282 CFLAGS="$xorg_testset_save_CFLAGS"
15283 fi
15284
15285 found="no"
15286
15287 if test $found = "no" ; then
15288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15289 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15290 fi
15291
15292 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15293 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15294 fi
15295
15296 CFLAGS="$CFLAGS -Werror=address"
15297
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15299 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15300 cacheid=xorg_cv_cc_flag__Werror_address
15301 if eval \${$cacheid+:} false; then :
15302 $as_echo_n "(cached) " >&6
15303 else
15304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15305 /* end confdefs.h. */
15306 int i;
15307 int
15308 main ()
15309 {
15310
15311 ;
15312 return 0;
15313 }
15314 _ACEOF
15315 if ac_fn_c_try_link "$LINENO"; then :
15316 eval $cacheid=yes
15317 else
15318 eval $cacheid=no
15319 fi
15320 rm -f core conftest.err conftest.$ac_objext \
15321 conftest$ac_exeext conftest.$ac_ext
15322 fi
15323
15324
15325 CFLAGS="$xorg_testset_save_CFLAGS"
15326
15327 eval supported=\$$cacheid
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15329 $as_echo "$supported" >&6; }
15330 if test "$supported" = "yes" ; then
15331 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15332 found="yes"
15333 fi
15334 fi
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350 xorg_testset_save_CFLAGS="$CFLAGS"
15351
15352 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15353 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15355 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15356 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15357 $as_echo_n "(cached) " >&6
15358 else
15359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15360 /* end confdefs.h. */
15361 int i;
15362 _ACEOF
15363 if ac_fn_c_try_compile "$LINENO"; then :
15364 xorg_cv_cc_flag_unknown_warning_option=yes
15365 else
15366 xorg_cv_cc_flag_unknown_warning_option=no
15367 fi
15368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15369 fi
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15371 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15372 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15373 CFLAGS="$xorg_testset_save_CFLAGS"
15374 fi
15375
15376 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15377 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15378 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15379 fi
15380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15382 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15383 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15384 $as_echo_n "(cached) " >&6
15385 else
15386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15387 /* end confdefs.h. */
15388 int i;
15389 _ACEOF
15390 if ac_fn_c_try_compile "$LINENO"; then :
15391 xorg_cv_cc_flag_unused_command_line_argument=yes
15392 else
15393 xorg_cv_cc_flag_unused_command_line_argument=no
15394 fi
15395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15396 fi
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15398 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15399 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15400 CFLAGS="$xorg_testset_save_CFLAGS"
15401 fi
15402
15403 found="no"
15404
15405 if test $found = "no" ; then
15406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15407 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15408 fi
15409
15410 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15412 fi
15413
15414 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15415
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15417 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15418 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
15419 if eval \${$cacheid+:} false; then :
15420 $as_echo_n "(cached) " >&6
15421 else
15422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15423 /* end confdefs.h. */
15424 int i;
15425 int
15426 main ()
15427 {
15428
15429 ;
15430 return 0;
15431 }
15432 _ACEOF
15433 if ac_fn_c_try_link "$LINENO"; then :
15434 eval $cacheid=yes
15435 else
15436 eval $cacheid=no
15437 fi
15438 rm -f core conftest.err conftest.$ac_objext \
15439 conftest$ac_exeext conftest.$ac_ext
15440 fi
15441
15442
15443 CFLAGS="$xorg_testset_save_CFLAGS"
15444
15445 eval supported=\$$cacheid
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15447 $as_echo "$supported" >&6; }
15448 if test "$supported" = "yes" ; then
15449 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15450 found="yes"
15451 fi
15452 fi
15453
15454 if test $found = "no" ; then
15455 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15456 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15457 fi
15458
15459 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15461 fi
15462
15463 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15464
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15466 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15467 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
15468 if eval \${$cacheid+:} false; then :
15469 $as_echo_n "(cached) " >&6
15470 else
15471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15472 /* end confdefs.h. */
15473 int i;
15474 int
15475 main ()
15476 {
15477
15478 ;
15479 return 0;
15480 }
15481 _ACEOF
15482 if ac_fn_c_try_link "$LINENO"; then :
15483 eval $cacheid=yes
15484 else
15485 eval $cacheid=no
15486 fi
15487 rm -f core conftest.err conftest.$ac_objext \
15488 conftest$ac_exeext conftest.$ac_ext
15489 fi
15490
15491
15492 CFLAGS="$xorg_testset_save_CFLAGS"
15493
15494 eval supported=\$$cacheid
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15496 $as_echo "$supported" >&6; }
15497 if test "$supported" = "yes" ; then
15498 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15499 found="yes"
15500 fi
15501 fi
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517 xorg_testset_save_CFLAGS="$CFLAGS"
15518
15519 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15522 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15523 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15524 $as_echo_n "(cached) " >&6
15525 else
15526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15527 /* end confdefs.h. */
15528 int i;
15529 _ACEOF
15530 if ac_fn_c_try_compile "$LINENO"; then :
15531 xorg_cv_cc_flag_unknown_warning_option=yes
15532 else
15533 xorg_cv_cc_flag_unknown_warning_option=no
15534 fi
15535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15536 fi
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15538 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15539 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15540 CFLAGS="$xorg_testset_save_CFLAGS"
15541 fi
15542
15543 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15544 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15545 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15546 fi
15547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15549 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15550 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15551 $as_echo_n "(cached) " >&6
15552 else
15553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15554 /* end confdefs.h. */
15555 int i;
15556 _ACEOF
15557 if ac_fn_c_try_compile "$LINENO"; then :
15558 xorg_cv_cc_flag_unused_command_line_argument=yes
15559 else
15560 xorg_cv_cc_flag_unused_command_line_argument=no
15561 fi
15562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15563 fi
15564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15565 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15566 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15567 CFLAGS="$xorg_testset_save_CFLAGS"
15568 fi
15569
15570 found="no"
15571
15572 if test $found = "no" ; then
15573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15574 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15575 fi
15576
15577 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15579 fi
15580
15581 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15582
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15584 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15585 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
15586 if eval \${$cacheid+:} false; then :
15587 $as_echo_n "(cached) " >&6
15588 else
15589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15590 /* end confdefs.h. */
15591 int i;
15592 int
15593 main ()
15594 {
15595
15596 ;
15597 return 0;
15598 }
15599 _ACEOF
15600 if ac_fn_c_try_link "$LINENO"; then :
15601 eval $cacheid=yes
15602 else
15603 eval $cacheid=no
15604 fi
15605 rm -f core conftest.err conftest.$ac_objext \
15606 conftest$ac_exeext conftest.$ac_ext
15607 fi
15608
15609
15610 CFLAGS="$xorg_testset_save_CFLAGS"
15611
15612 eval supported=\$$cacheid
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15614 $as_echo "$supported" >&6; }
15615 if test "$supported" = "yes" ; then
15616 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15617 found="yes"
15618 fi
15619 fi
15620
15621 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15622 else
15623 { $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
15624 $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;}
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638 xorg_testset_save_CFLAGS="$CFLAGS"
15639
15640 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15641 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15643 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15644 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15645 $as_echo_n "(cached) " >&6
15646 else
15647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15648 /* end confdefs.h. */
15649 int i;
15650 _ACEOF
15651 if ac_fn_c_try_compile "$LINENO"; then :
15652 xorg_cv_cc_flag_unknown_warning_option=yes
15653 else
15654 xorg_cv_cc_flag_unknown_warning_option=no
15655 fi
15656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15657 fi
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15659 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15660 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15661 CFLAGS="$xorg_testset_save_CFLAGS"
15662 fi
15663
15664 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15665 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15666 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15667 fi
15668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15670 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15671 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15672 $as_echo_n "(cached) " >&6
15673 else
15674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15675 /* end confdefs.h. */
15676 int i;
15677 _ACEOF
15678 if ac_fn_c_try_compile "$LINENO"; then :
15679 xorg_cv_cc_flag_unused_command_line_argument=yes
15680 else
15681 xorg_cv_cc_flag_unused_command_line_argument=no
15682 fi
15683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15684 fi
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15686 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15687 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15688 CFLAGS="$xorg_testset_save_CFLAGS"
15689 fi
15690
15691 found="no"
15692
15693 if test $found = "no" ; then
15694 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15695 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15696 fi
15697
15698 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15700 fi
15701
15702 CFLAGS="$CFLAGS -Wimplicit"
15703
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15705 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15706 cacheid=xorg_cv_cc_flag__Wimplicit
15707 if eval \${$cacheid+:} false; then :
15708 $as_echo_n "(cached) " >&6
15709 else
15710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15711 /* end confdefs.h. */
15712 int i;
15713 int
15714 main ()
15715 {
15716
15717 ;
15718 return 0;
15719 }
15720 _ACEOF
15721 if ac_fn_c_try_link "$LINENO"; then :
15722 eval $cacheid=yes
15723 else
15724 eval $cacheid=no
15725 fi
15726 rm -f core conftest.err conftest.$ac_objext \
15727 conftest$ac_exeext conftest.$ac_ext
15728 fi
15729
15730
15731 CFLAGS="$xorg_testset_save_CFLAGS"
15732
15733 eval supported=\$$cacheid
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15735 $as_echo "$supported" >&6; }
15736 if test "$supported" = "yes" ; then
15737 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15738 found="yes"
15739 fi
15740 fi
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756 xorg_testset_save_CFLAGS="$CFLAGS"
15757
15758 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15759 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15761 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15762 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15763 $as_echo_n "(cached) " >&6
15764 else
15765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15766 /* end confdefs.h. */
15767 int i;
15768 _ACEOF
15769 if ac_fn_c_try_compile "$LINENO"; then :
15770 xorg_cv_cc_flag_unknown_warning_option=yes
15771 else
15772 xorg_cv_cc_flag_unknown_warning_option=no
15773 fi
15774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15775 fi
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15777 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15778 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15779 CFLAGS="$xorg_testset_save_CFLAGS"
15780 fi
15781
15782 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15784 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15785 fi
15786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15788 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15789 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15790 $as_echo_n "(cached) " >&6
15791 else
15792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15793 /* end confdefs.h. */
15794 int i;
15795 _ACEOF
15796 if ac_fn_c_try_compile "$LINENO"; then :
15797 xorg_cv_cc_flag_unused_command_line_argument=yes
15798 else
15799 xorg_cv_cc_flag_unused_command_line_argument=no
15800 fi
15801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15802 fi
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15804 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15805 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15806 CFLAGS="$xorg_testset_save_CFLAGS"
15807 fi
15808
15809 found="no"
15810
15811 if test $found = "no" ; then
15812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15813 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15814 fi
15815
15816 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15818 fi
15819
15820 CFLAGS="$CFLAGS -Wnonnull"
15821
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15823 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15824 cacheid=xorg_cv_cc_flag__Wnonnull
15825 if eval \${$cacheid+:} false; then :
15826 $as_echo_n "(cached) " >&6
15827 else
15828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15829 /* end confdefs.h. */
15830 int i;
15831 int
15832 main ()
15833 {
15834
15835 ;
15836 return 0;
15837 }
15838 _ACEOF
15839 if ac_fn_c_try_link "$LINENO"; then :
15840 eval $cacheid=yes
15841 else
15842 eval $cacheid=no
15843 fi
15844 rm -f core conftest.err conftest.$ac_objext \
15845 conftest$ac_exeext conftest.$ac_ext
15846 fi
15847
15848
15849 CFLAGS="$xorg_testset_save_CFLAGS"
15850
15851 eval supported=\$$cacheid
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15853 $as_echo "$supported" >&6; }
15854 if test "$supported" = "yes" ; then
15855 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15856 found="yes"
15857 fi
15858 fi
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874 xorg_testset_save_CFLAGS="$CFLAGS"
15875
15876 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15877 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15879 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15880 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15881 $as_echo_n "(cached) " >&6
15882 else
15883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15884 /* end confdefs.h. */
15885 int i;
15886 _ACEOF
15887 if ac_fn_c_try_compile "$LINENO"; then :
15888 xorg_cv_cc_flag_unknown_warning_option=yes
15889 else
15890 xorg_cv_cc_flag_unknown_warning_option=no
15891 fi
15892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15893 fi
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15895 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15896 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15897 CFLAGS="$xorg_testset_save_CFLAGS"
15898 fi
15899
15900 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15901 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15902 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15903 fi
15904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15906 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15907 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15908 $as_echo_n "(cached) " >&6
15909 else
15910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15911 /* end confdefs.h. */
15912 int i;
15913 _ACEOF
15914 if ac_fn_c_try_compile "$LINENO"; then :
15915 xorg_cv_cc_flag_unused_command_line_argument=yes
15916 else
15917 xorg_cv_cc_flag_unused_command_line_argument=no
15918 fi
15919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15920 fi
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15922 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15923 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15924 CFLAGS="$xorg_testset_save_CFLAGS"
15925 fi
15926
15927 found="no"
15928
15929 if test $found = "no" ; then
15930 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15931 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15932 fi
15933
15934 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15936 fi
15937
15938 CFLAGS="$CFLAGS -Winit-self"
15939
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
15941 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
15942 cacheid=xorg_cv_cc_flag__Winit_self
15943 if eval \${$cacheid+:} false; then :
15944 $as_echo_n "(cached) " >&6
15945 else
15946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15947 /* end confdefs.h. */
15948 int i;
15949 int
15950 main ()
15951 {
15952
15953 ;
15954 return 0;
15955 }
15956 _ACEOF
15957 if ac_fn_c_try_link "$LINENO"; then :
15958 eval $cacheid=yes
15959 else
15960 eval $cacheid=no
15961 fi
15962 rm -f core conftest.err conftest.$ac_objext \
15963 conftest$ac_exeext conftest.$ac_ext
15964 fi
15965
15966
15967 CFLAGS="$xorg_testset_save_CFLAGS"
15968
15969 eval supported=\$$cacheid
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15971 $as_echo "$supported" >&6; }
15972 if test "$supported" = "yes" ; then
15973 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
15974 found="yes"
15975 fi
15976 fi
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992 xorg_testset_save_CFLAGS="$CFLAGS"
15993
15994 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15995 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15997 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15998 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15999 $as_echo_n "(cached) " >&6
16000 else
16001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16002 /* end confdefs.h. */
16003 int i;
16004 _ACEOF
16005 if ac_fn_c_try_compile "$LINENO"; then :
16006 xorg_cv_cc_flag_unknown_warning_option=yes
16007 else
16008 xorg_cv_cc_flag_unknown_warning_option=no
16009 fi
16010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16011 fi
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16013 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16014 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16015 CFLAGS="$xorg_testset_save_CFLAGS"
16016 fi
16017
16018 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16020 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16021 fi
16022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16024 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16025 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16026 $as_echo_n "(cached) " >&6
16027 else
16028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16029 /* end confdefs.h. */
16030 int i;
16031 _ACEOF
16032 if ac_fn_c_try_compile "$LINENO"; then :
16033 xorg_cv_cc_flag_unused_command_line_argument=yes
16034 else
16035 xorg_cv_cc_flag_unused_command_line_argument=no
16036 fi
16037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16038 fi
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16040 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16041 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16042 CFLAGS="$xorg_testset_save_CFLAGS"
16043 fi
16044
16045 found="no"
16046
16047 if test $found = "no" ; then
16048 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16049 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16050 fi
16051
16052 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16054 fi
16055
16056 CFLAGS="$CFLAGS -Wmain"
16057
16058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16059 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
16060 cacheid=xorg_cv_cc_flag__Wmain
16061 if eval \${$cacheid+:} false; then :
16062 $as_echo_n "(cached) " >&6
16063 else
16064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16065 /* end confdefs.h. */
16066 int i;
16067 int
16068 main ()
16069 {
16070
16071 ;
16072 return 0;
16073 }
16074 _ACEOF
16075 if ac_fn_c_try_link "$LINENO"; then :
16076 eval $cacheid=yes
16077 else
16078 eval $cacheid=no
16079 fi
16080 rm -f core conftest.err conftest.$ac_objext \
16081 conftest$ac_exeext conftest.$ac_ext
16082 fi
16083
16084
16085 CFLAGS="$xorg_testset_save_CFLAGS"
16086
16087 eval supported=\$$cacheid
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16089 $as_echo "$supported" >&6; }
16090 if test "$supported" = "yes" ; then
16091 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16092 found="yes"
16093 fi
16094 fi
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110 xorg_testset_save_CFLAGS="$CFLAGS"
16111
16112 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16113 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16115 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16116 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16117 $as_echo_n "(cached) " >&6
16118 else
16119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16120 /* end confdefs.h. */
16121 int i;
16122 _ACEOF
16123 if ac_fn_c_try_compile "$LINENO"; then :
16124 xorg_cv_cc_flag_unknown_warning_option=yes
16125 else
16126 xorg_cv_cc_flag_unknown_warning_option=no
16127 fi
16128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16129 fi
16130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16131 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16132 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16133 CFLAGS="$xorg_testset_save_CFLAGS"
16134 fi
16135
16136 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16137 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16138 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16139 fi
16140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16142 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16143 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16144 $as_echo_n "(cached) " >&6
16145 else
16146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16147 /* end confdefs.h. */
16148 int i;
16149 _ACEOF
16150 if ac_fn_c_try_compile "$LINENO"; then :
16151 xorg_cv_cc_flag_unused_command_line_argument=yes
16152 else
16153 xorg_cv_cc_flag_unused_command_line_argument=no
16154 fi
16155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16156 fi
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16158 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16159 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16160 CFLAGS="$xorg_testset_save_CFLAGS"
16161 fi
16162
16163 found="no"
16164
16165 if test $found = "no" ; then
16166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16167 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16168 fi
16169
16170 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16172 fi
16173
16174 CFLAGS="$CFLAGS -Wmissing-braces"
16175
16176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16177 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16178 cacheid=xorg_cv_cc_flag__Wmissing_braces
16179 if eval \${$cacheid+:} false; then :
16180 $as_echo_n "(cached) " >&6
16181 else
16182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16183 /* end confdefs.h. */
16184 int i;
16185 int
16186 main ()
16187 {
16188
16189 ;
16190 return 0;
16191 }
16192 _ACEOF
16193 if ac_fn_c_try_link "$LINENO"; then :
16194 eval $cacheid=yes
16195 else
16196 eval $cacheid=no
16197 fi
16198 rm -f core conftest.err conftest.$ac_objext \
16199 conftest$ac_exeext conftest.$ac_ext
16200 fi
16201
16202
16203 CFLAGS="$xorg_testset_save_CFLAGS"
16204
16205 eval supported=\$$cacheid
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16207 $as_echo "$supported" >&6; }
16208 if test "$supported" = "yes" ; then
16209 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16210 found="yes"
16211 fi
16212 fi
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228 xorg_testset_save_CFLAGS="$CFLAGS"
16229
16230 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16231 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16233 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16234 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16235 $as_echo_n "(cached) " >&6
16236 else
16237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16238 /* end confdefs.h. */
16239 int i;
16240 _ACEOF
16241 if ac_fn_c_try_compile "$LINENO"; then :
16242 xorg_cv_cc_flag_unknown_warning_option=yes
16243 else
16244 xorg_cv_cc_flag_unknown_warning_option=no
16245 fi
16246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16247 fi
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16249 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16250 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16251 CFLAGS="$xorg_testset_save_CFLAGS"
16252 fi
16253
16254 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16256 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16257 fi
16258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16260 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16261 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16262 $as_echo_n "(cached) " >&6
16263 else
16264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16265 /* end confdefs.h. */
16266 int i;
16267 _ACEOF
16268 if ac_fn_c_try_compile "$LINENO"; then :
16269 xorg_cv_cc_flag_unused_command_line_argument=yes
16270 else
16271 xorg_cv_cc_flag_unused_command_line_argument=no
16272 fi
16273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16274 fi
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16276 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16277 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16278 CFLAGS="$xorg_testset_save_CFLAGS"
16279 fi
16280
16281 found="no"
16282
16283 if test $found = "no" ; then
16284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16285 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16286 fi
16287
16288 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16290 fi
16291
16292 CFLAGS="$CFLAGS -Wsequence-point"
16293
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16295 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16296 cacheid=xorg_cv_cc_flag__Wsequence_point
16297 if eval \${$cacheid+:} false; then :
16298 $as_echo_n "(cached) " >&6
16299 else
16300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16301 /* end confdefs.h. */
16302 int i;
16303 int
16304 main ()
16305 {
16306
16307 ;
16308 return 0;
16309 }
16310 _ACEOF
16311 if ac_fn_c_try_link "$LINENO"; then :
16312 eval $cacheid=yes
16313 else
16314 eval $cacheid=no
16315 fi
16316 rm -f core conftest.err conftest.$ac_objext \
16317 conftest$ac_exeext conftest.$ac_ext
16318 fi
16319
16320
16321 CFLAGS="$xorg_testset_save_CFLAGS"
16322
16323 eval supported=\$$cacheid
16324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16325 $as_echo "$supported" >&6; }
16326 if test "$supported" = "yes" ; then
16327 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16328 found="yes"
16329 fi
16330 fi
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346 xorg_testset_save_CFLAGS="$CFLAGS"
16347
16348 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16349 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16351 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16352 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16353 $as_echo_n "(cached) " >&6
16354 else
16355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16356 /* end confdefs.h. */
16357 int i;
16358 _ACEOF
16359 if ac_fn_c_try_compile "$LINENO"; then :
16360 xorg_cv_cc_flag_unknown_warning_option=yes
16361 else
16362 xorg_cv_cc_flag_unknown_warning_option=no
16363 fi
16364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16365 fi
16366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16367 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16368 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16369 CFLAGS="$xorg_testset_save_CFLAGS"
16370 fi
16371
16372 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16374 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16375 fi
16376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16378 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16379 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16380 $as_echo_n "(cached) " >&6
16381 else
16382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16383 /* end confdefs.h. */
16384 int i;
16385 _ACEOF
16386 if ac_fn_c_try_compile "$LINENO"; then :
16387 xorg_cv_cc_flag_unused_command_line_argument=yes
16388 else
16389 xorg_cv_cc_flag_unused_command_line_argument=no
16390 fi
16391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16392 fi
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16394 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16395 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16396 CFLAGS="$xorg_testset_save_CFLAGS"
16397 fi
16398
16399 found="no"
16400
16401 if test $found = "no" ; then
16402 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16403 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16404 fi
16405
16406 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16408 fi
16409
16410 CFLAGS="$CFLAGS -Wreturn-type"
16411
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16413 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16414 cacheid=xorg_cv_cc_flag__Wreturn_type
16415 if eval \${$cacheid+:} false; then :
16416 $as_echo_n "(cached) " >&6
16417 else
16418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16419 /* end confdefs.h. */
16420 int i;
16421 int
16422 main ()
16423 {
16424
16425 ;
16426 return 0;
16427 }
16428 _ACEOF
16429 if ac_fn_c_try_link "$LINENO"; then :
16430 eval $cacheid=yes
16431 else
16432 eval $cacheid=no
16433 fi
16434 rm -f core conftest.err conftest.$ac_objext \
16435 conftest$ac_exeext conftest.$ac_ext
16436 fi
16437
16438
16439 CFLAGS="$xorg_testset_save_CFLAGS"
16440
16441 eval supported=\$$cacheid
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16443 $as_echo "$supported" >&6; }
16444 if test "$supported" = "yes" ; then
16445 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16446 found="yes"
16447 fi
16448 fi
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464 xorg_testset_save_CFLAGS="$CFLAGS"
16465
16466 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16467 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16469 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16470 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16471 $as_echo_n "(cached) " >&6
16472 else
16473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16474 /* end confdefs.h. */
16475 int i;
16476 _ACEOF
16477 if ac_fn_c_try_compile "$LINENO"; then :
16478 xorg_cv_cc_flag_unknown_warning_option=yes
16479 else
16480 xorg_cv_cc_flag_unknown_warning_option=no
16481 fi
16482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16483 fi
16484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16485 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16486 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16487 CFLAGS="$xorg_testset_save_CFLAGS"
16488 fi
16489
16490 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16491 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16492 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16493 fi
16494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16496 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16497 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16498 $as_echo_n "(cached) " >&6
16499 else
16500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16501 /* end confdefs.h. */
16502 int i;
16503 _ACEOF
16504 if ac_fn_c_try_compile "$LINENO"; then :
16505 xorg_cv_cc_flag_unused_command_line_argument=yes
16506 else
16507 xorg_cv_cc_flag_unused_command_line_argument=no
16508 fi
16509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16510 fi
16511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16512 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16513 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16514 CFLAGS="$xorg_testset_save_CFLAGS"
16515 fi
16516
16517 found="no"
16518
16519 if test $found = "no" ; then
16520 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16521 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16522 fi
16523
16524 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16525 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16526 fi
16527
16528 CFLAGS="$CFLAGS -Wtrigraphs"
16529
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16531 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16532 cacheid=xorg_cv_cc_flag__Wtrigraphs
16533 if eval \${$cacheid+:} false; then :
16534 $as_echo_n "(cached) " >&6
16535 else
16536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16537 /* end confdefs.h. */
16538 int i;
16539 int
16540 main ()
16541 {
16542
16543 ;
16544 return 0;
16545 }
16546 _ACEOF
16547 if ac_fn_c_try_link "$LINENO"; then :
16548 eval $cacheid=yes
16549 else
16550 eval $cacheid=no
16551 fi
16552 rm -f core conftest.err conftest.$ac_objext \
16553 conftest$ac_exeext conftest.$ac_ext
16554 fi
16555
16556
16557 CFLAGS="$xorg_testset_save_CFLAGS"
16558
16559 eval supported=\$$cacheid
16560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16561 $as_echo "$supported" >&6; }
16562 if test "$supported" = "yes" ; then
16563 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16564 found="yes"
16565 fi
16566 fi
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582 xorg_testset_save_CFLAGS="$CFLAGS"
16583
16584 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16585 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16587 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16588 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16589 $as_echo_n "(cached) " >&6
16590 else
16591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16592 /* end confdefs.h. */
16593 int i;
16594 _ACEOF
16595 if ac_fn_c_try_compile "$LINENO"; then :
16596 xorg_cv_cc_flag_unknown_warning_option=yes
16597 else
16598 xorg_cv_cc_flag_unknown_warning_option=no
16599 fi
16600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16601 fi
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16603 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16604 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16605 CFLAGS="$xorg_testset_save_CFLAGS"
16606 fi
16607
16608 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16609 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16610 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16611 fi
16612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16614 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16615 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16616 $as_echo_n "(cached) " >&6
16617 else
16618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16619 /* end confdefs.h. */
16620 int i;
16621 _ACEOF
16622 if ac_fn_c_try_compile "$LINENO"; then :
16623 xorg_cv_cc_flag_unused_command_line_argument=yes
16624 else
16625 xorg_cv_cc_flag_unused_command_line_argument=no
16626 fi
16627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16628 fi
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16630 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16631 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16632 CFLAGS="$xorg_testset_save_CFLAGS"
16633 fi
16634
16635 found="no"
16636
16637 if test $found = "no" ; then
16638 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16639 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16640 fi
16641
16642 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16643 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16644 fi
16645
16646 CFLAGS="$CFLAGS -Warray-bounds"
16647
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16649 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16650 cacheid=xorg_cv_cc_flag__Warray_bounds
16651 if eval \${$cacheid+:} false; then :
16652 $as_echo_n "(cached) " >&6
16653 else
16654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16655 /* end confdefs.h. */
16656 int i;
16657 int
16658 main ()
16659 {
16660
16661 ;
16662 return 0;
16663 }
16664 _ACEOF
16665 if ac_fn_c_try_link "$LINENO"; then :
16666 eval $cacheid=yes
16667 else
16668 eval $cacheid=no
16669 fi
16670 rm -f core conftest.err conftest.$ac_objext \
16671 conftest$ac_exeext conftest.$ac_ext
16672 fi
16673
16674
16675 CFLAGS="$xorg_testset_save_CFLAGS"
16676
16677 eval supported=\$$cacheid
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16679 $as_echo "$supported" >&6; }
16680 if test "$supported" = "yes" ; then
16681 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16682 found="yes"
16683 fi
16684 fi
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700 xorg_testset_save_CFLAGS="$CFLAGS"
16701
16702 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16703 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16705 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16706 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16707 $as_echo_n "(cached) " >&6
16708 else
16709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16710 /* end confdefs.h. */
16711 int i;
16712 _ACEOF
16713 if ac_fn_c_try_compile "$LINENO"; then :
16714 xorg_cv_cc_flag_unknown_warning_option=yes
16715 else
16716 xorg_cv_cc_flag_unknown_warning_option=no
16717 fi
16718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16719 fi
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16721 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16722 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16723 CFLAGS="$xorg_testset_save_CFLAGS"
16724 fi
16725
16726 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16729 fi
16730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16732 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16733 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16734 $as_echo_n "(cached) " >&6
16735 else
16736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16737 /* end confdefs.h. */
16738 int i;
16739 _ACEOF
16740 if ac_fn_c_try_compile "$LINENO"; then :
16741 xorg_cv_cc_flag_unused_command_line_argument=yes
16742 else
16743 xorg_cv_cc_flag_unused_command_line_argument=no
16744 fi
16745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16746 fi
16747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16748 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16749 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16750 CFLAGS="$xorg_testset_save_CFLAGS"
16751 fi
16752
16753 found="no"
16754
16755 if test $found = "no" ; then
16756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16757 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16758 fi
16759
16760 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16761 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16762 fi
16763
16764 CFLAGS="$CFLAGS -Wwrite-strings"
16765
16766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16767 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16768 cacheid=xorg_cv_cc_flag__Wwrite_strings
16769 if eval \${$cacheid+:} false; then :
16770 $as_echo_n "(cached) " >&6
16771 else
16772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16773 /* end confdefs.h. */
16774 int i;
16775 int
16776 main ()
16777 {
16778
16779 ;
16780 return 0;
16781 }
16782 _ACEOF
16783 if ac_fn_c_try_link "$LINENO"; then :
16784 eval $cacheid=yes
16785 else
16786 eval $cacheid=no
16787 fi
16788 rm -f core conftest.err conftest.$ac_objext \
16789 conftest$ac_exeext conftest.$ac_ext
16790 fi
16791
16792
16793 CFLAGS="$xorg_testset_save_CFLAGS"
16794
16795 eval supported=\$$cacheid
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16797 $as_echo "$supported" >&6; }
16798 if test "$supported" = "yes" ; then
16799 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16800 found="yes"
16801 fi
16802 fi
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818 xorg_testset_save_CFLAGS="$CFLAGS"
16819
16820 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16821 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16823 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16824 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16825 $as_echo_n "(cached) " >&6
16826 else
16827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16828 /* end confdefs.h. */
16829 int i;
16830 _ACEOF
16831 if ac_fn_c_try_compile "$LINENO"; then :
16832 xorg_cv_cc_flag_unknown_warning_option=yes
16833 else
16834 xorg_cv_cc_flag_unknown_warning_option=no
16835 fi
16836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16837 fi
16838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16839 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16840 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16841 CFLAGS="$xorg_testset_save_CFLAGS"
16842 fi
16843
16844 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16845 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16846 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16847 fi
16848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16850 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16851 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16852 $as_echo_n "(cached) " >&6
16853 else
16854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16855 /* end confdefs.h. */
16856 int i;
16857 _ACEOF
16858 if ac_fn_c_try_compile "$LINENO"; then :
16859 xorg_cv_cc_flag_unused_command_line_argument=yes
16860 else
16861 xorg_cv_cc_flag_unused_command_line_argument=no
16862 fi
16863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16864 fi
16865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16866 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16867 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16868 CFLAGS="$xorg_testset_save_CFLAGS"
16869 fi
16870
16871 found="no"
16872
16873 if test $found = "no" ; then
16874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16875 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16876 fi
16877
16878 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16879 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16880 fi
16881
16882 CFLAGS="$CFLAGS -Waddress"
16883
16884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
16885 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
16886 cacheid=xorg_cv_cc_flag__Waddress
16887 if eval \${$cacheid+:} false; then :
16888 $as_echo_n "(cached) " >&6
16889 else
16890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16891 /* end confdefs.h. */
16892 int i;
16893 int
16894 main ()
16895 {
16896
16897 ;
16898 return 0;
16899 }
16900 _ACEOF
16901 if ac_fn_c_try_link "$LINENO"; then :
16902 eval $cacheid=yes
16903 else
16904 eval $cacheid=no
16905 fi
16906 rm -f core conftest.err conftest.$ac_objext \
16907 conftest$ac_exeext conftest.$ac_ext
16908 fi
16909
16910
16911 CFLAGS="$xorg_testset_save_CFLAGS"
16912
16913 eval supported=\$$cacheid
16914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16915 $as_echo "$supported" >&6; }
16916 if test "$supported" = "yes" ; then
16917 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
16918 found="yes"
16919 fi
16920 fi
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936 xorg_testset_save_CFLAGS="$CFLAGS"
16937
16938 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16939 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16941 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16942 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16943 $as_echo_n "(cached) " >&6
16944 else
16945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16946 /* end confdefs.h. */
16947 int i;
16948 _ACEOF
16949 if ac_fn_c_try_compile "$LINENO"; then :
16950 xorg_cv_cc_flag_unknown_warning_option=yes
16951 else
16952 xorg_cv_cc_flag_unknown_warning_option=no
16953 fi
16954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16955 fi
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16957 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16958 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16959 CFLAGS="$xorg_testset_save_CFLAGS"
16960 fi
16961
16962 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16963 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16964 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16965 fi
16966 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16968 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16969 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16970 $as_echo_n "(cached) " >&6
16971 else
16972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16973 /* end confdefs.h. */
16974 int i;
16975 _ACEOF
16976 if ac_fn_c_try_compile "$LINENO"; then :
16977 xorg_cv_cc_flag_unused_command_line_argument=yes
16978 else
16979 xorg_cv_cc_flag_unused_command_line_argument=no
16980 fi
16981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16982 fi
16983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16984 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16985 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16986 CFLAGS="$xorg_testset_save_CFLAGS"
16987 fi
16988
16989 found="no"
16990
16991 if test $found = "no" ; then
16992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16993 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16994 fi
16995
16996 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16997 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16998 fi
16999
17000 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17001
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17003 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17004 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17005 if eval \${$cacheid+:} false; then :
17006 $as_echo_n "(cached) " >&6
17007 else
17008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17009 /* end confdefs.h. */
17010 int i;
17011 int
17012 main ()
17013 {
17014
17015 ;
17016 return 0;
17017 }
17018 _ACEOF
17019 if ac_fn_c_try_link "$LINENO"; then :
17020 eval $cacheid=yes
17021 else
17022 eval $cacheid=no
17023 fi
17024 rm -f core conftest.err conftest.$ac_objext \
17025 conftest$ac_exeext conftest.$ac_ext
17026 fi
17027
17028
17029 CFLAGS="$xorg_testset_save_CFLAGS"
17030
17031 eval supported=\$$cacheid
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17033 $as_echo "$supported" >&6; }
17034 if test "$supported" = "yes" ; then
17035 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17036 found="yes"
17037 fi
17038 fi
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054 xorg_testset_save_CFLAGS="$CFLAGS"
17055
17056 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17057 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17059 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17060 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17061 $as_echo_n "(cached) " >&6
17062 else
17063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17064 /* end confdefs.h. */
17065 int i;
17066 _ACEOF
17067 if ac_fn_c_try_compile "$LINENO"; then :
17068 xorg_cv_cc_flag_unknown_warning_option=yes
17069 else
17070 xorg_cv_cc_flag_unknown_warning_option=no
17071 fi
17072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17073 fi
17074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17075 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17076 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17077 CFLAGS="$xorg_testset_save_CFLAGS"
17078 fi
17079
17080 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17082 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17083 fi
17084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17086 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17087 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17088 $as_echo_n "(cached) " >&6
17089 else
17090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17091 /* end confdefs.h. */
17092 int i;
17093 _ACEOF
17094 if ac_fn_c_try_compile "$LINENO"; then :
17095 xorg_cv_cc_flag_unused_command_line_argument=yes
17096 else
17097 xorg_cv_cc_flag_unused_command_line_argument=no
17098 fi
17099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17100 fi
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17102 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17103 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17104 CFLAGS="$xorg_testset_save_CFLAGS"
17105 fi
17106
17107 found="no"
17108
17109 if test $found = "no" ; then
17110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17111 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17112 fi
17113
17114 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17116 fi
17117
17118 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17119
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17121 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17122 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17123 if eval \${$cacheid+:} false; then :
17124 $as_echo_n "(cached) " >&6
17125 else
17126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17127 /* end confdefs.h. */
17128 int i;
17129 int
17130 main ()
17131 {
17132
17133 ;
17134 return 0;
17135 }
17136 _ACEOF
17137 if ac_fn_c_try_link "$LINENO"; then :
17138 eval $cacheid=yes
17139 else
17140 eval $cacheid=no
17141 fi
17142 rm -f core conftest.err conftest.$ac_objext \
17143 conftest$ac_exeext conftest.$ac_ext
17144 fi
17145
17146
17147 CFLAGS="$xorg_testset_save_CFLAGS"
17148
17149 eval supported=\$$cacheid
17150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17151 $as_echo "$supported" >&6; }
17152 if test "$supported" = "yes" ; then
17153 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17154 found="yes"
17155 fi
17156 fi
17157
17158
17159 fi
17160
17161
17162
17163
17164
17165
17166
17167 CWARNFLAGS="$BASE_CFLAGS"
17168 if test "x$GCC" = xyes ; then
17169 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17170 fi
17171
17172
17173
17174
17175
17176
17177
17178
17179 # Check whether --enable-strict-compilation was given.
17180 if test "${enable_strict_compilation+set}" = set; then :
17181 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17182 else
17183 STRICT_COMPILE=no
17184 fi
17185
17186
17187
17188
17189
17190
17191 STRICT_CFLAGS=""
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205 xorg_testset_save_CFLAGS="$CFLAGS"
17206
17207 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17208 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17210 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17211 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17212 $as_echo_n "(cached) " >&6
17213 else
17214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17215 /* end confdefs.h. */
17216 int i;
17217 _ACEOF
17218 if ac_fn_c_try_compile "$LINENO"; then :
17219 xorg_cv_cc_flag_unknown_warning_option=yes
17220 else
17221 xorg_cv_cc_flag_unknown_warning_option=no
17222 fi
17223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17224 fi
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17226 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17227 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17228 CFLAGS="$xorg_testset_save_CFLAGS"
17229 fi
17230
17231 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17234 fi
17235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17237 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17238 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17239 $as_echo_n "(cached) " >&6
17240 else
17241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17242 /* end confdefs.h. */
17243 int i;
17244 _ACEOF
17245 if ac_fn_c_try_compile "$LINENO"; then :
17246 xorg_cv_cc_flag_unused_command_line_argument=yes
17247 else
17248 xorg_cv_cc_flag_unused_command_line_argument=no
17249 fi
17250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17251 fi
17252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17253 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17254 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17255 CFLAGS="$xorg_testset_save_CFLAGS"
17256 fi
17257
17258 found="no"
17259
17260 if test $found = "no" ; then
17261 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17262 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17263 fi
17264
17265 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17267 fi
17268
17269 CFLAGS="$CFLAGS -pedantic"
17270
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17272 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
17273 cacheid=xorg_cv_cc_flag__pedantic
17274 if eval \${$cacheid+:} false; then :
17275 $as_echo_n "(cached) " >&6
17276 else
17277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17278 /* end confdefs.h. */
17279 int i;
17280 int
17281 main ()
17282 {
17283
17284 ;
17285 return 0;
17286 }
17287 _ACEOF
17288 if ac_fn_c_try_link "$LINENO"; then :
17289 eval $cacheid=yes
17290 else
17291 eval $cacheid=no
17292 fi
17293 rm -f core conftest.err conftest.$ac_objext \
17294 conftest$ac_exeext conftest.$ac_ext
17295 fi
17296
17297
17298 CFLAGS="$xorg_testset_save_CFLAGS"
17299
17300 eval supported=\$$cacheid
17301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17302 $as_echo "$supported" >&6; }
17303 if test "$supported" = "yes" ; then
17304 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17305 found="yes"
17306 fi
17307 fi
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323 xorg_testset_save_CFLAGS="$CFLAGS"
17324
17325 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17326 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17328 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17329 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17330 $as_echo_n "(cached) " >&6
17331 else
17332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17333 /* end confdefs.h. */
17334 int i;
17335 _ACEOF
17336 if ac_fn_c_try_compile "$LINENO"; then :
17337 xorg_cv_cc_flag_unknown_warning_option=yes
17338 else
17339 xorg_cv_cc_flag_unknown_warning_option=no
17340 fi
17341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17342 fi
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17344 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17345 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17346 CFLAGS="$xorg_testset_save_CFLAGS"
17347 fi
17348
17349 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17351 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17352 fi
17353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17355 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17356 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17357 $as_echo_n "(cached) " >&6
17358 else
17359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17360 /* end confdefs.h. */
17361 int i;
17362 _ACEOF
17363 if ac_fn_c_try_compile "$LINENO"; then :
17364 xorg_cv_cc_flag_unused_command_line_argument=yes
17365 else
17366 xorg_cv_cc_flag_unused_command_line_argument=no
17367 fi
17368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17369 fi
17370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17371 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17372 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17373 CFLAGS="$xorg_testset_save_CFLAGS"
17374 fi
17375
17376 found="no"
17377
17378 if test $found = "no" ; then
17379 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17380 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17381 fi
17382
17383 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17385 fi
17386
17387 CFLAGS="$CFLAGS -Werror"
17388
17389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17390 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17391 cacheid=xorg_cv_cc_flag__Werror
17392 if eval \${$cacheid+:} false; then :
17393 $as_echo_n "(cached) " >&6
17394 else
17395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17396 /* end confdefs.h. */
17397 int i;
17398 int
17399 main ()
17400 {
17401
17402 ;
17403 return 0;
17404 }
17405 _ACEOF
17406 if ac_fn_c_try_link "$LINENO"; then :
17407 eval $cacheid=yes
17408 else
17409 eval $cacheid=no
17410 fi
17411 rm -f core conftest.err conftest.$ac_objext \
17412 conftest$ac_exeext conftest.$ac_ext
17413 fi
17414
17415
17416 CFLAGS="$xorg_testset_save_CFLAGS"
17417
17418 eval supported=\$$cacheid
17419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17420 $as_echo "$supported" >&6; }
17421 if test "$supported" = "yes" ; then
17422 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17423 found="yes"
17424 fi
17425 fi
17426
17427 if test $found = "no" ; then
17428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17429 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17430 fi
17431
17432 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17434 fi
17435
17436 CFLAGS="$CFLAGS -errwarn"
17437
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17439 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17440 cacheid=xorg_cv_cc_flag__errwarn
17441 if eval \${$cacheid+:} false; then :
17442 $as_echo_n "(cached) " >&6
17443 else
17444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17445 /* end confdefs.h. */
17446 int i;
17447 int
17448 main ()
17449 {
17450
17451 ;
17452 return 0;
17453 }
17454 _ACEOF
17455 if ac_fn_c_try_link "$LINENO"; then :
17456 eval $cacheid=yes
17457 else
17458 eval $cacheid=no
17459 fi
17460 rm -f core conftest.err conftest.$ac_objext \
17461 conftest$ac_exeext conftest.$ac_ext
17462 fi
17463
17464
17465 CFLAGS="$xorg_testset_save_CFLAGS"
17466
17467 eval supported=\$$cacheid
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17469 $as_echo "$supported" >&6; }
17470 if test "$supported" = "yes" ; then
17471 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17472 found="yes"
17473 fi
17474 fi
17475
17476
17477
17478 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17479 # activate it with -Werror, so we add it here explicitly.
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493 xorg_testset_save_CFLAGS="$CFLAGS"
17494
17495 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17496 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17498 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17499 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17500 $as_echo_n "(cached) " >&6
17501 else
17502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17503 /* end confdefs.h. */
17504 int i;
17505 _ACEOF
17506 if ac_fn_c_try_compile "$LINENO"; then :
17507 xorg_cv_cc_flag_unknown_warning_option=yes
17508 else
17509 xorg_cv_cc_flag_unknown_warning_option=no
17510 fi
17511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17512 fi
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17514 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17515 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17516 CFLAGS="$xorg_testset_save_CFLAGS"
17517 fi
17518
17519 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17520 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17521 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17522 fi
17523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17525 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17526 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17527 $as_echo_n "(cached) " >&6
17528 else
17529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17530 /* end confdefs.h. */
17531 int i;
17532 _ACEOF
17533 if ac_fn_c_try_compile "$LINENO"; then :
17534 xorg_cv_cc_flag_unused_command_line_argument=yes
17535 else
17536 xorg_cv_cc_flag_unused_command_line_argument=no
17537 fi
17538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17539 fi
17540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17541 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17542 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17543 CFLAGS="$xorg_testset_save_CFLAGS"
17544 fi
17545
17546 found="no"
17547
17548 if test $found = "no" ; then
17549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17550 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17551 fi
17552
17553 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17555 fi
17556
17557 CFLAGS="$CFLAGS -Werror=attributes"
17558
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17560 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17561 cacheid=xorg_cv_cc_flag__Werror_attributes
17562 if eval \${$cacheid+:} false; then :
17563 $as_echo_n "(cached) " >&6
17564 else
17565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17566 /* end confdefs.h. */
17567 int i;
17568 int
17569 main ()
17570 {
17571
17572 ;
17573 return 0;
17574 }
17575 _ACEOF
17576 if ac_fn_c_try_link "$LINENO"; then :
17577 eval $cacheid=yes
17578 else
17579 eval $cacheid=no
17580 fi
17581 rm -f core conftest.err conftest.$ac_objext \
17582 conftest$ac_exeext conftest.$ac_ext
17583 fi
17584
17585
17586 CFLAGS="$xorg_testset_save_CFLAGS"
17587
17588 eval supported=\$$cacheid
17589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17590 $as_echo "$supported" >&6; }
17591 if test "$supported" = "yes" ; then
17592 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17593 found="yes"
17594 fi
17595 fi
17596
17597
17598
17599 if test "x$STRICT_COMPILE" = "xyes"; then
17600 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17601 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17602 fi
17603
17604
17605
17606
17607
17608
17609 cat >>confdefs.h <<_ACEOF
17610 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17611 _ACEOF
17612
17613 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17614 if test "x$PVM" = "x"; then
17615 PVM="0"
17616 fi
17617
17618 cat >>confdefs.h <<_ACEOF
17619 #define PACKAGE_VERSION_MINOR $PVM
17620 _ACEOF
17621
17622 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17623 if test "x$PVP" = "x"; then
17624 PVP="0"
17625 fi
17626
17627 cat >>confdefs.h <<_ACEOF
17628 #define PACKAGE_VERSION_PATCHLEVEL $PVP
17629 _ACEOF
17630
17631
17632
17633 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17634 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17635 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17636 echo 'git directory not found: installing possibly empty changelog.' >&2)"
17637
17638
17639
17640
17641 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17642 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17643 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17644 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17645 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17646
17647
17648
17649
17650
17651
17652 if test x$APP_MAN_SUFFIX = x ; then
17653 APP_MAN_SUFFIX=1
17654 fi
17655 if test x$APP_MAN_DIR = x ; then
17656 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17657 fi
17658
17659 if test x$LIB_MAN_SUFFIX = x ; then
17660 LIB_MAN_SUFFIX=3
17661 fi
17662 if test x$LIB_MAN_DIR = x ; then
17663 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17664 fi
17665
17666 if test x$FILE_MAN_SUFFIX = x ; then
17667 case $host_os in
17668 # Solaris 2.0 - 11 use SysV man page sections
17669 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;;
17670 *) FILE_MAN_SUFFIX=5 ;;
17671 esac
17672 fi
17673 if test x$FILE_MAN_DIR = x ; then
17674 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17675 fi
17676
17677 if test x$MISC_MAN_SUFFIX = x ; then
17678 case $host_os in
17679 # Solaris 2.0 - 11 use SysV man page sections
17680 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;;
17681 *) MISC_MAN_SUFFIX=7 ;;
17682 esac
17683 fi
17684 if test x$MISC_MAN_DIR = x ; then
17685 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17686 fi
17687
17688 if test x$DRIVER_MAN_SUFFIX = x ; then
17689 case $host_os in
17690 # Solaris 2.0 - 11 use SysV man page sections
17691 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;;
17692 *) DRIVER_MAN_SUFFIX=4 ;;
17693 esac
17694 fi
17695 if test x$DRIVER_MAN_DIR = x ; then
17696 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17697 fi
17698
17699 if test x$ADMIN_MAN_SUFFIX = x ; then
17700 case $host_os in
17701 # Solaris 2.0 - 11 use SysV man page sections
17702 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;;
17703 *) ADMIN_MAN_SUFFIX=8 ;;
17704 esac
17705 fi
17706 if test x$ADMIN_MAN_DIR = x ; then
17707 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17708 fi
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724 XORG_MAN_PAGE="X Version 11"
17725
17726 MAN_SUBSTS="\
17727 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17728 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17729 -e 's|__xservername__|Xorg|g' \
17730 -e 's|__xconfigfile__|xorg.conf|g' \
17731 -e 's|__projectroot__|\$(prefix)|g' \
17732 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
17733 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17734 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17735 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17736 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17737 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17738 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17739
17740
17741
17742 # Check whether --enable-silent-rules was given.
17743 if test "${enable_silent_rules+set}" = set; then :
17744 enableval=$enable_silent_rules;
17745 fi
17746
17747 case $enable_silent_rules in # (((
17748 yes) AM_DEFAULT_VERBOSITY=0;;
17749 no) AM_DEFAULT_VERBOSITY=1;;
17750 *) AM_DEFAULT_VERBOSITY=0;;
17751 esac
17752 am_make=${MAKE-make}
17753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
17754 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
17755 if ${am_cv_make_support_nested_variables+:} false; then :
17756 $as_echo_n "(cached) " >&6
17757 else
17758 if $as_echo 'TRUE=$(BAR$(V))
17759 BAR0=false
17760 BAR1=true
17761 V=1
17762 am__doit:
17763 @$(TRUE)
17764 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
17765 am_cv_make_support_nested_variables=yes
17766 else
17767 am_cv_make_support_nested_variables=no
17768 fi
17769 fi
17770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
17771 $as_echo "$am_cv_make_support_nested_variables" >&6; }
17772 if test $am_cv_make_support_nested_variables = yes; then
17773 AM_V='$(V)'
17774 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17775 else
17776 AM_V=$AM_DEFAULT_VERBOSITY
17777 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17778 fi
17779 AM_BACKSLASH='\'
17780
17781
17782
17783 # Check whether --enable-malloc0returnsnull was given.
17784 if test "${enable_malloc0returnsnull+set}" = set; then :
17785 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
17786 else
17787 MALLOC_ZERO_RETURNS_NULL=auto
17788 fi
17789
17790
17791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
17792 $as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
17793 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
17794 if ${xorg_cv_malloc0_returns_null+:} false; then :
17795 $as_echo_n "(cached) " >&6
17796 else
17797 if test "$cross_compiling" = yes; then :
17798 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17800 as_fn_error $? "cannot run test program while cross compiling
17801 See \`config.log' for more details" "$LINENO" 5; }
17802 else
17803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17804 /* end confdefs.h. */
17805
17806 #include <stdlib.h>
17807
17808 int
17809 main ()
17810 {
17811
17812 char *m0, *r0, *c0, *p;
17813 m0 = malloc(0);
17814 p = malloc(10);
17815 r0 = realloc(p,0);
17816 c0 = calloc(0,10);
17817 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
17818
17819 ;
17820 return 0;
17821 }
17822 _ACEOF
17823 if ac_fn_c_try_run "$LINENO"; then :
17824 xorg_cv_malloc0_returns_null=yes
17825 else
17826 xorg_cv_malloc0_returns_null=no
17827 fi
17828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17829 conftest.$ac_objext conftest.beam conftest.$ac_ext
17830 fi
17831
17832 fi
17833
17834 MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null
17835 fi
17836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
17837 $as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
17838
17839 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
17840 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
17841 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
17842 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
17843 else
17844 MALLOC_ZERO_CFLAGS=""
17845 XMALLOC_ZERO_CFLAGS=""
17846 XTMALLOC_ZERO_CFLAGS=""
17847 fi
17848
17849
17850
17851
17852
17853
17854 # Check render configuration, strip extra digits from package version to
17855 # find the required protocol version
17856 if test "$VERSION" = "" ; then
17857 VERSION=$PACKAGE_VERSION;
17858 fi
17859 RENDER_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
17860
17861
17862 # Obtain compiler/linker options for depedencies
17863
17864 pkg_failed=no
17865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RENDER" >&5
17866 $as_echo_n "checking for RENDER... " >&6; }
17867
17868 if test -n "$RENDER_CFLAGS"; then
17869 pkg_cv_RENDER_CFLAGS="$RENDER_CFLAGS"
17870 elif test -n "$PKG_CONFIG"; then
17871 if test -n "$PKG_CONFIG" && \
17872 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 renderproto >= \$RENDER_VERSION\""; } >&5
17873 ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 renderproto >= $RENDER_VERSION") 2>&5
17874 ac_status=$?
17875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17876 test $ac_status = 0; }; then
17877 pkg_cv_RENDER_CFLAGS=`$PKG_CONFIG --cflags "x11 >= 1.6 renderproto >= $RENDER_VERSION" 2>/dev/null`
17878 test "x$?" != "x0" && pkg_failed=yes
17879 else
17880 pkg_failed=yes
17881 fi
17882 else
17883 pkg_failed=untried
17884 fi
17885 if test -n "$RENDER_LIBS"; then
17886 pkg_cv_RENDER_LIBS="$RENDER_LIBS"
17887 elif test -n "$PKG_CONFIG"; then
17888 if test -n "$PKG_CONFIG" && \
17889 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 renderproto >= \$RENDER_VERSION\""; } >&5
17890 ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 renderproto >= $RENDER_VERSION") 2>&5
17891 ac_status=$?
17892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17893 test $ac_status = 0; }; then
17894 pkg_cv_RENDER_LIBS=`$PKG_CONFIG --libs "x11 >= 1.6 renderproto >= $RENDER_VERSION" 2>/dev/null`
17895 test "x$?" != "x0" && pkg_failed=yes
17896 else
17897 pkg_failed=yes
17898 fi
17899 else
17900 pkg_failed=untried
17901 fi
17902
17903
17904
17905 if test $pkg_failed = yes; then
17906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17907 $as_echo "no" >&6; }
17908
17909 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17910 _pkg_short_errors_supported=yes
17911 else
17912 _pkg_short_errors_supported=no
17913 fi
17914 if test $_pkg_short_errors_supported = yes; then
17915 RENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 >= 1.6 renderproto >= $RENDER_VERSION" 2>&1`
17916 else
17917 RENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 >= 1.6 renderproto >= $RENDER_VERSION" 2>&1`
17918 fi
17919 # Put the nasty error message in config.log where it belongs
17920 echo "$RENDER_PKG_ERRORS" >&5
17921
17922 as_fn_error $? "Package requirements (x11 >= 1.6 renderproto >= $RENDER_VERSION) were not met:
17923
17924 $RENDER_PKG_ERRORS
17925
17926 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17927 installed software in a non-standard prefix.
17928
17929 Alternatively, you may set the environment variables RENDER_CFLAGS
17930 and RENDER_LIBS to avoid the need to call pkg-config.
17931 See the pkg-config man page for more details." "$LINENO" 5
17932 elif test $pkg_failed = untried; then
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17934 $as_echo "no" >&6; }
17935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17937 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17938 is in your PATH or set the PKG_CONFIG environment variable to the full
17939 path to pkg-config.
17940
17941 Alternatively, you may set the environment variables RENDER_CFLAGS
17942 and RENDER_LIBS to avoid the need to call pkg-config.
17943 See the pkg-config man page for more details.
17944
17945 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17946 See \`config.log' for more details" "$LINENO" 5; }
17947 else
17948 RENDER_CFLAGS=$pkg_cv_RENDER_CFLAGS
17949 RENDER_LIBS=$pkg_cv_RENDER_LIBS
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17951 $as_echo "yes" >&6; }
17952
17953 fi
17954
17955 ac_config_files="$ac_config_files Makefile src/Makefile xrender.pc"
17956
17957 cat >confcache <<\_ACEOF
17958 # This file is a shell script that caches the results of configure
17959 # tests run on this system so they can be shared between configure
17960 # scripts and configure runs, see configure's option --config-cache.
17961 # It is not useful on other systems. If it contains results you don't
17962 # want to keep, you may remove or edit it.
17963 #
17964 # config.status only pays attention to the cache file if you give it
17965 # the --recheck option to rerun configure.
17966 #
17967 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17968 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17969 # following values.
17970
17971 _ACEOF
17972
17973 # The following way of writing the cache mishandles newlines in values,
17974 # but we know of no workaround that is simple, portable, and efficient.
17975 # So, we kill variables containing newlines.
17976 # Ultrix sh set writes to stderr and can't be redirected directly,
17977 # and sets the high bit in the cache file unless we assign to the vars.
17978 (
17979 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17980 eval ac_val=\$$ac_var
17981 case $ac_val in #(
17982 *${as_nl}*)
17983 case $ac_var in #(
17984 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17985 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17986 esac
17987 case $ac_var in #(
17988 _ | IFS | as_nl) ;; #(
17989 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17990 *) { eval $ac_var=; unset $ac_var;} ;;
17991 esac ;;
17992 esac
17993 done
17994
17995 (set) 2>&1 |
17996 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17997 *${as_nl}ac_space=\ *)
17998 # `set' does not quote correctly, so add quotes: double-quote
17999 # substitution turns \\\\ into \\, and sed turns \\ into \.
18000 sed -n \
18001 "s/'/'\\\\''/g;
18002 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18003 ;; #(
18004 *)
18005 # `set' quotes correctly as required by POSIX, so do not add quotes.
18006 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18007 ;;
18008 esac |
18009 sort
18010 ) |
18011 sed '
18012 /^ac_cv_env_/b end
18013 t clear
18014 :clear
18015 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18016 t end
18017 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18018 :end' >>confcache
18019 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18020 if test -w "$cache_file"; then
18021 if test "x$cache_file" != "x/dev/null"; then
18022 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18023 $as_echo "$as_me: updating cache $cache_file" >&6;}
18024 if test ! -f "$cache_file" || test -h "$cache_file"; then
18025 cat confcache >"$cache_file"
18026 else
18027 case $cache_file in #(
18028 */* | ?:*)
18029 mv -f confcache "$cache_file"$$ &&
18030 mv -f "$cache_file"$$ "$cache_file" ;; #(
18031 *)
18032 mv -f confcache "$cache_file" ;;
18033 esac
18034 fi
18035 fi
18036 else
18037 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18038 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18039 fi
18040 fi
18041 rm -f confcache
18042
18043 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18044 # Let make expand exec_prefix.
18045 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18046
18047 DEFS=-DHAVE_CONFIG_H
18048
18049 ac_libobjs=
18050 ac_ltlibobjs=
18051 U=
18052 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18053 # 1. Remove the extension, and $U if already installed.
18054 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18055 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18056 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18057 # will be set to the directory where LIBOBJS objects are built.
18058 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18059 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18060 done
18061 LIBOBJS=$ac_libobjs
18062
18063 LTLIBOBJS=$ac_ltlibobjs
18064
18065
18066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18067 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18068 if test -n "$am_sleep_pid"; then
18069 # Hide warnings about reused PIDs.
18070 wait $am_sleep_pid 2>/dev/null
18071 fi
18072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18073 $as_echo "done" >&6; }
18074 if test -n "$EXEEXT"; then
18075 am__EXEEXT_TRUE=
18076 am__EXEEXT_FALSE='#'
18077 else
18078 am__EXEEXT_TRUE='#'
18079 am__EXEEXT_FALSE=
18080 fi
18081
18082 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18083 as_fn_error $? "conditional \"AMDEP\" was never defined.
18084 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18085 fi
18086 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18087 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18088 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18089 fi
18090
18091 : "${CONFIG_STATUS=./config.status}"
18092 ac_write_fail=0
18093 ac_clean_files_save=$ac_clean_files
18094 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18096 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18097 as_write_fail=0
18098 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18099 #! $SHELL
18100 # Generated by $as_me.
18101 # Run this file to recreate the current configuration.
18102 # Compiler output produced by configure, useful for debugging
18103 # configure, is in config.log if it exists.
18104
18105 debug=false
18106 ac_cs_recheck=false
18107 ac_cs_silent=false
18108
18109 SHELL=\${CONFIG_SHELL-$SHELL}
18110 export SHELL
18111 _ASEOF
18112 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18113 ## -------------------- ##
18114 ## M4sh Initialization. ##
18115 ## -------------------- ##
18116
18117 # Be more Bourne compatible
18118 DUALCASE=1; export DUALCASE # for MKS sh
18119 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18120 emulate sh
18121 NULLCMD=:
18122 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18123 # is contrary to our usage. Disable this feature.
18124 alias -g '${1+"$@"}'='"$@"'
18125 setopt NO_GLOB_SUBST
18126 else
18127 case `(set -o) 2>/dev/null` in #(
18128 *posix*) :
18129 set -o posix ;; #(
18130 *) :
18131 ;;
18132 esac
18133 fi
18134
18135
18136 as_nl='
18137 '
18138 export as_nl
18139 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18140 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18141 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18142 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18143 # Prefer a ksh shell builtin over an external printf program on Solaris,
18144 # but without wasting forks for bash or zsh.
18145 if test -z "$BASH_VERSION$ZSH_VERSION" \
18146 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18147 as_echo='print -r --'
18148 as_echo_n='print -rn --'
18149 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18150 as_echo='printf %s\n'
18151 as_echo_n='printf %s'
18152 else
18153 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18154 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18155 as_echo_n='/usr/ucb/echo -n'
18156 else
18157 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18158 as_echo_n_body='eval
18159 arg=$1;
18160 case $arg in #(
18161 *"$as_nl"*)
18162 expr "X$arg" : "X\\(.*\\)$as_nl";
18163 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18164 esac;
18165 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18166 '
18167 export as_echo_n_body
18168 as_echo_n='sh -c $as_echo_n_body as_echo'
18169 fi
18170 export as_echo_body
18171 as_echo='sh -c $as_echo_body as_echo'
18172 fi
18173
18174 # The user is always right.
18175 if test "${PATH_SEPARATOR+set}" != set; then
18176 PATH_SEPARATOR=:
18177 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18178 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18179 PATH_SEPARATOR=';'
18180 }
18181 fi
18182
18183
18184 # IFS
18185 # We need space, tab and new line, in precisely that order. Quoting is
18186 # there to prevent editors from complaining about space-tab.
18187 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18188 # splitting by setting IFS to empty value.)
18189 IFS=" "" $as_nl"
18190
18191 # Find who we are. Look in the path if we contain no directory separator.
18192 as_myself=
18193 case $0 in #((
18194 *[\\/]* ) as_myself=$0 ;;
18195 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18196 for as_dir in $PATH
18197 do
18198 IFS=$as_save_IFS
18199 test -z "$as_dir" && as_dir=.
18200 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18201 done
18202 IFS=$as_save_IFS
18203
18204 ;;
18205 esac
18206 # We did not find ourselves, most probably we were run as `sh COMMAND'
18207 # in which case we are not to be found in the path.
18208 if test "x$as_myself" = x; then
18209 as_myself=$0
18210 fi
18211 if test ! -f "$as_myself"; then
18212 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18213 exit 1
18214 fi
18215
18216 # Unset variables that we do not need and which cause bugs (e.g. in
18217 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18218 # suppresses any "Segmentation fault" message there. '((' could
18219 # trigger a bug in pdksh 5.2.14.
18220 for as_var in BASH_ENV ENV MAIL MAILPATH
18221 do eval test x\${$as_var+set} = xset \
18222 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18223 done
18224 PS1='$ '
18225 PS2='> '
18226 PS4='+ '
18227
18228 # NLS nuisances.
18229 LC_ALL=C
18230 export LC_ALL
18231 LANGUAGE=C
18232 export LANGUAGE
18233
18234 # CDPATH.
18235 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18236
18237
18238 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18239 # ----------------------------------------
18240 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18241 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18242 # script with STATUS, using 1 if that was 0.
18243 as_fn_error ()
18244 {
18245 as_status=$1; test $as_status -eq 0 && as_status=1
18246 if test "$4"; then
18247 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18248 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18249 fi
18250 $as_echo "$as_me: error: $2" >&2
18251 as_fn_exit $as_status
18252 } # as_fn_error
18253
18254
18255 # as_fn_set_status STATUS
18256 # -----------------------
18257 # Set $? to STATUS, without forking.
18258 as_fn_set_status ()
18259 {
18260 return $1
18261 } # as_fn_set_status
18262
18263 # as_fn_exit STATUS
18264 # -----------------
18265 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18266 as_fn_exit ()
18267 {
18268 set +e
18269 as_fn_set_status $1
18270 exit $1
18271 } # as_fn_exit
18272
18273 # as_fn_unset VAR
18274 # ---------------
18275 # Portably unset VAR.
18276 as_fn_unset ()
18277 {
18278 { eval $1=; unset $1;}
18279 }
18280 as_unset=as_fn_unset
18281 # as_fn_append VAR VALUE
18282 # ----------------------
18283 # Append the text in VALUE to the end of the definition contained in VAR. Take
18284 # advantage of any shell optimizations that allow amortized linear growth over
18285 # repeated appends, instead of the typical quadratic growth present in naive
18286 # implementations.
18287 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18288 eval 'as_fn_append ()
18289 {
18290 eval $1+=\$2
18291 }'
18292 else
18293 as_fn_append ()
18294 {
18295 eval $1=\$$1\$2
18296 }
18297 fi # as_fn_append
18298
18299 # as_fn_arith ARG...
18300 # ------------------
18301 # Perform arithmetic evaluation on the ARGs, and store the result in the
18302 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18303 # must be portable across $(()) and expr.
18304 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18305 eval 'as_fn_arith ()
18306 {
18307 as_val=$(( $* ))
18308 }'
18309 else
18310 as_fn_arith ()
18311 {
18312 as_val=`expr "$@" || test $? -eq 1`
18313 }
18314 fi # as_fn_arith
18315
18316
18317 if expr a : '\(a\)' >/dev/null 2>&1 &&
18318 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18319 as_expr=expr
18320 else
18321 as_expr=false
18322 fi
18323
18324 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18325 as_basename=basename
18326 else
18327 as_basename=false
18328 fi
18329
18330 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18331 as_dirname=dirname
18332 else
18333 as_dirname=false
18334 fi
18335
18336 as_me=`$as_basename -- "$0" ||
18337 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18338 X"$0" : 'X\(//\)$' \| \
18339 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18340 $as_echo X/"$0" |
18341 sed '/^.*\/\([^/][^/]*\)\/*$/{
18342 s//\1/
18343 q
18344 }
18345 /^X\/\(\/\/\)$/{
18346 s//\1/
18347 q
18348 }
18349 /^X\/\(\/\).*/{
18350 s//\1/
18351 q
18352 }
18353 s/.*/./; q'`
18354
18355 # Avoid depending upon Character Ranges.
18356 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18357 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18358 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18359 as_cr_digits='0123456789'
18360 as_cr_alnum=$as_cr_Letters$as_cr_digits
18361
18362 ECHO_C= ECHO_N= ECHO_T=
18363 case `echo -n x` in #(((((
18364 -n*)
18365 case `echo 'xy\c'` in
18366 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18367 xy) ECHO_C='\c';;
18368 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18369 ECHO_T=' ';;
18370 esac;;
18371 *)
18372 ECHO_N='-n';;
18373 esac
18374
18375 rm -f conf$$ conf$$.exe conf$$.file
18376 if test -d conf$$.dir; then
18377 rm -f conf$$.dir/conf$$.file
18378 else
18379 rm -f conf$$.dir
18380 mkdir conf$$.dir 2>/dev/null
18381 fi
18382 if (echo >conf$$.file) 2>/dev/null; then
18383 if ln -s conf$$.file conf$$ 2>/dev/null; then
18384 as_ln_s='ln -s'
18385 # ... but there are two gotchas:
18386 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18387 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18388 # In both cases, we have to default to `cp -pR'.
18389 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18390 as_ln_s='cp -pR'
18391 elif ln conf$$.file conf$$ 2>/dev/null; then
18392 as_ln_s=ln
18393 else
18394 as_ln_s='cp -pR'
18395 fi
18396 else
18397 as_ln_s='cp -pR'
18398 fi
18399 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18400 rmdir conf$$.dir 2>/dev/null
18401
18402
18403 # as_fn_mkdir_p
18404 # -------------
18405 # Create "$as_dir" as a directory, including parents if necessary.
18406 as_fn_mkdir_p ()
18407 {
18408
18409 case $as_dir in #(
18410 -*) as_dir=./$as_dir;;
18411 esac
18412 test -d "$as_dir" || eval $as_mkdir_p || {
18413 as_dirs=
18414 while :; do
18415 case $as_dir in #(
18416 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18417 *) as_qdir=$as_dir;;
18418 esac
18419 as_dirs="'$as_qdir' $as_dirs"
18420 as_dir=`$as_dirname -- "$as_dir" ||
18421 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18422 X"$as_dir" : 'X\(//\)[^/]' \| \
18423 X"$as_dir" : 'X\(//\)$' \| \
18424 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18425 $as_echo X"$as_dir" |
18426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18427 s//\1/
18428 q
18429 }
18430 /^X\(\/\/\)[^/].*/{
18431 s//\1/
18432 q
18433 }
18434 /^X\(\/\/\)$/{
18435 s//\1/
18436 q
18437 }
18438 /^X\(\/\).*/{
18439 s//\1/
18440 q
18441 }
18442 s/.*/./; q'`
18443 test -d "$as_dir" && break
18444 done
18445 test -z "$as_dirs" || eval "mkdir $as_dirs"
18446 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18447
18448
18449 } # as_fn_mkdir_p
18450 if mkdir -p . 2>/dev/null; then
18451 as_mkdir_p='mkdir -p "$as_dir"'
18452 else
18453 test -d ./-p && rmdir ./-p
18454 as_mkdir_p=false
18455 fi
18456
18457
18458 # as_fn_executable_p FILE
18459 # -----------------------
18460 # Test if FILE is an executable regular file.
18461 as_fn_executable_p ()
18462 {
18463 test -f "$1" && test -x "$1"
18464 } # as_fn_executable_p
18465 as_test_x='test -x'
18466 as_executable_p=as_fn_executable_p
18467
18468 # Sed expression to map a string onto a valid CPP name.
18469 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18470
18471 # Sed expression to map a string onto a valid variable name.
18472 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18473
18474
18475 exec 6>&1
18476 ## ----------------------------------- ##
18477 ## Main body of $CONFIG_STATUS script. ##
18478 ## ----------------------------------- ##
18479 _ASEOF
18480 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18481
18482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18483 # Save the log message, to keep $0 and so on meaningful, and to
18484 # report actual input values of CONFIG_FILES etc. instead of their
18485 # values after options handling.
18486 ac_log="
18487 This file was extended by libXrender $as_me 0.9.10, which was
18488 generated by GNU Autoconf 2.69. Invocation command line was
18489
18490 CONFIG_FILES = $CONFIG_FILES
18491 CONFIG_HEADERS = $CONFIG_HEADERS
18492 CONFIG_LINKS = $CONFIG_LINKS
18493 CONFIG_COMMANDS = $CONFIG_COMMANDS
18494 $ $0 $@
18495
18496 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18497 "
18498
18499 _ACEOF
18500
18501 case $ac_config_files in *"
18502 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18503 esac
18504
18505 case $ac_config_headers in *"
18506 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18507 esac
18508
18509
18510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18511 # Files that config.status was made for.
18512 config_files="$ac_config_files"
18513 config_headers="$ac_config_headers"
18514 config_commands="$ac_config_commands"
18515
18516 _ACEOF
18517
18518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18519 ac_cs_usage="\
18520 \`$as_me' instantiates files and other configuration actions
18521 from templates according to the current configuration. Unless the files
18522 and actions are specified as TAGs, all are instantiated by default.
18523
18524 Usage: $0 [OPTION]... [TAG]...
18525
18526 -h, --help print this help, then exit
18527 -V, --version print version number and configuration settings, then exit
18528 --config print configuration, then exit
18529 -q, --quiet, --silent
18530 do not print progress messages
18531 -d, --debug don't remove temporary files
18532 --recheck update $as_me by reconfiguring in the same conditions
18533 --file=FILE[:TEMPLATE]
18534 instantiate the configuration file FILE
18535 --header=FILE[:TEMPLATE]
18536 instantiate the configuration header FILE
18537
18538 Configuration files:
18539 $config_files
18540
18541 Configuration headers:
18542 $config_headers
18543
18544 Configuration commands:
18545 $config_commands
18546
18547 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18548
18549 _ACEOF
18550 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18551 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18552 ac_cs_version="\\
18553 libXrender config.status 0.9.10
18554 configured by $0, generated by GNU Autoconf 2.69,
18555 with options \\"\$ac_cs_config\\"
18556
18557 Copyright (C) 2012 Free Software Foundation, Inc.
18558 This config.status script is free software; the Free Software Foundation
18559 gives unlimited permission to copy, distribute and modify it."
18560
18561 ac_pwd='$ac_pwd'
18562 srcdir='$srcdir'
18563 INSTALL='$INSTALL'
18564 MKDIR_P='$MKDIR_P'
18565 AWK='$AWK'
18566 test -n "\$AWK" || AWK=awk
18567 _ACEOF
18568
18569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18570 # The default lists apply if the user does not specify any file.
18571 ac_need_defaults=:
18572 while test $# != 0
18573 do
18574 case $1 in
18575 --*=?*)
18576 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18577 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18578 ac_shift=:
18579 ;;
18580 --*=)
18581 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18582 ac_optarg=
18583 ac_shift=:
18584 ;;
18585 *)
18586 ac_option=$1
18587 ac_optarg=$2
18588 ac_shift=shift
18589 ;;
18590 esac
18591
18592 case $ac_option in
18593 # Handling of the options.
18594 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18595 ac_cs_recheck=: ;;
18596 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18597 $as_echo "$ac_cs_version"; exit ;;
18598 --config | --confi | --conf | --con | --co | --c )
18599 $as_echo "$ac_cs_config"; exit ;;
18600 --debug | --debu | --deb | --de | --d | -d )
18601 debug=: ;;
18602 --file | --fil | --fi | --f )
18603 $ac_shift
18604 case $ac_optarg in
18605 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18606 '') as_fn_error $? "missing file argument" ;;
18607 esac
18608 as_fn_append CONFIG_FILES " '$ac_optarg'"
18609 ac_need_defaults=false;;
18610 --header | --heade | --head | --hea )
18611 $ac_shift
18612 case $ac_optarg in
18613 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18614 esac
18615 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18616 ac_need_defaults=false;;
18617 --he | --h)
18618 # Conflict between --help and --header
18619 as_fn_error $? "ambiguous option: \`$1'
18620 Try \`$0 --help' for more information.";;
18621 --help | --hel | -h )
18622 $as_echo "$ac_cs_usage"; exit ;;
18623 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18624 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18625 ac_cs_silent=: ;;
18626
18627 # This is an error.
18628 -*) as_fn_error $? "unrecognized option: \`$1'
18629 Try \`$0 --help' for more information." ;;
18630
18631 *) as_fn_append ac_config_targets " $1"
18632 ac_need_defaults=false ;;
18633
18634 esac
18635 shift
18636 done
18637
18638 ac_configure_extra_args=
18639
18640 if $ac_cs_silent; then
18641 exec 6>/dev/null
18642 ac_configure_extra_args="$ac_configure_extra_args --silent"
18643 fi
18644
18645 _ACEOF
18646 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18647 if \$ac_cs_recheck; then
18648 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18649 shift
18650 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18651 CONFIG_SHELL='$SHELL'
18652 export CONFIG_SHELL
18653 exec "\$@"
18654 fi
18655
18656 _ACEOF
18657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18658 exec 5>>config.log
18659 {
18660 echo
18661 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18662 ## Running $as_me. ##
18663 _ASBOX
18664 $as_echo "$ac_log"
18665 } >&5
18666
18667 _ACEOF
18668 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18669 #
18670 # INIT-COMMANDS
18671 #
18672 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18673
18674
18675 # The HP-UX ksh and POSIX shell print the target directory to stdout
18676 # if CDPATH is set.
18677 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18678
18679 sed_quote_subst='$sed_quote_subst'
18680 double_quote_subst='$double_quote_subst'
18681 delay_variable_subst='$delay_variable_subst'
18682 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18683 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18684 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18685 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18686 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18687 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18688 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18689 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18690 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18691 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18692 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18693 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18694 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18695 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18696 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18697 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18698 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18699 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18700 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18701 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18702 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18703 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18704 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18705 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18706 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18707 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18708 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18709 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18710 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18711 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18712 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18713 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18714 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18715 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18716 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18717 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18718 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18719 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18720 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18721 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18722 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18723 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18724 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18725 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18726 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18727 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18728 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18729 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18730 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18731 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18732 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18733 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18734 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18735 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18736 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18737 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18738 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"`'
18739 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18740 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18741 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18742 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18743 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18744 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18745 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18746 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18747 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18748 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18749 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18750 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18751 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18752 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18753 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18754 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18755 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18756 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18757 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18758 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18759 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18760 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18761 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18762 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18763 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18764 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18765 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18766 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18767 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18768 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18769 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18770 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18771 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18772 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18773 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18774 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18775 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18776 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18777 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18778 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18779 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18780 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18781 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18782 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18783 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18784 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18785 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18786 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18787 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18788 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18789 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18790 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18791 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18792 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18793 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18794 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18795 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18796 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18797 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18798 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18799 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18800 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18801 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18802 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18803 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18804 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18805 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18806 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18807 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18808 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18809 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18810 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18811 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18812
18813 LTCC='$LTCC'
18814 LTCFLAGS='$LTCFLAGS'
18815 compiler='$compiler_DEFAULT'
18816
18817 # A function that is used when there is no print builtin or printf.
18818 func_fallback_echo ()
18819 {
18820 eval 'cat <<_LTECHO_EOF
18821 \$1
18822 _LTECHO_EOF'
18823 }
18824
18825 # Quote evaled strings.
18826 for var in SHELL \
18827 ECHO \
18828 PATH_SEPARATOR \
18829 SED \
18830 GREP \
18831 EGREP \
18832 FGREP \
18833 LD \
18834 NM \
18835 LN_S \
18836 lt_SP2NL \
18837 lt_NL2SP \
18838 reload_flag \
18839 OBJDUMP \
18840 deplibs_check_method \
18841 file_magic_cmd \
18842 file_magic_glob \
18843 want_nocaseglob \
18844 DLLTOOL \
18845 sharedlib_from_linklib_cmd \
18846 AR \
18847 AR_FLAGS \
18848 archiver_list_spec \
18849 STRIP \
18850 RANLIB \
18851 CC \
18852 CFLAGS \
18853 compiler \
18854 lt_cv_sys_global_symbol_pipe \
18855 lt_cv_sys_global_symbol_to_cdecl \
18856 lt_cv_sys_global_symbol_to_c_name_address \
18857 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18858 nm_file_list_spec \
18859 lt_prog_compiler_no_builtin_flag \
18860 lt_prog_compiler_pic \
18861 lt_prog_compiler_wl \
18862 lt_prog_compiler_static \
18863 lt_cv_prog_compiler_c_o \
18864 need_locks \
18865 MANIFEST_TOOL \
18866 DSYMUTIL \
18867 NMEDIT \
18868 LIPO \
18869 OTOOL \
18870 OTOOL64 \
18871 shrext_cmds \
18872 export_dynamic_flag_spec \
18873 whole_archive_flag_spec \
18874 compiler_needs_object \
18875 with_gnu_ld \
18876 allow_undefined_flag \
18877 no_undefined_flag \
18878 hardcode_libdir_flag_spec \
18879 hardcode_libdir_separator \
18880 exclude_expsyms \
18881 include_expsyms \
18882 file_list_spec \
18883 variables_saved_for_relink \
18884 libname_spec \
18885 library_names_spec \
18886 soname_spec \
18887 install_override_mode \
18888 finish_eval \
18889 old_striplib \
18890 striplib; do
18891 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18892 *[\\\\\\\`\\"\\\$]*)
18893 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18894 ;;
18895 *)
18896 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18897 ;;
18898 esac
18899 done
18900
18901 # Double-quote double-evaled strings.
18902 for var in reload_cmds \
18903 old_postinstall_cmds \
18904 old_postuninstall_cmds \
18905 old_archive_cmds \
18906 extract_expsyms_cmds \
18907 old_archive_from_new_cmds \
18908 old_archive_from_expsyms_cmds \
18909 archive_cmds \
18910 archive_expsym_cmds \
18911 module_cmds \
18912 module_expsym_cmds \
18913 export_symbols_cmds \
18914 prelink_cmds \
18915 postlink_cmds \
18916 postinstall_cmds \
18917 postuninstall_cmds \
18918 finish_cmds \
18919 sys_lib_search_path_spec \
18920 sys_lib_dlsearch_path_spec; do
18921 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18922 *[\\\\\\\`\\"\\\$]*)
18923 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18924 ;;
18925 *)
18926 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18927 ;;
18928 esac
18929 done
18930
18931 ac_aux_dir='$ac_aux_dir'
18932 xsi_shell='$xsi_shell'
18933 lt_shell_append='$lt_shell_append'
18934
18935 # See if we are running on zsh, and set the options which allow our
18936 # commands through without removal of \ escapes INIT.
18937 if test -n "\${ZSH_VERSION+set}" ; then
18938 setopt NO_GLOB_SUBST
18939 fi
18940
18941
18942 PACKAGE='$PACKAGE'
18943 VERSION='$VERSION'
18944 TIMESTAMP='$TIMESTAMP'
18945 RM='$RM'
18946 ofile='$ofile'
18947
18948
18949
18950
18951 _ACEOF
18952
18953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18954
18955 # Handling of arguments.
18956 for ac_config_target in $ac_config_targets
18957 do
18958 case $ac_config_target in
18959 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18960 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18961 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18962 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18963 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18964 "xrender.pc") CONFIG_FILES="$CONFIG_FILES xrender.pc" ;;
18965
18966 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18967 esac
18968 done
18969
18970
18971 # If the user did not use the arguments to specify the items to instantiate,
18972 # then the envvar interface is used. Set only those that are not.
18973 # We use the long form for the default assignment because of an extremely
18974 # bizarre bug on SunOS 4.1.3.
18975 if $ac_need_defaults; then
18976 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18977 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18978 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18979 fi
18980
18981 # Have a temporary directory for convenience. Make it in the build tree
18982 # simply because there is no reason against having it here, and in addition,
18983 # creating and moving files from /tmp can sometimes cause problems.
18984 # Hook for its removal unless debugging.
18985 # Note that there is a small window in which the directory will not be cleaned:
18986 # after its creation but before its name has been assigned to `$tmp'.
18987 $debug ||
18988 {
18989 tmp= ac_tmp=
18990 trap 'exit_status=$?
18991 : "${ac_tmp:=$tmp}"
18992 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18993 ' 0
18994 trap 'as_fn_exit 1' 1 2 13 15
18995 }
18996 # Create a (secure) tmp directory for tmp files.
18997
18998 {
18999 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19000 test -d "$tmp"
19001 } ||
19002 {
19003 tmp=./conf$$-$RANDOM
19004 (umask 077 && mkdir "$tmp")
19005 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19006 ac_tmp=$tmp
19007
19008 # Set up the scripts for CONFIG_FILES section.
19009 # No need to generate them if there are no CONFIG_FILES.
19010 # This happens for instance with `./config.status config.h'.
19011 if test -n "$CONFIG_FILES"; then
19012
19013
19014 ac_cr=`echo X | tr X '\015'`
19015 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19016 # But we know of no other shell where ac_cr would be empty at this
19017 # point, so we can use a bashism as a fallback.
19018 if test "x$ac_cr" = x; then
19019 eval ac_cr=\$\'\\r\'
19020 fi
19021 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19022 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19023 ac_cs_awk_cr='\\r'
19024 else
19025 ac_cs_awk_cr=$ac_cr
19026 fi
19027
19028 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19029 _ACEOF
19030
19031
19032 {
19033 echo "cat >conf$$subs.awk <<_ACEOF" &&
19034 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19035 echo "_ACEOF"
19036 } >conf$$subs.sh ||
19037 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19038 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19039 ac_delim='%!_!# '
19040 for ac_last_try in false false false false false :; do
19041 . ./conf$$subs.sh ||
19042 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19043
19044 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19045 if test $ac_delim_n = $ac_delim_num; then
19046 break
19047 elif $ac_last_try; then
19048 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19049 else
19050 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19051 fi
19052 done
19053 rm -f conf$$subs.sh
19054
19055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19056 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19057 _ACEOF
19058 sed -n '
19059 h
19060 s/^/S["/; s/!.*/"]=/
19061 p
19062 g
19063 s/^[^!]*!//
19064 :repl
19065 t repl
19066 s/'"$ac_delim"'$//
19067 t delim
19068 :nl
19069 h
19070 s/\(.\{148\}\)..*/\1/
19071 t more1
19072 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19073 p
19074 n
19075 b repl
19076 :more1
19077 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19078 p
19079 g
19080 s/.\{148\}//
19081 t nl
19082 :delim
19083 h
19084 s/\(.\{148\}\)..*/\1/
19085 t more2
19086 s/["\\]/\\&/g; s/^/"/; s/$/"/
19087 p
19088 b
19089 :more2
19090 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19091 p
19092 g
19093 s/.\{148\}//
19094 t delim
19095 ' <conf$$subs.awk | sed '
19096 /^[^""]/{
19097 N
19098 s/\n//
19099 }
19100 ' >>$CONFIG_STATUS || ac_write_fail=1
19101 rm -f conf$$subs.awk
19102 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19103 _ACAWK
19104 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19105 for (key in S) S_is_set[key] = 1
19106 FS = ""
19107
19108 }
19109 {
19110 line = $ 0
19111 nfields = split(line, field, "@")
19112 substed = 0
19113 len = length(field[1])
19114 for (i = 2; i < nfields; i++) {
19115 key = field[i]
19116 keylen = length(key)
19117 if (S_is_set[key]) {
19118 value = S[key]
19119 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19120 len += length(value) + length(field[++i])
19121 substed = 1
19122 } else
19123 len += 1 + keylen
19124 }
19125
19126 print line
19127 }
19128
19129 _ACAWK
19130 _ACEOF
19131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19132 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19133 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19134 else
19135 cat
19136 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19137 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19138 _ACEOF
19139
19140 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19141 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19142 # trailing colons and then remove the whole line if VPATH becomes empty
19143 # (actually we leave an empty line to preserve line numbers).
19144 if test "x$srcdir" = x.; then
19145 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19146 h
19147 s///
19148 s/^/:/
19149 s/[ ]*$/:/
19150 s/:\$(srcdir):/:/g
19151 s/:\${srcdir}:/:/g
19152 s/:@srcdir@:/:/g
19153 s/^:*//
19154 s/:*$//
19155 x
19156 s/\(=[ ]*\).*/\1/
19157 G
19158 s/\n//
19159 s/^[^=]*=[ ]*$//
19160 }'
19161 fi
19162
19163 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19164 fi # test -n "$CONFIG_FILES"
19165
19166 # Set up the scripts for CONFIG_HEADERS section.
19167 # No need to generate them if there are no CONFIG_HEADERS.
19168 # This happens for instance with `./config.status Makefile'.
19169 if test -n "$CONFIG_HEADERS"; then
19170 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19171 BEGIN {
19172 _ACEOF
19173
19174 # Transform confdefs.h into an awk script `defines.awk', embedded as
19175 # here-document in config.status, that substitutes the proper values into
19176 # config.h.in to produce config.h.
19177
19178 # Create a delimiter string that does not exist in confdefs.h, to ease
19179 # handling of long lines.
19180 ac_delim='%!_!# '
19181 for ac_last_try in false false :; do
19182 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19183 if test -z "$ac_tt"; then
19184 break
19185 elif $ac_last_try; then
19186 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19187 else
19188 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19189 fi
19190 done
19191
19192 # For the awk script, D is an array of macro values keyed by name,
19193 # likewise P contains macro parameters if any. Preserve backslash
19194 # newline sequences.
19195
19196 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19197 sed -n '
19198 s/.\{148\}/&'"$ac_delim"'/g
19199 t rset
19200 :rset
19201 s/^[ ]*#[ ]*define[ ][ ]*/ /
19202 t def
19203 d
19204 :def
19205 s/\\$//
19206 t bsnl
19207 s/["\\]/\\&/g
19208 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19209 D["\1"]=" \3"/p
19210 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19211 d
19212 :bsnl
19213 s/["\\]/\\&/g
19214 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19215 D["\1"]=" \3\\\\\\n"\\/p
19216 t cont
19217 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19218 t cont
19219 d
19220 :cont
19221 n
19222 s/.\{148\}/&'"$ac_delim"'/g
19223 t clear
19224 :clear
19225 s/\\$//
19226 t bsnlc
19227 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19228 d
19229 :bsnlc
19230 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19231 b cont
19232 ' <confdefs.h | sed '
19233 s/'"$ac_delim"'/"\\\
19234 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19235
19236 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19237 for (key in D) D_is_set[key] = 1
19238 FS = ""
19239 }
19240 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19241 line = \$ 0
19242 split(line, arg, " ")
19243 if (arg[1] == "#") {
19244 defundef = arg[2]
19245 mac1 = arg[3]
19246 } else {
19247 defundef = substr(arg[1], 2)
19248 mac1 = arg[2]
19249 }
19250 split(mac1, mac2, "(") #)
19251 macro = mac2[1]
19252 prefix = substr(line, 1, index(line, defundef) - 1)
19253 if (D_is_set[macro]) {
19254 # Preserve the white space surrounding the "#".
19255 print prefix "define", macro P[macro] D[macro]
19256 next
19257 } else {
19258 # Replace #undef with comments. This is necessary, for example,
19259 # in the case of _POSIX_SOURCE, which is predefined and required
19260 # on some systems where configure will not decide to define it.
19261 if (defundef == "undef") {
19262 print "/*", prefix defundef, macro, "*/"
19263 next
19264 }
19265 }
19266 }
19267 { print }
19268 _ACAWK
19269 _ACEOF
19270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19271 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19272 fi # test -n "$CONFIG_HEADERS"
19273
19274
19275 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19276 shift
19277 for ac_tag
19278 do
19279 case $ac_tag in
19280 :[FHLC]) ac_mode=$ac_tag; continue;;
19281 esac
19282 case $ac_mode$ac_tag in
19283 :[FHL]*:*);;
19284 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19285 :[FH]-) ac_tag=-:-;;
19286 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19287 esac
19288 ac_save_IFS=$IFS
19289 IFS=:
19290 set x $ac_tag
19291 IFS=$ac_save_IFS
19292 shift
19293 ac_file=$1
19294 shift
19295
19296 case $ac_mode in
19297 :L) ac_source=$1;;
19298 :[FH])
19299 ac_file_inputs=
19300 for ac_f
19301 do
19302 case $ac_f in
19303 -) ac_f="$ac_tmp/stdin";;
19304 *) # Look for the file first in the build tree, then in the source tree
19305 # (if the path is not absolute). The absolute path cannot be DOS-style,
19306 # because $ac_f cannot contain `:'.
19307 test -f "$ac_f" ||
19308 case $ac_f in
19309 [\\/$]*) false;;
19310 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19311 esac ||
19312 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19313 esac
19314 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19315 as_fn_append ac_file_inputs " '$ac_f'"
19316 done
19317
19318 # Let's still pretend it is `configure' which instantiates (i.e., don't
19319 # use $as_me), people would be surprised to read:
19320 # /* config.h. Generated by config.status. */
19321 configure_input='Generated from '`
19322 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19323 `' by configure.'
19324 if test x"$ac_file" != x-; then
19325 configure_input="$ac_file. $configure_input"
19326 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19327 $as_echo "$as_me: creating $ac_file" >&6;}
19328 fi
19329 # Neutralize special characters interpreted by sed in replacement strings.
19330 case $configure_input in #(
19331 *\&* | *\|* | *\\* )
19332 ac_sed_conf_input=`$as_echo "$configure_input" |
19333 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19334 *) ac_sed_conf_input=$configure_input;;
19335 esac
19336
19337 case $ac_tag in
19338 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19339 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19340 esac
19341 ;;
19342 esac
19343
19344 ac_dir=`$as_dirname -- "$ac_file" ||
19345 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19346 X"$ac_file" : 'X\(//\)[^/]' \| \
19347 X"$ac_file" : 'X\(//\)$' \| \
19348 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19349 $as_echo X"$ac_file" |
19350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19351 s//\1/
19352 q
19353 }
19354 /^X\(\/\/\)[^/].*/{
19355 s//\1/
19356 q
19357 }
19358 /^X\(\/\/\)$/{
19359 s//\1/
19360 q
19361 }
19362 /^X\(\/\).*/{
19363 s//\1/
19364 q
19365 }
19366 s/.*/./; q'`
19367 as_dir="$ac_dir"; as_fn_mkdir_p
19368 ac_builddir=.
19369
19370 case "$ac_dir" in
19371 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19372 *)
19373 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19374 # A ".." for each directory in $ac_dir_suffix.
19375 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19376 case $ac_top_builddir_sub in
19377 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19378 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19379 esac ;;
19380 esac
19381 ac_abs_top_builddir=$ac_pwd
19382 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19383 # for backward compatibility:
19384 ac_top_builddir=$ac_top_build_prefix
19385
19386 case $srcdir in
19387 .) # We are building in place.
19388 ac_srcdir=.
19389 ac_top_srcdir=$ac_top_builddir_sub
19390 ac_abs_top_srcdir=$ac_pwd ;;
19391 [\\/]* | ?:[\\/]* ) # Absolute name.
19392 ac_srcdir=$srcdir$ac_dir_suffix;
19393 ac_top_srcdir=$srcdir
19394 ac_abs_top_srcdir=$srcdir ;;
19395 *) # Relative name.
19396 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19397 ac_top_srcdir=$ac_top_build_prefix$srcdir
19398 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19399 esac
19400 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19401
19402
19403 case $ac_mode in
19404 :F)
19405 #
19406 # CONFIG_FILE
19407 #
19408
19409 case $INSTALL in
19410 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19411 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19412 esac
19413 ac_MKDIR_P=$MKDIR_P
19414 case $MKDIR_P in
19415 [\\/$]* | ?:[\\/]* ) ;;
19416 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19417 esac
19418 _ACEOF
19419
19420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19421 # If the template does not know about datarootdir, expand it.
19422 # FIXME: This hack should be removed a few years after 2.60.
19423 ac_datarootdir_hack=; ac_datarootdir_seen=
19424 ac_sed_dataroot='
19425 /datarootdir/ {
19426 p
19427 q
19428 }
19429 /@datadir@/p
19430 /@docdir@/p
19431 /@infodir@/p
19432 /@localedir@/p
19433 /@mandir@/p'
19434 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19435 *datarootdir*) ac_datarootdir_seen=yes;;
19436 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19438 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19439 _ACEOF
19440 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19441 ac_datarootdir_hack='
19442 s&@datadir@&$datadir&g
19443 s&@docdir@&$docdir&g
19444 s&@infodir@&$infodir&g
19445 s&@localedir@&$localedir&g
19446 s&@mandir@&$mandir&g
19447 s&\\\${datarootdir}&$datarootdir&g' ;;
19448 esac
19449 _ACEOF
19450
19451 # Neutralize VPATH when `$srcdir' = `.'.
19452 # Shell code in configure.ac might set extrasub.
19453 # FIXME: do we really want to maintain this feature?
19454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19455 ac_sed_extra="$ac_vpsub
19456 $extrasub
19457 _ACEOF
19458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19459 :t
19460 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19461 s|@configure_input@|$ac_sed_conf_input|;t t
19462 s&@top_builddir@&$ac_top_builddir_sub&;t t
19463 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19464 s&@srcdir@&$ac_srcdir&;t t
19465 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19466 s&@top_srcdir@&$ac_top_srcdir&;t t
19467 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19468 s&@builddir@&$ac_builddir&;t t
19469 s&@abs_builddir@&$ac_abs_builddir&;t t
19470 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19471 s&@INSTALL@&$ac_INSTALL&;t t
19472 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19473 $ac_datarootdir_hack
19474 "
19475 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19476 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19477
19478 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19479 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19480 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19481 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19483 which seems to be undefined. Please make sure it is defined" >&5
19484 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19485 which seems to be undefined. Please make sure it is defined" >&2;}
19486
19487 rm -f "$ac_tmp/stdin"
19488 case $ac_file in
19489 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19490 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19491 esac \
19492 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19493 ;;
19494 :H)
19495 #
19496 # CONFIG_HEADER
19497 #
19498 if test x"$ac_file" != x-; then
19499 {
19500 $as_echo "/* $configure_input */" \
19501 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19502 } >"$ac_tmp/config.h" \
19503 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19504 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19505 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19506 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19507 else
19508 rm -f "$ac_file"
19509 mv "$ac_tmp/config.h" "$ac_file" \
19510 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19511 fi
19512 else
19513 $as_echo "/* $configure_input */" \
19514 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19515 || as_fn_error $? "could not create -" "$LINENO" 5
19516 fi
19517 # Compute "$ac_file"'s index in $config_headers.
19518 _am_arg="$ac_file"
19519 _am_stamp_count=1
19520 for _am_header in $config_headers :; do
19521 case $_am_header in
19522 $_am_arg | $_am_arg:* )
19523 break ;;
19524 * )
19525 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19526 esac
19527 done
19528 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19529 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19530 X"$_am_arg" : 'X\(//\)[^/]' \| \
19531 X"$_am_arg" : 'X\(//\)$' \| \
19532 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19533 $as_echo X"$_am_arg" |
19534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19535 s//\1/
19536 q
19537 }
19538 /^X\(\/\/\)[^/].*/{
19539 s//\1/
19540 q
19541 }
19542 /^X\(\/\/\)$/{
19543 s//\1/
19544 q
19545 }
19546 /^X\(\/\).*/{
19547 s//\1/
19548 q
19549 }
19550 s/.*/./; q'`/stamp-h$_am_stamp_count
19551 ;;
19552
19553 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19554 $as_echo "$as_me: executing $ac_file commands" >&6;}
19555 ;;
19556 esac
19557
19558
19559 case $ac_file$ac_mode in
19560 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19561 # Older Autoconf quotes --file arguments for eval, but not when files
19562 # are listed without --file. Let's play safe and only enable the eval
19563 # if we detect the quoting.
19564 case $CONFIG_FILES in
19565 *\'*) eval set x "$CONFIG_FILES" ;;
19566 *) set x $CONFIG_FILES ;;
19567 esac
19568 shift
19569 for mf
19570 do
19571 # Strip MF so we end up with the name of the file.
19572 mf=`echo "$mf" | sed -e 's/:.*$//'`
19573 # Check whether this is an Automake generated Makefile or not.
19574 # We used to match only the files named 'Makefile.in', but
19575 # some people rename them; so instead we look at the file content.
19576 # Grep'ing the first line is not enough: some people post-process
19577 # each Makefile.in and add a new line on top of each file to say so.
19578 # Grep'ing the whole file is not good either: AIX grep has a line
19579 # limit of 2048, but all sed's we know have understand at least 4000.
19580 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19581 dirpart=`$as_dirname -- "$mf" ||
19582 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19583 X"$mf" : 'X\(//\)[^/]' \| \
19584 X"$mf" : 'X\(//\)$' \| \
19585 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19586 $as_echo X"$mf" |
19587 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19588 s//\1/
19589 q
19590 }
19591 /^X\(\/\/\)[^/].*/{
19592 s//\1/
19593 q
19594 }
19595 /^X\(\/\/\)$/{
19596 s//\1/
19597 q
19598 }
19599 /^X\(\/\).*/{
19600 s//\1/
19601 q
19602 }
19603 s/.*/./; q'`
19604 else
19605 continue
19606 fi
19607 # Extract the definition of DEPDIR, am__include, and am__quote
19608 # from the Makefile without running 'make'.
19609 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19610 test -z "$DEPDIR" && continue
19611 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19612 test -z "$am__include" && continue
19613 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19614 # Find all dependency output files, they are included files with
19615 # $(DEPDIR) in their names. We invoke sed twice because it is the
19616 # simplest approach to changing $(DEPDIR) to its actual value in the
19617 # expansion.
19618 for file in `sed -n "
19619 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19620 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19621 # Make sure the directory exists.
19622 test -f "$dirpart/$file" && continue
19623 fdir=`$as_dirname -- "$file" ||
19624 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19625 X"$file" : 'X\(//\)[^/]' \| \
19626 X"$file" : 'X\(//\)$' \| \
19627 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19628 $as_echo X"$file" |
19629 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19630 s//\1/
19631 q
19632 }
19633 /^X\(\/\/\)[^/].*/{
19634 s//\1/
19635 q
19636 }
19637 /^X\(\/\/\)$/{
19638 s//\1/
19639 q
19640 }
19641 /^X\(\/\).*/{
19642 s//\1/
19643 q
19644 }
19645 s/.*/./; q'`
19646 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19647 # echo "creating $dirpart/$file"
19648 echo '# dummy' > "$dirpart/$file"
19649 done
19650 done
19651 }
19652 ;;
19653 "libtool":C)
19654
19655 # See if we are running on zsh, and set the options which allow our
19656 # commands through without removal of \ escapes.
19657 if test -n "${ZSH_VERSION+set}" ; then
19658 setopt NO_GLOB_SUBST
19659 fi
19660
19661 cfgfile="${ofile}T"
19662 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19663 $RM "$cfgfile"
19664
19665 cat <<_LT_EOF >> "$cfgfile"
19666 #! $SHELL
19667
19668 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19669 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19670 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19671 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19672 #
19673 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19674 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19675 # Foundation, Inc.
19676 # Written by Gordon Matzigkeit, 1996
19677 #
19678 # This file is part of GNU Libtool.
19679 #
19680 # GNU Libtool is free software; you can redistribute it and/or
19681 # modify it under the terms of the GNU General Public License as
19682 # published by the Free Software Foundation; either version 2 of
19683 # the License, or (at your option) any later version.
19684 #
19685 # As a special exception to the GNU General Public License,
19686 # if you distribute this file as part of a program or library that
19687 # is built using GNU Libtool, you may include this file under the
19688 # same distribution terms that you use for the rest of that program.
19689 #
19690 # GNU Libtool is distributed in the hope that it will be useful,
19691 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19692 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19693 # GNU General Public License for more details.
19694 #
19695 # You should have received a copy of the GNU General Public License
19696 # along with GNU Libtool; see the file COPYING. If not, a copy
19697 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19698 # obtained by writing to the Free Software Foundation, Inc.,
19699 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19700
19701
19702 # The names of the tagged configurations supported by this script.
19703 available_tags=""
19704
19705 # ### BEGIN LIBTOOL CONFIG
19706
19707 # Which release of libtool.m4 was used?
19708 macro_version=$macro_version
19709 macro_revision=$macro_revision
19710
19711 # Whether or not to build shared libraries.
19712 build_libtool_libs=$enable_shared
19713
19714 # Whether or not to build static libraries.
19715 build_old_libs=$enable_static
19716
19717 # What type of objects to build.
19718 pic_mode=$pic_mode
19719
19720 # Whether or not to optimize for fast installation.
19721 fast_install=$enable_fast_install
19722
19723 # Shell to use when invoking shell scripts.
19724 SHELL=$lt_SHELL
19725
19726 # An echo program that protects backslashes.
19727 ECHO=$lt_ECHO
19728
19729 # The PATH separator for the build system.
19730 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19731
19732 # The host system.
19733 host_alias=$host_alias
19734 host=$host
19735 host_os=$host_os
19736
19737 # The build system.
19738 build_alias=$build_alias
19739 build=$build
19740 build_os=$build_os
19741
19742 # A sed program that does not truncate output.
19743 SED=$lt_SED
19744
19745 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19746 Xsed="\$SED -e 1s/^X//"
19747
19748 # A grep program that handles long lines.
19749 GREP=$lt_GREP
19750
19751 # An ERE matcher.
19752 EGREP=$lt_EGREP
19753
19754 # A literal string matcher.
19755 FGREP=$lt_FGREP
19756
19757 # A BSD- or MS-compatible name lister.
19758 NM=$lt_NM
19759
19760 # Whether we need soft or hard links.
19761 LN_S=$lt_LN_S
19762
19763 # What is the maximum length of a command?
19764 max_cmd_len=$max_cmd_len
19765
19766 # Object file suffix (normally "o").
19767 objext=$ac_objext
19768
19769 # Executable file suffix (normally "").
19770 exeext=$exeext
19771
19772 # whether the shell understands "unset".
19773 lt_unset=$lt_unset
19774
19775 # turn spaces into newlines.
19776 SP2NL=$lt_lt_SP2NL
19777
19778 # turn newlines into spaces.
19779 NL2SP=$lt_lt_NL2SP
19780
19781 # convert \$build file names to \$host format.
19782 to_host_file_cmd=$lt_cv_to_host_file_cmd
19783
19784 # convert \$build files to toolchain format.
19785 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19786
19787 # An object symbol dumper.
19788 OBJDUMP=$lt_OBJDUMP
19789
19790 # Method to check whether dependent libraries are shared objects.
19791 deplibs_check_method=$lt_deplibs_check_method
19792
19793 # Command to use when deplibs_check_method = "file_magic".
19794 file_magic_cmd=$lt_file_magic_cmd
19795
19796 # How to find potential files when deplibs_check_method = "file_magic".
19797 file_magic_glob=$lt_file_magic_glob
19798
19799 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19800 want_nocaseglob=$lt_want_nocaseglob
19801
19802 # DLL creation program.
19803 DLLTOOL=$lt_DLLTOOL
19804
19805 # Command to associate shared and link libraries.
19806 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19807
19808 # The archiver.
19809 AR=$lt_AR
19810
19811 # Flags to create an archive.
19812 AR_FLAGS=$lt_AR_FLAGS
19813
19814 # How to feed a file listing to the archiver.
19815 archiver_list_spec=$lt_archiver_list_spec
19816
19817 # A symbol stripping program.
19818 STRIP=$lt_STRIP
19819
19820 # Commands used to install an old-style archive.
19821 RANLIB=$lt_RANLIB
19822 old_postinstall_cmds=$lt_old_postinstall_cmds
19823 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19824
19825 # Whether to use a lock for old archive extraction.
19826 lock_old_archive_extraction=$lock_old_archive_extraction
19827
19828 # A C compiler.
19829 LTCC=$lt_CC
19830
19831 # LTCC compiler flags.
19832 LTCFLAGS=$lt_CFLAGS
19833
19834 # Take the output of nm and produce a listing of raw symbols and C names.
19835 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19836
19837 # Transform the output of nm in a proper C declaration.
19838 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19839
19840 # Transform the output of nm in a C name address pair.
19841 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19842
19843 # Transform the output of nm in a C name address pair when lib prefix is needed.
19844 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19845
19846 # Specify filename containing input files for \$NM.
19847 nm_file_list_spec=$lt_nm_file_list_spec
19848
19849 # The root where to search for dependent libraries,and in which our libraries should be installed.
19850 lt_sysroot=$lt_sysroot
19851
19852 # The name of the directory that contains temporary libtool files.
19853 objdir=$objdir
19854
19855 # Used to examine libraries when file_magic_cmd begins with "file".
19856 MAGIC_CMD=$MAGIC_CMD
19857
19858 # Must we lock files when doing compilation?
19859 need_locks=$lt_need_locks
19860
19861 # Manifest tool.
19862 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19863
19864 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19865 DSYMUTIL=$lt_DSYMUTIL
19866
19867 # Tool to change global to local symbols on Mac OS X.
19868 NMEDIT=$lt_NMEDIT
19869
19870 # Tool to manipulate fat objects and archives on Mac OS X.
19871 LIPO=$lt_LIPO
19872
19873 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19874 OTOOL=$lt_OTOOL
19875
19876 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19877 OTOOL64=$lt_OTOOL64
19878
19879 # Old archive suffix (normally "a").
19880 libext=$libext
19881
19882 # Shared library suffix (normally ".so").
19883 shrext_cmds=$lt_shrext_cmds
19884
19885 # The commands to extract the exported symbol list from a shared archive.
19886 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19887
19888 # Variables whose values should be saved in libtool wrapper scripts and
19889 # restored at link time.
19890 variables_saved_for_relink=$lt_variables_saved_for_relink
19891
19892 # Do we need the "lib" prefix for modules?
19893 need_lib_prefix=$need_lib_prefix
19894
19895 # Do we need a version for libraries?
19896 need_version=$need_version
19897
19898 # Library versioning type.
19899 version_type=$version_type
19900
19901 # Shared library runtime path variable.
19902 runpath_var=$runpath_var
19903
19904 # Shared library path variable.
19905 shlibpath_var=$shlibpath_var
19906
19907 # Is shlibpath searched before the hard-coded library search path?
19908 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19909
19910 # Format of library name prefix.
19911 libname_spec=$lt_libname_spec
19912
19913 # List of archive names. First name is the real one, the rest are links.
19914 # The last name is the one that the linker finds with -lNAME
19915 library_names_spec=$lt_library_names_spec
19916
19917 # The coded name of the library, if different from the real name.
19918 soname_spec=$lt_soname_spec
19919
19920 # Permission mode override for installation of shared libraries.
19921 install_override_mode=$lt_install_override_mode
19922
19923 # Command to use after installation of a shared archive.
19924 postinstall_cmds=$lt_postinstall_cmds
19925
19926 # Command to use after uninstallation of a shared archive.
19927 postuninstall_cmds=$lt_postuninstall_cmds
19928
19929 # Commands used to finish a libtool library installation in a directory.
19930 finish_cmds=$lt_finish_cmds
19931
19932 # As "finish_cmds", except a single script fragment to be evaled but
19933 # not shown.
19934 finish_eval=$lt_finish_eval
19935
19936 # Whether we should hardcode library paths into libraries.
19937 hardcode_into_libs=$hardcode_into_libs
19938
19939 # Compile-time system search path for libraries.
19940 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19941
19942 # Run-time system search path for libraries.
19943 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19944
19945 # Whether dlopen is supported.
19946 dlopen_support=$enable_dlopen
19947
19948 # Whether dlopen of programs is supported.
19949 dlopen_self=$enable_dlopen_self
19950
19951 # Whether dlopen of statically linked programs is supported.
19952 dlopen_self_static=$enable_dlopen_self_static
19953
19954 # Commands to strip libraries.
19955 old_striplib=$lt_old_striplib
19956 striplib=$lt_striplib
19957
19958
19959 # The linker used to build libraries.
19960 LD=$lt_LD
19961
19962 # How to create reloadable object files.
19963 reload_flag=$lt_reload_flag
19964 reload_cmds=$lt_reload_cmds
19965
19966 # Commands used to build an old-style archive.
19967 old_archive_cmds=$lt_old_archive_cmds
19968
19969 # A language specific compiler.
19970 CC=$lt_compiler
19971
19972 # Is the compiler the GNU compiler?
19973 with_gcc=$GCC
19974
19975 # Compiler flag to turn off builtin functions.
19976 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19977
19978 # Additional compiler flags for building library objects.
19979 pic_flag=$lt_lt_prog_compiler_pic
19980
19981 # How to pass a linker flag through the compiler.
19982 wl=$lt_lt_prog_compiler_wl
19983
19984 # Compiler flag to prevent dynamic linking.
19985 link_static_flag=$lt_lt_prog_compiler_static
19986
19987 # Does compiler simultaneously support -c and -o options?
19988 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19989
19990 # Whether or not to add -lc for building shared libraries.
19991 build_libtool_need_lc=$archive_cmds_need_lc
19992
19993 # Whether or not to disallow shared libs when runtime libs are static.
19994 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19995
19996 # Compiler flag to allow reflexive dlopens.
19997 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19998
19999 # Compiler flag to generate shared objects directly from archives.
20000 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20001
20002 # Whether the compiler copes with passing no objects directly.
20003 compiler_needs_object=$lt_compiler_needs_object
20004
20005 # Create an old-style archive from a shared archive.
20006 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20007
20008 # Create a temporary old-style archive to link instead of a shared archive.
20009 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20010
20011 # Commands used to build a shared archive.
20012 archive_cmds=$lt_archive_cmds
20013 archive_expsym_cmds=$lt_archive_expsym_cmds
20014
20015 # Commands used to build a loadable module if different from building
20016 # a shared archive.
20017 module_cmds=$lt_module_cmds
20018 module_expsym_cmds=$lt_module_expsym_cmds
20019
20020 # Whether we are building with GNU ld or not.
20021 with_gnu_ld=$lt_with_gnu_ld
20022
20023 # Flag that allows shared libraries with undefined symbols to be built.
20024 allow_undefined_flag=$lt_allow_undefined_flag
20025
20026 # Flag that enforces no undefined symbols.
20027 no_undefined_flag=$lt_no_undefined_flag
20028
20029 # Flag to hardcode \$libdir into a binary during linking.
20030 # This must work even if \$libdir does not exist
20031 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20032
20033 # Whether we need a single "-rpath" flag with a separated argument.
20034 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20035
20036 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20037 # DIR into the resulting binary.
20038 hardcode_direct=$hardcode_direct
20039
20040 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20041 # DIR into the resulting binary and the resulting library dependency is
20042 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20043 # library is relocated.
20044 hardcode_direct_absolute=$hardcode_direct_absolute
20045
20046 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20047 # into the resulting binary.
20048 hardcode_minus_L=$hardcode_minus_L
20049
20050 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20051 # into the resulting binary.
20052 hardcode_shlibpath_var=$hardcode_shlibpath_var
20053
20054 # Set to "yes" if building a shared library automatically hardcodes DIR
20055 # into the library and all subsequent libraries and executables linked
20056 # against it.
20057 hardcode_automatic=$hardcode_automatic
20058
20059 # Set to yes if linker adds runtime paths of dependent libraries
20060 # to runtime path list.
20061 inherit_rpath=$inherit_rpath
20062
20063 # Whether libtool must link a program against all its dependency libraries.
20064 link_all_deplibs=$link_all_deplibs
20065
20066 # Set to "yes" if exported symbols are required.
20067 always_export_symbols=$always_export_symbols
20068
20069 # The commands to list exported symbols.
20070 export_symbols_cmds=$lt_export_symbols_cmds
20071
20072 # Symbols that should not be listed in the preloaded symbols.
20073 exclude_expsyms=$lt_exclude_expsyms
20074
20075 # Symbols that must always be exported.
20076 include_expsyms=$lt_include_expsyms
20077
20078 # Commands necessary for linking programs (against libraries) with templates.
20079 prelink_cmds=$lt_prelink_cmds
20080
20081 # Commands necessary for finishing linking programs.
20082 postlink_cmds=$lt_postlink_cmds
20083
20084 # Specify filename containing input files.
20085 file_list_spec=$lt_file_list_spec
20086
20087 # How to hardcode a shared library path into an executable.
20088 hardcode_action=$hardcode_action
20089
20090 # ### END LIBTOOL CONFIG
20091
20092 _LT_EOF
20093
20094 case $host_os in
20095 aix3*)
20096 cat <<\_LT_EOF >> "$cfgfile"
20097 # AIX sometimes has problems with the GCC collect2 program. For some
20098 # reason, if we set the COLLECT_NAMES environment variable, the problems
20099 # vanish in a puff of smoke.
20100 if test "X${COLLECT_NAMES+set}" != Xset; then
20101 COLLECT_NAMES=
20102 export COLLECT_NAMES
20103 fi
20104 _LT_EOF
20105 ;;
20106 esac
20107
20108
20109 ltmain="$ac_aux_dir/ltmain.sh"
20110
20111
20112 # We use sed instead of cat because bash on DJGPP gets confused if
20113 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20114 # text mode, it properly converts lines to CR/LF. This bash problem
20115 # is reportedly fixed, but why not run on old versions too?
20116 sed '$q' "$ltmain" >> "$cfgfile" \
20117 || (rm -f "$cfgfile"; exit 1)
20118
20119 if test x"$xsi_shell" = xyes; then
20120 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20121 func_dirname ()\
20122 {\
20123 \ case ${1} in\
20124 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20125 \ * ) func_dirname_result="${3}" ;;\
20126 \ esac\
20127 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20128 && mv -f "$cfgfile.tmp" "$cfgfile" \
20129 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20130 test 0 -eq $? || _lt_function_replace_fail=:
20131
20132
20133 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20134 func_basename ()\
20135 {\
20136 \ func_basename_result="${1##*/}"\
20137 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20138 && mv -f "$cfgfile.tmp" "$cfgfile" \
20139 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20140 test 0 -eq $? || _lt_function_replace_fail=:
20141
20142
20143 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20144 func_dirname_and_basename ()\
20145 {\
20146 \ case ${1} in\
20147 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20148 \ * ) func_dirname_result="${3}" ;;\
20149 \ esac\
20150 \ func_basename_result="${1##*/}"\
20151 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20152 && mv -f "$cfgfile.tmp" "$cfgfile" \
20153 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20154 test 0 -eq $? || _lt_function_replace_fail=:
20155
20156
20157 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20158 func_stripname ()\
20159 {\
20160 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20161 \ # positional parameters, so assign one to ordinary parameter first.\
20162 \ func_stripname_result=${3}\
20163 \ func_stripname_result=${func_stripname_result#"${1}"}\
20164 \ func_stripname_result=${func_stripname_result%"${2}"}\
20165 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20166 && mv -f "$cfgfile.tmp" "$cfgfile" \
20167 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20168 test 0 -eq $? || _lt_function_replace_fail=:
20169
20170
20171 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20172 func_split_long_opt ()\
20173 {\
20174 \ func_split_long_opt_name=${1%%=*}\
20175 \ func_split_long_opt_arg=${1#*=}\
20176 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20177 && mv -f "$cfgfile.tmp" "$cfgfile" \
20178 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20179 test 0 -eq $? || _lt_function_replace_fail=:
20180
20181
20182 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20183 func_split_short_opt ()\
20184 {\
20185 \ func_split_short_opt_arg=${1#??}\
20186 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20187 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20188 && mv -f "$cfgfile.tmp" "$cfgfile" \
20189 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20190 test 0 -eq $? || _lt_function_replace_fail=:
20191
20192
20193 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20194 func_lo2o ()\
20195 {\
20196 \ case ${1} in\
20197 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20198 \ *) func_lo2o_result=${1} ;;\
20199 \ esac\
20200 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20201 && mv -f "$cfgfile.tmp" "$cfgfile" \
20202 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20203 test 0 -eq $? || _lt_function_replace_fail=:
20204
20205
20206 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20207 func_xform ()\
20208 {\
20209 func_xform_result=${1%.*}.lo\
20210 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20211 && mv -f "$cfgfile.tmp" "$cfgfile" \
20212 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20213 test 0 -eq $? || _lt_function_replace_fail=:
20214
20215
20216 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20217 func_arith ()\
20218 {\
20219 func_arith_result=$(( $* ))\
20220 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20221 && mv -f "$cfgfile.tmp" "$cfgfile" \
20222 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20223 test 0 -eq $? || _lt_function_replace_fail=:
20224
20225
20226 sed -e '/^func_len ()$/,/^} # func_len /c\
20227 func_len ()\
20228 {\
20229 func_len_result=${#1}\
20230 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20231 && mv -f "$cfgfile.tmp" "$cfgfile" \
20232 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20233 test 0 -eq $? || _lt_function_replace_fail=:
20234
20235 fi
20236
20237 if test x"$lt_shell_append" = xyes; then
20238 sed -e '/^func_append ()$/,/^} # func_append /c\
20239 func_append ()\
20240 {\
20241 eval "${1}+=\\${2}"\
20242 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20243 && mv -f "$cfgfile.tmp" "$cfgfile" \
20244 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20245 test 0 -eq $? || _lt_function_replace_fail=:
20246
20247
20248 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20249 func_append_quoted ()\
20250 {\
20251 \ func_quote_for_eval "${2}"\
20252 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20253 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20254 && mv -f "$cfgfile.tmp" "$cfgfile" \
20255 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20256 test 0 -eq $? || _lt_function_replace_fail=:
20257
20258
20259 # Save a `func_append' function call where possible by direct use of '+='
20260 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20261 && mv -f "$cfgfile.tmp" "$cfgfile" \
20262 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20263 test 0 -eq $? || _lt_function_replace_fail=:
20264 else
20265 # Save a `func_append' function call even when '+=' is not available
20266 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20267 && mv -f "$cfgfile.tmp" "$cfgfile" \
20268 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20269 test 0 -eq $? || _lt_function_replace_fail=:
20270 fi
20271
20272 if test x"$_lt_function_replace_fail" = x":"; then
20273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20274 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20275 fi
20276
20277
20278 mv -f "$cfgfile" "$ofile" ||
20279 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20280 chmod +x "$ofile"
20281
20282 ;;
20283
20284 esac
20285 done # for ac_tag
20286
20287
20288 as_fn_exit 0
20289 _ACEOF
20290 ac_clean_files=$ac_clean_files_save
20291
20292 test $ac_write_fail = 0 ||
20293 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20294
20295
20296 # configure is writing to config.log, and then calls config.status.
20297 # config.status does its own redirection, appending to config.log.
20298 # Unfortunately, on DOS this fails, as config.log is still kept open
20299 # by configure, so config.status won't be able to write to it; its
20300 # output is simply discarded. So we exec the FD to /dev/null,
20301 # effectively closing config.log, so it can be properly (re)opened and
20302 # appended to by config.status. When coming back to configure, we
20303 # need to make the FD available again.
20304 if test "$no_create" != yes; then
20305 ac_cs_success=:
20306 ac_config_status_args=
20307 test "$silent" = yes &&
20308 ac_config_status_args="$ac_config_status_args --quiet"
20309 exec 5>/dev/null
20310 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20311 exec 5>>config.log
20312 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20313 # would make configure fail if this is the last instruction.
20314 $ac_cs_success || as_fn_exit 1
20315 fi
20316 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20318 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20319 fi
20320
20321