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.68 for xf86-video-ast 0.98.0.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
178
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188 else
189 as_have_required=no
190 fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211 fi
212 fi
213 done;;
214 esac
215 as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
250 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251 $0: about your system, including any error possibly output
252 $0: before this message. Then install a modern shell, or
253 $0: manually run the script under such a shell if you do
254 $0: have one."
255 fi
256 exit 1
257 fi
258 fi
259 fi
260 SHELL=${CONFIG_SHELL-/bin/sh}
261 export SHELL
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
265
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
269 # as_fn_unset VAR
270 # ---------------
271 # Portably unset VAR.
272 as_fn_unset ()
273 {
274 { eval $1=; unset $1;}
275 }
276 as_unset=as_fn_unset
277
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
281 as_fn_set_status ()
282 {
283 return $1
284 } # as_fn_set_status
285
286 # as_fn_exit STATUS
287 # -----------------
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 as_fn_exit ()
290 {
291 set +e
292 as_fn_set_status $1
293 exit $1
294 } # as_fn_exit
295
296 # as_fn_mkdir_p
297 # -------------
298 # Create "$as_dir" as a directory, including parents if necessary.
299 as_fn_mkdir_p ()
300 {
301
302 case $as_dir in #(
303 -*) as_dir=./$as_dir;;
304 esac
305 test -d "$as_dir" || eval $as_mkdir_p || {
306 as_dirs=
307 while :; do
308 case $as_dir in #(
309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310 *) as_qdir=$as_dir;;
311 esac
312 as_dirs="'$as_qdir' $as_dirs"
313 as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315 X"$as_dir" : 'X\(//\)[^/]' \| \
316 X"$as_dir" : 'X\(//\)$' \| \
317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\/\)[^/].*/{
324 s//\1/
325 q
326 }
327 /^X\(\/\/\)$/{
328 s//\1/
329 q
330 }
331 /^X\(\/\).*/{
332 s//\1/
333 q
334 }
335 s/.*/./; q'`
336 test -d "$as_dir" && break
337 done
338 test -z "$as_dirs" || eval "mkdir $as_dirs"
339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342 } # as_fn_mkdir_p
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
348 # implementations.
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350 eval 'as_fn_append ()
351 {
352 eval $1+=\$2
353 }'
354 else
355 as_fn_append ()
356 {
357 eval $1=\$$1\$2
358 }
359 fi # as_fn_append
360
361 # as_fn_arith ARG...
362 # ------------------
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367 eval 'as_fn_arith ()
368 {
369 as_val=$(( $* ))
370 }'
371 else
372 as_fn_arith ()
373 {
374 as_val=`expr "$@" || test $? -eq 1`
375 }
376 fi # as_fn_arith
377
378
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
384 as_fn_error ()
385 {
386 as_status=$1; test $as_status -eq 0 && as_status=1
387 if test "$4"; then
388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 fi
391 $as_echo "$as_me: error: $2" >&2
392 as_fn_exit $as_status
393 } # as_fn_error
394
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
397 as_expr=expr
398 else
399 as_expr=false
400 fi
401
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403 as_basename=basename
404 else
405 as_basename=false
406 fi
407
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409 as_dirname=dirname
410 else
411 as_dirname=false
412 fi
413
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416 X"$0" : 'X\(//\)$' \| \
417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 $as_echo X/"$0" |
419 sed '/^.*\/\([^/][^/]*\)\/*$/{
420 s//\1/
421 q
422 }
423 /^X\/\(\/\/\)$/{
424 s//\1/
425 q
426 }
427 /^X\/\(\/\).*/{
428 s//\1/
429 q
430 }
431 s/.*/./; q'`
432
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441 as_lineno_1=$LINENO as_lineno_1a=$LINENO
442 as_lineno_2=$LINENO as_lineno_2a=$LINENO
443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
446 sed -n '
447 p
448 /[$]LINENO/=
449 ' <$as_myself |
450 sed '
451 s/[$]LINENO.*/&-/
452 t lineno
453 b
454 :lineno
455 N
456 :loop
457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458 t loop
459 s/-\n.*//
460 ' >$as_me.lineno &&
461 chmod +x "$as_me.lineno" ||
462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464 # Don't try to exec as it changes $[0], causing all sort of problems
465 # (the dirname of $[0] is not the place where we might find the
466 # original and so on. Autoconf is especially sensitive to this).
467 . "./$as_me.lineno"
468 # Exit status is that of the last command.
469 exit
470 }
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
474 -n*)
475 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 xy) ECHO_C='\c';;
478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
479 ECHO_T=' ';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
488 else
489 rm -f conf$$.dir
490 mkdir conf$$.dir 2>/dev/null
491 fi
492 if (echo >conf$$.file) 2>/dev/null; then
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s='ln -s'
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -p'.
499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 as_ln_s='cp -p'
501 elif ln conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s=ln
503 else
504 as_ln_s='cp -p'
505 fi
506 else
507 as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p='mkdir -p "$as_dir"'
514 else
515 test -d ./-p && rmdir ./-p
516 as_mkdir_p=false
517 fi
518
519 if test -x / >/dev/null 2>&1; then
520 as_test_x='test -x'
521 else
522 if ls -dL / >/dev/null 2>&1; then
523 as_ls_L_option=L
524 else
525 as_ls_L_option=
526 fi
527 as_test_x='
528 eval sh -c '\''
529 if test -d "$1"; then
530 test -d "$1/.";
531 else
532 case $1 in #(
533 -*)set "./$1";;
534 esac;
535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536 ???[sx]*):;;*)false;;esac;fi
537 '\'' sh
538 '
539 fi
540 as_executable_p=$as_test_x
541
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548 SHELL=${CONFIG_SHELL-/bin/sh}
549
550
551 test -n "$DJDIR" || exec 7<&0 </dev/null
552 exec 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570
571 # Identity of this package.
572 PACKAGE_NAME='xf86-video-ast'
573 PACKAGE_TARNAME='xf86-video-ast'
574 PACKAGE_VERSION='0.98.0'
575 PACKAGE_STRING='xf86-video-ast 0.98.0'
576 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
577 PACKAGE_URL=''
578
579 ac_unique_file="Makefile.am"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='am__EXEEXT_FALSE
617 am__EXEEXT_TRUE
618 LTLIBOBJS
619 LIBOBJS
620 DRIVER_NAME
621 moduledir
622 XAA_FALSE
623 XAA_TRUE
624 XSERVER_LIBPCIACCESS_FALSE
625 XSERVER_LIBPCIACCESS_TRUE
626 PCIACCESS_LIBS
627 PCIACCESS_CFLAGS
628 XORG_LIBS
629 XORG_CFLAGS
630 OTOOL64
631 OTOOL
632 LIPO
633 NMEDIT
634 DSYMUTIL
635 MANIFEST_TOOL
636 RANLIB
637 ac_ct_AR
638 AR
639 DLLTOOL
640 OBJDUMP
641 LN_S
642 NM
643 ac_ct_DUMPBIN
644 DUMPBIN
645 LD
646 FGREP
647 LIBTOOL
648 AM_BACKSLASH
649 AM_DEFAULT_VERBOSITY
650 MAN_SUBSTS
651 XORG_MAN_PAGE
652 ADMIN_MAN_DIR
653 DRIVER_MAN_DIR
654 MISC_MAN_DIR
655 FILE_MAN_DIR
656 LIB_MAN_DIR
657 APP_MAN_DIR
658 ADMIN_MAN_SUFFIX
659 DRIVER_MAN_SUFFIX
660 MISC_MAN_SUFFIX
661 FILE_MAN_SUFFIX
662 LIB_MAN_SUFFIX
663 APP_MAN_SUFFIX
664 SED
665 host_os
666 host_vendor
667 host_cpu
668 host
669 build_os
670 build_vendor
671 build_cpu
672 build
673 INSTALL_CMD
674 PKG_CONFIG_LIBDIR
675 PKG_CONFIG_PATH
676 PKG_CONFIG
677 CHANGELOG_CMD
678 STRICT_CFLAGS
679 CWARNFLAGS
680 BASE_CFLAGS
681 EGREP
682 GREP
683 CPP
684 am__fastdepCC_FALSE
685 am__fastdepCC_TRUE
686 CCDEPMODE
687 AMDEPBACKSLASH
688 AMDEP_FALSE
689 AMDEP_TRUE
690 am__quote
691 am__include
692 DEPDIR
693 OBJEXT
694 EXEEXT
695 ac_ct_CC
696 CPPFLAGS
697 LDFLAGS
698 CFLAGS
699 CC
700 MAINT
701 MAINTAINER_MODE_FALSE
702 MAINTAINER_MODE_TRUE
703 am__untar
704 am__tar
705 AMTAR
706 am__leading_dot
707 SET_MAKE
708 AWK
709 mkdir_p
710 MKDIR_P
711 INSTALL_STRIP_PROGRAM
712 STRIP
713 install_sh
714 MAKEINFO
715 AUTOHEADER
716 AUTOMAKE
717 AUTOCONF
718 ACLOCAL
719 VERSION
720 PACKAGE
721 CYGPATH_W
722 am__isrc
723 INSTALL_DATA
724 INSTALL_SCRIPT
725 INSTALL_PROGRAM
726 target_alias
727 host_alias
728 build_alias
729 LIBS
730 ECHO_T
731 ECHO_N
732 ECHO_C
733 DEFS
734 mandir
735 localedir
736 libdir
737 psdir
738 pdfdir
739 dvidir
740 htmldir
741 infodir
742 docdir
743 oldincludedir
744 includedir
745 localstatedir
746 sharedstatedir
747 sysconfdir
748 datadir
749 datarootdir
750 libexecdir
751 sbindir
752 bindir
753 program_transform_name
754 prefix
755 exec_prefix
756 PACKAGE_URL
757 PACKAGE_BUGREPORT
758 PACKAGE_STRING
759 PACKAGE_VERSION
760 PACKAGE_TARNAME
761 PACKAGE_NAME
762 PATH_SEPARATOR
763 SHELL'
764 ac_subst_files=''
765 ac_user_opts='
766 enable_option_checking
767 enable_maintainer_mode
768 enable_dependency_tracking
769 enable_selective_werror
770 enable_strict_compilation
771 enable_silent_rules
772 enable_static
773 enable_shared
774 with_pic
775 enable_fast_install
776 with_gnu_ld
777 with_sysroot
778 enable_libtool_lock
779 with_xorg_module_dir
780 enable_xaa
781 '
782 ac_precious_vars='build_alias
783 host_alias
784 target_alias
785 CC
786 CFLAGS
787 LDFLAGS
788 LIBS
789 CPPFLAGS
790 CPP
791 PKG_CONFIG
792 PKG_CONFIG_PATH
793 PKG_CONFIG_LIBDIR
794 XORG_CFLAGS
795 XORG_LIBS
796 PCIACCESS_CFLAGS
797 PCIACCESS_LIBS'
798
799
800 # Initialize some variables set by options.
801 ac_init_help=
802 ac_init_version=false
803 ac_unrecognized_opts=
804 ac_unrecognized_sep=
805 # The variables have the same names as the options, with
806 # dashes changed to underlines.
807 cache_file=/dev/null
808 exec_prefix=NONE
809 no_create=
810 no_recursion=
811 prefix=NONE
812 program_prefix=NONE
813 program_suffix=NONE
814 program_transform_name=s,x,x,
815 silent=
816 site=
817 srcdir=
818 verbose=
819 x_includes=NONE
820 x_libraries=NONE
821
822 # Installation directory options.
823 # These are left unexpanded so users can "make install exec_prefix=/foo"
824 # and all the variables that are supposed to be based on exec_prefix
825 # by default will actually change.
826 # Use braces instead of parens because sh, perl, etc. also accept them.
827 # (The list follows the same order as the GNU Coding Standards.)
828 bindir='${exec_prefix}/bin'
829 sbindir='${exec_prefix}/sbin'
830 libexecdir='${exec_prefix}/libexec'
831 datarootdir='${prefix}/share'
832 datadir='${datarootdir}'
833 sysconfdir='${prefix}/etc'
834 sharedstatedir='${prefix}/com'
835 localstatedir='${prefix}/var'
836 includedir='${prefix}/include'
837 oldincludedir='/usr/include'
838 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
839 infodir='${datarootdir}/info'
840 htmldir='${docdir}'
841 dvidir='${docdir}'
842 pdfdir='${docdir}'
843 psdir='${docdir}'
844 libdir='${exec_prefix}/lib'
845 localedir='${datarootdir}/locale'
846 mandir='${datarootdir}/man'
847
848 ac_prev=
849 ac_dashdash=
850 for ac_option
851 do
852 # If the previous option needs an argument, assign it.
853 if test -n "$ac_prev"; then
854 eval $ac_prev=\$ac_option
855 ac_prev=
856 continue
857 fi
858
859 case $ac_option in
860 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
861 *=) ac_optarg= ;;
862 *) ac_optarg=yes ;;
863 esac
864
865 # Accept the important Cygnus configure options, so we can diagnose typos.
866
867 case $ac_dashdash$ac_option in
868 --)
869 ac_dashdash=yes ;;
870
871 -bindir | --bindir | --bindi | --bind | --bin | --bi)
872 ac_prev=bindir ;;
873 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
874 bindir=$ac_optarg ;;
875
876 -build | --build | --buil | --bui | --bu)
877 ac_prev=build_alias ;;
878 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
879 build_alias=$ac_optarg ;;
880
881 -cache-file | --cache-file | --cache-fil | --cache-fi \
882 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
883 ac_prev=cache_file ;;
884 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
885 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
886 cache_file=$ac_optarg ;;
887
888 --config-cache | -C)
889 cache_file=config.cache ;;
890
891 -datadir | --datadir | --datadi | --datad)
892 ac_prev=datadir ;;
893 -datadir=* | --datadir=* | --datadi=* | --datad=*)
894 datadir=$ac_optarg ;;
895
896 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
897 | --dataroo | --dataro | --datar)
898 ac_prev=datarootdir ;;
899 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
900 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
901 datarootdir=$ac_optarg ;;
902
903 -disable-* | --disable-*)
904 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
905 # Reject names that are not valid shell variable names.
906 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
907 as_fn_error $? "invalid feature name: $ac_useropt"
908 ac_useropt_orig=$ac_useropt
909 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
910 case $ac_user_opts in
911 *"
912 "enable_$ac_useropt"
913 "*) ;;
914 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
915 ac_unrecognized_sep=', ';;
916 esac
917 eval enable_$ac_useropt=no ;;
918
919 -docdir | --docdir | --docdi | --doc | --do)
920 ac_prev=docdir ;;
921 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
922 docdir=$ac_optarg ;;
923
924 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
925 ac_prev=dvidir ;;
926 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
927 dvidir=$ac_optarg ;;
928
929 -enable-* | --enable-*)
930 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
931 # Reject names that are not valid shell variable names.
932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
933 as_fn_error $? "invalid feature name: $ac_useropt"
934 ac_useropt_orig=$ac_useropt
935 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
936 case $ac_user_opts in
937 *"
938 "enable_$ac_useropt"
939 "*) ;;
940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
941 ac_unrecognized_sep=', ';;
942 esac
943 eval enable_$ac_useropt=\$ac_optarg ;;
944
945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947 | --exec | --exe | --ex)
948 ac_prev=exec_prefix ;;
949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951 | --exec=* | --exe=* | --ex=*)
952 exec_prefix=$ac_optarg ;;
953
954 -gas | --gas | --ga | --g)
955 # Obsolete; use --with-gas.
956 with_gas=yes ;;
957
958 -help | --help | --hel | --he | -h)
959 ac_init_help=long ;;
960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961 ac_init_help=recursive ;;
962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963 ac_init_help=short ;;
964
965 -host | --host | --hos | --ho)
966 ac_prev=host_alias ;;
967 -host=* | --host=* | --hos=* | --ho=*)
968 host_alias=$ac_optarg ;;
969
970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971 ac_prev=htmldir ;;
972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973 | --ht=*)
974 htmldir=$ac_optarg ;;
975
976 -includedir | --includedir | --includedi | --included | --include \
977 | --includ | --inclu | --incl | --inc)
978 ac_prev=includedir ;;
979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980 | --includ=* | --inclu=* | --incl=* | --inc=*)
981 includedir=$ac_optarg ;;
982
983 -infodir | --infodir | --infodi | --infod | --info | --inf)
984 ac_prev=infodir ;;
985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986 infodir=$ac_optarg ;;
987
988 -libdir | --libdir | --libdi | --libd)
989 ac_prev=libdir ;;
990 -libdir=* | --libdir=* | --libdi=* | --libd=*)
991 libdir=$ac_optarg ;;
992
993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994 | --libexe | --libex | --libe)
995 ac_prev=libexecdir ;;
996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997 | --libexe=* | --libex=* | --libe=*)
998 libexecdir=$ac_optarg ;;
999
1000 -localedir | --localedir | --localedi | --localed | --locale)
1001 ac_prev=localedir ;;
1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003 localedir=$ac_optarg ;;
1004
1005 -localstatedir | --localstatedir | --localstatedi | --localstated \
1006 | --localstate | --localstat | --localsta | --localst | --locals)
1007 ac_prev=localstatedir ;;
1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1010 localstatedir=$ac_optarg ;;
1011
1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013 ac_prev=mandir ;;
1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015 mandir=$ac_optarg ;;
1016
1017 -nfp | --nfp | --nf)
1018 # Obsolete; use --without-fp.
1019 with_fp=no ;;
1020
1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022 | --no-cr | --no-c | -n)
1023 no_create=yes ;;
1024
1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1027 no_recursion=yes ;;
1028
1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031 | --oldin | --oldi | --old | --ol | --o)
1032 ac_prev=oldincludedir ;;
1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036 oldincludedir=$ac_optarg ;;
1037
1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039 ac_prev=prefix ;;
1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041 prefix=$ac_optarg ;;
1042
1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044 | --program-pre | --program-pr | --program-p)
1045 ac_prev=program_prefix ;;
1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048 program_prefix=$ac_optarg ;;
1049
1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051 | --program-suf | --program-su | --program-s)
1052 ac_prev=program_suffix ;;
1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055 program_suffix=$ac_optarg ;;
1056
1057 -program-transform-name | --program-transform-name \
1058 | --program-transform-nam | --program-transform-na \
1059 | --program-transform-n | --program-transform- \
1060 | --program-transform | --program-transfor \
1061 | --program-transfo | --program-transf \
1062 | --program-trans | --program-tran \
1063 | --progr-tra | --program-tr | --program-t)
1064 ac_prev=program_transform_name ;;
1065 -program-transform-name=* | --program-transform-name=* \
1066 | --program-transform-nam=* | --program-transform-na=* \
1067 | --program-transform-n=* | --program-transform-=* \
1068 | --program-transform=* | --program-transfor=* \
1069 | --program-transfo=* | --program-transf=* \
1070 | --program-trans=* | --program-tran=* \
1071 | --progr-tra=* | --program-tr=* | --program-t=*)
1072 program_transform_name=$ac_optarg ;;
1073
1074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075 ac_prev=pdfdir ;;
1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077 pdfdir=$ac_optarg ;;
1078
1079 -psdir | --psdir | --psdi | --psd | --ps)
1080 ac_prev=psdir ;;
1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1082 psdir=$ac_optarg ;;
1083
1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085 | -silent | --silent | --silen | --sile | --sil)
1086 silent=yes ;;
1087
1088 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1089 ac_prev=sbindir ;;
1090 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1091 | --sbi=* | --sb=*)
1092 sbindir=$ac_optarg ;;
1093
1094 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1095 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1096 | --sharedst | --shareds | --shared | --share | --shar \
1097 | --sha | --sh)
1098 ac_prev=sharedstatedir ;;
1099 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1100 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1101 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1102 | --sha=* | --sh=*)
1103 sharedstatedir=$ac_optarg ;;
1104
1105 -site | --site | --sit)
1106 ac_prev=site ;;
1107 -site=* | --site=* | --sit=*)
1108 site=$ac_optarg ;;
1109
1110 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1111 ac_prev=srcdir ;;
1112 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1113 srcdir=$ac_optarg ;;
1114
1115 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1116 | --syscon | --sysco | --sysc | --sys | --sy)
1117 ac_prev=sysconfdir ;;
1118 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1119 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1120 sysconfdir=$ac_optarg ;;
1121
1122 -target | --target | --targe | --targ | --tar | --ta | --t)
1123 ac_prev=target_alias ;;
1124 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1125 target_alias=$ac_optarg ;;
1126
1127 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1128 verbose=yes ;;
1129
1130 -version | --version | --versio | --versi | --vers | -V)
1131 ac_init_version=: ;;
1132
1133 -with-* | --with-*)
1134 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1135 # Reject names that are not valid shell variable names.
1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137 as_fn_error $? "invalid package name: $ac_useropt"
1138 ac_useropt_orig=$ac_useropt
1139 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140 case $ac_user_opts in
1141 *"
1142 "with_$ac_useropt"
1143 "*) ;;
1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1145 ac_unrecognized_sep=', ';;
1146 esac
1147 eval with_$ac_useropt=\$ac_optarg ;;
1148
1149 -without-* | --without-*)
1150 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153 as_fn_error $? "invalid package name: $ac_useropt"
1154 ac_useropt_orig=$ac_useropt
1155 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 case $ac_user_opts in
1157 *"
1158 "with_$ac_useropt"
1159 "*) ;;
1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1161 ac_unrecognized_sep=', ';;
1162 esac
1163 eval with_$ac_useropt=no ;;
1164
1165 --x)
1166 # Obsolete; use --with-x.
1167 with_x=yes ;;
1168
1169 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1170 | --x-incl | --x-inc | --x-in | --x-i)
1171 ac_prev=x_includes ;;
1172 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1173 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1174 x_includes=$ac_optarg ;;
1175
1176 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1177 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1178 ac_prev=x_libraries ;;
1179 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1180 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1181 x_libraries=$ac_optarg ;;
1182
1183 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1184 Try \`$0 --help' for more information"
1185 ;;
1186
1187 *=*)
1188 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1189 # Reject names that are not valid shell variable names.
1190 case $ac_envvar in #(
1191 '' | [0-9]* | *[!_$as_cr_alnum]* )
1192 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1193 esac
1194 eval $ac_envvar=\$ac_optarg
1195 export $ac_envvar ;;
1196
1197 *)
1198 # FIXME: should be removed in autoconf 3.0.
1199 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1200 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1202 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1203 ;;
1204
1205 esac
1206 done
1207
1208 if test -n "$ac_prev"; then
1209 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1210 as_fn_error $? "missing argument to $ac_option"
1211 fi
1212
1213 if test -n "$ac_unrecognized_opts"; then
1214 case $enable_option_checking in
1215 no) ;;
1216 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1217 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1218 esac
1219 fi
1220
1221 # Check all directory arguments for consistency.
1222 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1223 datadir sysconfdir sharedstatedir localstatedir includedir \
1224 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1225 libdir localedir mandir
1226 do
1227 eval ac_val=\$$ac_var
1228 # Remove trailing slashes.
1229 case $ac_val in
1230 */ )
1231 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1232 eval $ac_var=\$ac_val;;
1233 esac
1234 # Be sure to have absolute directory names.
1235 case $ac_val in
1236 [\\/$]* | ?:[\\/]* ) continue;;
1237 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1238 esac
1239 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1240 done
1241
1242 # There might be people who depend on the old broken behavior: `$host'
1243 # used to hold the argument of --host etc.
1244 # FIXME: To remove some day.
1245 build=$build_alias
1246 host=$host_alias
1247 target=$target_alias
1248
1249 # FIXME: To remove some day.
1250 if test "x$host_alias" != x; then
1251 if test "x$build_alias" = x; then
1252 cross_compiling=maybe
1253 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1254 If a cross compiler is detected then cross compile mode will be used" >&2
1255 elif test "x$build_alias" != "x$host_alias"; then
1256 cross_compiling=yes
1257 fi
1258 fi
1259
1260 ac_tool_prefix=
1261 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1262
1263 test "$silent" = yes && exec 6>/dev/null
1264
1265
1266 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1267 ac_ls_di=`ls -di .` &&
1268 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1269 as_fn_error $? "working directory cannot be determined"
1270 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1271 as_fn_error $? "pwd does not report name of working directory"
1272
1273
1274 # Find the source files, if location was not specified.
1275 if test -z "$srcdir"; then
1276 ac_srcdir_defaulted=yes
1277 # Try the directory containing this script, then the parent directory.
1278 ac_confdir=`$as_dirname -- "$as_myself" ||
1279 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1280 X"$as_myself" : 'X\(//\)[^/]' \| \
1281 X"$as_myself" : 'X\(//\)$' \| \
1282 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1283 $as_echo X"$as_myself" |
1284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1285 s//\1/
1286 q
1287 }
1288 /^X\(\/\/\)[^/].*/{
1289 s//\1/
1290 q
1291 }
1292 /^X\(\/\/\)$/{
1293 s//\1/
1294 q
1295 }
1296 /^X\(\/\).*/{
1297 s//\1/
1298 q
1299 }
1300 s/.*/./; q'`
1301 srcdir=$ac_confdir
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303 srcdir=..
1304 fi
1305 else
1306 ac_srcdir_defaulted=no
1307 fi
1308 if test ! -r "$srcdir/$ac_unique_file"; then
1309 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1310 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1311 fi
1312 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1313 ac_abs_confdir=`(
1314 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1315 pwd)`
1316 # When building in place, set srcdir=.
1317 if test "$ac_abs_confdir" = "$ac_pwd"; then
1318 srcdir=.
1319 fi
1320 # Remove unnecessary trailing slashes from srcdir.
1321 # Double slashes in file names in object file debugging info
1322 # mess up M-x gdb in Emacs.
1323 case $srcdir in
1324 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1325 esac
1326 for ac_var in $ac_precious_vars; do
1327 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1328 eval ac_env_${ac_var}_value=\$${ac_var}
1329 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1330 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1331 done
1332
1333 #
1334 # Report the --help message.
1335 #
1336 if test "$ac_init_help" = "long"; then
1337 # Omit some internal or obsolete options to make the list less imposing.
1338 # This message is too long to be a string in the A/UX 3.1 sh.
1339 cat <<_ACEOF
1340 \`configure' configures xf86-video-ast 0.98.0 to adapt to many kinds of systems.
1341
1342 Usage: $0 [OPTION]... [VAR=VALUE]...
1343
1344 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1345 VAR=VALUE. See below for descriptions of some of the useful variables.
1346
1347 Defaults for the options are specified in brackets.
1348
1349 Configuration:
1350 -h, --help display this help and exit
1351 --help=short display options specific to this package
1352 --help=recursive display the short help of all the included packages
1353 -V, --version display version information and exit
1354 -q, --quiet, --silent do not print \`checking ...' messages
1355 --cache-file=FILE cache test results in FILE [disabled]
1356 -C, --config-cache alias for \`--cache-file=config.cache'
1357 -n, --no-create do not create output files
1358 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1359
1360 Installation directories:
1361 --prefix=PREFIX install architecture-independent files in PREFIX
1362 [$ac_default_prefix]
1363 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1364 [PREFIX]
1365
1366 By default, \`make install' will install all the files in
1367 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1368 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1369 for instance \`--prefix=\$HOME'.
1370
1371 For better control, use the options below.
1372
1373 Fine tuning of the installation directories:
1374 --bindir=DIR user executables [EPREFIX/bin]
1375 --sbindir=DIR system admin executables [EPREFIX/sbin]
1376 --libexecdir=DIR program executables [EPREFIX/libexec]
1377 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1378 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1379 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1380 --libdir=DIR object code libraries [EPREFIX/lib]
1381 --includedir=DIR C header files [PREFIX/include]
1382 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1383 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1384 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1385 --infodir=DIR info documentation [DATAROOTDIR/info]
1386 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1387 --mandir=DIR man documentation [DATAROOTDIR/man]
1388 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-ast]
1389 --htmldir=DIR html documentation [DOCDIR]
1390 --dvidir=DIR dvi documentation [DOCDIR]
1391 --pdfdir=DIR pdf documentation [DOCDIR]
1392 --psdir=DIR ps documentation [DOCDIR]
1393 _ACEOF
1394
1395 cat <<\_ACEOF
1396
1397 Program names:
1398 --program-prefix=PREFIX prepend PREFIX to installed program names
1399 --program-suffix=SUFFIX append SUFFIX to installed program names
1400 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1401
1402 System types:
1403 --build=BUILD configure for building on BUILD [guessed]
1404 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1405 _ACEOF
1406 fi
1407
1408 if test -n "$ac_init_help"; then
1409 case $ac_init_help in
1410 short | recursive ) echo "Configuration of xf86-video-ast 0.98.0:";;
1411 esac
1412 cat <<\_ACEOF
1413
1414 Optional Features:
1415 --disable-option-checking ignore unrecognized --enable/--with options
1416 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1417 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1418 --enable-maintainer-mode enable make rules and dependencies not useful
1419 (and sometimes confusing) to the casual installer
1420 --disable-dependency-tracking speeds up one-time build
1421 --enable-dependency-tracking do not reject slow dependency extractors
1422 --disable-selective-werror
1423 Turn off selective compiler errors. (default:
1424 enabled)
1425 --enable-strict-compilation
1426 Enable all warnings from compiler and make them
1427 errors (default: disabled)
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-static[=PKGS] build static libraries [default=no]
1431 --enable-shared[=PKGS] build shared libraries [default=yes]
1432 --enable-fast-install[=PKGS]
1433 optimize for fast installation [default=yes]
1434 --disable-libtool-lock avoid locking (might break parallel builds)
1435 --enable-xaa Enable legacy X Acceleration Architecture (XAA)
1436 [default=auto]
1437
1438 Optional Packages:
1439 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1440 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1441 --with-pic try to use only PIC/non-PIC objects [default=use
1442 both]
1443 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1444 --with-sysroot=DIR Search for dependent libraries within DIR
1445 (or the compiler's sysroot if not specified).
1446 --with-xorg-module-dir=DIR
1447 Default xorg module directory
1448 [[default=$libdir/xorg/modules]]
1449
1450 Some influential environment variables:
1451 CC C compiler command
1452 CFLAGS C compiler flags
1453 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1454 nonstandard directory <lib dir>
1455 LIBS libraries to pass to the linker, e.g. -l<library>
1456 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1457 you have headers in a nonstandard directory <include dir>
1458 CPP C preprocessor
1459 PKG_CONFIG path to pkg-config utility
1460 PKG_CONFIG_PATH
1461 directories to add to pkg-config's search path
1462 PKG_CONFIG_LIBDIR
1463 path overriding pkg-config's built-in search path
1464 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1465 XORG_LIBS linker flags for XORG, overriding pkg-config
1466 PCIACCESS_CFLAGS
1467 C compiler flags for PCIACCESS, overriding pkg-config
1468 PCIACCESS_LIBS
1469 linker flags for PCIACCESS, overriding pkg-config
1470
1471 Use these variables to override the choices made by `configure' or to help
1472 it to find libraries and programs with nonstandard names/locations.
1473
1474 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1475 _ACEOF
1476 ac_status=$?
1477 fi
1478
1479 if test "$ac_init_help" = "recursive"; then
1480 # If there are subdirs, report their specific --help.
1481 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1482 test -d "$ac_dir" ||
1483 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1484 continue
1485 ac_builddir=.
1486
1487 case "$ac_dir" in
1488 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 *)
1490 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1491 # A ".." for each directory in $ac_dir_suffix.
1492 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1493 case $ac_top_builddir_sub in
1494 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1496 esac ;;
1497 esac
1498 ac_abs_top_builddir=$ac_pwd
1499 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1500 # for backward compatibility:
1501 ac_top_builddir=$ac_top_build_prefix
1502
1503 case $srcdir in
1504 .) # We are building in place.
1505 ac_srcdir=.
1506 ac_top_srcdir=$ac_top_builddir_sub
1507 ac_abs_top_srcdir=$ac_pwd ;;
1508 [\\/]* | ?:[\\/]* ) # Absolute name.
1509 ac_srcdir=$srcdir$ac_dir_suffix;
1510 ac_top_srcdir=$srcdir
1511 ac_abs_top_srcdir=$srcdir ;;
1512 *) # Relative name.
1513 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1514 ac_top_srcdir=$ac_top_build_prefix$srcdir
1515 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1516 esac
1517 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1518
1519 cd "$ac_dir" || { ac_status=$?; continue; }
1520 # Check for guested configure.
1521 if test -f "$ac_srcdir/configure.gnu"; then
1522 echo &&
1523 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1524 elif test -f "$ac_srcdir/configure"; then
1525 echo &&
1526 $SHELL "$ac_srcdir/configure" --help=recursive
1527 else
1528 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529 fi || ac_status=$?
1530 cd "$ac_pwd" || { ac_status=$?; break; }
1531 done
1532 fi
1533
1534 test -n "$ac_init_help" && exit $ac_status
1535 if $ac_init_version; then
1536 cat <<\_ACEOF
1537 xf86-video-ast configure 0.98.0
1538 generated by GNU Autoconf 2.68
1539
1540 Copyright (C) 2010 Free Software Foundation, Inc.
1541 This configure script is free software; the Free Software Foundation
1542 gives unlimited permission to copy, distribute and modify it.
1543 _ACEOF
1544 exit
1545 fi
1546
1547 ## ------------------------ ##
1548 ## Autoconf initialization. ##
1549 ## ------------------------ ##
1550
1551 # ac_fn_c_try_compile LINENO
1552 # --------------------------
1553 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1554 ac_fn_c_try_compile ()
1555 {
1556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1557 rm -f conftest.$ac_objext
1558 if { { ac_try="$ac_compile"
1559 case "(($ac_try" in
1560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561 *) ac_try_echo=$ac_try;;
1562 esac
1563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564 $as_echo "$ac_try_echo"; } >&5
1565 (eval "$ac_compile") 2>conftest.err
1566 ac_status=$?
1567 if test -s conftest.err; then
1568 grep -v '^ *+' conftest.err >conftest.er1
1569 cat conftest.er1 >&5
1570 mv -f conftest.er1 conftest.err
1571 fi
1572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1573 test $ac_status = 0; } && {
1574 test -z "$ac_c_werror_flag" ||
1575 test ! -s conftest.err
1576 } && test -s conftest.$ac_objext; then :
1577 ac_retval=0
1578 else
1579 $as_echo "$as_me: failed program was:" >&5
1580 sed 's/^/| /' conftest.$ac_ext >&5
1581
1582 ac_retval=1
1583 fi
1584 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1585 as_fn_set_status $ac_retval
1586
1587 } # ac_fn_c_try_compile
1588
1589 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1590 # ---------------------------------------------
1591 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1592 # accordingly.
1593 ac_fn_c_check_decl ()
1594 {
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 as_decl_name=`echo $2|sed 's/ *(.*//'`
1597 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1599 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1600 if eval \${$3+:} false; then :
1601 $as_echo_n "(cached) " >&6
1602 else
1603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1604 /* end confdefs.h. */
1605 $4
1606 int
1607 main ()
1608 {
1609 #ifndef $as_decl_name
1610 #ifdef __cplusplus
1611 (void) $as_decl_use;
1612 #else
1613 (void) $as_decl_name;
1614 #endif
1615 #endif
1616
1617 ;
1618 return 0;
1619 }
1620 _ACEOF
1621 if ac_fn_c_try_compile "$LINENO"; then :
1622 eval "$3=yes"
1623 else
1624 eval "$3=no"
1625 fi
1626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1627 fi
1628 eval ac_res=\$$3
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1630 $as_echo "$ac_res" >&6; }
1631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632
1633 } # ac_fn_c_check_decl
1634
1635 # ac_fn_c_try_cpp LINENO
1636 # ----------------------
1637 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1638 ac_fn_c_try_cpp ()
1639 {
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 if { { ac_try="$ac_cpp conftest.$ac_ext"
1642 case "(($ac_try" in
1643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644 *) ac_try_echo=$ac_try;;
1645 esac
1646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647 $as_echo "$ac_try_echo"; } >&5
1648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1649 ac_status=$?
1650 if test -s conftest.err; then
1651 grep -v '^ *+' conftest.err >conftest.er1
1652 cat conftest.er1 >&5
1653 mv -f conftest.er1 conftest.err
1654 fi
1655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656 test $ac_status = 0; } > conftest.i && {
1657 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1658 test ! -s conftest.err
1659 }; then :
1660 ac_retval=0
1661 else
1662 $as_echo "$as_me: failed program was:" >&5
1663 sed 's/^/| /' conftest.$ac_ext >&5
1664
1665 ac_retval=1
1666 fi
1667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1668 as_fn_set_status $ac_retval
1669
1670 } # ac_fn_c_try_cpp
1671
1672 # ac_fn_c_try_run LINENO
1673 # ----------------------
1674 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1675 # that executables *can* be run.
1676 ac_fn_c_try_run ()
1677 {
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 if { { ac_try="$ac_link"
1680 case "(($ac_try" in
1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682 *) ac_try_echo=$ac_try;;
1683 esac
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 $as_echo "$ac_try_echo"; } >&5
1686 (eval "$ac_link") 2>&5
1687 ac_status=$?
1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1690 { { case "(($ac_try" in
1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692 *) ac_try_echo=$ac_try;;
1693 esac
1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695 $as_echo "$ac_try_echo"; } >&5
1696 (eval "$ac_try") 2>&5
1697 ac_status=$?
1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699 test $ac_status = 0; }; }; then :
1700 ac_retval=0
1701 else
1702 $as_echo "$as_me: program exited with status $ac_status" >&5
1703 $as_echo "$as_me: failed program was:" >&5
1704 sed 's/^/| /' conftest.$ac_ext >&5
1705
1706 ac_retval=$ac_status
1707 fi
1708 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710 as_fn_set_status $ac_retval
1711
1712 } # ac_fn_c_try_run
1713
1714 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1715 # -------------------------------------------------------
1716 # Tests whether HEADER exists and can be compiled using the include files in
1717 # INCLUDES, setting the cache variable VAR accordingly.
1718 ac_fn_c_check_header_compile ()
1719 {
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1722 $as_echo_n "checking for $2... " >&6; }
1723 if eval \${$3+:} false; then :
1724 $as_echo_n "(cached) " >&6
1725 else
1726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1727 /* end confdefs.h. */
1728 $4
1729 #include <$2>
1730 _ACEOF
1731 if ac_fn_c_try_compile "$LINENO"; then :
1732 eval "$3=yes"
1733 else
1734 eval "$3=no"
1735 fi
1736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1737 fi
1738 eval ac_res=\$$3
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1740 $as_echo "$ac_res" >&6; }
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742
1743 } # ac_fn_c_check_header_compile
1744
1745 # ac_fn_c_try_link LINENO
1746 # -----------------------
1747 # Try to link conftest.$ac_ext, and return whether this succeeded.
1748 ac_fn_c_try_link ()
1749 {
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 rm -f conftest.$ac_objext conftest$ac_exeext
1752 if { { ac_try="$ac_link"
1753 case "(($ac_try" in
1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1756 esac
1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_link") 2>conftest.err
1760 ac_status=$?
1761 if test -s conftest.err; then
1762 grep -v '^ *+' conftest.err >conftest.er1
1763 cat conftest.er1 >&5
1764 mv -f conftest.er1 conftest.err
1765 fi
1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767 test $ac_status = 0; } && {
1768 test -z "$ac_c_werror_flag" ||
1769 test ! -s conftest.err
1770 } && test -s conftest$ac_exeext && {
1771 test "$cross_compiling" = yes ||
1772 $as_test_x conftest$ac_exeext
1773 }; then :
1774 ac_retval=0
1775 else
1776 $as_echo "$as_me: failed program was:" >&5
1777 sed 's/^/| /' conftest.$ac_ext >&5
1778
1779 ac_retval=1
1780 fi
1781 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1782 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1783 # interfere with the next link command; also delete a directory that is
1784 # left behind by Apple's compiler. We do this before executing the actions.
1785 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787 as_fn_set_status $ac_retval
1788
1789 } # ac_fn_c_try_link
1790
1791 # ac_fn_c_check_func LINENO FUNC VAR
1792 # ----------------------------------
1793 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1794 ac_fn_c_check_func ()
1795 {
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798 $as_echo_n "checking for $2... " >&6; }
1799 if eval \${$3+:} false; then :
1800 $as_echo_n "(cached) " >&6
1801 else
1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803 /* end confdefs.h. */
1804 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1806 #define $2 innocuous_$2
1807
1808 /* System header to define __stub macros and hopefully few prototypes,
1809 which can conflict with char $2 (); below.
1810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1811 <limits.h> exists even on freestanding compilers. */
1812
1813 #ifdef __STDC__
1814 # include <limits.h>
1815 #else
1816 # include <assert.h>
1817 #endif
1818
1819 #undef $2
1820
1821 /* Override any GCC internal prototype to avoid an error.
1822 Use char because int might match the return type of a GCC
1823 builtin and then its argument prototype would still apply. */
1824 #ifdef __cplusplus
1825 extern "C"
1826 #endif
1827 char $2 ();
1828 /* The GNU C library defines this for functions which it implements
1829 to always fail with ENOSYS. Some functions are actually named
1830 something starting with __ and the normal name is an alias. */
1831 #if defined __stub_$2 || defined __stub___$2
1832 choke me
1833 #endif
1834
1835 int
1836 main ()
1837 {
1838 return $2 ();
1839 ;
1840 return 0;
1841 }
1842 _ACEOF
1843 if ac_fn_c_try_link "$LINENO"; then :
1844 eval "$3=yes"
1845 else
1846 eval "$3=no"
1847 fi
1848 rm -f core conftest.err conftest.$ac_objext \
1849 conftest$ac_exeext conftest.$ac_ext
1850 fi
1851 eval ac_res=\$$3
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1853 $as_echo "$ac_res" >&6; }
1854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855
1856 } # ac_fn_c_check_func
1857
1858 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1859 # -------------------------------------------------------
1860 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1861 # the include files in INCLUDES and setting the cache variable VAR
1862 # accordingly.
1863 ac_fn_c_check_header_mongrel ()
1864 {
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 if eval \${$3+:} false; then :
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868 $as_echo_n "checking for $2... " >&6; }
1869 if eval \${$3+:} false; then :
1870 $as_echo_n "(cached) " >&6
1871 fi
1872 eval ac_res=\$$3
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1874 $as_echo "$ac_res" >&6; }
1875 else
1876 # Is the header compilable?
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1878 $as_echo_n "checking $2 usability... " >&6; }
1879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880 /* end confdefs.h. */
1881 $4
1882 #include <$2>
1883 _ACEOF
1884 if ac_fn_c_try_compile "$LINENO"; then :
1885 ac_header_compiler=yes
1886 else
1887 ac_header_compiler=no
1888 fi
1889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1891 $as_echo "$ac_header_compiler" >&6; }
1892
1893 # Is the header present?
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1895 $as_echo_n "checking $2 presence... " >&6; }
1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897 /* end confdefs.h. */
1898 #include <$2>
1899 _ACEOF
1900 if ac_fn_c_try_cpp "$LINENO"; then :
1901 ac_header_preproc=yes
1902 else
1903 ac_header_preproc=no
1904 fi
1905 rm -f conftest.err conftest.i conftest.$ac_ext
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1907 $as_echo "$ac_header_preproc" >&6; }
1908
1909 # So? What about this header?
1910 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1911 yes:no: )
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1913 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1915 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1916 ;;
1917 no:yes:* )
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1919 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1921 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1923 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1925 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1927 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1928 ( $as_echo "## ---------------------------------------------------------------------- ##
1929 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1930 ## ---------------------------------------------------------------------- ##"
1931 ) | sed "s/^/$as_me: WARNING: /" >&2
1932 ;;
1933 esac
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935 $as_echo_n "checking for $2... " >&6; }
1936 if eval \${$3+:} false; then :
1937 $as_echo_n "(cached) " >&6
1938 else
1939 eval "$3=\$ac_header_compiler"
1940 fi
1941 eval ac_res=\$$3
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1943 $as_echo "$ac_res" >&6; }
1944 fi
1945 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1946
1947 } # ac_fn_c_check_header_mongrel
1948 cat >config.log <<_ACEOF
1949 This file contains any messages produced by compilers while
1950 running configure, to aid debugging if configure makes a mistake.
1951
1952 It was created by xf86-video-ast $as_me 0.98.0, which was
1953 generated by GNU Autoconf 2.68. Invocation command line was
1954
1955 $ $0 $@
1956
1957 _ACEOF
1958 exec 5>>config.log
1959 {
1960 cat <<_ASUNAME
1961 ## --------- ##
1962 ## Platform. ##
1963 ## --------- ##
1964
1965 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1966 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1967 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1968 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1969 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1970
1971 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1972 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1973
1974 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1975 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1976 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1977 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1978 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1979 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1980 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1981
1982 _ASUNAME
1983
1984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985 for as_dir in $PATH
1986 do
1987 IFS=$as_save_IFS
1988 test -z "$as_dir" && as_dir=.
1989 $as_echo "PATH: $as_dir"
1990 done
1991 IFS=$as_save_IFS
1992
1993 } >&5
1994
1995 cat >&5 <<_ACEOF
1996
1997
1998 ## ----------- ##
1999 ## Core tests. ##
2000 ## ----------- ##
2001
2002 _ACEOF
2003
2004
2005 # Keep a trace of the command line.
2006 # Strip out --no-create and --no-recursion so they do not pile up.
2007 # Strip out --silent because we don't want to record it for future runs.
2008 # Also quote any args containing shell meta-characters.
2009 # Make two passes to allow for proper duplicate-argument suppression.
2010 ac_configure_args=
2011 ac_configure_args0=
2012 ac_configure_args1=
2013 ac_must_keep_next=false
2014 for ac_pass in 1 2
2015 do
2016 for ac_arg
2017 do
2018 case $ac_arg in
2019 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2020 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2021 | -silent | --silent | --silen | --sile | --sil)
2022 continue ;;
2023 *\'*)
2024 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2025 esac
2026 case $ac_pass in
2027 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2028 2)
2029 as_fn_append ac_configure_args1 " '$ac_arg'"
2030 if test $ac_must_keep_next = true; then
2031 ac_must_keep_next=false # Got value, back to normal.
2032 else
2033 case $ac_arg in
2034 *=* | --config-cache | -C | -disable-* | --disable-* \
2035 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2036 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2037 | -with-* | --with-* | -without-* | --without-* | --x)
2038 case "$ac_configure_args0 " in
2039 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2040 esac
2041 ;;
2042 -* ) ac_must_keep_next=true ;;
2043 esac
2044 fi
2045 as_fn_append ac_configure_args " '$ac_arg'"
2046 ;;
2047 esac
2048 done
2049 done
2050 { ac_configure_args0=; unset ac_configure_args0;}
2051 { ac_configure_args1=; unset ac_configure_args1;}
2052
2053 # When interrupted or exit'd, cleanup temporary files, and complete
2054 # config.log. We remove comments because anyway the quotes in there
2055 # would cause problems or look ugly.
2056 # WARNING: Use '\'' to represent an apostrophe within the trap.
2057 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2058 trap 'exit_status=$?
2059 # Save into config.log some information that might help in debugging.
2060 {
2061 echo
2062
2063 $as_echo "## ---------------- ##
2064 ## Cache variables. ##
2065 ## ---------------- ##"
2066 echo
2067 # The following way of writing the cache mishandles newlines in values,
2068 (
2069 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2070 eval ac_val=\$$ac_var
2071 case $ac_val in #(
2072 *${as_nl}*)
2073 case $ac_var in #(
2074 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2075 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2076 esac
2077 case $ac_var in #(
2078 _ | IFS | as_nl) ;; #(
2079 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2080 *) { eval $ac_var=; unset $ac_var;} ;;
2081 esac ;;
2082 esac
2083 done
2084 (set) 2>&1 |
2085 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2086 *${as_nl}ac_space=\ *)
2087 sed -n \
2088 "s/'\''/'\''\\\\'\'''\''/g;
2089 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2090 ;; #(
2091 *)
2092 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2093 ;;
2094 esac |
2095 sort
2096 )
2097 echo
2098
2099 $as_echo "## ----------------- ##
2100 ## Output variables. ##
2101 ## ----------------- ##"
2102 echo
2103 for ac_var in $ac_subst_vars
2104 do
2105 eval ac_val=\$$ac_var
2106 case $ac_val in
2107 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2108 esac
2109 $as_echo "$ac_var='\''$ac_val'\''"
2110 done | sort
2111 echo
2112
2113 if test -n "$ac_subst_files"; then
2114 $as_echo "## ------------------- ##
2115 ## File substitutions. ##
2116 ## ------------------- ##"
2117 echo
2118 for ac_var in $ac_subst_files
2119 do
2120 eval ac_val=\$$ac_var
2121 case $ac_val in
2122 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2123 esac
2124 $as_echo "$ac_var='\''$ac_val'\''"
2125 done | sort
2126 echo
2127 fi
2128
2129 if test -s confdefs.h; then
2130 $as_echo "## ----------- ##
2131 ## confdefs.h. ##
2132 ## ----------- ##"
2133 echo
2134 cat confdefs.h
2135 echo
2136 fi
2137 test "$ac_signal" != 0 &&
2138 $as_echo "$as_me: caught signal $ac_signal"
2139 $as_echo "$as_me: exit $exit_status"
2140 } >&5
2141 rm -f core *.core core.conftest.* &&
2142 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2143 exit $exit_status
2144 ' 0
2145 for ac_signal in 1 2 13 15; do
2146 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2147 done
2148 ac_signal=0
2149
2150 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2151 rm -f -r conftest* confdefs.h
2152
2153 $as_echo "/* confdefs.h */" > confdefs.h
2154
2155 # Predefined preprocessor variables.
2156
2157 cat >>confdefs.h <<_ACEOF
2158 #define PACKAGE_NAME "$PACKAGE_NAME"
2159 _ACEOF
2160
2161 cat >>confdefs.h <<_ACEOF
2162 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2163 _ACEOF
2164
2165 cat >>confdefs.h <<_ACEOF
2166 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2167 _ACEOF
2168
2169 cat >>confdefs.h <<_ACEOF
2170 #define PACKAGE_STRING "$PACKAGE_STRING"
2171 _ACEOF
2172
2173 cat >>confdefs.h <<_ACEOF
2174 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2175 _ACEOF
2176
2177 cat >>confdefs.h <<_ACEOF
2178 #define PACKAGE_URL "$PACKAGE_URL"
2179 _ACEOF
2180
2181
2182 # Let the site file select an alternate cache file if it wants to.
2183 # Prefer an explicitly selected file to automatically selected ones.
2184 ac_site_file1=NONE
2185 ac_site_file2=NONE
2186 if test -n "$CONFIG_SITE"; then
2187 # We do not want a PATH search for config.site.
2188 case $CONFIG_SITE in #((
2189 -*) ac_site_file1=./$CONFIG_SITE;;
2190 */*) ac_site_file1=$CONFIG_SITE;;
2191 *) ac_site_file1=./$CONFIG_SITE;;
2192 esac
2193 elif test "x$prefix" != xNONE; then
2194 ac_site_file1=$prefix/share/config.site
2195 ac_site_file2=$prefix/etc/config.site
2196 else
2197 ac_site_file1=$ac_default_prefix/share/config.site
2198 ac_site_file2=$ac_default_prefix/etc/config.site
2199 fi
2200 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2201 do
2202 test "x$ac_site_file" = xNONE && continue
2203 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2205 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2206 sed 's/^/| /' "$ac_site_file" >&5
2207 . "$ac_site_file" \
2208 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2210 as_fn_error $? "failed to load site script $ac_site_file
2211 See \`config.log' for more details" "$LINENO" 5; }
2212 fi
2213 done
2214
2215 if test -r "$cache_file"; then
2216 # Some versions of bash will fail to source /dev/null (special files
2217 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2218 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2220 $as_echo "$as_me: loading cache $cache_file" >&6;}
2221 case $cache_file in
2222 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2223 *) . "./$cache_file";;
2224 esac
2225 fi
2226 else
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2228 $as_echo "$as_me: creating cache $cache_file" >&6;}
2229 >$cache_file
2230 fi
2231
2232 # Check that the precious variables saved in the cache have kept the same
2233 # value.
2234 ac_cache_corrupted=false
2235 for ac_var in $ac_precious_vars; do
2236 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2237 eval ac_new_set=\$ac_env_${ac_var}_set
2238 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2239 eval ac_new_val=\$ac_env_${ac_var}_value
2240 case $ac_old_set,$ac_new_set in
2241 set,)
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2243 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2244 ac_cache_corrupted=: ;;
2245 ,set)
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2247 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2248 ac_cache_corrupted=: ;;
2249 ,);;
2250 *)
2251 if test "x$ac_old_val" != "x$ac_new_val"; then
2252 # differences in whitespace do not lead to failure.
2253 ac_old_val_w=`echo x $ac_old_val`
2254 ac_new_val_w=`echo x $ac_new_val`
2255 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2257 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2258 ac_cache_corrupted=:
2259 else
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2261 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2262 eval $ac_var=\$ac_old_val
2263 fi
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2265 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2267 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2268 fi;;
2269 esac
2270 # Pass precious variables to config.status.
2271 if test "$ac_new_set" = set; then
2272 case $ac_new_val in
2273 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2274 *) ac_arg=$ac_var=$ac_new_val ;;
2275 esac
2276 case " $ac_configure_args " in
2277 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2278 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2279 esac
2280 fi
2281 done
2282 if $ac_cache_corrupted; then
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2286 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2287 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2288 fi
2289 ## -------------------- ##
2290 ## Main body of script. ##
2291 ## -------------------- ##
2292
2293 ac_ext=c
2294 ac_cpp='$CPP $CPPFLAGS'
2295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2298
2299
2300
2301 ac_config_headers="$ac_config_headers config.h"
2302
2303 ac_aux_dir=
2304 for ac_dir in . "$srcdir"/.; do
2305 if test -f "$ac_dir/install-sh"; then
2306 ac_aux_dir=$ac_dir
2307 ac_install_sh="$ac_aux_dir/install-sh -c"
2308 break
2309 elif test -f "$ac_dir/install.sh"; then
2310 ac_aux_dir=$ac_dir
2311 ac_install_sh="$ac_aux_dir/install.sh -c"
2312 break
2313 elif test -f "$ac_dir/shtool"; then
2314 ac_aux_dir=$ac_dir
2315 ac_install_sh="$ac_aux_dir/shtool install -c"
2316 break
2317 fi
2318 done
2319 if test -z "$ac_aux_dir"; then
2320 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2321 fi
2322
2323 # These three variables are undocumented and unsupported,
2324 # and are intended to be withdrawn in a future Autoconf release.
2325 # They can cause serious problems if a builder's source tree is in a directory
2326 # whose full name contains unusual characters.
2327 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2328 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2329 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2330
2331
2332
2333 # Initialize Automake
2334 am__api_version='1.11'
2335
2336 # Find a good install program. We prefer a C program (faster),
2337 # so one script is as good as another. But avoid the broken or
2338 # incompatible versions:
2339 # SysV /etc/install, /usr/sbin/install
2340 # SunOS /usr/etc/install
2341 # IRIX /sbin/install
2342 # AIX /bin/install
2343 # AmigaOS /C/install, which installs bootblocks on floppy discs
2344 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2345 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2346 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2347 # OS/2's system install, which has a completely different semantic
2348 # ./install, which can be erroneously created by make from ./install.sh.
2349 # Reject install programs that cannot install multiple files.
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2351 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2352 if test -z "$INSTALL"; then
2353 if ${ac_cv_path_install+:} false; then :
2354 $as_echo_n "(cached) " >&6
2355 else
2356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2357 for as_dir in $PATH
2358 do
2359 IFS=$as_save_IFS
2360 test -z "$as_dir" && as_dir=.
2361 # Account for people who put trailing slashes in PATH elements.
2362 case $as_dir/ in #((
2363 ./ | .// | /[cC]/* | \
2364 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2365 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2366 /usr/ucb/* ) ;;
2367 *)
2368 # OSF1 and SCO ODT 3.0 have their own names for install.
2369 # Don't use installbsd from OSF since it installs stuff as root
2370 # by default.
2371 for ac_prog in ginstall scoinst install; do
2372 for ac_exec_ext in '' $ac_executable_extensions; do
2373 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2374 if test $ac_prog = install &&
2375 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2376 # AIX install. It has an incompatible calling convention.
2377 :
2378 elif test $ac_prog = install &&
2379 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2380 # program-specific install script used by HP pwplus--don't use.
2381 :
2382 else
2383 rm -rf conftest.one conftest.two conftest.dir
2384 echo one > conftest.one
2385 echo two > conftest.two
2386 mkdir conftest.dir
2387 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2388 test -s conftest.one && test -s conftest.two &&
2389 test -s conftest.dir/conftest.one &&
2390 test -s conftest.dir/conftest.two
2391 then
2392 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2393 break 3
2394 fi
2395 fi
2396 fi
2397 done
2398 done
2399 ;;
2400 esac
2401
2402 done
2403 IFS=$as_save_IFS
2404
2405 rm -rf conftest.one conftest.two conftest.dir
2406
2407 fi
2408 if test "${ac_cv_path_install+set}" = set; then
2409 INSTALL=$ac_cv_path_install
2410 else
2411 # As a last resort, use the slow shell script. Don't cache a
2412 # value for INSTALL within a source directory, because that will
2413 # break other packages using the cache if that directory is
2414 # removed, or if the value is a relative name.
2415 INSTALL=$ac_install_sh
2416 fi
2417 fi
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2419 $as_echo "$INSTALL" >&6; }
2420
2421 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2422 # It thinks the first close brace ends the variable substitution.
2423 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2424
2425 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2426
2427 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2428
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2430 $as_echo_n "checking whether build environment is sane... " >&6; }
2431 # Just in case
2432 sleep 1
2433 echo timestamp > conftest.file
2434 # Reject unsafe characters in $srcdir or the absolute working directory
2435 # name. Accept space and tab only in the latter.
2436 am_lf='
2437 '
2438 case `pwd` in
2439 *[\\\"\#\$\&\'\`$am_lf]*)
2440 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2441 esac
2442 case $srcdir in
2443 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2444 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2445 esac
2446
2447 # Do `set' in a subshell so we don't clobber the current shell's
2448 # arguments. Must try -L first in case configure is actually a
2449 # symlink; some systems play weird games with the mod time of symlinks
2450 # (eg FreeBSD returns the mod time of the symlink's containing
2451 # directory).
2452 if (
2453 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2454 if test "$*" = "X"; then
2455 # -L didn't work.
2456 set X `ls -t "$srcdir/configure" conftest.file`
2457 fi
2458 rm -f conftest.file
2459 if test "$*" != "X $srcdir/configure conftest.file" \
2460 && test "$*" != "X conftest.file $srcdir/configure"; then
2461
2462 # If neither matched, then we have a broken ls. This can happen
2463 # if, for instance, CONFIG_SHELL is bash and it inherits a
2464 # broken ls alias from the environment. This has actually
2465 # happened. Such a system could not be considered "sane".
2466 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2467 alias in your environment" "$LINENO" 5
2468 fi
2469
2470 test "$2" = conftest.file
2471 )
2472 then
2473 # Ok.
2474 :
2475 else
2476 as_fn_error $? "newly created file is older than distributed files!
2477 Check your system clock" "$LINENO" 5
2478 fi
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2480 $as_echo "yes" >&6; }
2481 test "$program_prefix" != NONE &&
2482 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2483 # Use a double $ so make ignores it.
2484 test "$program_suffix" != NONE &&
2485 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2486 # Double any \ or $.
2487 # By default was `s,x,x', remove it if useless.
2488 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2489 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2490
2491 # expand $ac_aux_dir to an absolute path
2492 am_aux_dir=`cd $ac_aux_dir && pwd`
2493
2494 if test x"${MISSING+set}" != xset; then
2495 case $am_aux_dir in
2496 *\ * | *\ *)
2497 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2498 *)
2499 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2500 esac
2501 fi
2502 # Use eval to expand $SHELL
2503 if eval "$MISSING --run true"; then
2504 am_missing_run="$MISSING --run "
2505 else
2506 am_missing_run=
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2508 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2509 fi
2510
2511 if test x"${install_sh}" != xset; then
2512 case $am_aux_dir in
2513 *\ * | *\ *)
2514 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2515 *)
2516 install_sh="\${SHELL} $am_aux_dir/install-sh"
2517 esac
2518 fi
2519
2520 # Installed binaries are usually stripped using `strip' when the user
2521 # run `make install-strip'. However `strip' might not be the right
2522 # tool to use in cross-compilation environments, therefore Automake
2523 # will honor the `STRIP' environment variable to overrule this program.
2524 if test "$cross_compiling" != no; then
2525 if test -n "$ac_tool_prefix"; then
2526 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2527 set dummy ${ac_tool_prefix}strip; ac_word=$2
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2529 $as_echo_n "checking for $ac_word... " >&6; }
2530 if ${ac_cv_prog_STRIP+:} false; then :
2531 $as_echo_n "(cached) " >&6
2532 else
2533 if test -n "$STRIP"; then
2534 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2535 else
2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537 for as_dir in $PATH
2538 do
2539 IFS=$as_save_IFS
2540 test -z "$as_dir" && as_dir=.
2541 for ac_exec_ext in '' $ac_executable_extensions; do
2542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2543 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2545 break 2
2546 fi
2547 done
2548 done
2549 IFS=$as_save_IFS
2550
2551 fi
2552 fi
2553 STRIP=$ac_cv_prog_STRIP
2554 if test -n "$STRIP"; then
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2556 $as_echo "$STRIP" >&6; }
2557 else
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2559 $as_echo "no" >&6; }
2560 fi
2561
2562
2563 fi
2564 if test -z "$ac_cv_prog_STRIP"; then
2565 ac_ct_STRIP=$STRIP
2566 # Extract the first word of "strip", so it can be a program name with args.
2567 set dummy strip; ac_word=$2
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2569 $as_echo_n "checking for $ac_word... " >&6; }
2570 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2571 $as_echo_n "(cached) " >&6
2572 else
2573 if test -n "$ac_ct_STRIP"; then
2574 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2575 else
2576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577 for as_dir in $PATH
2578 do
2579 IFS=$as_save_IFS
2580 test -z "$as_dir" && as_dir=.
2581 for ac_exec_ext in '' $ac_executable_extensions; do
2582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2583 ac_cv_prog_ac_ct_STRIP="strip"
2584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2585 break 2
2586 fi
2587 done
2588 done
2589 IFS=$as_save_IFS
2590
2591 fi
2592 fi
2593 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2594 if test -n "$ac_ct_STRIP"; then
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2596 $as_echo "$ac_ct_STRIP" >&6; }
2597 else
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2599 $as_echo "no" >&6; }
2600 fi
2601
2602 if test "x$ac_ct_STRIP" = x; then
2603 STRIP=":"
2604 else
2605 case $cross_compiling:$ac_tool_warned in
2606 yes:)
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2609 ac_tool_warned=yes ;;
2610 esac
2611 STRIP=$ac_ct_STRIP
2612 fi
2613 else
2614 STRIP="$ac_cv_prog_STRIP"
2615 fi
2616
2617 fi
2618 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2619
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2621 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2622 if test -z "$MKDIR_P"; then
2623 if ${ac_cv_path_mkdir+:} false; then :
2624 $as_echo_n "(cached) " >&6
2625 else
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2628 do
2629 IFS=$as_save_IFS
2630 test -z "$as_dir" && as_dir=.
2631 for ac_prog in mkdir gmkdir; do
2632 for ac_exec_ext in '' $ac_executable_extensions; do
2633 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2634 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2635 'mkdir (GNU coreutils) '* | \
2636 'mkdir (coreutils) '* | \
2637 'mkdir (fileutils) '4.1*)
2638 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2639 break 3;;
2640 esac
2641 done
2642 done
2643 done
2644 IFS=$as_save_IFS
2645
2646 fi
2647
2648 test -d ./--version && rmdir ./--version
2649 if test "${ac_cv_path_mkdir+set}" = set; then
2650 MKDIR_P="$ac_cv_path_mkdir -p"
2651 else
2652 # As a last resort, use the slow shell script. Don't cache a
2653 # value for MKDIR_P within a source directory, because that will
2654 # break other packages using the cache if that directory is
2655 # removed, or if the value is a relative name.
2656 MKDIR_P="$ac_install_sh -d"
2657 fi
2658 fi
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2660 $as_echo "$MKDIR_P" >&6; }
2661
2662 mkdir_p="$MKDIR_P"
2663 case $mkdir_p in
2664 [\\/$]* | ?:[\\/]*) ;;
2665 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2666 esac
2667
2668 for ac_prog in gawk mawk nawk awk
2669 do
2670 # Extract the first word of "$ac_prog", so it can be a program name with args.
2671 set dummy $ac_prog; ac_word=$2
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2673 $as_echo_n "checking for $ac_word... " >&6; }
2674 if ${ac_cv_prog_AWK+:} false; then :
2675 $as_echo_n "(cached) " >&6
2676 else
2677 if test -n "$AWK"; then
2678 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2679 else
2680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681 for as_dir in $PATH
2682 do
2683 IFS=$as_save_IFS
2684 test -z "$as_dir" && as_dir=.
2685 for ac_exec_ext in '' $ac_executable_extensions; do
2686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2687 ac_cv_prog_AWK="$ac_prog"
2688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2689 break 2
2690 fi
2691 done
2692 done
2693 IFS=$as_save_IFS
2694
2695 fi
2696 fi
2697 AWK=$ac_cv_prog_AWK
2698 if test -n "$AWK"; then
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2700 $as_echo "$AWK" >&6; }
2701 else
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2703 $as_echo "no" >&6; }
2704 fi
2705
2706
2707 test -n "$AWK" && break
2708 done
2709
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2711 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2712 set x ${MAKE-make}
2713 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2714 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2715 $as_echo_n "(cached) " >&6
2716 else
2717 cat >conftest.make <<\_ACEOF
2718 SHELL = /bin/sh
2719 all:
2720 @echo '@@@%%%=$(MAKE)=@@@%%%'
2721 _ACEOF
2722 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2723 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2724 *@@@%%%=?*=@@@%%%*)
2725 eval ac_cv_prog_make_${ac_make}_set=yes;;
2726 *)
2727 eval ac_cv_prog_make_${ac_make}_set=no;;
2728 esac
2729 rm -f conftest.make
2730 fi
2731 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2733 $as_echo "yes" >&6; }
2734 SET_MAKE=
2735 else
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2737 $as_echo "no" >&6; }
2738 SET_MAKE="MAKE=${MAKE-make}"
2739 fi
2740
2741 rm -rf .tst 2>/dev/null
2742 mkdir .tst 2>/dev/null
2743 if test -d .tst; then
2744 am__leading_dot=.
2745 else
2746 am__leading_dot=_
2747 fi
2748 rmdir .tst 2>/dev/null
2749
2750 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2751 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2752 # is not polluted with repeated "-I."
2753 am__isrc=' -I$(srcdir)'
2754 # test to see if srcdir already configured
2755 if test -f $srcdir/config.status; then
2756 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2757 fi
2758 fi
2759
2760 # test whether we have cygpath
2761 if test -z "$CYGPATH_W"; then
2762 if (cygpath --version) >/dev/null 2>/dev/null; then
2763 CYGPATH_W='cygpath -w'
2764 else
2765 CYGPATH_W=echo
2766 fi
2767 fi
2768
2769
2770 # Define the identity of the package.
2771 PACKAGE='xf86-video-ast'
2772 VERSION='0.98.0'
2773
2774
2775 cat >>confdefs.h <<_ACEOF
2776 #define PACKAGE "$PACKAGE"
2777 _ACEOF
2778
2779
2780 cat >>confdefs.h <<_ACEOF
2781 #define VERSION "$VERSION"
2782 _ACEOF
2783
2784 # Some tools Automake needs.
2785
2786 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2787
2788
2789 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2790
2791
2792 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2793
2794
2795 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2796
2797
2798 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2799
2800 # We need awk for the "check" target. The system "awk" is bad on
2801 # some platforms.
2802 # Always define AMTAR for backward compatibility.
2803
2804 AMTAR=${AMTAR-"${am_missing_run}tar"}
2805
2806 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2807
2808
2809
2810
2811
2812
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2814 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2815 # Check whether --enable-maintainer-mode was given.
2816 if test "${enable_maintainer_mode+set}" = set; then :
2817 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2818 else
2819 USE_MAINTAINER_MODE=no
2820 fi
2821
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2823 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2824 if test $USE_MAINTAINER_MODE = yes; then
2825 MAINTAINER_MODE_TRUE=
2826 MAINTAINER_MODE_FALSE='#'
2827 else
2828 MAINTAINER_MODE_TRUE='#'
2829 MAINTAINER_MODE_FALSE=
2830 fi
2831
2832 MAINT=$MAINTAINER_MODE_TRUE
2833
2834
2835
2836 # Require xorg-macros: XORG_DEFAULT_OPTIONS
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848 DEPDIR="${am__leading_dot}deps"
2849
2850 ac_config_commands="$ac_config_commands depfiles"
2851
2852
2853 am_make=${MAKE-make}
2854 cat > confinc << 'END'
2855 am__doit:
2856 @echo this is the am__doit target
2857 .PHONY: am__doit
2858 END
2859 # If we don't find an include directive, just comment out the code.
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2861 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2862 am__include="#"
2863 am__quote=
2864 _am_result=none
2865 # First try GNU make style include.
2866 echo "include confinc" > confmf
2867 # Ignore all kinds of additional output from `make'.
2868 case `$am_make -s -f confmf 2> /dev/null` in #(
2869 *the\ am__doit\ target*)
2870 am__include=include
2871 am__quote=
2872 _am_result=GNU
2873 ;;
2874 esac
2875 # Now try BSD make style include.
2876 if test "$am__include" = "#"; then
2877 echo '.include "confinc"' > confmf
2878 case `$am_make -s -f confmf 2> /dev/null` in #(
2879 *the\ am__doit\ target*)
2880 am__include=.include
2881 am__quote="\""
2882 _am_result=BSD
2883 ;;
2884 esac
2885 fi
2886
2887
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2889 $as_echo "$_am_result" >&6; }
2890 rm -f confinc confmf
2891
2892 # Check whether --enable-dependency-tracking was given.
2893 if test "${enable_dependency_tracking+set}" = set; then :
2894 enableval=$enable_dependency_tracking;
2895 fi
2896
2897 if test "x$enable_dependency_tracking" != xno; then
2898 am_depcomp="$ac_aux_dir/depcomp"
2899 AMDEPBACKSLASH='\'
2900 fi
2901 if test "x$enable_dependency_tracking" != xno; then
2902 AMDEP_TRUE=
2903 AMDEP_FALSE='#'
2904 else
2905 AMDEP_TRUE='#'
2906 AMDEP_FALSE=
2907 fi
2908
2909
2910 ac_ext=c
2911 ac_cpp='$CPP $CPPFLAGS'
2912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2915 if test -n "$ac_tool_prefix"; then
2916 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2917 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2919 $as_echo_n "checking for $ac_word... " >&6; }
2920 if ${ac_cv_prog_CC+:} false; then :
2921 $as_echo_n "(cached) " >&6
2922 else
2923 if test -n "$CC"; then
2924 ac_cv_prog_CC="$CC" # Let the user override the test.
2925 else
2926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927 for as_dir in $PATH
2928 do
2929 IFS=$as_save_IFS
2930 test -z "$as_dir" && as_dir=.
2931 for ac_exec_ext in '' $ac_executable_extensions; do
2932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2933 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2935 break 2
2936 fi
2937 done
2938 done
2939 IFS=$as_save_IFS
2940
2941 fi
2942 fi
2943 CC=$ac_cv_prog_CC
2944 if test -n "$CC"; then
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2946 $as_echo "$CC" >&6; }
2947 else
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2949 $as_echo "no" >&6; }
2950 fi
2951
2952
2953 fi
2954 if test -z "$ac_cv_prog_CC"; then
2955 ac_ct_CC=$CC
2956 # Extract the first word of "gcc", so it can be a program name with args.
2957 set dummy gcc; ac_word=$2
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2959 $as_echo_n "checking for $ac_word... " >&6; }
2960 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2961 $as_echo_n "(cached) " >&6
2962 else
2963 if test -n "$ac_ct_CC"; then
2964 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2965 else
2966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967 for as_dir in $PATH
2968 do
2969 IFS=$as_save_IFS
2970 test -z "$as_dir" && as_dir=.
2971 for ac_exec_ext in '' $ac_executable_extensions; do
2972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2973 ac_cv_prog_ac_ct_CC="gcc"
2974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2975 break 2
2976 fi
2977 done
2978 done
2979 IFS=$as_save_IFS
2980
2981 fi
2982 fi
2983 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2984 if test -n "$ac_ct_CC"; then
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2986 $as_echo "$ac_ct_CC" >&6; }
2987 else
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989 $as_echo "no" >&6; }
2990 fi
2991
2992 if test "x$ac_ct_CC" = x; then
2993 CC=""
2994 else
2995 case $cross_compiling:$ac_tool_warned in
2996 yes:)
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2998 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2999 ac_tool_warned=yes ;;
3000 esac
3001 CC=$ac_ct_CC
3002 fi
3003 else
3004 CC="$ac_cv_prog_CC"
3005 fi
3006
3007 if test -z "$CC"; then
3008 if test -n "$ac_tool_prefix"; then
3009 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3010 set dummy ${ac_tool_prefix}cc; ac_word=$2
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3012 $as_echo_n "checking for $ac_word... " >&6; }
3013 if ${ac_cv_prog_CC+:} false; then :
3014 $as_echo_n "(cached) " >&6
3015 else
3016 if test -n "$CC"; then
3017 ac_cv_prog_CC="$CC" # Let the user override the test.
3018 else
3019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020 for as_dir in $PATH
3021 do
3022 IFS=$as_save_IFS
3023 test -z "$as_dir" && as_dir=.
3024 for ac_exec_ext in '' $ac_executable_extensions; do
3025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3026 ac_cv_prog_CC="${ac_tool_prefix}cc"
3027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3028 break 2
3029 fi
3030 done
3031 done
3032 IFS=$as_save_IFS
3033
3034 fi
3035 fi
3036 CC=$ac_cv_prog_CC
3037 if test -n "$CC"; then
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3039 $as_echo "$CC" >&6; }
3040 else
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042 $as_echo "no" >&6; }
3043 fi
3044
3045
3046 fi
3047 fi
3048 if test -z "$CC"; then
3049 # Extract the first word of "cc", so it can be a program name with args.
3050 set dummy cc; ac_word=$2
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3052 $as_echo_n "checking for $ac_word... " >&6; }
3053 if ${ac_cv_prog_CC+:} false; then :
3054 $as_echo_n "(cached) " >&6
3055 else
3056 if test -n "$CC"; then
3057 ac_cv_prog_CC="$CC" # Let the user override the test.
3058 else
3059 ac_prog_rejected=no
3060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061 for as_dir in $PATH
3062 do
3063 IFS=$as_save_IFS
3064 test -z "$as_dir" && as_dir=.
3065 for ac_exec_ext in '' $ac_executable_extensions; do
3066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3067 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3068 ac_prog_rejected=yes
3069 continue
3070 fi
3071 ac_cv_prog_CC="cc"
3072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3073 break 2
3074 fi
3075 done
3076 done
3077 IFS=$as_save_IFS
3078
3079 if test $ac_prog_rejected = yes; then
3080 # We found a bogon in the path, so make sure we never use it.
3081 set dummy $ac_cv_prog_CC
3082 shift
3083 if test $# != 0; then
3084 # We chose a different compiler from the bogus one.
3085 # However, it has the same basename, so the bogon will be chosen
3086 # first if we set CC to just the basename; use the full file name.
3087 shift
3088 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3089 fi
3090 fi
3091 fi
3092 fi
3093 CC=$ac_cv_prog_CC
3094 if test -n "$CC"; then
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3096 $as_echo "$CC" >&6; }
3097 else
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3099 $as_echo "no" >&6; }
3100 fi
3101
3102
3103 fi
3104 if test -z "$CC"; then
3105 if test -n "$ac_tool_prefix"; then
3106 for ac_prog in cl.exe
3107 do
3108 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3109 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3111 $as_echo_n "checking for $ac_word... " >&6; }
3112 if ${ac_cv_prog_CC+:} false; then :
3113 $as_echo_n "(cached) " >&6
3114 else
3115 if test -n "$CC"; then
3116 ac_cv_prog_CC="$CC" # Let the user override the test.
3117 else
3118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119 for as_dir in $PATH
3120 do
3121 IFS=$as_save_IFS
3122 test -z "$as_dir" && as_dir=.
3123 for ac_exec_ext in '' $ac_executable_extensions; do
3124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3125 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3127 break 2
3128 fi
3129 done
3130 done
3131 IFS=$as_save_IFS
3132
3133 fi
3134 fi
3135 CC=$ac_cv_prog_CC
3136 if test -n "$CC"; then
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3138 $as_echo "$CC" >&6; }
3139 else
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3141 $as_echo "no" >&6; }
3142 fi
3143
3144
3145 test -n "$CC" && break
3146 done
3147 fi
3148 if test -z "$CC"; then
3149 ac_ct_CC=$CC
3150 for ac_prog in cl.exe
3151 do
3152 # Extract the first word of "$ac_prog", so it can be a program name with args.
3153 set dummy $ac_prog; ac_word=$2
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155 $as_echo_n "checking for $ac_word... " >&6; }
3156 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3157 $as_echo_n "(cached) " >&6
3158 else
3159 if test -n "$ac_ct_CC"; then
3160 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3161 else
3162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163 for as_dir in $PATH
3164 do
3165 IFS=$as_save_IFS
3166 test -z "$as_dir" && as_dir=.
3167 for ac_exec_ext in '' $ac_executable_extensions; do
3168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3169 ac_cv_prog_ac_ct_CC="$ac_prog"
3170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3171 break 2
3172 fi
3173 done
3174 done
3175 IFS=$as_save_IFS
3176
3177 fi
3178 fi
3179 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3180 if test -n "$ac_ct_CC"; then
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3182 $as_echo "$ac_ct_CC" >&6; }
3183 else
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185 $as_echo "no" >&6; }
3186 fi
3187
3188
3189 test -n "$ac_ct_CC" && break
3190 done
3191
3192 if test "x$ac_ct_CC" = x; then
3193 CC=""
3194 else
3195 case $cross_compiling:$ac_tool_warned in
3196 yes:)
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3198 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3199 ac_tool_warned=yes ;;
3200 esac
3201 CC=$ac_ct_CC
3202 fi
3203 fi
3204
3205 fi
3206
3207
3208 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3210 as_fn_error $? "no acceptable C compiler found in \$PATH
3211 See \`config.log' for more details" "$LINENO" 5; }
3212
3213 # Provide some information about the compiler.
3214 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3215 set X $ac_compile
3216 ac_compiler=$2
3217 for ac_option in --version -v -V -qversion; do
3218 { { ac_try="$ac_compiler $ac_option >&5"
3219 case "(($ac_try" in
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3222 esac
3223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3224 $as_echo "$ac_try_echo"; } >&5
3225 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3226 ac_status=$?
3227 if test -s conftest.err; then
3228 sed '10a\
3229 ... rest of stderr output deleted ...
3230 10q' conftest.err >conftest.er1
3231 cat conftest.er1 >&5
3232 fi
3233 rm -f conftest.er1 conftest.err
3234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3235 test $ac_status = 0; }
3236 done
3237
3238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3239 /* end confdefs.h. */
3240
3241 int
3242 main ()
3243 {
3244
3245 ;
3246 return 0;
3247 }
3248 _ACEOF
3249 ac_clean_files_save=$ac_clean_files
3250 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3251 # Try to create an executable without -o first, disregard a.out.
3252 # It will help us diagnose broken compilers, and finding out an intuition
3253 # of exeext.
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3255 $as_echo_n "checking whether the C compiler works... " >&6; }
3256 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3257
3258 # The possible output files:
3259 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3260
3261 ac_rmfiles=
3262 for ac_file in $ac_files
3263 do
3264 case $ac_file in
3265 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3266 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3267 esac
3268 done
3269 rm -f $ac_rmfiles
3270
3271 if { { ac_try="$ac_link_default"
3272 case "(($ac_try" in
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3275 esac
3276 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3277 $as_echo "$ac_try_echo"; } >&5
3278 (eval "$ac_link_default") 2>&5
3279 ac_status=$?
3280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3281 test $ac_status = 0; }; then :
3282 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3283 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3284 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3285 # so that the user can short-circuit this test for compilers unknown to
3286 # Autoconf.
3287 for ac_file in $ac_files ''
3288 do
3289 test -f "$ac_file" || continue
3290 case $ac_file in
3291 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3292 ;;
3293 [ab].out )
3294 # We found the default executable, but exeext='' is most
3295 # certainly right.
3296 break;;
3297 *.* )
3298 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3299 then :; else
3300 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3301 fi
3302 # We set ac_cv_exeext here because the later test for it is not
3303 # safe: cross compilers may not add the suffix if given an `-o'
3304 # argument, so we may need to know it at that point already.
3305 # Even if this section looks crufty: it has the advantage of
3306 # actually working.
3307 break;;
3308 * )
3309 break;;
3310 esac
3311 done
3312 test "$ac_cv_exeext" = no && ac_cv_exeext=
3313
3314 else
3315 ac_file=''
3316 fi
3317 if test -z "$ac_file"; then :
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3319 $as_echo "no" >&6; }
3320 $as_echo "$as_me: failed program was:" >&5
3321 sed 's/^/| /' conftest.$ac_ext >&5
3322
3323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3325 as_fn_error 77 "C compiler cannot create executables
3326 See \`config.log' for more details" "$LINENO" 5; }
3327 else
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3329 $as_echo "yes" >&6; }
3330 fi
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3332 $as_echo_n "checking for C compiler default output file name... " >&6; }
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3334 $as_echo "$ac_file" >&6; }
3335 ac_exeext=$ac_cv_exeext
3336
3337 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3338 ac_clean_files=$ac_clean_files_save
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3340 $as_echo_n "checking for suffix of executables... " >&6; }
3341 if { { ac_try="$ac_link"
3342 case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3345 esac
3346 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3347 $as_echo "$ac_try_echo"; } >&5
3348 (eval "$ac_link") 2>&5
3349 ac_status=$?
3350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3351 test $ac_status = 0; }; then :
3352 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3353 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3354 # work properly (i.e., refer to `conftest.exe'), while it won't with
3355 # `rm'.
3356 for ac_file in conftest.exe conftest conftest.*; do
3357 test -f "$ac_file" || continue
3358 case $ac_file in
3359 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3360 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3361 break;;
3362 * ) break;;
3363 esac
3364 done
3365 else
3366 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3368 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3369 See \`config.log' for more details" "$LINENO" 5; }
3370 fi
3371 rm -f conftest conftest$ac_cv_exeext
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3373 $as_echo "$ac_cv_exeext" >&6; }
3374
3375 rm -f conftest.$ac_ext
3376 EXEEXT=$ac_cv_exeext
3377 ac_exeext=$EXEEXT
3378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3379 /* end confdefs.h. */
3380 #include <stdio.h>
3381 int
3382 main ()
3383 {
3384 FILE *f = fopen ("conftest.out", "w");
3385 return ferror (f) || fclose (f) != 0;
3386
3387 ;
3388 return 0;
3389 }
3390 _ACEOF
3391 ac_clean_files="$ac_clean_files conftest.out"
3392 # Check that the compiler produces executables we can run. If not, either
3393 # the compiler is broken, or we cross compile.
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3395 $as_echo_n "checking whether we are cross compiling... " >&6; }
3396 if test "$cross_compiling" != yes; then
3397 { { ac_try="$ac_link"
3398 case "(($ac_try" in
3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400 *) ac_try_echo=$ac_try;;
3401 esac
3402 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3403 $as_echo "$ac_try_echo"; } >&5
3404 (eval "$ac_link") 2>&5
3405 ac_status=$?
3406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3407 test $ac_status = 0; }
3408 if { ac_try='./conftest$ac_cv_exeext'
3409 { { case "(($ac_try" in
3410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411 *) ac_try_echo=$ac_try;;
3412 esac
3413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3414 $as_echo "$ac_try_echo"; } >&5
3415 (eval "$ac_try") 2>&5
3416 ac_status=$?
3417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3418 test $ac_status = 0; }; }; then
3419 cross_compiling=no
3420 else
3421 if test "$cross_compiling" = maybe; then
3422 cross_compiling=yes
3423 else
3424 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3426 as_fn_error $? "cannot run C compiled programs.
3427 If you meant to cross compile, use \`--host'.
3428 See \`config.log' for more details" "$LINENO" 5; }
3429 fi
3430 fi
3431 fi
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3433 $as_echo "$cross_compiling" >&6; }
3434
3435 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3436 ac_clean_files=$ac_clean_files_save
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3438 $as_echo_n "checking for suffix of object files... " >&6; }
3439 if ${ac_cv_objext+:} false; then :
3440 $as_echo_n "(cached) " >&6
3441 else
3442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3443 /* end confdefs.h. */
3444
3445 int
3446 main ()
3447 {
3448
3449 ;
3450 return 0;
3451 }
3452 _ACEOF
3453 rm -f conftest.o conftest.obj
3454 if { { ac_try="$ac_compile"
3455 case "(($ac_try" in
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3458 esac
3459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3460 $as_echo "$ac_try_echo"; } >&5
3461 (eval "$ac_compile") 2>&5
3462 ac_status=$?
3463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3464 test $ac_status = 0; }; then :
3465 for ac_file in conftest.o conftest.obj conftest.*; do
3466 test -f "$ac_file" || continue;
3467 case $ac_file in
3468 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3469 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3470 break;;
3471 esac
3472 done
3473 else
3474 $as_echo "$as_me: failed program was:" >&5
3475 sed 's/^/| /' conftest.$ac_ext >&5
3476
3477 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3478 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3479 as_fn_error $? "cannot compute suffix of object files: cannot compile
3480 See \`config.log' for more details" "$LINENO" 5; }
3481 fi
3482 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3483 fi
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3485 $as_echo "$ac_cv_objext" >&6; }
3486 OBJEXT=$ac_cv_objext
3487 ac_objext=$OBJEXT
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3489 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3490 if ${ac_cv_c_compiler_gnu+:} false; then :
3491 $as_echo_n "(cached) " >&6
3492 else
3493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494 /* end confdefs.h. */
3495
3496 int
3497 main ()
3498 {
3499 #ifndef __GNUC__
3500 choke me
3501 #endif
3502
3503 ;
3504 return 0;
3505 }
3506 _ACEOF
3507 if ac_fn_c_try_compile "$LINENO"; then :
3508 ac_compiler_gnu=yes
3509 else
3510 ac_compiler_gnu=no
3511 fi
3512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3513 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3514
3515 fi
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3517 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3518 if test $ac_compiler_gnu = yes; then
3519 GCC=yes
3520 else
3521 GCC=
3522 fi
3523 ac_test_CFLAGS=${CFLAGS+set}
3524 ac_save_CFLAGS=$CFLAGS
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3526 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3527 if ${ac_cv_prog_cc_g+:} false; then :
3528 $as_echo_n "(cached) " >&6
3529 else
3530 ac_save_c_werror_flag=$ac_c_werror_flag
3531 ac_c_werror_flag=yes
3532 ac_cv_prog_cc_g=no
3533 CFLAGS="-g"
3534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3535 /* end confdefs.h. */
3536
3537 int
3538 main ()
3539 {
3540
3541 ;
3542 return 0;
3543 }
3544 _ACEOF
3545 if ac_fn_c_try_compile "$LINENO"; then :
3546 ac_cv_prog_cc_g=yes
3547 else
3548 CFLAGS=""
3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h. */
3551
3552 int
3553 main ()
3554 {
3555
3556 ;
3557 return 0;
3558 }
3559 _ACEOF
3560 if ac_fn_c_try_compile "$LINENO"; then :
3561
3562 else
3563 ac_c_werror_flag=$ac_save_c_werror_flag
3564 CFLAGS="-g"
3565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3566 /* end confdefs.h. */
3567
3568 int
3569 main ()
3570 {
3571
3572 ;
3573 return 0;
3574 }
3575 _ACEOF
3576 if ac_fn_c_try_compile "$LINENO"; then :
3577 ac_cv_prog_cc_g=yes
3578 fi
3579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3580 fi
3581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3582 fi
3583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3584 ac_c_werror_flag=$ac_save_c_werror_flag
3585 fi
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3587 $as_echo "$ac_cv_prog_cc_g" >&6; }
3588 if test "$ac_test_CFLAGS" = set; then
3589 CFLAGS=$ac_save_CFLAGS
3590 elif test $ac_cv_prog_cc_g = yes; then
3591 if test "$GCC" = yes; then
3592 CFLAGS="-g -O2"
3593 else
3594 CFLAGS="-g"
3595 fi
3596 else
3597 if test "$GCC" = yes; then
3598 CFLAGS="-O2"
3599 else
3600 CFLAGS=
3601 fi
3602 fi
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3604 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3605 if ${ac_cv_prog_cc_c89+:} false; then :
3606 $as_echo_n "(cached) " >&6
3607 else
3608 ac_cv_prog_cc_c89=no
3609 ac_save_CC=$CC
3610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3611 /* end confdefs.h. */
3612 #include <stdarg.h>
3613 #include <stdio.h>
3614 #include <sys/types.h>
3615 #include <sys/stat.h>
3616 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3617 struct buf { int x; };
3618 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3619 static char *e (p, i)
3620 char **p;
3621 int i;
3622 {
3623 return p[i];
3624 }
3625 static char *f (char * (*g) (char **, int), char **p, ...)
3626 {
3627 char *s;
3628 va_list v;
3629 va_start (v,p);
3630 s = g (p, va_arg (v,int));
3631 va_end (v);
3632 return s;
3633 }
3634
3635 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3636 function prototypes and stuff, but not '\xHH' hex character constants.
3637 These don't provoke an error unfortunately, instead are silently treated
3638 as 'x'. The following induces an error, until -std is added to get
3639 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3640 array size at least. It's necessary to write '\x00'==0 to get something
3641 that's true only with -std. */
3642 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3643
3644 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3645 inside strings and character constants. */
3646 #define FOO(x) 'x'
3647 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3648
3649 int test (int i, double x);
3650 struct s1 {int (*f) (int a);};
3651 struct s2 {int (*f) (double a);};
3652 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3653 int argc;
3654 char **argv;
3655 int
3656 main ()
3657 {
3658 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3659 ;
3660 return 0;
3661 }
3662 _ACEOF
3663 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3664 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3665 do
3666 CC="$ac_save_CC $ac_arg"
3667 if ac_fn_c_try_compile "$LINENO"; then :
3668 ac_cv_prog_cc_c89=$ac_arg
3669 fi
3670 rm -f core conftest.err conftest.$ac_objext
3671 test "x$ac_cv_prog_cc_c89" != "xno" && break
3672 done
3673 rm -f conftest.$ac_ext
3674 CC=$ac_save_CC
3675
3676 fi
3677 # AC_CACHE_VAL
3678 case "x$ac_cv_prog_cc_c89" in
3679 x)
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3681 $as_echo "none needed" >&6; } ;;
3682 xno)
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3684 $as_echo "unsupported" >&6; } ;;
3685 *)
3686 CC="$CC $ac_cv_prog_cc_c89"
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3688 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3689 esac
3690 if test "x$ac_cv_prog_cc_c89" != xno; then :
3691
3692 fi
3693
3694 ac_ext=c
3695 ac_cpp='$CPP $CPPFLAGS'
3696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3699
3700 depcc="$CC" am_compiler_list=
3701
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3703 $as_echo_n "checking dependency style of $depcc... " >&6; }
3704 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3705 $as_echo_n "(cached) " >&6
3706 else
3707 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3708 # We make a subdir and do the tests there. Otherwise we can end up
3709 # making bogus files that we don't know about and never remove. For
3710 # instance it was reported that on HP-UX the gcc test will end up
3711 # making a dummy file named `D' -- because `-MD' means `put the output
3712 # in D'.
3713 mkdir conftest.dir
3714 # Copy depcomp to subdir because otherwise we won't find it if we're
3715 # using a relative directory.
3716 cp "$am_depcomp" conftest.dir
3717 cd conftest.dir
3718 # We will build objects and dependencies in a subdirectory because
3719 # it helps to detect inapplicable dependency modes. For instance
3720 # both Tru64's cc and ICC support -MD to output dependencies as a
3721 # side effect of compilation, but ICC will put the dependencies in
3722 # the current directory while Tru64 will put them in the object
3723 # directory.
3724 mkdir sub
3725
3726 am_cv_CC_dependencies_compiler_type=none
3727 if test "$am_compiler_list" = ""; then
3728 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3729 fi
3730 am__universal=false
3731 case " $depcc " in #(
3732 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3733 esac
3734
3735 for depmode in $am_compiler_list; do
3736 # Setup a source with many dependencies, because some compilers
3737 # like to wrap large dependency lists on column 80 (with \), and
3738 # we should not choose a depcomp mode which is confused by this.
3739 #
3740 # We need to recreate these files for each test, as the compiler may
3741 # overwrite some of them when testing with obscure command lines.
3742 # This happens at least with the AIX C compiler.
3743 : > sub/conftest.c
3744 for i in 1 2 3 4 5 6; do
3745 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3746 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3747 # Solaris 8's {/usr,}/bin/sh.
3748 touch sub/conftst$i.h
3749 done
3750 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3751
3752 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3753 # mode. It turns out that the SunPro C++ compiler does not properly
3754 # handle `-M -o', and we need to detect this. Also, some Intel
3755 # versions had trouble with output in subdirs
3756 am__obj=sub/conftest.${OBJEXT-o}
3757 am__minus_obj="-o $am__obj"
3758 case $depmode in
3759 gcc)
3760 # This depmode causes a compiler race in universal mode.
3761 test "$am__universal" = false || continue
3762 ;;
3763 nosideeffect)
3764 # after this tag, mechanisms are not by side-effect, so they'll
3765 # only be used when explicitly requested
3766 if test "x$enable_dependency_tracking" = xyes; then
3767 continue
3768 else
3769 break
3770 fi
3771 ;;
3772 msvisualcpp | msvcmsys)
3773 # This compiler won't grok `-c -o', but also, the minuso test has
3774 # not run yet. These depmodes are late enough in the game, and
3775 # so weak that their functioning should not be impacted.
3776 am__obj=conftest.${OBJEXT-o}
3777 am__minus_obj=
3778 ;;
3779 none) break ;;
3780 esac
3781 if depmode=$depmode \
3782 source=sub/conftest.c object=$am__obj \
3783 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3784 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3785 >/dev/null 2>conftest.err &&
3786 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3787 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3788 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3789 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3790 # icc doesn't choke on unknown options, it will just issue warnings
3791 # or remarks (even with -Werror). So we grep stderr for any message
3792 # that says an option was ignored or not supported.
3793 # When given -MP, icc 7.0 and 7.1 complain thusly:
3794 # icc: Command line warning: ignoring option '-M'; no argument required
3795 # The diagnosis changed in icc 8.0:
3796 # icc: Command line remark: option '-MP' not supported
3797 if (grep 'ignoring option' conftest.err ||
3798 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3799 am_cv_CC_dependencies_compiler_type=$depmode
3800 break
3801 fi
3802 fi
3803 done
3804
3805 cd ..
3806 rm -rf conftest.dir
3807 else
3808 am_cv_CC_dependencies_compiler_type=none
3809 fi
3810
3811 fi
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3813 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3814 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3815
3816 if
3817 test "x$enable_dependency_tracking" != xno \
3818 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3819 am__fastdepCC_TRUE=
3820 am__fastdepCC_FALSE='#'
3821 else
3822 am__fastdepCC_TRUE='#'
3823 am__fastdepCC_FALSE=
3824 fi
3825
3826
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3828 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3829 if ${ac_cv_prog_cc_c99+:} false; then :
3830 $as_echo_n "(cached) " >&6
3831 else
3832 ac_cv_prog_cc_c99=no
3833 ac_save_CC=$CC
3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835 /* end confdefs.h. */
3836 #include <stdarg.h>
3837 #include <stdbool.h>
3838 #include <stdlib.h>
3839 #include <wchar.h>
3840 #include <stdio.h>
3841
3842 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3843 #define debug(...) fprintf (stderr, __VA_ARGS__)
3844 #define showlist(...) puts (#__VA_ARGS__)
3845 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3846 static void
3847 test_varargs_macros (void)
3848 {
3849 int x = 1234;
3850 int y = 5678;
3851 debug ("Flag");
3852 debug ("X = %d\n", x);
3853 showlist (The first, second, and third items.);
3854 report (x>y, "x is %d but y is %d", x, y);
3855 }
3856
3857 // Check long long types.
3858 #define BIG64 18446744073709551615ull
3859 #define BIG32 4294967295ul
3860 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3861 #if !BIG_OK
3862 your preprocessor is broken;
3863 #endif
3864 #if BIG_OK
3865 #else
3866 your preprocessor is broken;
3867 #endif
3868 static long long int bignum = -9223372036854775807LL;
3869 static unsigned long long int ubignum = BIG64;
3870
3871 struct incomplete_array
3872 {
3873 int datasize;
3874 double data[];
3875 };
3876
3877 struct named_init {
3878 int number;
3879 const wchar_t *name;
3880 double average;
3881 };
3882
3883 typedef const char *ccp;
3884
3885 static inline int
3886 test_restrict (ccp restrict text)
3887 {
3888 // See if C++-style comments work.
3889 // Iterate through items via the restricted pointer.
3890 // Also check for declarations in for loops.
3891 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3892 continue;
3893 return 0;
3894 }
3895
3896 // Check varargs and va_copy.
3897 static void
3898 test_varargs (const char *format, ...)
3899 {
3900 va_list args;
3901 va_start (args, format);
3902 va_list args_copy;
3903 va_copy (args_copy, args);
3904
3905 const char *str;
3906 int number;
3907 float fnumber;
3908
3909 while (*format)
3910 {
3911 switch (*format++)
3912 {
3913 case 's': // string
3914 str = va_arg (args_copy, const char *);
3915 break;
3916 case 'd': // int
3917 number = va_arg (args_copy, int);
3918 break;
3919 case 'f': // float
3920 fnumber = va_arg (args_copy, double);
3921 break;
3922 default:
3923 break;
3924 }
3925 }
3926 va_end (args_copy);
3927 va_end (args);
3928 }
3929
3930 int
3931 main ()
3932 {
3933
3934 // Check bool.
3935 _Bool success = false;
3936
3937 // Check restrict.
3938 if (test_restrict ("String literal") == 0)
3939 success = true;
3940 char *restrict newvar = "Another string";
3941
3942 // Check varargs.
3943 test_varargs ("s, d' f .", "string", 65, 34.234);
3944 test_varargs_macros ();
3945
3946 // Check flexible array members.
3947 struct incomplete_array *ia =
3948 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3949 ia->datasize = 10;
3950 for (int i = 0; i < ia->datasize; ++i)
3951 ia->data[i] = i * 1.234;
3952
3953 // Check named initializers.
3954 struct named_init ni = {
3955 .number = 34,
3956 .name = L"Test wide string",
3957 .average = 543.34343,
3958 };
3959
3960 ni.number = 58;
3961
3962 int dynamic_array[ni.number];
3963 dynamic_array[ni.number - 1] = 543;
3964
3965 // work around unused variable warnings
3966 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3967 || dynamic_array[ni.number - 1] != 543);
3968
3969 ;
3970 return 0;
3971 }
3972 _ACEOF
3973 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3974 do
3975 CC="$ac_save_CC $ac_arg"
3976 if ac_fn_c_try_compile "$LINENO"; then :
3977 ac_cv_prog_cc_c99=$ac_arg
3978 fi
3979 rm -f core conftest.err conftest.$ac_objext
3980 test "x$ac_cv_prog_cc_c99" != "xno" && break
3981 done
3982 rm -f conftest.$ac_ext
3983 CC=$ac_save_CC
3984
3985 fi
3986 # AC_CACHE_VAL
3987 case "x$ac_cv_prog_cc_c99" in
3988 x)
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3990 $as_echo "none needed" >&6; } ;;
3991 xno)
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3993 $as_echo "unsupported" >&6; } ;;
3994 *)
3995 CC="$CC $ac_cv_prog_cc_c99"
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3997 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3998 esac
3999 if test "x$ac_cv_prog_cc_c99" != xno; then :
4000
4001 fi
4002
4003
4004
4005 ac_ext=c
4006 ac_cpp='$CPP $CPPFLAGS'
4007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4011 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4012 # On Suns, sometimes $CPP names a directory.
4013 if test -n "$CPP" && test -d "$CPP"; then
4014 CPP=
4015 fi
4016 if test -z "$CPP"; then
4017 if ${ac_cv_prog_CPP+:} false; then :
4018 $as_echo_n "(cached) " >&6
4019 else
4020 # Double quotes because CPP needs to be expanded
4021 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4022 do
4023 ac_preproc_ok=false
4024 for ac_c_preproc_warn_flag in '' yes
4025 do
4026 # Use a header file that comes with gcc, so configuring glibc
4027 # with a fresh cross-compiler works.
4028 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4029 # <limits.h> exists even on freestanding compilers.
4030 # On the NeXT, cc -E runs the code through the compiler's parser,
4031 # not just through cpp. "Syntax error" is here to catch this case.
4032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4033 /* end confdefs.h. */
4034 #ifdef __STDC__
4035 # include <limits.h>
4036 #else
4037 # include <assert.h>
4038 #endif
4039 Syntax error
4040 _ACEOF
4041 if ac_fn_c_try_cpp "$LINENO"; then :
4042
4043 else
4044 # Broken: fails on valid input.
4045 continue
4046 fi
4047 rm -f conftest.err conftest.i conftest.$ac_ext
4048
4049 # OK, works on sane cases. Now check whether nonexistent headers
4050 # can be detected and how.
4051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4052 /* end confdefs.h. */
4053 #include <ac_nonexistent.h>
4054 _ACEOF
4055 if ac_fn_c_try_cpp "$LINENO"; then :
4056 # Broken: success on invalid input.
4057 continue
4058 else
4059 # Passes both tests.
4060 ac_preproc_ok=:
4061 break
4062 fi
4063 rm -f conftest.err conftest.i conftest.$ac_ext
4064
4065 done
4066 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4067 rm -f conftest.i conftest.err conftest.$ac_ext
4068 if $ac_preproc_ok; then :
4069 break
4070 fi
4071
4072 done
4073 ac_cv_prog_CPP=$CPP
4074
4075 fi
4076 CPP=$ac_cv_prog_CPP
4077 else
4078 ac_cv_prog_CPP=$CPP
4079 fi
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4081 $as_echo "$CPP" >&6; }
4082 ac_preproc_ok=false
4083 for ac_c_preproc_warn_flag in '' yes
4084 do
4085 # Use a header file that comes with gcc, so configuring glibc
4086 # with a fresh cross-compiler works.
4087 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4088 # <limits.h> exists even on freestanding compilers.
4089 # On the NeXT, cc -E runs the code through the compiler's parser,
4090 # not just through cpp. "Syntax error" is here to catch this case.
4091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092 /* end confdefs.h. */
4093 #ifdef __STDC__
4094 # include <limits.h>
4095 #else
4096 # include <assert.h>
4097 #endif
4098 Syntax error
4099 _ACEOF
4100 if ac_fn_c_try_cpp "$LINENO"; then :
4101
4102 else
4103 # Broken: fails on valid input.
4104 continue
4105 fi
4106 rm -f conftest.err conftest.i conftest.$ac_ext
4107
4108 # OK, works on sane cases. Now check whether nonexistent headers
4109 # can be detected and how.
4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111 /* end confdefs.h. */
4112 #include <ac_nonexistent.h>
4113 _ACEOF
4114 if ac_fn_c_try_cpp "$LINENO"; then :
4115 # Broken: success on invalid input.
4116 continue
4117 else
4118 # Passes both tests.
4119 ac_preproc_ok=:
4120 break
4121 fi
4122 rm -f conftest.err conftest.i conftest.$ac_ext
4123
4124 done
4125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4126 rm -f conftest.i conftest.err conftest.$ac_ext
4127 if $ac_preproc_ok; then :
4128
4129 else
4130 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4132 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4133 See \`config.log' for more details" "$LINENO" 5; }
4134 fi
4135
4136 ac_ext=c
4137 ac_cpp='$CPP $CPPFLAGS'
4138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4141
4142
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4144 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4145 if ${ac_cv_path_GREP+:} false; then :
4146 $as_echo_n "(cached) " >&6
4147 else
4148 if test -z "$GREP"; then
4149 ac_path_GREP_found=false
4150 # Loop through the user's path and test for each of PROGNAME-LIST
4151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4153 do
4154 IFS=$as_save_IFS
4155 test -z "$as_dir" && as_dir=.
4156 for ac_prog in grep ggrep; do
4157 for ac_exec_ext in '' $ac_executable_extensions; do
4158 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4159 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4160 # Check for GNU ac_path_GREP and select it if it is found.
4161 # Check for GNU $ac_path_GREP
4162 case `"$ac_path_GREP" --version 2>&1` in
4163 *GNU*)
4164 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4165 *)
4166 ac_count=0
4167 $as_echo_n 0123456789 >"conftest.in"
4168 while :
4169 do
4170 cat "conftest.in" "conftest.in" >"conftest.tmp"
4171 mv "conftest.tmp" "conftest.in"
4172 cp "conftest.in" "conftest.nl"
4173 $as_echo 'GREP' >> "conftest.nl"
4174 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4175 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4176 as_fn_arith $ac_count + 1 && ac_count=$as_val
4177 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4178 # Best one so far, save it but keep looking for a better one
4179 ac_cv_path_GREP="$ac_path_GREP"
4180 ac_path_GREP_max=$ac_count
4181 fi
4182 # 10*(2^10) chars as input seems more than enough
4183 test $ac_count -gt 10 && break
4184 done
4185 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4186 esac
4187
4188 $ac_path_GREP_found && break 3
4189 done
4190 done
4191 done
4192 IFS=$as_save_IFS
4193 if test -z "$ac_cv_path_GREP"; then
4194 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4195 fi
4196 else
4197 ac_cv_path_GREP=$GREP
4198 fi
4199
4200 fi
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4202 $as_echo "$ac_cv_path_GREP" >&6; }
4203 GREP="$ac_cv_path_GREP"
4204
4205
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4207 $as_echo_n "checking for egrep... " >&6; }
4208 if ${ac_cv_path_EGREP+:} false; then :
4209 $as_echo_n "(cached) " >&6
4210 else
4211 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4212 then ac_cv_path_EGREP="$GREP -E"
4213 else
4214 if test -z "$EGREP"; then
4215 ac_path_EGREP_found=false
4216 # Loop through the user's path and test for each of PROGNAME-LIST
4217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4219 do
4220 IFS=$as_save_IFS
4221 test -z "$as_dir" && as_dir=.
4222 for ac_prog in egrep; do
4223 for ac_exec_ext in '' $ac_executable_extensions; do
4224 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4225 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4226 # Check for GNU ac_path_EGREP and select it if it is found.
4227 # Check for GNU $ac_path_EGREP
4228 case `"$ac_path_EGREP" --version 2>&1` in
4229 *GNU*)
4230 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4231 *)
4232 ac_count=0
4233 $as_echo_n 0123456789 >"conftest.in"
4234 while :
4235 do
4236 cat "conftest.in" "conftest.in" >"conftest.tmp"
4237 mv "conftest.tmp" "conftest.in"
4238 cp "conftest.in" "conftest.nl"
4239 $as_echo 'EGREP' >> "conftest.nl"
4240 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4241 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4242 as_fn_arith $ac_count + 1 && ac_count=$as_val
4243 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4244 # Best one so far, save it but keep looking for a better one
4245 ac_cv_path_EGREP="$ac_path_EGREP"
4246 ac_path_EGREP_max=$ac_count
4247 fi
4248 # 10*(2^10) chars as input seems more than enough
4249 test $ac_count -gt 10 && break
4250 done
4251 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4252 esac
4253
4254 $ac_path_EGREP_found && break 3
4255 done
4256 done
4257 done
4258 IFS=$as_save_IFS
4259 if test -z "$ac_cv_path_EGREP"; then
4260 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4261 fi
4262 else
4263 ac_cv_path_EGREP=$EGREP
4264 fi
4265
4266 fi
4267 fi
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4269 $as_echo "$ac_cv_path_EGREP" >&6; }
4270 EGREP="$ac_cv_path_EGREP"
4271
4272
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4274 $as_echo_n "checking for ANSI C header files... " >&6; }
4275 if ${ac_cv_header_stdc+:} false; then :
4276 $as_echo_n "(cached) " >&6
4277 else
4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279 /* end confdefs.h. */
4280 #include <stdlib.h>
4281 #include <stdarg.h>
4282 #include <string.h>
4283 #include <float.h>
4284
4285 int
4286 main ()
4287 {
4288
4289 ;
4290 return 0;
4291 }
4292 _ACEOF
4293 if ac_fn_c_try_compile "$LINENO"; then :
4294 ac_cv_header_stdc=yes
4295 else
4296 ac_cv_header_stdc=no
4297 fi
4298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4299
4300 if test $ac_cv_header_stdc = yes; then
4301 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4303 /* end confdefs.h. */
4304 #include <string.h>
4305
4306 _ACEOF
4307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4308 $EGREP "memchr" >/dev/null 2>&1; then :
4309
4310 else
4311 ac_cv_header_stdc=no
4312 fi
4313 rm -f conftest*
4314
4315 fi
4316
4317 if test $ac_cv_header_stdc = yes; then
4318 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4320 /* end confdefs.h. */
4321 #include <stdlib.h>
4322
4323 _ACEOF
4324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4325 $EGREP "free" >/dev/null 2>&1; then :
4326
4327 else
4328 ac_cv_header_stdc=no
4329 fi
4330 rm -f conftest*
4331
4332 fi
4333
4334 if test $ac_cv_header_stdc = yes; then
4335 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4336 if test "$cross_compiling" = yes; then :
4337 :
4338 else
4339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h. */
4341 #include <ctype.h>
4342 #include <stdlib.h>
4343 #if ((' ' & 0x0FF) == 0x020)
4344 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4345 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4346 #else
4347 # define ISLOWER(c) \
4348 (('a' <= (c) && (c) <= 'i') \
4349 || ('j' <= (c) && (c) <= 'r') \
4350 || ('s' <= (c) && (c) <= 'z'))
4351 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4352 #endif
4353
4354 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4355 int
4356 main ()
4357 {
4358 int i;
4359 for (i = 0; i < 256; i++)
4360 if (XOR (islower (i), ISLOWER (i))
4361 || toupper (i) != TOUPPER (i))
4362 return 2;
4363 return 0;
4364 }
4365 _ACEOF
4366 if ac_fn_c_try_run "$LINENO"; then :
4367
4368 else
4369 ac_cv_header_stdc=no
4370 fi
4371 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4372 conftest.$ac_objext conftest.beam conftest.$ac_ext
4373 fi
4374
4375 fi
4376 fi
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4378 $as_echo "$ac_cv_header_stdc" >&6; }
4379 if test $ac_cv_header_stdc = yes; then
4380
4381 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4382
4383 fi
4384
4385 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4386 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4387 inttypes.h stdint.h unistd.h
4388 do :
4389 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4390 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4391 "
4392 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4393 cat >>confdefs.h <<_ACEOF
4394 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4395 _ACEOF
4396
4397 fi
4398
4399 done
4400
4401
4402
4403
4404
4405
4406 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4407 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4408 CLANGCC="yes"
4409 else
4410 CLANGCC="no"
4411 fi
4412
4413 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4414 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4415 INTELCC="yes"
4416 else
4417 INTELCC="no"
4418 fi
4419
4420 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4421 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4422 SUNCC="yes"
4423 else
4424 SUNCC="no"
4425 fi
4426
4427
4428
4429
4430
4431
4432
4433
4434 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4435 if test -n "$ac_tool_prefix"; then
4436 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4437 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4439 $as_echo_n "checking for $ac_word... " >&6; }
4440 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4441 $as_echo_n "(cached) " >&6
4442 else
4443 case $PKG_CONFIG in
4444 [\\/]* | ?:[\\/]*)
4445 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4446 ;;
4447 *)
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 for as_dir in $PATH
4450 do
4451 IFS=$as_save_IFS
4452 test -z "$as_dir" && as_dir=.
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4455 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4457 break 2
4458 fi
4459 done
4460 done
4461 IFS=$as_save_IFS
4462
4463 ;;
4464 esac
4465 fi
4466 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4467 if test -n "$PKG_CONFIG"; then
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4469 $as_echo "$PKG_CONFIG" >&6; }
4470 else
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4472 $as_echo "no" >&6; }
4473 fi
4474
4475
4476 fi
4477 if test -z "$ac_cv_path_PKG_CONFIG"; then
4478 ac_pt_PKG_CONFIG=$PKG_CONFIG
4479 # Extract the first word of "pkg-config", so it can be a program name with args.
4480 set dummy pkg-config; ac_word=$2
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4482 $as_echo_n "checking for $ac_word... " >&6; }
4483 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4484 $as_echo_n "(cached) " >&6
4485 else
4486 case $ac_pt_PKG_CONFIG in
4487 [\\/]* | ?:[\\/]*)
4488 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4489 ;;
4490 *)
4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492 for as_dir in $PATH
4493 do
4494 IFS=$as_save_IFS
4495 test -z "$as_dir" && as_dir=.
4496 for ac_exec_ext in '' $ac_executable_extensions; do
4497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4498 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4500 break 2
4501 fi
4502 done
4503 done
4504 IFS=$as_save_IFS
4505
4506 ;;
4507 esac
4508 fi
4509 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4510 if test -n "$ac_pt_PKG_CONFIG"; then
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4512 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4513 else
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4515 $as_echo "no" >&6; }
4516 fi
4517
4518 if test "x$ac_pt_PKG_CONFIG" = x; then
4519 PKG_CONFIG=""
4520 else
4521 case $cross_compiling:$ac_tool_warned in
4522 yes:)
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4525 ac_tool_warned=yes ;;
4526 esac
4527 PKG_CONFIG=$ac_pt_PKG_CONFIG
4528 fi
4529 else
4530 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4531 fi
4532
4533 fi
4534 if test -n "$PKG_CONFIG"; then
4535 _pkg_min_version=0.9.0
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4537 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4538 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4540 $as_echo "yes" >&6; }
4541 else
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4543 $as_echo "no" >&6; }
4544 PKG_CONFIG=""
4545 fi
4546 fi
4547 # Make sure we can run config.sub.
4548 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4549 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4550
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4552 $as_echo_n "checking build system type... " >&6; }
4553 if ${ac_cv_build+:} false; then :
4554 $as_echo_n "(cached) " >&6
4555 else
4556 ac_build_alias=$build_alias
4557 test "x$ac_build_alias" = x &&
4558 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4559 test "x$ac_build_alias" = x &&
4560 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4561 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4562 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4563
4564 fi
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4566 $as_echo "$ac_cv_build" >&6; }
4567 case $ac_cv_build in
4568 *-*-*) ;;
4569 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4570 esac
4571 build=$ac_cv_build
4572 ac_save_IFS=$IFS; IFS='-'
4573 set x $ac_cv_build
4574 shift
4575 build_cpu=$1
4576 build_vendor=$2
4577 shift; shift
4578 # Remember, the first character of IFS is used to create $*,
4579 # except with old shells:
4580 build_os=$*
4581 IFS=$ac_save_IFS
4582 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4583
4584
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4586 $as_echo_n "checking host system type... " >&6; }
4587 if ${ac_cv_host+:} false; then :
4588 $as_echo_n "(cached) " >&6
4589 else
4590 if test "x$host_alias" = x; then
4591 ac_cv_host=$ac_cv_build
4592 else
4593 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4594 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4595 fi
4596
4597 fi
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4599 $as_echo "$ac_cv_host" >&6; }
4600 case $ac_cv_host in
4601 *-*-*) ;;
4602 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4603 esac
4604 host=$ac_cv_host
4605 ac_save_IFS=$IFS; IFS='-'
4606 set x $ac_cv_host
4607 shift
4608 host_cpu=$1
4609 host_vendor=$2
4610 shift; shift
4611 # Remember, the first character of IFS is used to create $*,
4612 # except with old shells:
4613 host_os=$*
4614 IFS=$ac_save_IFS
4615 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4616
4617
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4619 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4620 if ${ac_cv_path_SED+:} false; then :
4621 $as_echo_n "(cached) " >&6
4622 else
4623 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4624 for ac_i in 1 2 3 4 5 6 7; do
4625 ac_script="$ac_script$as_nl$ac_script"
4626 done
4627 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4628 { ac_script=; unset ac_script;}
4629 if test -z "$SED"; then
4630 ac_path_SED_found=false
4631 # Loop through the user's path and test for each of PROGNAME-LIST
4632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633 for as_dir in $PATH
4634 do
4635 IFS=$as_save_IFS
4636 test -z "$as_dir" && as_dir=.
4637 for ac_prog in sed gsed; do
4638 for ac_exec_ext in '' $ac_executable_extensions; do
4639 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4640 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4641 # Check for GNU ac_path_SED and select it if it is found.
4642 # Check for GNU $ac_path_SED
4643 case `"$ac_path_SED" --version 2>&1` in
4644 *GNU*)
4645 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4646 *)
4647 ac_count=0
4648 $as_echo_n 0123456789 >"conftest.in"
4649 while :
4650 do
4651 cat "conftest.in" "conftest.in" >"conftest.tmp"
4652 mv "conftest.tmp" "conftest.in"
4653 cp "conftest.in" "conftest.nl"
4654 $as_echo '' >> "conftest.nl"
4655 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4656 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4657 as_fn_arith $ac_count + 1 && ac_count=$as_val
4658 if test $ac_count -gt ${ac_path_SED_max-0}; then
4659 # Best one so far, save it but keep looking for a better one
4660 ac_cv_path_SED="$ac_path_SED"
4661 ac_path_SED_max=$ac_count
4662 fi
4663 # 10*(2^10) chars as input seems more than enough
4664 test $ac_count -gt 10 && break
4665 done
4666 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4667 esac
4668
4669 $ac_path_SED_found && break 3
4670 done
4671 done
4672 done
4673 IFS=$as_save_IFS
4674 if test -z "$ac_cv_path_SED"; then
4675 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4676 fi
4677 else
4678 ac_cv_path_SED=$SED
4679 fi
4680
4681 fi
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4683 $as_echo "$ac_cv_path_SED" >&6; }
4684 SED="$ac_cv_path_SED"
4685 rm -f conftest.sed
4686
4687
4688
4689
4690
4691
4692 # Check whether --enable-selective-werror was given.
4693 if test "${enable_selective_werror+set}" = set; then :
4694 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4695 else
4696 SELECTIVE_WERROR=yes
4697 fi
4698
4699
4700
4701
4702
4703 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4704 if test "x$SUNCC" = "xyes"; then
4705 BASE_CFLAGS="-v"
4706 else
4707 BASE_CFLAGS=""
4708 fi
4709
4710 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724 xorg_testset_save_CFLAGS="$CFLAGS"
4725
4726 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4729 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4730 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4731 $as_echo_n "(cached) " >&6
4732 else
4733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4734 /* end confdefs.h. */
4735 int i;
4736 _ACEOF
4737 if ac_fn_c_try_compile "$LINENO"; then :
4738 xorg_cv_cc_flag_unknown_warning_option=yes
4739 else
4740 xorg_cv_cc_flag_unknown_warning_option=no
4741 fi
4742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4743 fi
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4745 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4746 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4747 CFLAGS="$xorg_testset_save_CFLAGS"
4748 fi
4749
4750 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4752 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4753 fi
4754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4756 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4757 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4758 $as_echo_n "(cached) " >&6
4759 else
4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761 /* end confdefs.h. */
4762 int i;
4763 _ACEOF
4764 if ac_fn_c_try_compile "$LINENO"; then :
4765 xorg_cv_cc_flag_unused_command_line_argument=yes
4766 else
4767 xorg_cv_cc_flag_unused_command_line_argument=no
4768 fi
4769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4770 fi
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4772 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4773 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4774 CFLAGS="$xorg_testset_save_CFLAGS"
4775 fi
4776
4777 found="no"
4778
4779 if test $found = "no" ; then
4780 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4781 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4782 fi
4783
4784 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4786 fi
4787
4788 CFLAGS="$CFLAGS -Wall"
4789
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4791 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4792 cacheid=xorg_cv_cc_flag__Wall
4793 if eval \${$cacheid+:} false; then :
4794 $as_echo_n "(cached) " >&6
4795 else
4796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4797 /* end confdefs.h. */
4798 int i;
4799 int
4800 main ()
4801 {
4802
4803 ;
4804 return 0;
4805 }
4806 _ACEOF
4807 if ac_fn_c_try_link "$LINENO"; then :
4808 eval $cacheid=yes
4809 else
4810 eval $cacheid=no
4811 fi
4812 rm -f core conftest.err conftest.$ac_objext \
4813 conftest$ac_exeext conftest.$ac_ext
4814 fi
4815
4816
4817 CFLAGS="$xorg_testset_save_CFLAGS"
4818
4819 eval supported=\$$cacheid
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4821 $as_echo "$supported" >&6; }
4822 if test "$supported" = "yes" ; then
4823 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4824 found="yes"
4825 fi
4826 fi
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842 xorg_testset_save_CFLAGS="$CFLAGS"
4843
4844 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4847 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4848 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4849 $as_echo_n "(cached) " >&6
4850 else
4851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4852 /* end confdefs.h. */
4853 int i;
4854 _ACEOF
4855 if ac_fn_c_try_compile "$LINENO"; then :
4856 xorg_cv_cc_flag_unknown_warning_option=yes
4857 else
4858 xorg_cv_cc_flag_unknown_warning_option=no
4859 fi
4860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4861 fi
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4863 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4864 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4865 CFLAGS="$xorg_testset_save_CFLAGS"
4866 fi
4867
4868 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4870 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4871 fi
4872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4874 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4875 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4876 $as_echo_n "(cached) " >&6
4877 else
4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h. */
4880 int i;
4881 _ACEOF
4882 if ac_fn_c_try_compile "$LINENO"; then :
4883 xorg_cv_cc_flag_unused_command_line_argument=yes
4884 else
4885 xorg_cv_cc_flag_unused_command_line_argument=no
4886 fi
4887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4888 fi
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4890 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4891 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4892 CFLAGS="$xorg_testset_save_CFLAGS"
4893 fi
4894
4895 found="no"
4896
4897 if test $found = "no" ; then
4898 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4899 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4900 fi
4901
4902 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4904 fi
4905
4906 CFLAGS="$CFLAGS -Wpointer-arith"
4907
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4909 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4910 cacheid=xorg_cv_cc_flag__Wpointer_arith
4911 if eval \${$cacheid+:} false; then :
4912 $as_echo_n "(cached) " >&6
4913 else
4914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4915 /* end confdefs.h. */
4916 int i;
4917 int
4918 main ()
4919 {
4920
4921 ;
4922 return 0;
4923 }
4924 _ACEOF
4925 if ac_fn_c_try_link "$LINENO"; then :
4926 eval $cacheid=yes
4927 else
4928 eval $cacheid=no
4929 fi
4930 rm -f core conftest.err conftest.$ac_objext \
4931 conftest$ac_exeext conftest.$ac_ext
4932 fi
4933
4934
4935 CFLAGS="$xorg_testset_save_CFLAGS"
4936
4937 eval supported=\$$cacheid
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4939 $as_echo "$supported" >&6; }
4940 if test "$supported" = "yes" ; then
4941 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4942 found="yes"
4943 fi
4944 fi
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960 xorg_testset_save_CFLAGS="$CFLAGS"
4961
4962 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4963 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4965 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4966 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4967 $as_echo_n "(cached) " >&6
4968 else
4969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4970 /* end confdefs.h. */
4971 int i;
4972 _ACEOF
4973 if ac_fn_c_try_compile "$LINENO"; then :
4974 xorg_cv_cc_flag_unknown_warning_option=yes
4975 else
4976 xorg_cv_cc_flag_unknown_warning_option=no
4977 fi
4978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4979 fi
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4981 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4982 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4983 CFLAGS="$xorg_testset_save_CFLAGS"
4984 fi
4985
4986 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4988 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4989 fi
4990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4992 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4993 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4994 $as_echo_n "(cached) " >&6
4995 else
4996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4997 /* end confdefs.h. */
4998 int i;
4999 _ACEOF
5000 if ac_fn_c_try_compile "$LINENO"; then :
5001 xorg_cv_cc_flag_unused_command_line_argument=yes
5002 else
5003 xorg_cv_cc_flag_unused_command_line_argument=no
5004 fi
5005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5006 fi
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5008 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5009 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5010 CFLAGS="$xorg_testset_save_CFLAGS"
5011 fi
5012
5013 found="no"
5014
5015 if test $found = "no" ; then
5016 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5017 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5018 fi
5019
5020 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5022 fi
5023
5024 CFLAGS="$CFLAGS -Wmissing-declarations"
5025
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5027 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5028 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5029 if eval \${$cacheid+:} false; then :
5030 $as_echo_n "(cached) " >&6
5031 else
5032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5033 /* end confdefs.h. */
5034 int i;
5035 int
5036 main ()
5037 {
5038
5039 ;
5040 return 0;
5041 }
5042 _ACEOF
5043 if ac_fn_c_try_link "$LINENO"; then :
5044 eval $cacheid=yes
5045 else
5046 eval $cacheid=no
5047 fi
5048 rm -f core conftest.err conftest.$ac_objext \
5049 conftest$ac_exeext conftest.$ac_ext
5050 fi
5051
5052
5053 CFLAGS="$xorg_testset_save_CFLAGS"
5054
5055 eval supported=\$$cacheid
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5057 $as_echo "$supported" >&6; }
5058 if test "$supported" = "yes" ; then
5059 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5060 found="yes"
5061 fi
5062 fi
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078 xorg_testset_save_CFLAGS="$CFLAGS"
5079
5080 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5083 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5084 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5085 $as_echo_n "(cached) " >&6
5086 else
5087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5088 /* end confdefs.h. */
5089 int i;
5090 _ACEOF
5091 if ac_fn_c_try_compile "$LINENO"; then :
5092 xorg_cv_cc_flag_unknown_warning_option=yes
5093 else
5094 xorg_cv_cc_flag_unknown_warning_option=no
5095 fi
5096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5097 fi
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5099 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5100 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5101 CFLAGS="$xorg_testset_save_CFLAGS"
5102 fi
5103
5104 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5106 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5107 fi
5108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5110 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5111 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5112 $as_echo_n "(cached) " >&6
5113 else
5114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115 /* end confdefs.h. */
5116 int i;
5117 _ACEOF
5118 if ac_fn_c_try_compile "$LINENO"; then :
5119 xorg_cv_cc_flag_unused_command_line_argument=yes
5120 else
5121 xorg_cv_cc_flag_unused_command_line_argument=no
5122 fi
5123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5124 fi
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5126 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5127 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5128 CFLAGS="$xorg_testset_save_CFLAGS"
5129 fi
5130
5131 found="no"
5132
5133 if test $found = "no" ; then
5134 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5135 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5136 fi
5137
5138 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5140 fi
5141
5142 CFLAGS="$CFLAGS -Wformat=2"
5143
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5145 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5146 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5147 if eval \${$cacheid+:} false; then :
5148 $as_echo_n "(cached) " >&6
5149 else
5150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5151 /* end confdefs.h. */
5152 int i;
5153 int
5154 main ()
5155 {
5156
5157 ;
5158 return 0;
5159 }
5160 _ACEOF
5161 if ac_fn_c_try_link "$LINENO"; then :
5162 eval $cacheid=yes
5163 else
5164 eval $cacheid=no
5165 fi
5166 rm -f core conftest.err conftest.$ac_objext \
5167 conftest$ac_exeext conftest.$ac_ext
5168 fi
5169
5170
5171 CFLAGS="$xorg_testset_save_CFLAGS"
5172
5173 eval supported=\$$cacheid
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5175 $as_echo "$supported" >&6; }
5176 if test "$supported" = "yes" ; then
5177 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5178 found="yes"
5179 fi
5180 fi
5181
5182 if test $found = "no" ; then
5183 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5184 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5185 fi
5186
5187 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5189 fi
5190
5191 CFLAGS="$CFLAGS -Wformat"
5192
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5194 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5195 cacheid=xorg_cv_cc_flag__Wformat
5196 if eval \${$cacheid+:} false; then :
5197 $as_echo_n "(cached) " >&6
5198 else
5199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5200 /* end confdefs.h. */
5201 int i;
5202 int
5203 main ()
5204 {
5205
5206 ;
5207 return 0;
5208 }
5209 _ACEOF
5210 if ac_fn_c_try_link "$LINENO"; then :
5211 eval $cacheid=yes
5212 else
5213 eval $cacheid=no
5214 fi
5215 rm -f core conftest.err conftest.$ac_objext \
5216 conftest$ac_exeext conftest.$ac_ext
5217 fi
5218
5219
5220 CFLAGS="$xorg_testset_save_CFLAGS"
5221
5222 eval supported=\$$cacheid
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5224 $as_echo "$supported" >&6; }
5225 if test "$supported" = "yes" ; then
5226 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5227 found="yes"
5228 fi
5229 fi
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247 xorg_testset_save_CFLAGS="$CFLAGS"
5248
5249 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5250 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5252 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5253 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5254 $as_echo_n "(cached) " >&6
5255 else
5256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5257 /* end confdefs.h. */
5258 int i;
5259 _ACEOF
5260 if ac_fn_c_try_compile "$LINENO"; then :
5261 xorg_cv_cc_flag_unknown_warning_option=yes
5262 else
5263 xorg_cv_cc_flag_unknown_warning_option=no
5264 fi
5265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5266 fi
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5268 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5269 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5270 CFLAGS="$xorg_testset_save_CFLAGS"
5271 fi
5272
5273 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5276 fi
5277 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5279 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5280 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5281 $as_echo_n "(cached) " >&6
5282 else
5283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5284 /* end confdefs.h. */
5285 int i;
5286 _ACEOF
5287 if ac_fn_c_try_compile "$LINENO"; then :
5288 xorg_cv_cc_flag_unused_command_line_argument=yes
5289 else
5290 xorg_cv_cc_flag_unused_command_line_argument=no
5291 fi
5292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5293 fi
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5295 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5296 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5297 CFLAGS="$xorg_testset_save_CFLAGS"
5298 fi
5299
5300 found="no"
5301
5302 if test $found = "no" ; then
5303 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5304 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5305 fi
5306
5307 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5309 fi
5310
5311 CFLAGS="$CFLAGS -Wstrict-prototypes"
5312
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5314 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5315 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5316 if eval \${$cacheid+:} false; then :
5317 $as_echo_n "(cached) " >&6
5318 else
5319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320 /* end confdefs.h. */
5321 int i;
5322 int
5323 main ()
5324 {
5325
5326 ;
5327 return 0;
5328 }
5329 _ACEOF
5330 if ac_fn_c_try_link "$LINENO"; then :
5331 eval $cacheid=yes
5332 else
5333 eval $cacheid=no
5334 fi
5335 rm -f core conftest.err conftest.$ac_objext \
5336 conftest$ac_exeext conftest.$ac_ext
5337 fi
5338
5339
5340 CFLAGS="$xorg_testset_save_CFLAGS"
5341
5342 eval supported=\$$cacheid
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5344 $as_echo "$supported" >&6; }
5345 if test "$supported" = "yes" ; then
5346 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5347 found="yes"
5348 fi
5349 fi
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365 xorg_testset_save_CFLAGS="$CFLAGS"
5366
5367 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5368 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5370 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5371 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5372 $as_echo_n "(cached) " >&6
5373 else
5374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5375 /* end confdefs.h. */
5376 int i;
5377 _ACEOF
5378 if ac_fn_c_try_compile "$LINENO"; then :
5379 xorg_cv_cc_flag_unknown_warning_option=yes
5380 else
5381 xorg_cv_cc_flag_unknown_warning_option=no
5382 fi
5383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5384 fi
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5386 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5387 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5388 CFLAGS="$xorg_testset_save_CFLAGS"
5389 fi
5390
5391 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5393 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5394 fi
5395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5397 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5398 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5399 $as_echo_n "(cached) " >&6
5400 else
5401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5402 /* end confdefs.h. */
5403 int i;
5404 _ACEOF
5405 if ac_fn_c_try_compile "$LINENO"; then :
5406 xorg_cv_cc_flag_unused_command_line_argument=yes
5407 else
5408 xorg_cv_cc_flag_unused_command_line_argument=no
5409 fi
5410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5411 fi
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5413 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5414 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5415 CFLAGS="$xorg_testset_save_CFLAGS"
5416 fi
5417
5418 found="no"
5419
5420 if test $found = "no" ; then
5421 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5422 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5423 fi
5424
5425 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5427 fi
5428
5429 CFLAGS="$CFLAGS -Wmissing-prototypes"
5430
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5432 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5433 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5434 if eval \${$cacheid+:} false; then :
5435 $as_echo_n "(cached) " >&6
5436 else
5437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5438 /* end confdefs.h. */
5439 int i;
5440 int
5441 main ()
5442 {
5443
5444 ;
5445 return 0;
5446 }
5447 _ACEOF
5448 if ac_fn_c_try_link "$LINENO"; then :
5449 eval $cacheid=yes
5450 else
5451 eval $cacheid=no
5452 fi
5453 rm -f core conftest.err conftest.$ac_objext \
5454 conftest$ac_exeext conftest.$ac_ext
5455 fi
5456
5457
5458 CFLAGS="$xorg_testset_save_CFLAGS"
5459
5460 eval supported=\$$cacheid
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5462 $as_echo "$supported" >&6; }
5463 if test "$supported" = "yes" ; then
5464 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5465 found="yes"
5466 fi
5467 fi
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483 xorg_testset_save_CFLAGS="$CFLAGS"
5484
5485 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5486 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5488 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5489 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5490 $as_echo_n "(cached) " >&6
5491 else
5492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5493 /* end confdefs.h. */
5494 int i;
5495 _ACEOF
5496 if ac_fn_c_try_compile "$LINENO"; then :
5497 xorg_cv_cc_flag_unknown_warning_option=yes
5498 else
5499 xorg_cv_cc_flag_unknown_warning_option=no
5500 fi
5501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5502 fi
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5504 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5505 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5506 CFLAGS="$xorg_testset_save_CFLAGS"
5507 fi
5508
5509 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5511 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5512 fi
5513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5515 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5516 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5517 $as_echo_n "(cached) " >&6
5518 else
5519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5520 /* end confdefs.h. */
5521 int i;
5522 _ACEOF
5523 if ac_fn_c_try_compile "$LINENO"; then :
5524 xorg_cv_cc_flag_unused_command_line_argument=yes
5525 else
5526 xorg_cv_cc_flag_unused_command_line_argument=no
5527 fi
5528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5529 fi
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5531 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5532 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5533 CFLAGS="$xorg_testset_save_CFLAGS"
5534 fi
5535
5536 found="no"
5537
5538 if test $found = "no" ; then
5539 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5540 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5541 fi
5542
5543 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5545 fi
5546
5547 CFLAGS="$CFLAGS -Wnested-externs"
5548
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5550 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5551 cacheid=xorg_cv_cc_flag__Wnested_externs
5552 if eval \${$cacheid+:} false; then :
5553 $as_echo_n "(cached) " >&6
5554 else
5555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5556 /* end confdefs.h. */
5557 int i;
5558 int
5559 main ()
5560 {
5561
5562 ;
5563 return 0;
5564 }
5565 _ACEOF
5566 if ac_fn_c_try_link "$LINENO"; then :
5567 eval $cacheid=yes
5568 else
5569 eval $cacheid=no
5570 fi
5571 rm -f core conftest.err conftest.$ac_objext \
5572 conftest$ac_exeext conftest.$ac_ext
5573 fi
5574
5575
5576 CFLAGS="$xorg_testset_save_CFLAGS"
5577
5578 eval supported=\$$cacheid
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5580 $as_echo "$supported" >&6; }
5581 if test "$supported" = "yes" ; then
5582 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5583 found="yes"
5584 fi
5585 fi
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601 xorg_testset_save_CFLAGS="$CFLAGS"
5602
5603 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5604 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5606 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5607 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5608 $as_echo_n "(cached) " >&6
5609 else
5610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5611 /* end confdefs.h. */
5612 int i;
5613 _ACEOF
5614 if ac_fn_c_try_compile "$LINENO"; then :
5615 xorg_cv_cc_flag_unknown_warning_option=yes
5616 else
5617 xorg_cv_cc_flag_unknown_warning_option=no
5618 fi
5619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5620 fi
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5622 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5623 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5624 CFLAGS="$xorg_testset_save_CFLAGS"
5625 fi
5626
5627 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5629 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5630 fi
5631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5633 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5634 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5635 $as_echo_n "(cached) " >&6
5636 else
5637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5638 /* end confdefs.h. */
5639 int i;
5640 _ACEOF
5641 if ac_fn_c_try_compile "$LINENO"; then :
5642 xorg_cv_cc_flag_unused_command_line_argument=yes
5643 else
5644 xorg_cv_cc_flag_unused_command_line_argument=no
5645 fi
5646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5647 fi
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5649 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5650 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5651 CFLAGS="$xorg_testset_save_CFLAGS"
5652 fi
5653
5654 found="no"
5655
5656 if test $found = "no" ; then
5657 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5658 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5659 fi
5660
5661 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5663 fi
5664
5665 CFLAGS="$CFLAGS -Wbad-function-cast"
5666
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5668 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5669 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5670 if eval \${$cacheid+:} false; then :
5671 $as_echo_n "(cached) " >&6
5672 else
5673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5674 /* end confdefs.h. */
5675 int i;
5676 int
5677 main ()
5678 {
5679
5680 ;
5681 return 0;
5682 }
5683 _ACEOF
5684 if ac_fn_c_try_link "$LINENO"; then :
5685 eval $cacheid=yes
5686 else
5687 eval $cacheid=no
5688 fi
5689 rm -f core conftest.err conftest.$ac_objext \
5690 conftest$ac_exeext conftest.$ac_ext
5691 fi
5692
5693
5694 CFLAGS="$xorg_testset_save_CFLAGS"
5695
5696 eval supported=\$$cacheid
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5698 $as_echo "$supported" >&6; }
5699 if test "$supported" = "yes" ; then
5700 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5701 found="yes"
5702 fi
5703 fi
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719 xorg_testset_save_CFLAGS="$CFLAGS"
5720
5721 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5722 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5724 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5725 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5726 $as_echo_n "(cached) " >&6
5727 else
5728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5729 /* end confdefs.h. */
5730 int i;
5731 _ACEOF
5732 if ac_fn_c_try_compile "$LINENO"; then :
5733 xorg_cv_cc_flag_unknown_warning_option=yes
5734 else
5735 xorg_cv_cc_flag_unknown_warning_option=no
5736 fi
5737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5738 fi
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5740 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5741 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5742 CFLAGS="$xorg_testset_save_CFLAGS"
5743 fi
5744
5745 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5747 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5748 fi
5749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5751 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5752 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5753 $as_echo_n "(cached) " >&6
5754 else
5755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5756 /* end confdefs.h. */
5757 int i;
5758 _ACEOF
5759 if ac_fn_c_try_compile "$LINENO"; then :
5760 xorg_cv_cc_flag_unused_command_line_argument=yes
5761 else
5762 xorg_cv_cc_flag_unused_command_line_argument=no
5763 fi
5764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5765 fi
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5767 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5768 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5769 CFLAGS="$xorg_testset_save_CFLAGS"
5770 fi
5771
5772 found="no"
5773
5774 if test $found = "no" ; then
5775 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5776 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5777 fi
5778
5779 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5781 fi
5782
5783 CFLAGS="$CFLAGS -Wold-style-definition"
5784
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5786 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5787 cacheid=xorg_cv_cc_flag__Wold_style_definition
5788 if eval \${$cacheid+:} false; then :
5789 $as_echo_n "(cached) " >&6
5790 else
5791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5792 /* end confdefs.h. */
5793 int i;
5794 int
5795 main ()
5796 {
5797
5798 ;
5799 return 0;
5800 }
5801 _ACEOF
5802 if ac_fn_c_try_link "$LINENO"; then :
5803 eval $cacheid=yes
5804 else
5805 eval $cacheid=no
5806 fi
5807 rm -f core conftest.err conftest.$ac_objext \
5808 conftest$ac_exeext conftest.$ac_ext
5809 fi
5810
5811
5812 CFLAGS="$xorg_testset_save_CFLAGS"
5813
5814 eval supported=\$$cacheid
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5816 $as_echo "$supported" >&6; }
5817 if test "$supported" = "yes" ; then
5818 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5819 found="yes"
5820 fi
5821 fi
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837 xorg_testset_save_CFLAGS="$CFLAGS"
5838
5839 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5840 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5842 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5843 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5844 $as_echo_n "(cached) " >&6
5845 else
5846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5847 /* end confdefs.h. */
5848 int i;
5849 _ACEOF
5850 if ac_fn_c_try_compile "$LINENO"; then :
5851 xorg_cv_cc_flag_unknown_warning_option=yes
5852 else
5853 xorg_cv_cc_flag_unknown_warning_option=no
5854 fi
5855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5856 fi
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5858 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5859 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5860 CFLAGS="$xorg_testset_save_CFLAGS"
5861 fi
5862
5863 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5865 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5866 fi
5867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5869 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5870 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5871 $as_echo_n "(cached) " >&6
5872 else
5873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5874 /* end confdefs.h. */
5875 int i;
5876 _ACEOF
5877 if ac_fn_c_try_compile "$LINENO"; then :
5878 xorg_cv_cc_flag_unused_command_line_argument=yes
5879 else
5880 xorg_cv_cc_flag_unused_command_line_argument=no
5881 fi
5882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5883 fi
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5885 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5886 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5887 CFLAGS="$xorg_testset_save_CFLAGS"
5888 fi
5889
5890 found="no"
5891
5892 if test $found = "no" ; then
5893 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5895 fi
5896
5897 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5899 fi
5900
5901 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5902
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5904 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5905 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5906 if eval \${$cacheid+:} false; then :
5907 $as_echo_n "(cached) " >&6
5908 else
5909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5910 /* end confdefs.h. */
5911 int i;
5912 int
5913 main ()
5914 {
5915
5916 ;
5917 return 0;
5918 }
5919 _ACEOF
5920 if ac_fn_c_try_link "$LINENO"; then :
5921 eval $cacheid=yes
5922 else
5923 eval $cacheid=no
5924 fi
5925 rm -f core conftest.err conftest.$ac_objext \
5926 conftest$ac_exeext conftest.$ac_ext
5927 fi
5928
5929
5930 CFLAGS="$xorg_testset_save_CFLAGS"
5931
5932 eval supported=\$$cacheid
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5934 $as_echo "$supported" >&6; }
5935 if test "$supported" = "yes" ; then
5936 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5937 found="yes"
5938 fi
5939 fi
5940
5941
5942
5943
5944
5945 # This chunk adds additional warnings that could catch undesired effects.
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959 xorg_testset_save_CFLAGS="$CFLAGS"
5960
5961 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5962 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5964 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5965 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5966 $as_echo_n "(cached) " >&6
5967 else
5968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5969 /* end confdefs.h. */
5970 int i;
5971 _ACEOF
5972 if ac_fn_c_try_compile "$LINENO"; then :
5973 xorg_cv_cc_flag_unknown_warning_option=yes
5974 else
5975 xorg_cv_cc_flag_unknown_warning_option=no
5976 fi
5977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5978 fi
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5980 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5981 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5982 CFLAGS="$xorg_testset_save_CFLAGS"
5983 fi
5984
5985 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5988 fi
5989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5991 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5992 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5993 $as_echo_n "(cached) " >&6
5994 else
5995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5996 /* end confdefs.h. */
5997 int i;
5998 _ACEOF
5999 if ac_fn_c_try_compile "$LINENO"; then :
6000 xorg_cv_cc_flag_unused_command_line_argument=yes
6001 else
6002 xorg_cv_cc_flag_unused_command_line_argument=no
6003 fi
6004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6005 fi
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6007 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6008 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6009 CFLAGS="$xorg_testset_save_CFLAGS"
6010 fi
6011
6012 found="no"
6013
6014 if test $found = "no" ; then
6015 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6016 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6017 fi
6018
6019 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6021 fi
6022
6023 CFLAGS="$CFLAGS -Wunused"
6024
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6026 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6027 cacheid=xorg_cv_cc_flag__Wunused
6028 if eval \${$cacheid+:} false; then :
6029 $as_echo_n "(cached) " >&6
6030 else
6031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6032 /* end confdefs.h. */
6033 int i;
6034 int
6035 main ()
6036 {
6037
6038 ;
6039 return 0;
6040 }
6041 _ACEOF
6042 if ac_fn_c_try_link "$LINENO"; then :
6043 eval $cacheid=yes
6044 else
6045 eval $cacheid=no
6046 fi
6047 rm -f core conftest.err conftest.$ac_objext \
6048 conftest$ac_exeext conftest.$ac_ext
6049 fi
6050
6051
6052 CFLAGS="$xorg_testset_save_CFLAGS"
6053
6054 eval supported=\$$cacheid
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6056 $as_echo "$supported" >&6; }
6057 if test "$supported" = "yes" ; then
6058 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6059 found="yes"
6060 fi
6061 fi
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077 xorg_testset_save_CFLAGS="$CFLAGS"
6078
6079 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6080 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6082 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6083 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6084 $as_echo_n "(cached) " >&6
6085 else
6086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6087 /* end confdefs.h. */
6088 int i;
6089 _ACEOF
6090 if ac_fn_c_try_compile "$LINENO"; then :
6091 xorg_cv_cc_flag_unknown_warning_option=yes
6092 else
6093 xorg_cv_cc_flag_unknown_warning_option=no
6094 fi
6095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6096 fi
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6098 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6099 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6100 CFLAGS="$xorg_testset_save_CFLAGS"
6101 fi
6102
6103 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6105 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6106 fi
6107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6109 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6110 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6111 $as_echo_n "(cached) " >&6
6112 else
6113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6114 /* end confdefs.h. */
6115 int i;
6116 _ACEOF
6117 if ac_fn_c_try_compile "$LINENO"; then :
6118 xorg_cv_cc_flag_unused_command_line_argument=yes
6119 else
6120 xorg_cv_cc_flag_unused_command_line_argument=no
6121 fi
6122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6123 fi
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6125 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6126 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6127 CFLAGS="$xorg_testset_save_CFLAGS"
6128 fi
6129
6130 found="no"
6131
6132 if test $found = "no" ; then
6133 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6134 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6135 fi
6136
6137 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6139 fi
6140
6141 CFLAGS="$CFLAGS -Wuninitialized"
6142
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6144 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6145 cacheid=xorg_cv_cc_flag__Wuninitialized
6146 if eval \${$cacheid+:} false; then :
6147 $as_echo_n "(cached) " >&6
6148 else
6149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6150 /* end confdefs.h. */
6151 int i;
6152 int
6153 main ()
6154 {
6155
6156 ;
6157 return 0;
6158 }
6159 _ACEOF
6160 if ac_fn_c_try_link "$LINENO"; then :
6161 eval $cacheid=yes
6162 else
6163 eval $cacheid=no
6164 fi
6165 rm -f core conftest.err conftest.$ac_objext \
6166 conftest$ac_exeext conftest.$ac_ext
6167 fi
6168
6169
6170 CFLAGS="$xorg_testset_save_CFLAGS"
6171
6172 eval supported=\$$cacheid
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6174 $as_echo "$supported" >&6; }
6175 if test "$supported" = "yes" ; then
6176 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6177 found="yes"
6178 fi
6179 fi
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195 xorg_testset_save_CFLAGS="$CFLAGS"
6196
6197 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6198 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6200 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6201 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6202 $as_echo_n "(cached) " >&6
6203 else
6204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6205 /* end confdefs.h. */
6206 int i;
6207 _ACEOF
6208 if ac_fn_c_try_compile "$LINENO"; then :
6209 xorg_cv_cc_flag_unknown_warning_option=yes
6210 else
6211 xorg_cv_cc_flag_unknown_warning_option=no
6212 fi
6213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6214 fi
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6216 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6217 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6218 CFLAGS="$xorg_testset_save_CFLAGS"
6219 fi
6220
6221 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6222 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6223 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6224 fi
6225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6227 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6228 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6229 $as_echo_n "(cached) " >&6
6230 else
6231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6232 /* end confdefs.h. */
6233 int i;
6234 _ACEOF
6235 if ac_fn_c_try_compile "$LINENO"; then :
6236 xorg_cv_cc_flag_unused_command_line_argument=yes
6237 else
6238 xorg_cv_cc_flag_unused_command_line_argument=no
6239 fi
6240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6241 fi
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6243 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6244 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6245 CFLAGS="$xorg_testset_save_CFLAGS"
6246 fi
6247
6248 found="no"
6249
6250 if test $found = "no" ; then
6251 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6252 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6253 fi
6254
6255 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6256 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6257 fi
6258
6259 CFLAGS="$CFLAGS -Wshadow"
6260
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6262 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6263 cacheid=xorg_cv_cc_flag__Wshadow
6264 if eval \${$cacheid+:} false; then :
6265 $as_echo_n "(cached) " >&6
6266 else
6267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6268 /* end confdefs.h. */
6269 int i;
6270 int
6271 main ()
6272 {
6273
6274 ;
6275 return 0;
6276 }
6277 _ACEOF
6278 if ac_fn_c_try_link "$LINENO"; then :
6279 eval $cacheid=yes
6280 else
6281 eval $cacheid=no
6282 fi
6283 rm -f core conftest.err conftest.$ac_objext \
6284 conftest$ac_exeext conftest.$ac_ext
6285 fi
6286
6287
6288 CFLAGS="$xorg_testset_save_CFLAGS"
6289
6290 eval supported=\$$cacheid
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6292 $as_echo "$supported" >&6; }
6293 if test "$supported" = "yes" ; then
6294 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6295 found="yes"
6296 fi
6297 fi
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313 xorg_testset_save_CFLAGS="$CFLAGS"
6314
6315 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6316 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6318 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6319 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6320 $as_echo_n "(cached) " >&6
6321 else
6322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6323 /* end confdefs.h. */
6324 int i;
6325 _ACEOF
6326 if ac_fn_c_try_compile "$LINENO"; then :
6327 xorg_cv_cc_flag_unknown_warning_option=yes
6328 else
6329 xorg_cv_cc_flag_unknown_warning_option=no
6330 fi
6331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6332 fi
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6334 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6335 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6336 CFLAGS="$xorg_testset_save_CFLAGS"
6337 fi
6338
6339 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6341 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6342 fi
6343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6345 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6346 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6347 $as_echo_n "(cached) " >&6
6348 else
6349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6350 /* end confdefs.h. */
6351 int i;
6352 _ACEOF
6353 if ac_fn_c_try_compile "$LINENO"; then :
6354 xorg_cv_cc_flag_unused_command_line_argument=yes
6355 else
6356 xorg_cv_cc_flag_unused_command_line_argument=no
6357 fi
6358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6359 fi
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6361 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6362 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6363 CFLAGS="$xorg_testset_save_CFLAGS"
6364 fi
6365
6366 found="no"
6367
6368 if test $found = "no" ; then
6369 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6370 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6371 fi
6372
6373 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6375 fi
6376
6377 CFLAGS="$CFLAGS -Wcast-qual"
6378
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6380 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6381 cacheid=xorg_cv_cc_flag__Wcast_qual
6382 if eval \${$cacheid+:} false; then :
6383 $as_echo_n "(cached) " >&6
6384 else
6385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6386 /* end confdefs.h. */
6387 int i;
6388 int
6389 main ()
6390 {
6391
6392 ;
6393 return 0;
6394 }
6395 _ACEOF
6396 if ac_fn_c_try_link "$LINENO"; then :
6397 eval $cacheid=yes
6398 else
6399 eval $cacheid=no
6400 fi
6401 rm -f core conftest.err conftest.$ac_objext \
6402 conftest$ac_exeext conftest.$ac_ext
6403 fi
6404
6405
6406 CFLAGS="$xorg_testset_save_CFLAGS"
6407
6408 eval supported=\$$cacheid
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6410 $as_echo "$supported" >&6; }
6411 if test "$supported" = "yes" ; then
6412 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6413 found="yes"
6414 fi
6415 fi
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431 xorg_testset_save_CFLAGS="$CFLAGS"
6432
6433 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6434 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6436 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6437 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6438 $as_echo_n "(cached) " >&6
6439 else
6440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6441 /* end confdefs.h. */
6442 int i;
6443 _ACEOF
6444 if ac_fn_c_try_compile "$LINENO"; then :
6445 xorg_cv_cc_flag_unknown_warning_option=yes
6446 else
6447 xorg_cv_cc_flag_unknown_warning_option=no
6448 fi
6449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6450 fi
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6452 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6453 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6454 CFLAGS="$xorg_testset_save_CFLAGS"
6455 fi
6456
6457 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6459 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6460 fi
6461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6463 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6464 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6465 $as_echo_n "(cached) " >&6
6466 else
6467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6468 /* end confdefs.h. */
6469 int i;
6470 _ACEOF
6471 if ac_fn_c_try_compile "$LINENO"; then :
6472 xorg_cv_cc_flag_unused_command_line_argument=yes
6473 else
6474 xorg_cv_cc_flag_unused_command_line_argument=no
6475 fi
6476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6477 fi
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6479 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6480 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6481 CFLAGS="$xorg_testset_save_CFLAGS"
6482 fi
6483
6484 found="no"
6485
6486 if test $found = "no" ; then
6487 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6488 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6489 fi
6490
6491 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6493 fi
6494
6495 CFLAGS="$CFLAGS -Wmissing-noreturn"
6496
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6498 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6499 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6500 if eval \${$cacheid+:} false; then :
6501 $as_echo_n "(cached) " >&6
6502 else
6503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6504 /* end confdefs.h. */
6505 int i;
6506 int
6507 main ()
6508 {
6509
6510 ;
6511 return 0;
6512 }
6513 _ACEOF
6514 if ac_fn_c_try_link "$LINENO"; then :
6515 eval $cacheid=yes
6516 else
6517 eval $cacheid=no
6518 fi
6519 rm -f core conftest.err conftest.$ac_objext \
6520 conftest$ac_exeext conftest.$ac_ext
6521 fi
6522
6523
6524 CFLAGS="$xorg_testset_save_CFLAGS"
6525
6526 eval supported=\$$cacheid
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6528 $as_echo "$supported" >&6; }
6529 if test "$supported" = "yes" ; then
6530 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6531 found="yes"
6532 fi
6533 fi
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549 xorg_testset_save_CFLAGS="$CFLAGS"
6550
6551 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6552 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6554 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6555 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6556 $as_echo_n "(cached) " >&6
6557 else
6558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6559 /* end confdefs.h. */
6560 int i;
6561 _ACEOF
6562 if ac_fn_c_try_compile "$LINENO"; then :
6563 xorg_cv_cc_flag_unknown_warning_option=yes
6564 else
6565 xorg_cv_cc_flag_unknown_warning_option=no
6566 fi
6567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6568 fi
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6570 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6571 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6572 CFLAGS="$xorg_testset_save_CFLAGS"
6573 fi
6574
6575 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6577 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6578 fi
6579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6581 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6582 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6583 $as_echo_n "(cached) " >&6
6584 else
6585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6586 /* end confdefs.h. */
6587 int i;
6588 _ACEOF
6589 if ac_fn_c_try_compile "$LINENO"; then :
6590 xorg_cv_cc_flag_unused_command_line_argument=yes
6591 else
6592 xorg_cv_cc_flag_unused_command_line_argument=no
6593 fi
6594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6595 fi
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6597 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6598 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6599 CFLAGS="$xorg_testset_save_CFLAGS"
6600 fi
6601
6602 found="no"
6603
6604 if test $found = "no" ; then
6605 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6606 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6607 fi
6608
6609 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6611 fi
6612
6613 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6614
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6616 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6617 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6618 if eval \${$cacheid+:} false; then :
6619 $as_echo_n "(cached) " >&6
6620 else
6621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6622 /* end confdefs.h. */
6623 int i;
6624 int
6625 main ()
6626 {
6627
6628 ;
6629 return 0;
6630 }
6631 _ACEOF
6632 if ac_fn_c_try_link "$LINENO"; then :
6633 eval $cacheid=yes
6634 else
6635 eval $cacheid=no
6636 fi
6637 rm -f core conftest.err conftest.$ac_objext \
6638 conftest$ac_exeext conftest.$ac_ext
6639 fi
6640
6641
6642 CFLAGS="$xorg_testset_save_CFLAGS"
6643
6644 eval supported=\$$cacheid
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6646 $as_echo "$supported" >&6; }
6647 if test "$supported" = "yes" ; then
6648 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6649 found="yes"
6650 fi
6651 fi
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667 xorg_testset_save_CFLAGS="$CFLAGS"
6668
6669 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6670 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6672 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6673 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6674 $as_echo_n "(cached) " >&6
6675 else
6676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6677 /* end confdefs.h. */
6678 int i;
6679 _ACEOF
6680 if ac_fn_c_try_compile "$LINENO"; then :
6681 xorg_cv_cc_flag_unknown_warning_option=yes
6682 else
6683 xorg_cv_cc_flag_unknown_warning_option=no
6684 fi
6685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6686 fi
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6688 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6689 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6690 CFLAGS="$xorg_testset_save_CFLAGS"
6691 fi
6692
6693 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6694 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6695 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6696 fi
6697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6699 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6700 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6701 $as_echo_n "(cached) " >&6
6702 else
6703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6704 /* end confdefs.h. */
6705 int i;
6706 _ACEOF
6707 if ac_fn_c_try_compile "$LINENO"; then :
6708 xorg_cv_cc_flag_unused_command_line_argument=yes
6709 else
6710 xorg_cv_cc_flag_unused_command_line_argument=no
6711 fi
6712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6713 fi
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6715 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6716 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6717 CFLAGS="$xorg_testset_save_CFLAGS"
6718 fi
6719
6720 found="no"
6721
6722 if test $found = "no" ; then
6723 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6724 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6725 fi
6726
6727 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6729 fi
6730
6731 CFLAGS="$CFLAGS -Wredundant-decls"
6732
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6734 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6735 cacheid=xorg_cv_cc_flag__Wredundant_decls
6736 if eval \${$cacheid+:} false; then :
6737 $as_echo_n "(cached) " >&6
6738 else
6739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6740 /* end confdefs.h. */
6741 int i;
6742 int
6743 main ()
6744 {
6745
6746 ;
6747 return 0;
6748 }
6749 _ACEOF
6750 if ac_fn_c_try_link "$LINENO"; then :
6751 eval $cacheid=yes
6752 else
6753 eval $cacheid=no
6754 fi
6755 rm -f core conftest.err conftest.$ac_objext \
6756 conftest$ac_exeext conftest.$ac_ext
6757 fi
6758
6759
6760 CFLAGS="$xorg_testset_save_CFLAGS"
6761
6762 eval supported=\$$cacheid
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6764 $as_echo "$supported" >&6; }
6765 if test "$supported" = "yes" ; then
6766 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6767 found="yes"
6768 fi
6769 fi
6770
6771
6772
6773 # These are currently disabled because they are noisy. They will be enabled
6774 # in the future once the codebase is sufficiently modernized to silence
6775 # them. For now, I don't want them to drown out the other warnings.
6776 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6777 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6778 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6779
6780 # Turn some warnings into errors, so we don't accidently get successful builds
6781 # when there are problems that should be fixed.
6782
6783 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797 xorg_testset_save_CFLAGS="$CFLAGS"
6798
6799 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6800 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6802 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6803 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6804 $as_echo_n "(cached) " >&6
6805 else
6806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6807 /* end confdefs.h. */
6808 int i;
6809 _ACEOF
6810 if ac_fn_c_try_compile "$LINENO"; then :
6811 xorg_cv_cc_flag_unknown_warning_option=yes
6812 else
6813 xorg_cv_cc_flag_unknown_warning_option=no
6814 fi
6815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6816 fi
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6818 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6819 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6820 CFLAGS="$xorg_testset_save_CFLAGS"
6821 fi
6822
6823 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6825 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6826 fi
6827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6829 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6830 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6831 $as_echo_n "(cached) " >&6
6832 else
6833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6834 /* end confdefs.h. */
6835 int i;
6836 _ACEOF
6837 if ac_fn_c_try_compile "$LINENO"; then :
6838 xorg_cv_cc_flag_unused_command_line_argument=yes
6839 else
6840 xorg_cv_cc_flag_unused_command_line_argument=no
6841 fi
6842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6843 fi
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6845 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6846 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6847 CFLAGS="$xorg_testset_save_CFLAGS"
6848 fi
6849
6850 found="no"
6851
6852 if test $found = "no" ; then
6853 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6855 fi
6856
6857 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6859 fi
6860
6861 CFLAGS="$CFLAGS -Werror=implicit"
6862
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6864 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6865 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6866 if eval \${$cacheid+:} false; then :
6867 $as_echo_n "(cached) " >&6
6868 else
6869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6870 /* end confdefs.h. */
6871 int i;
6872 int
6873 main ()
6874 {
6875
6876 ;
6877 return 0;
6878 }
6879 _ACEOF
6880 if ac_fn_c_try_link "$LINENO"; then :
6881 eval $cacheid=yes
6882 else
6883 eval $cacheid=no
6884 fi
6885 rm -f core conftest.err conftest.$ac_objext \
6886 conftest$ac_exeext conftest.$ac_ext
6887 fi
6888
6889
6890 CFLAGS="$xorg_testset_save_CFLAGS"
6891
6892 eval supported=\$$cacheid
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6894 $as_echo "$supported" >&6; }
6895 if test "$supported" = "yes" ; then
6896 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6897 found="yes"
6898 fi
6899 fi
6900
6901 if test $found = "no" ; then
6902 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6903 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6904 fi
6905
6906 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6908 fi
6909
6910 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6911
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6913 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6914 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6915 if eval \${$cacheid+:} false; then :
6916 $as_echo_n "(cached) " >&6
6917 else
6918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6919 /* end confdefs.h. */
6920 int i;
6921 int
6922 main ()
6923 {
6924
6925 ;
6926 return 0;
6927 }
6928 _ACEOF
6929 if ac_fn_c_try_link "$LINENO"; then :
6930 eval $cacheid=yes
6931 else
6932 eval $cacheid=no
6933 fi
6934 rm -f core conftest.err conftest.$ac_objext \
6935 conftest$ac_exeext conftest.$ac_ext
6936 fi
6937
6938
6939 CFLAGS="$xorg_testset_save_CFLAGS"
6940
6941 eval supported=\$$cacheid
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6943 $as_echo "$supported" >&6; }
6944 if test "$supported" = "yes" ; then
6945 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6946 found="yes"
6947 fi
6948 fi
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964 xorg_testset_save_CFLAGS="$CFLAGS"
6965
6966 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6967 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6969 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6970 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6971 $as_echo_n "(cached) " >&6
6972 else
6973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6974 /* end confdefs.h. */
6975 int i;
6976 _ACEOF
6977 if ac_fn_c_try_compile "$LINENO"; then :
6978 xorg_cv_cc_flag_unknown_warning_option=yes
6979 else
6980 xorg_cv_cc_flag_unknown_warning_option=no
6981 fi
6982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6983 fi
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6985 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6986 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6987 CFLAGS="$xorg_testset_save_CFLAGS"
6988 fi
6989
6990 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6993 fi
6994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6996 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6997 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6998 $as_echo_n "(cached) " >&6
6999 else
7000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7001 /* end confdefs.h. */
7002 int i;
7003 _ACEOF
7004 if ac_fn_c_try_compile "$LINENO"; then :
7005 xorg_cv_cc_flag_unused_command_line_argument=yes
7006 else
7007 xorg_cv_cc_flag_unused_command_line_argument=no
7008 fi
7009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7010 fi
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7012 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7013 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7014 CFLAGS="$xorg_testset_save_CFLAGS"
7015 fi
7016
7017 found="no"
7018
7019 if test $found = "no" ; then
7020 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7021 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7022 fi
7023
7024 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7026 fi
7027
7028 CFLAGS="$CFLAGS -Werror=nonnull"
7029
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7031 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7032 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
7033 if eval \${$cacheid+:} false; then :
7034 $as_echo_n "(cached) " >&6
7035 else
7036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7037 /* end confdefs.h. */
7038 int i;
7039 int
7040 main ()
7041 {
7042
7043 ;
7044 return 0;
7045 }
7046 _ACEOF
7047 if ac_fn_c_try_link "$LINENO"; then :
7048 eval $cacheid=yes
7049 else
7050 eval $cacheid=no
7051 fi
7052 rm -f core conftest.err conftest.$ac_objext \
7053 conftest$ac_exeext conftest.$ac_ext
7054 fi
7055
7056
7057 CFLAGS="$xorg_testset_save_CFLAGS"
7058
7059 eval supported=\$$cacheid
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7061 $as_echo "$supported" >&6; }
7062 if test "$supported" = "yes" ; then
7063 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7064 found="yes"
7065 fi
7066 fi
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082 xorg_testset_save_CFLAGS="$CFLAGS"
7083
7084 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7087 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7088 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7089 $as_echo_n "(cached) " >&6
7090 else
7091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7092 /* end confdefs.h. */
7093 int i;
7094 _ACEOF
7095 if ac_fn_c_try_compile "$LINENO"; then :
7096 xorg_cv_cc_flag_unknown_warning_option=yes
7097 else
7098 xorg_cv_cc_flag_unknown_warning_option=no
7099 fi
7100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7101 fi
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7103 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7104 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7105 CFLAGS="$xorg_testset_save_CFLAGS"
7106 fi
7107
7108 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7110 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7111 fi
7112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7114 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7115 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7116 $as_echo_n "(cached) " >&6
7117 else
7118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7119 /* end confdefs.h. */
7120 int i;
7121 _ACEOF
7122 if ac_fn_c_try_compile "$LINENO"; then :
7123 xorg_cv_cc_flag_unused_command_line_argument=yes
7124 else
7125 xorg_cv_cc_flag_unused_command_line_argument=no
7126 fi
7127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7128 fi
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7130 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7131 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7132 CFLAGS="$xorg_testset_save_CFLAGS"
7133 fi
7134
7135 found="no"
7136
7137 if test $found = "no" ; then
7138 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7139 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7140 fi
7141
7142 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7144 fi
7145
7146 CFLAGS="$CFLAGS -Werror=init-self"
7147
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7149 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7150 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7151 if eval \${$cacheid+:} false; then :
7152 $as_echo_n "(cached) " >&6
7153 else
7154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7155 /* end confdefs.h. */
7156 int i;
7157 int
7158 main ()
7159 {
7160
7161 ;
7162 return 0;
7163 }
7164 _ACEOF
7165 if ac_fn_c_try_link "$LINENO"; then :
7166 eval $cacheid=yes
7167 else
7168 eval $cacheid=no
7169 fi
7170 rm -f core conftest.err conftest.$ac_objext \
7171 conftest$ac_exeext conftest.$ac_ext
7172 fi
7173
7174
7175 CFLAGS="$xorg_testset_save_CFLAGS"
7176
7177 eval supported=\$$cacheid
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7179 $as_echo "$supported" >&6; }
7180 if test "$supported" = "yes" ; then
7181 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7182 found="yes"
7183 fi
7184 fi
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200 xorg_testset_save_CFLAGS="$CFLAGS"
7201
7202 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7205 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7206 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7207 $as_echo_n "(cached) " >&6
7208 else
7209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7210 /* end confdefs.h. */
7211 int i;
7212 _ACEOF
7213 if ac_fn_c_try_compile "$LINENO"; then :
7214 xorg_cv_cc_flag_unknown_warning_option=yes
7215 else
7216 xorg_cv_cc_flag_unknown_warning_option=no
7217 fi
7218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7219 fi
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7221 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7222 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7223 CFLAGS="$xorg_testset_save_CFLAGS"
7224 fi
7225
7226 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7228 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7229 fi
7230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7232 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7233 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7234 $as_echo_n "(cached) " >&6
7235 else
7236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7237 /* end confdefs.h. */
7238 int i;
7239 _ACEOF
7240 if ac_fn_c_try_compile "$LINENO"; then :
7241 xorg_cv_cc_flag_unused_command_line_argument=yes
7242 else
7243 xorg_cv_cc_flag_unused_command_line_argument=no
7244 fi
7245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7246 fi
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7248 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7249 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7250 CFLAGS="$xorg_testset_save_CFLAGS"
7251 fi
7252
7253 found="no"
7254
7255 if test $found = "no" ; then
7256 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7257 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7258 fi
7259
7260 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7262 fi
7263
7264 CFLAGS="$CFLAGS -Werror=main"
7265
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7267 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7268 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7269 if eval \${$cacheid+:} false; then :
7270 $as_echo_n "(cached) " >&6
7271 else
7272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7273 /* end confdefs.h. */
7274 int i;
7275 int
7276 main ()
7277 {
7278
7279 ;
7280 return 0;
7281 }
7282 _ACEOF
7283 if ac_fn_c_try_link "$LINENO"; then :
7284 eval $cacheid=yes
7285 else
7286 eval $cacheid=no
7287 fi
7288 rm -f core conftest.err conftest.$ac_objext \
7289 conftest$ac_exeext conftest.$ac_ext
7290 fi
7291
7292
7293 CFLAGS="$xorg_testset_save_CFLAGS"
7294
7295 eval supported=\$$cacheid
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7297 $as_echo "$supported" >&6; }
7298 if test "$supported" = "yes" ; then
7299 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7300 found="yes"
7301 fi
7302 fi
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318 xorg_testset_save_CFLAGS="$CFLAGS"
7319
7320 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7321 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7323 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7324 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7325 $as_echo_n "(cached) " >&6
7326 else
7327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7328 /* end confdefs.h. */
7329 int i;
7330 _ACEOF
7331 if ac_fn_c_try_compile "$LINENO"; then :
7332 xorg_cv_cc_flag_unknown_warning_option=yes
7333 else
7334 xorg_cv_cc_flag_unknown_warning_option=no
7335 fi
7336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7337 fi
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7339 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7340 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7341 CFLAGS="$xorg_testset_save_CFLAGS"
7342 fi
7343
7344 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7346 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7347 fi
7348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7350 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7351 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7352 $as_echo_n "(cached) " >&6
7353 else
7354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7355 /* end confdefs.h. */
7356 int i;
7357 _ACEOF
7358 if ac_fn_c_try_compile "$LINENO"; then :
7359 xorg_cv_cc_flag_unused_command_line_argument=yes
7360 else
7361 xorg_cv_cc_flag_unused_command_line_argument=no
7362 fi
7363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7364 fi
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7366 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7367 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7368 CFLAGS="$xorg_testset_save_CFLAGS"
7369 fi
7370
7371 found="no"
7372
7373 if test $found = "no" ; then
7374 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7376 fi
7377
7378 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7380 fi
7381
7382 CFLAGS="$CFLAGS -Werror=missing-braces"
7383
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7385 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7386 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7387 if eval \${$cacheid+:} false; then :
7388 $as_echo_n "(cached) " >&6
7389 else
7390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7391 /* end confdefs.h. */
7392 int i;
7393 int
7394 main ()
7395 {
7396
7397 ;
7398 return 0;
7399 }
7400 _ACEOF
7401 if ac_fn_c_try_link "$LINENO"; then :
7402 eval $cacheid=yes
7403 else
7404 eval $cacheid=no
7405 fi
7406 rm -f core conftest.err conftest.$ac_objext \
7407 conftest$ac_exeext conftest.$ac_ext
7408 fi
7409
7410
7411 CFLAGS="$xorg_testset_save_CFLAGS"
7412
7413 eval supported=\$$cacheid
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7415 $as_echo "$supported" >&6; }
7416 if test "$supported" = "yes" ; then
7417 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7418 found="yes"
7419 fi
7420 fi
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436 xorg_testset_save_CFLAGS="$CFLAGS"
7437
7438 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7439 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7441 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7442 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7443 $as_echo_n "(cached) " >&6
7444 else
7445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7446 /* end confdefs.h. */
7447 int i;
7448 _ACEOF
7449 if ac_fn_c_try_compile "$LINENO"; then :
7450 xorg_cv_cc_flag_unknown_warning_option=yes
7451 else
7452 xorg_cv_cc_flag_unknown_warning_option=no
7453 fi
7454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7455 fi
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7457 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7458 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7459 CFLAGS="$xorg_testset_save_CFLAGS"
7460 fi
7461
7462 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7464 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7465 fi
7466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7468 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7469 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7470 $as_echo_n "(cached) " >&6
7471 else
7472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7473 /* end confdefs.h. */
7474 int i;
7475 _ACEOF
7476 if ac_fn_c_try_compile "$LINENO"; then :
7477 xorg_cv_cc_flag_unused_command_line_argument=yes
7478 else
7479 xorg_cv_cc_flag_unused_command_line_argument=no
7480 fi
7481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7482 fi
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7484 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7485 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7486 CFLAGS="$xorg_testset_save_CFLAGS"
7487 fi
7488
7489 found="no"
7490
7491 if test $found = "no" ; then
7492 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7493 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7494 fi
7495
7496 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7498 fi
7499
7500 CFLAGS="$CFLAGS -Werror=sequence-point"
7501
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7503 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7504 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7505 if eval \${$cacheid+:} false; then :
7506 $as_echo_n "(cached) " >&6
7507 else
7508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7509 /* end confdefs.h. */
7510 int i;
7511 int
7512 main ()
7513 {
7514
7515 ;
7516 return 0;
7517 }
7518 _ACEOF
7519 if ac_fn_c_try_link "$LINENO"; then :
7520 eval $cacheid=yes
7521 else
7522 eval $cacheid=no
7523 fi
7524 rm -f core conftest.err conftest.$ac_objext \
7525 conftest$ac_exeext conftest.$ac_ext
7526 fi
7527
7528
7529 CFLAGS="$xorg_testset_save_CFLAGS"
7530
7531 eval supported=\$$cacheid
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7533 $as_echo "$supported" >&6; }
7534 if test "$supported" = "yes" ; then
7535 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7536 found="yes"
7537 fi
7538 fi
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554 xorg_testset_save_CFLAGS="$CFLAGS"
7555
7556 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7557 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7559 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7560 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7561 $as_echo_n "(cached) " >&6
7562 else
7563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7564 /* end confdefs.h. */
7565 int i;
7566 _ACEOF
7567 if ac_fn_c_try_compile "$LINENO"; then :
7568 xorg_cv_cc_flag_unknown_warning_option=yes
7569 else
7570 xorg_cv_cc_flag_unknown_warning_option=no
7571 fi
7572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7573 fi
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7575 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7576 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7577 CFLAGS="$xorg_testset_save_CFLAGS"
7578 fi
7579
7580 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7583 fi
7584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7586 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7587 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7588 $as_echo_n "(cached) " >&6
7589 else
7590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7591 /* end confdefs.h. */
7592 int i;
7593 _ACEOF
7594 if ac_fn_c_try_compile "$LINENO"; then :
7595 xorg_cv_cc_flag_unused_command_line_argument=yes
7596 else
7597 xorg_cv_cc_flag_unused_command_line_argument=no
7598 fi
7599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7600 fi
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7602 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7603 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7604 CFLAGS="$xorg_testset_save_CFLAGS"
7605 fi
7606
7607 found="no"
7608
7609 if test $found = "no" ; then
7610 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7611 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7612 fi
7613
7614 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7616 fi
7617
7618 CFLAGS="$CFLAGS -Werror=return-type"
7619
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7621 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7622 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7623 if eval \${$cacheid+:} false; then :
7624 $as_echo_n "(cached) " >&6
7625 else
7626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7627 /* end confdefs.h. */
7628 int i;
7629 int
7630 main ()
7631 {
7632
7633 ;
7634 return 0;
7635 }
7636 _ACEOF
7637 if ac_fn_c_try_link "$LINENO"; then :
7638 eval $cacheid=yes
7639 else
7640 eval $cacheid=no
7641 fi
7642 rm -f core conftest.err conftest.$ac_objext \
7643 conftest$ac_exeext conftest.$ac_ext
7644 fi
7645
7646
7647 CFLAGS="$xorg_testset_save_CFLAGS"
7648
7649 eval supported=\$$cacheid
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7651 $as_echo "$supported" >&6; }
7652 if test "$supported" = "yes" ; then
7653 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7654 found="yes"
7655 fi
7656 fi
7657
7658 if test $found = "no" ; then
7659 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7660 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7661 fi
7662
7663 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7665 fi
7666
7667 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7668
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7670 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7671 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7672 if eval \${$cacheid+:} false; then :
7673 $as_echo_n "(cached) " >&6
7674 else
7675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7676 /* end confdefs.h. */
7677 int i;
7678 int
7679 main ()
7680 {
7681
7682 ;
7683 return 0;
7684 }
7685 _ACEOF
7686 if ac_fn_c_try_link "$LINENO"; then :
7687 eval $cacheid=yes
7688 else
7689 eval $cacheid=no
7690 fi
7691 rm -f core conftest.err conftest.$ac_objext \
7692 conftest$ac_exeext conftest.$ac_ext
7693 fi
7694
7695
7696 CFLAGS="$xorg_testset_save_CFLAGS"
7697
7698 eval supported=\$$cacheid
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7700 $as_echo "$supported" >&6; }
7701 if test "$supported" = "yes" ; then
7702 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7703 found="yes"
7704 fi
7705 fi
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721 xorg_testset_save_CFLAGS="$CFLAGS"
7722
7723 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7724 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7726 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7727 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7728 $as_echo_n "(cached) " >&6
7729 else
7730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7731 /* end confdefs.h. */
7732 int i;
7733 _ACEOF
7734 if ac_fn_c_try_compile "$LINENO"; then :
7735 xorg_cv_cc_flag_unknown_warning_option=yes
7736 else
7737 xorg_cv_cc_flag_unknown_warning_option=no
7738 fi
7739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7740 fi
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7742 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7743 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7744 CFLAGS="$xorg_testset_save_CFLAGS"
7745 fi
7746
7747 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7749 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7750 fi
7751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7753 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7754 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7755 $as_echo_n "(cached) " >&6
7756 else
7757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7758 /* end confdefs.h. */
7759 int i;
7760 _ACEOF
7761 if ac_fn_c_try_compile "$LINENO"; then :
7762 xorg_cv_cc_flag_unused_command_line_argument=yes
7763 else
7764 xorg_cv_cc_flag_unused_command_line_argument=no
7765 fi
7766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7767 fi
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7769 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7770 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7771 CFLAGS="$xorg_testset_save_CFLAGS"
7772 fi
7773
7774 found="no"
7775
7776 if test $found = "no" ; then
7777 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7778 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7779 fi
7780
7781 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7783 fi
7784
7785 CFLAGS="$CFLAGS -Werror=trigraphs"
7786
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7788 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7789 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7790 if eval \${$cacheid+:} false; then :
7791 $as_echo_n "(cached) " >&6
7792 else
7793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7794 /* end confdefs.h. */
7795 int i;
7796 int
7797 main ()
7798 {
7799
7800 ;
7801 return 0;
7802 }
7803 _ACEOF
7804 if ac_fn_c_try_link "$LINENO"; then :
7805 eval $cacheid=yes
7806 else
7807 eval $cacheid=no
7808 fi
7809 rm -f core conftest.err conftest.$ac_objext \
7810 conftest$ac_exeext conftest.$ac_ext
7811 fi
7812
7813
7814 CFLAGS="$xorg_testset_save_CFLAGS"
7815
7816 eval supported=\$$cacheid
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7818 $as_echo "$supported" >&6; }
7819 if test "$supported" = "yes" ; then
7820 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7821 found="yes"
7822 fi
7823 fi
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839 xorg_testset_save_CFLAGS="$CFLAGS"
7840
7841 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7842 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7844 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7845 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7846 $as_echo_n "(cached) " >&6
7847 else
7848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7849 /* end confdefs.h. */
7850 int i;
7851 _ACEOF
7852 if ac_fn_c_try_compile "$LINENO"; then :
7853 xorg_cv_cc_flag_unknown_warning_option=yes
7854 else
7855 xorg_cv_cc_flag_unknown_warning_option=no
7856 fi
7857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7858 fi
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7860 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7861 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7862 CFLAGS="$xorg_testset_save_CFLAGS"
7863 fi
7864
7865 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7866 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7867 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7868 fi
7869 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7871 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7872 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7873 $as_echo_n "(cached) " >&6
7874 else
7875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7876 /* end confdefs.h. */
7877 int i;
7878 _ACEOF
7879 if ac_fn_c_try_compile "$LINENO"; then :
7880 xorg_cv_cc_flag_unused_command_line_argument=yes
7881 else
7882 xorg_cv_cc_flag_unused_command_line_argument=no
7883 fi
7884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7885 fi
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7887 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7888 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7889 CFLAGS="$xorg_testset_save_CFLAGS"
7890 fi
7891
7892 found="no"
7893
7894 if test $found = "no" ; then
7895 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7896 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7897 fi
7898
7899 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7901 fi
7902
7903 CFLAGS="$CFLAGS -Werror=array-bounds"
7904
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7906 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7907 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7908 if eval \${$cacheid+:} false; then :
7909 $as_echo_n "(cached) " >&6
7910 else
7911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7912 /* end confdefs.h. */
7913 int i;
7914 int
7915 main ()
7916 {
7917
7918 ;
7919 return 0;
7920 }
7921 _ACEOF
7922 if ac_fn_c_try_link "$LINENO"; then :
7923 eval $cacheid=yes
7924 else
7925 eval $cacheid=no
7926 fi
7927 rm -f core conftest.err conftest.$ac_objext \
7928 conftest$ac_exeext conftest.$ac_ext
7929 fi
7930
7931
7932 CFLAGS="$xorg_testset_save_CFLAGS"
7933
7934 eval supported=\$$cacheid
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7936 $as_echo "$supported" >&6; }
7937 if test "$supported" = "yes" ; then
7938 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7939 found="yes"
7940 fi
7941 fi
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957 xorg_testset_save_CFLAGS="$CFLAGS"
7958
7959 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7960 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7962 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7963 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7964 $as_echo_n "(cached) " >&6
7965 else
7966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7967 /* end confdefs.h. */
7968 int i;
7969 _ACEOF
7970 if ac_fn_c_try_compile "$LINENO"; then :
7971 xorg_cv_cc_flag_unknown_warning_option=yes
7972 else
7973 xorg_cv_cc_flag_unknown_warning_option=no
7974 fi
7975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7976 fi
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7978 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7979 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7980 CFLAGS="$xorg_testset_save_CFLAGS"
7981 fi
7982
7983 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7985 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7986 fi
7987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7989 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7990 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7991 $as_echo_n "(cached) " >&6
7992 else
7993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7994 /* end confdefs.h. */
7995 int i;
7996 _ACEOF
7997 if ac_fn_c_try_compile "$LINENO"; then :
7998 xorg_cv_cc_flag_unused_command_line_argument=yes
7999 else
8000 xorg_cv_cc_flag_unused_command_line_argument=no
8001 fi
8002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8003 fi
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8005 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8006 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8007 CFLAGS="$xorg_testset_save_CFLAGS"
8008 fi
8009
8010 found="no"
8011
8012 if test $found = "no" ; then
8013 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8014 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8015 fi
8016
8017 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8019 fi
8020
8021 CFLAGS="$CFLAGS -Werror=write-strings"
8022
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8024 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8025 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
8026 if eval \${$cacheid+:} false; then :
8027 $as_echo_n "(cached) " >&6
8028 else
8029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8030 /* end confdefs.h. */
8031 int i;
8032 int
8033 main ()
8034 {
8035
8036 ;
8037 return 0;
8038 }
8039 _ACEOF
8040 if ac_fn_c_try_link "$LINENO"; then :
8041 eval $cacheid=yes
8042 else
8043 eval $cacheid=no
8044 fi
8045 rm -f core conftest.err conftest.$ac_objext \
8046 conftest$ac_exeext conftest.$ac_ext
8047 fi
8048
8049
8050 CFLAGS="$xorg_testset_save_CFLAGS"
8051
8052 eval supported=\$$cacheid
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8054 $as_echo "$supported" >&6; }
8055 if test "$supported" = "yes" ; then
8056 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8057 found="yes"
8058 fi
8059 fi
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075 xorg_testset_save_CFLAGS="$CFLAGS"
8076
8077 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8078 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8080 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8081 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8082 $as_echo_n "(cached) " >&6
8083 else
8084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8085 /* end confdefs.h. */
8086 int i;
8087 _ACEOF
8088 if ac_fn_c_try_compile "$LINENO"; then :
8089 xorg_cv_cc_flag_unknown_warning_option=yes
8090 else
8091 xorg_cv_cc_flag_unknown_warning_option=no
8092 fi
8093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8094 fi
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8096 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8097 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8098 CFLAGS="$xorg_testset_save_CFLAGS"
8099 fi
8100
8101 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8102 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8103 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8104 fi
8105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8107 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8108 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8109 $as_echo_n "(cached) " >&6
8110 else
8111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8112 /* end confdefs.h. */
8113 int i;
8114 _ACEOF
8115 if ac_fn_c_try_compile "$LINENO"; then :
8116 xorg_cv_cc_flag_unused_command_line_argument=yes
8117 else
8118 xorg_cv_cc_flag_unused_command_line_argument=no
8119 fi
8120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8121 fi
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8123 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8124 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8125 CFLAGS="$xorg_testset_save_CFLAGS"
8126 fi
8127
8128 found="no"
8129
8130 if test $found = "no" ; then
8131 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8132 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8133 fi
8134
8135 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8137 fi
8138
8139 CFLAGS="$CFLAGS -Werror=address"
8140
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8142 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8143 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8144 if eval \${$cacheid+:} false; then :
8145 $as_echo_n "(cached) " >&6
8146 else
8147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8148 /* end confdefs.h. */
8149 int i;
8150 int
8151 main ()
8152 {
8153
8154 ;
8155 return 0;
8156 }
8157 _ACEOF
8158 if ac_fn_c_try_link "$LINENO"; then :
8159 eval $cacheid=yes
8160 else
8161 eval $cacheid=no
8162 fi
8163 rm -f core conftest.err conftest.$ac_objext \
8164 conftest$ac_exeext conftest.$ac_ext
8165 fi
8166
8167
8168 CFLAGS="$xorg_testset_save_CFLAGS"
8169
8170 eval supported=\$$cacheid
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8172 $as_echo "$supported" >&6; }
8173 if test "$supported" = "yes" ; then
8174 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8175 found="yes"
8176 fi
8177 fi
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193 xorg_testset_save_CFLAGS="$CFLAGS"
8194
8195 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8196 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8198 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8199 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8200 $as_echo_n "(cached) " >&6
8201 else
8202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8203 /* end confdefs.h. */
8204 int i;
8205 _ACEOF
8206 if ac_fn_c_try_compile "$LINENO"; then :
8207 xorg_cv_cc_flag_unknown_warning_option=yes
8208 else
8209 xorg_cv_cc_flag_unknown_warning_option=no
8210 fi
8211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8212 fi
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8214 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8215 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8216 CFLAGS="$xorg_testset_save_CFLAGS"
8217 fi
8218
8219 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8220 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8221 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8222 fi
8223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8225 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8226 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8227 $as_echo_n "(cached) " >&6
8228 else
8229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8230 /* end confdefs.h. */
8231 int i;
8232 _ACEOF
8233 if ac_fn_c_try_compile "$LINENO"; then :
8234 xorg_cv_cc_flag_unused_command_line_argument=yes
8235 else
8236 xorg_cv_cc_flag_unused_command_line_argument=no
8237 fi
8238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8239 fi
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8241 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8242 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8243 CFLAGS="$xorg_testset_save_CFLAGS"
8244 fi
8245
8246 found="no"
8247
8248 if test $found = "no" ; then
8249 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8250 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8251 fi
8252
8253 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8255 fi
8256
8257 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8258
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8260 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8261 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8262 if eval \${$cacheid+:} false; then :
8263 $as_echo_n "(cached) " >&6
8264 else
8265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8266 /* end confdefs.h. */
8267 int i;
8268 int
8269 main ()
8270 {
8271
8272 ;
8273 return 0;
8274 }
8275 _ACEOF
8276 if ac_fn_c_try_link "$LINENO"; then :
8277 eval $cacheid=yes
8278 else
8279 eval $cacheid=no
8280 fi
8281 rm -f core conftest.err conftest.$ac_objext \
8282 conftest$ac_exeext conftest.$ac_ext
8283 fi
8284
8285
8286 CFLAGS="$xorg_testset_save_CFLAGS"
8287
8288 eval supported=\$$cacheid
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8290 $as_echo "$supported" >&6; }
8291 if test "$supported" = "yes" ; then
8292 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8293 found="yes"
8294 fi
8295 fi
8296
8297 if test $found = "no" ; then
8298 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8299 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8300 fi
8301
8302 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8304 fi
8305
8306 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8307
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8309 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8310 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8311 if eval \${$cacheid+:} false; then :
8312 $as_echo_n "(cached) " >&6
8313 else
8314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8315 /* end confdefs.h. */
8316 int i;
8317 int
8318 main ()
8319 {
8320
8321 ;
8322 return 0;
8323 }
8324 _ACEOF
8325 if ac_fn_c_try_link "$LINENO"; then :
8326 eval $cacheid=yes
8327 else
8328 eval $cacheid=no
8329 fi
8330 rm -f core conftest.err conftest.$ac_objext \
8331 conftest$ac_exeext conftest.$ac_ext
8332 fi
8333
8334
8335 CFLAGS="$xorg_testset_save_CFLAGS"
8336
8337 eval supported=\$$cacheid
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8339 $as_echo "$supported" >&6; }
8340 if test "$supported" = "yes" ; then
8341 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8342 found="yes"
8343 fi
8344 fi
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360 xorg_testset_save_CFLAGS="$CFLAGS"
8361
8362 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8363 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8365 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8366 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8367 $as_echo_n "(cached) " >&6
8368 else
8369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8370 /* end confdefs.h. */
8371 int i;
8372 _ACEOF
8373 if ac_fn_c_try_compile "$LINENO"; then :
8374 xorg_cv_cc_flag_unknown_warning_option=yes
8375 else
8376 xorg_cv_cc_flag_unknown_warning_option=no
8377 fi
8378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8379 fi
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8381 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8382 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8383 CFLAGS="$xorg_testset_save_CFLAGS"
8384 fi
8385
8386 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8388 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8389 fi
8390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8392 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8393 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8394 $as_echo_n "(cached) " >&6
8395 else
8396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8397 /* end confdefs.h. */
8398 int i;
8399 _ACEOF
8400 if ac_fn_c_try_compile "$LINENO"; then :
8401 xorg_cv_cc_flag_unused_command_line_argument=yes
8402 else
8403 xorg_cv_cc_flag_unused_command_line_argument=no
8404 fi
8405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8406 fi
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8408 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8409 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8410 CFLAGS="$xorg_testset_save_CFLAGS"
8411 fi
8412
8413 found="no"
8414
8415 if test $found = "no" ; then
8416 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8417 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8418 fi
8419
8420 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8422 fi
8423
8424 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8425
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8427 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8428 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8429 if eval \${$cacheid+:} false; then :
8430 $as_echo_n "(cached) " >&6
8431 else
8432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8433 /* end confdefs.h. */
8434 int i;
8435 int
8436 main ()
8437 {
8438
8439 ;
8440 return 0;
8441 }
8442 _ACEOF
8443 if ac_fn_c_try_link "$LINENO"; then :
8444 eval $cacheid=yes
8445 else
8446 eval $cacheid=no
8447 fi
8448 rm -f core conftest.err conftest.$ac_objext \
8449 conftest$ac_exeext conftest.$ac_ext
8450 fi
8451
8452
8453 CFLAGS="$xorg_testset_save_CFLAGS"
8454
8455 eval supported=\$$cacheid
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8457 $as_echo "$supported" >&6; }
8458 if test "$supported" = "yes" ; then
8459 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8460 found="yes"
8461 fi
8462 fi
8463
8464 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8465 else
8466 { $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
8467 $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;}
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481 xorg_testset_save_CFLAGS="$CFLAGS"
8482
8483 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8484 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8486 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8487 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8488 $as_echo_n "(cached) " >&6
8489 else
8490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8491 /* end confdefs.h. */
8492 int i;
8493 _ACEOF
8494 if ac_fn_c_try_compile "$LINENO"; then :
8495 xorg_cv_cc_flag_unknown_warning_option=yes
8496 else
8497 xorg_cv_cc_flag_unknown_warning_option=no
8498 fi
8499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8500 fi
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8502 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8503 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8504 CFLAGS="$xorg_testset_save_CFLAGS"
8505 fi
8506
8507 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8509 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8510 fi
8511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8513 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8514 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8515 $as_echo_n "(cached) " >&6
8516 else
8517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8518 /* end confdefs.h. */
8519 int i;
8520 _ACEOF
8521 if ac_fn_c_try_compile "$LINENO"; then :
8522 xorg_cv_cc_flag_unused_command_line_argument=yes
8523 else
8524 xorg_cv_cc_flag_unused_command_line_argument=no
8525 fi
8526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8527 fi
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8529 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8530 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8531 CFLAGS="$xorg_testset_save_CFLAGS"
8532 fi
8533
8534 found="no"
8535
8536 if test $found = "no" ; then
8537 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8538 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8539 fi
8540
8541 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8542 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8543 fi
8544
8545 CFLAGS="$CFLAGS -Wimplicit"
8546
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8548 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8549 cacheid=xorg_cv_cc_flag__Wimplicit
8550 if eval \${$cacheid+:} false; then :
8551 $as_echo_n "(cached) " >&6
8552 else
8553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8554 /* end confdefs.h. */
8555 int i;
8556 int
8557 main ()
8558 {
8559
8560 ;
8561 return 0;
8562 }
8563 _ACEOF
8564 if ac_fn_c_try_link "$LINENO"; then :
8565 eval $cacheid=yes
8566 else
8567 eval $cacheid=no
8568 fi
8569 rm -f core conftest.err conftest.$ac_objext \
8570 conftest$ac_exeext conftest.$ac_ext
8571 fi
8572
8573
8574 CFLAGS="$xorg_testset_save_CFLAGS"
8575
8576 eval supported=\$$cacheid
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8578 $as_echo "$supported" >&6; }
8579 if test "$supported" = "yes" ; then
8580 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8581 found="yes"
8582 fi
8583 fi
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599 xorg_testset_save_CFLAGS="$CFLAGS"
8600
8601 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8602 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8604 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8605 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8606 $as_echo_n "(cached) " >&6
8607 else
8608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8609 /* end confdefs.h. */
8610 int i;
8611 _ACEOF
8612 if ac_fn_c_try_compile "$LINENO"; then :
8613 xorg_cv_cc_flag_unknown_warning_option=yes
8614 else
8615 xorg_cv_cc_flag_unknown_warning_option=no
8616 fi
8617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8618 fi
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8620 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8621 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8622 CFLAGS="$xorg_testset_save_CFLAGS"
8623 fi
8624
8625 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8627 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8628 fi
8629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8631 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8632 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8633 $as_echo_n "(cached) " >&6
8634 else
8635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636 /* end confdefs.h. */
8637 int i;
8638 _ACEOF
8639 if ac_fn_c_try_compile "$LINENO"; then :
8640 xorg_cv_cc_flag_unused_command_line_argument=yes
8641 else
8642 xorg_cv_cc_flag_unused_command_line_argument=no
8643 fi
8644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8645 fi
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8647 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8648 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8649 CFLAGS="$xorg_testset_save_CFLAGS"
8650 fi
8651
8652 found="no"
8653
8654 if test $found = "no" ; then
8655 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8656 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8657 fi
8658
8659 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8661 fi
8662
8663 CFLAGS="$CFLAGS -Wnonnull"
8664
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8666 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8667 cacheid=xorg_cv_cc_flag__Wnonnull
8668 if eval \${$cacheid+:} false; then :
8669 $as_echo_n "(cached) " >&6
8670 else
8671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8672 /* end confdefs.h. */
8673 int i;
8674 int
8675 main ()
8676 {
8677
8678 ;
8679 return 0;
8680 }
8681 _ACEOF
8682 if ac_fn_c_try_link "$LINENO"; then :
8683 eval $cacheid=yes
8684 else
8685 eval $cacheid=no
8686 fi
8687 rm -f core conftest.err conftest.$ac_objext \
8688 conftest$ac_exeext conftest.$ac_ext
8689 fi
8690
8691
8692 CFLAGS="$xorg_testset_save_CFLAGS"
8693
8694 eval supported=\$$cacheid
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8696 $as_echo "$supported" >&6; }
8697 if test "$supported" = "yes" ; then
8698 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8699 found="yes"
8700 fi
8701 fi
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717 xorg_testset_save_CFLAGS="$CFLAGS"
8718
8719 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8720 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8722 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8723 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8724 $as_echo_n "(cached) " >&6
8725 else
8726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8727 /* end confdefs.h. */
8728 int i;
8729 _ACEOF
8730 if ac_fn_c_try_compile "$LINENO"; then :
8731 xorg_cv_cc_flag_unknown_warning_option=yes
8732 else
8733 xorg_cv_cc_flag_unknown_warning_option=no
8734 fi
8735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8736 fi
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8738 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8739 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8740 CFLAGS="$xorg_testset_save_CFLAGS"
8741 fi
8742
8743 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8745 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8746 fi
8747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8749 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8750 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8751 $as_echo_n "(cached) " >&6
8752 else
8753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8754 /* end confdefs.h. */
8755 int i;
8756 _ACEOF
8757 if ac_fn_c_try_compile "$LINENO"; then :
8758 xorg_cv_cc_flag_unused_command_line_argument=yes
8759 else
8760 xorg_cv_cc_flag_unused_command_line_argument=no
8761 fi
8762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8763 fi
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8765 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8766 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8767 CFLAGS="$xorg_testset_save_CFLAGS"
8768 fi
8769
8770 found="no"
8771
8772 if test $found = "no" ; then
8773 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8774 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8775 fi
8776
8777 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8778 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8779 fi
8780
8781 CFLAGS="$CFLAGS -Winit-self"
8782
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8784 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8785 cacheid=xorg_cv_cc_flag__Winit_self
8786 if eval \${$cacheid+:} false; then :
8787 $as_echo_n "(cached) " >&6
8788 else
8789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8790 /* end confdefs.h. */
8791 int i;
8792 int
8793 main ()
8794 {
8795
8796 ;
8797 return 0;
8798 }
8799 _ACEOF
8800 if ac_fn_c_try_link "$LINENO"; then :
8801 eval $cacheid=yes
8802 else
8803 eval $cacheid=no
8804 fi
8805 rm -f core conftest.err conftest.$ac_objext \
8806 conftest$ac_exeext conftest.$ac_ext
8807 fi
8808
8809
8810 CFLAGS="$xorg_testset_save_CFLAGS"
8811
8812 eval supported=\$$cacheid
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8814 $as_echo "$supported" >&6; }
8815 if test "$supported" = "yes" ; then
8816 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8817 found="yes"
8818 fi
8819 fi
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835 xorg_testset_save_CFLAGS="$CFLAGS"
8836
8837 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8838 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8840 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8841 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8842 $as_echo_n "(cached) " >&6
8843 else
8844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8845 /* end confdefs.h. */
8846 int i;
8847 _ACEOF
8848 if ac_fn_c_try_compile "$LINENO"; then :
8849 xorg_cv_cc_flag_unknown_warning_option=yes
8850 else
8851 xorg_cv_cc_flag_unknown_warning_option=no
8852 fi
8853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8854 fi
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8856 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8857 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8858 CFLAGS="$xorg_testset_save_CFLAGS"
8859 fi
8860
8861 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8864 fi
8865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8867 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8868 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8869 $as_echo_n "(cached) " >&6
8870 else
8871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8872 /* end confdefs.h. */
8873 int i;
8874 _ACEOF
8875 if ac_fn_c_try_compile "$LINENO"; then :
8876 xorg_cv_cc_flag_unused_command_line_argument=yes
8877 else
8878 xorg_cv_cc_flag_unused_command_line_argument=no
8879 fi
8880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8881 fi
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8883 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8884 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8885 CFLAGS="$xorg_testset_save_CFLAGS"
8886 fi
8887
8888 found="no"
8889
8890 if test $found = "no" ; then
8891 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8893 fi
8894
8895 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8897 fi
8898
8899 CFLAGS="$CFLAGS -Wmain"
8900
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8902 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8903 cacheid=xorg_cv_cc_flag__Wmain
8904 if eval \${$cacheid+:} false; then :
8905 $as_echo_n "(cached) " >&6
8906 else
8907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8908 /* end confdefs.h. */
8909 int i;
8910 int
8911 main ()
8912 {
8913
8914 ;
8915 return 0;
8916 }
8917 _ACEOF
8918 if ac_fn_c_try_link "$LINENO"; then :
8919 eval $cacheid=yes
8920 else
8921 eval $cacheid=no
8922 fi
8923 rm -f core conftest.err conftest.$ac_objext \
8924 conftest$ac_exeext conftest.$ac_ext
8925 fi
8926
8927
8928 CFLAGS="$xorg_testset_save_CFLAGS"
8929
8930 eval supported=\$$cacheid
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8932 $as_echo "$supported" >&6; }
8933 if test "$supported" = "yes" ; then
8934 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8935 found="yes"
8936 fi
8937 fi
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953 xorg_testset_save_CFLAGS="$CFLAGS"
8954
8955 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8956 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8958 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8959 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8960 $as_echo_n "(cached) " >&6
8961 else
8962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8963 /* end confdefs.h. */
8964 int i;
8965 _ACEOF
8966 if ac_fn_c_try_compile "$LINENO"; then :
8967 xorg_cv_cc_flag_unknown_warning_option=yes
8968 else
8969 xorg_cv_cc_flag_unknown_warning_option=no
8970 fi
8971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8972 fi
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8974 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8975 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8976 CFLAGS="$xorg_testset_save_CFLAGS"
8977 fi
8978
8979 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8981 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8982 fi
8983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8985 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8986 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8987 $as_echo_n "(cached) " >&6
8988 else
8989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8990 /* end confdefs.h. */
8991 int i;
8992 _ACEOF
8993 if ac_fn_c_try_compile "$LINENO"; then :
8994 xorg_cv_cc_flag_unused_command_line_argument=yes
8995 else
8996 xorg_cv_cc_flag_unused_command_line_argument=no
8997 fi
8998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8999 fi
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9001 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9002 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9003 CFLAGS="$xorg_testset_save_CFLAGS"
9004 fi
9005
9006 found="no"
9007
9008 if test $found = "no" ; then
9009 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9010 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9011 fi
9012
9013 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9015 fi
9016
9017 CFLAGS="$CFLAGS -Wmissing-braces"
9018
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9020 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9021 cacheid=xorg_cv_cc_flag__Wmissing_braces
9022 if eval \${$cacheid+:} false; then :
9023 $as_echo_n "(cached) " >&6
9024 else
9025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9026 /* end confdefs.h. */
9027 int i;
9028 int
9029 main ()
9030 {
9031
9032 ;
9033 return 0;
9034 }
9035 _ACEOF
9036 if ac_fn_c_try_link "$LINENO"; then :
9037 eval $cacheid=yes
9038 else
9039 eval $cacheid=no
9040 fi
9041 rm -f core conftest.err conftest.$ac_objext \
9042 conftest$ac_exeext conftest.$ac_ext
9043 fi
9044
9045
9046 CFLAGS="$xorg_testset_save_CFLAGS"
9047
9048 eval supported=\$$cacheid
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9050 $as_echo "$supported" >&6; }
9051 if test "$supported" = "yes" ; then
9052 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9053 found="yes"
9054 fi
9055 fi
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071 xorg_testset_save_CFLAGS="$CFLAGS"
9072
9073 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9074 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9076 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9077 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9078 $as_echo_n "(cached) " >&6
9079 else
9080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9081 /* end confdefs.h. */
9082 int i;
9083 _ACEOF
9084 if ac_fn_c_try_compile "$LINENO"; then :
9085 xorg_cv_cc_flag_unknown_warning_option=yes
9086 else
9087 xorg_cv_cc_flag_unknown_warning_option=no
9088 fi
9089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9090 fi
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9092 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9093 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9094 CFLAGS="$xorg_testset_save_CFLAGS"
9095 fi
9096
9097 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9099 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9100 fi
9101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9103 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9104 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9105 $as_echo_n "(cached) " >&6
9106 else
9107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9108 /* end confdefs.h. */
9109 int i;
9110 _ACEOF
9111 if ac_fn_c_try_compile "$LINENO"; then :
9112 xorg_cv_cc_flag_unused_command_line_argument=yes
9113 else
9114 xorg_cv_cc_flag_unused_command_line_argument=no
9115 fi
9116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9117 fi
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9119 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9120 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9121 CFLAGS="$xorg_testset_save_CFLAGS"
9122 fi
9123
9124 found="no"
9125
9126 if test $found = "no" ; then
9127 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9128 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9129 fi
9130
9131 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9133 fi
9134
9135 CFLAGS="$CFLAGS -Wsequence-point"
9136
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9138 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9139 cacheid=xorg_cv_cc_flag__Wsequence_point
9140 if eval \${$cacheid+:} false; then :
9141 $as_echo_n "(cached) " >&6
9142 else
9143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9144 /* end confdefs.h. */
9145 int i;
9146 int
9147 main ()
9148 {
9149
9150 ;
9151 return 0;
9152 }
9153 _ACEOF
9154 if ac_fn_c_try_link "$LINENO"; then :
9155 eval $cacheid=yes
9156 else
9157 eval $cacheid=no
9158 fi
9159 rm -f core conftest.err conftest.$ac_objext \
9160 conftest$ac_exeext conftest.$ac_ext
9161 fi
9162
9163
9164 CFLAGS="$xorg_testset_save_CFLAGS"
9165
9166 eval supported=\$$cacheid
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9168 $as_echo "$supported" >&6; }
9169 if test "$supported" = "yes" ; then
9170 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9171 found="yes"
9172 fi
9173 fi
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189 xorg_testset_save_CFLAGS="$CFLAGS"
9190
9191 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9192 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9194 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9195 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9196 $as_echo_n "(cached) " >&6
9197 else
9198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9199 /* end confdefs.h. */
9200 int i;
9201 _ACEOF
9202 if ac_fn_c_try_compile "$LINENO"; then :
9203 xorg_cv_cc_flag_unknown_warning_option=yes
9204 else
9205 xorg_cv_cc_flag_unknown_warning_option=no
9206 fi
9207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9208 fi
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9210 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9211 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9212 CFLAGS="$xorg_testset_save_CFLAGS"
9213 fi
9214
9215 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9217 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9218 fi
9219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9221 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9222 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9223 $as_echo_n "(cached) " >&6
9224 else
9225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9226 /* end confdefs.h. */
9227 int i;
9228 _ACEOF
9229 if ac_fn_c_try_compile "$LINENO"; then :
9230 xorg_cv_cc_flag_unused_command_line_argument=yes
9231 else
9232 xorg_cv_cc_flag_unused_command_line_argument=no
9233 fi
9234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9235 fi
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9237 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9238 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9239 CFLAGS="$xorg_testset_save_CFLAGS"
9240 fi
9241
9242 found="no"
9243
9244 if test $found = "no" ; then
9245 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9247 fi
9248
9249 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9251 fi
9252
9253 CFLAGS="$CFLAGS -Wreturn-type"
9254
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9256 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9257 cacheid=xorg_cv_cc_flag__Wreturn_type
9258 if eval \${$cacheid+:} false; then :
9259 $as_echo_n "(cached) " >&6
9260 else
9261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9262 /* end confdefs.h. */
9263 int i;
9264 int
9265 main ()
9266 {
9267
9268 ;
9269 return 0;
9270 }
9271 _ACEOF
9272 if ac_fn_c_try_link "$LINENO"; then :
9273 eval $cacheid=yes
9274 else
9275 eval $cacheid=no
9276 fi
9277 rm -f core conftest.err conftest.$ac_objext \
9278 conftest$ac_exeext conftest.$ac_ext
9279 fi
9280
9281
9282 CFLAGS="$xorg_testset_save_CFLAGS"
9283
9284 eval supported=\$$cacheid
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9286 $as_echo "$supported" >&6; }
9287 if test "$supported" = "yes" ; then
9288 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9289 found="yes"
9290 fi
9291 fi
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307 xorg_testset_save_CFLAGS="$CFLAGS"
9308
9309 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9310 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9312 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9313 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9314 $as_echo_n "(cached) " >&6
9315 else
9316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9317 /* end confdefs.h. */
9318 int i;
9319 _ACEOF
9320 if ac_fn_c_try_compile "$LINENO"; then :
9321 xorg_cv_cc_flag_unknown_warning_option=yes
9322 else
9323 xorg_cv_cc_flag_unknown_warning_option=no
9324 fi
9325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9326 fi
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9328 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9329 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9330 CFLAGS="$xorg_testset_save_CFLAGS"
9331 fi
9332
9333 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9335 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9336 fi
9337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9339 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9340 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9341 $as_echo_n "(cached) " >&6
9342 else
9343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9344 /* end confdefs.h. */
9345 int i;
9346 _ACEOF
9347 if ac_fn_c_try_compile "$LINENO"; then :
9348 xorg_cv_cc_flag_unused_command_line_argument=yes
9349 else
9350 xorg_cv_cc_flag_unused_command_line_argument=no
9351 fi
9352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9353 fi
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9355 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9356 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9357 CFLAGS="$xorg_testset_save_CFLAGS"
9358 fi
9359
9360 found="no"
9361
9362 if test $found = "no" ; then
9363 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9364 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9365 fi
9366
9367 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9369 fi
9370
9371 CFLAGS="$CFLAGS -Wtrigraphs"
9372
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9374 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9375 cacheid=xorg_cv_cc_flag__Wtrigraphs
9376 if eval \${$cacheid+:} false; then :
9377 $as_echo_n "(cached) " >&6
9378 else
9379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9380 /* end confdefs.h. */
9381 int i;
9382 int
9383 main ()
9384 {
9385
9386 ;
9387 return 0;
9388 }
9389 _ACEOF
9390 if ac_fn_c_try_link "$LINENO"; then :
9391 eval $cacheid=yes
9392 else
9393 eval $cacheid=no
9394 fi
9395 rm -f core conftest.err conftest.$ac_objext \
9396 conftest$ac_exeext conftest.$ac_ext
9397 fi
9398
9399
9400 CFLAGS="$xorg_testset_save_CFLAGS"
9401
9402 eval supported=\$$cacheid
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9404 $as_echo "$supported" >&6; }
9405 if test "$supported" = "yes" ; then
9406 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9407 found="yes"
9408 fi
9409 fi
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425 xorg_testset_save_CFLAGS="$CFLAGS"
9426
9427 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9428 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9430 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9431 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9432 $as_echo_n "(cached) " >&6
9433 else
9434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9435 /* end confdefs.h. */
9436 int i;
9437 _ACEOF
9438 if ac_fn_c_try_compile "$LINENO"; then :
9439 xorg_cv_cc_flag_unknown_warning_option=yes
9440 else
9441 xorg_cv_cc_flag_unknown_warning_option=no
9442 fi
9443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9444 fi
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9446 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9447 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9448 CFLAGS="$xorg_testset_save_CFLAGS"
9449 fi
9450
9451 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9452 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9453 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9454 fi
9455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9457 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9458 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9459 $as_echo_n "(cached) " >&6
9460 else
9461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9462 /* end confdefs.h. */
9463 int i;
9464 _ACEOF
9465 if ac_fn_c_try_compile "$LINENO"; then :
9466 xorg_cv_cc_flag_unused_command_line_argument=yes
9467 else
9468 xorg_cv_cc_flag_unused_command_line_argument=no
9469 fi
9470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9471 fi
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9473 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9474 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9475 CFLAGS="$xorg_testset_save_CFLAGS"
9476 fi
9477
9478 found="no"
9479
9480 if test $found = "no" ; then
9481 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9482 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9483 fi
9484
9485 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9487 fi
9488
9489 CFLAGS="$CFLAGS -Warray-bounds"
9490
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9492 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9493 cacheid=xorg_cv_cc_flag__Warray_bounds
9494 if eval \${$cacheid+:} false; then :
9495 $as_echo_n "(cached) " >&6
9496 else
9497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9498 /* end confdefs.h. */
9499 int i;
9500 int
9501 main ()
9502 {
9503
9504 ;
9505 return 0;
9506 }
9507 _ACEOF
9508 if ac_fn_c_try_link "$LINENO"; then :
9509 eval $cacheid=yes
9510 else
9511 eval $cacheid=no
9512 fi
9513 rm -f core conftest.err conftest.$ac_objext \
9514 conftest$ac_exeext conftest.$ac_ext
9515 fi
9516
9517
9518 CFLAGS="$xorg_testset_save_CFLAGS"
9519
9520 eval supported=\$$cacheid
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9522 $as_echo "$supported" >&6; }
9523 if test "$supported" = "yes" ; then
9524 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9525 found="yes"
9526 fi
9527 fi
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543 xorg_testset_save_CFLAGS="$CFLAGS"
9544
9545 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9546 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9548 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9549 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9550 $as_echo_n "(cached) " >&6
9551 else
9552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9553 /* end confdefs.h. */
9554 int i;
9555 _ACEOF
9556 if ac_fn_c_try_compile "$LINENO"; then :
9557 xorg_cv_cc_flag_unknown_warning_option=yes
9558 else
9559 xorg_cv_cc_flag_unknown_warning_option=no
9560 fi
9561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9562 fi
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9564 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9565 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9566 CFLAGS="$xorg_testset_save_CFLAGS"
9567 fi
9568
9569 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9570 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9571 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9572 fi
9573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9575 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9576 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9577 $as_echo_n "(cached) " >&6
9578 else
9579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9580 /* end confdefs.h. */
9581 int i;
9582 _ACEOF
9583 if ac_fn_c_try_compile "$LINENO"; then :
9584 xorg_cv_cc_flag_unused_command_line_argument=yes
9585 else
9586 xorg_cv_cc_flag_unused_command_line_argument=no
9587 fi
9588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9589 fi
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9591 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9592 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9593 CFLAGS="$xorg_testset_save_CFLAGS"
9594 fi
9595
9596 found="no"
9597
9598 if test $found = "no" ; then
9599 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9600 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9601 fi
9602
9603 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9605 fi
9606
9607 CFLAGS="$CFLAGS -Wwrite-strings"
9608
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9610 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9611 cacheid=xorg_cv_cc_flag__Wwrite_strings
9612 if eval \${$cacheid+:} false; then :
9613 $as_echo_n "(cached) " >&6
9614 else
9615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9616 /* end confdefs.h. */
9617 int i;
9618 int
9619 main ()
9620 {
9621
9622 ;
9623 return 0;
9624 }
9625 _ACEOF
9626 if ac_fn_c_try_link "$LINENO"; then :
9627 eval $cacheid=yes
9628 else
9629 eval $cacheid=no
9630 fi
9631 rm -f core conftest.err conftest.$ac_objext \
9632 conftest$ac_exeext conftest.$ac_ext
9633 fi
9634
9635
9636 CFLAGS="$xorg_testset_save_CFLAGS"
9637
9638 eval supported=\$$cacheid
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9640 $as_echo "$supported" >&6; }
9641 if test "$supported" = "yes" ; then
9642 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9643 found="yes"
9644 fi
9645 fi
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661 xorg_testset_save_CFLAGS="$CFLAGS"
9662
9663 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9664 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9666 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9667 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9668 $as_echo_n "(cached) " >&6
9669 else
9670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9671 /* end confdefs.h. */
9672 int i;
9673 _ACEOF
9674 if ac_fn_c_try_compile "$LINENO"; then :
9675 xorg_cv_cc_flag_unknown_warning_option=yes
9676 else
9677 xorg_cv_cc_flag_unknown_warning_option=no
9678 fi
9679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9680 fi
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9682 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9683 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9684 CFLAGS="$xorg_testset_save_CFLAGS"
9685 fi
9686
9687 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9688 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9689 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9690 fi
9691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9693 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9694 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9695 $as_echo_n "(cached) " >&6
9696 else
9697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9698 /* end confdefs.h. */
9699 int i;
9700 _ACEOF
9701 if ac_fn_c_try_compile "$LINENO"; then :
9702 xorg_cv_cc_flag_unused_command_line_argument=yes
9703 else
9704 xorg_cv_cc_flag_unused_command_line_argument=no
9705 fi
9706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9707 fi
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9709 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9710 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9711 CFLAGS="$xorg_testset_save_CFLAGS"
9712 fi
9713
9714 found="no"
9715
9716 if test $found = "no" ; then
9717 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9718 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9719 fi
9720
9721 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9722 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9723 fi
9724
9725 CFLAGS="$CFLAGS -Waddress"
9726
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9728 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9729 cacheid=xorg_cv_cc_flag__Waddress
9730 if eval \${$cacheid+:} false; then :
9731 $as_echo_n "(cached) " >&6
9732 else
9733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9734 /* end confdefs.h. */
9735 int i;
9736 int
9737 main ()
9738 {
9739
9740 ;
9741 return 0;
9742 }
9743 _ACEOF
9744 if ac_fn_c_try_link "$LINENO"; then :
9745 eval $cacheid=yes
9746 else
9747 eval $cacheid=no
9748 fi
9749 rm -f core conftest.err conftest.$ac_objext \
9750 conftest$ac_exeext conftest.$ac_ext
9751 fi
9752
9753
9754 CFLAGS="$xorg_testset_save_CFLAGS"
9755
9756 eval supported=\$$cacheid
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9758 $as_echo "$supported" >&6; }
9759 if test "$supported" = "yes" ; then
9760 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9761 found="yes"
9762 fi
9763 fi
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779 xorg_testset_save_CFLAGS="$CFLAGS"
9780
9781 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9782 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9784 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9785 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9786 $as_echo_n "(cached) " >&6
9787 else
9788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9789 /* end confdefs.h. */
9790 int i;
9791 _ACEOF
9792 if ac_fn_c_try_compile "$LINENO"; then :
9793 xorg_cv_cc_flag_unknown_warning_option=yes
9794 else
9795 xorg_cv_cc_flag_unknown_warning_option=no
9796 fi
9797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9798 fi
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9800 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9801 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9802 CFLAGS="$xorg_testset_save_CFLAGS"
9803 fi
9804
9805 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9807 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9808 fi
9809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9811 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9812 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9813 $as_echo_n "(cached) " >&6
9814 else
9815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9816 /* end confdefs.h. */
9817 int i;
9818 _ACEOF
9819 if ac_fn_c_try_compile "$LINENO"; then :
9820 xorg_cv_cc_flag_unused_command_line_argument=yes
9821 else
9822 xorg_cv_cc_flag_unused_command_line_argument=no
9823 fi
9824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9825 fi
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9827 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9828 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9829 CFLAGS="$xorg_testset_save_CFLAGS"
9830 fi
9831
9832 found="no"
9833
9834 if test $found = "no" ; then
9835 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9836 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9837 fi
9838
9839 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9841 fi
9842
9843 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9844
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9846 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9847 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9848 if eval \${$cacheid+:} false; then :
9849 $as_echo_n "(cached) " >&6
9850 else
9851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9852 /* end confdefs.h. */
9853 int i;
9854 int
9855 main ()
9856 {
9857
9858 ;
9859 return 0;
9860 }
9861 _ACEOF
9862 if ac_fn_c_try_link "$LINENO"; then :
9863 eval $cacheid=yes
9864 else
9865 eval $cacheid=no
9866 fi
9867 rm -f core conftest.err conftest.$ac_objext \
9868 conftest$ac_exeext conftest.$ac_ext
9869 fi
9870
9871
9872 CFLAGS="$xorg_testset_save_CFLAGS"
9873
9874 eval supported=\$$cacheid
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9876 $as_echo "$supported" >&6; }
9877 if test "$supported" = "yes" ; then
9878 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9879 found="yes"
9880 fi
9881 fi
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897 xorg_testset_save_CFLAGS="$CFLAGS"
9898
9899 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9900 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9902 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9903 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9904 $as_echo_n "(cached) " >&6
9905 else
9906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9907 /* end confdefs.h. */
9908 int i;
9909 _ACEOF
9910 if ac_fn_c_try_compile "$LINENO"; then :
9911 xorg_cv_cc_flag_unknown_warning_option=yes
9912 else
9913 xorg_cv_cc_flag_unknown_warning_option=no
9914 fi
9915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9916 fi
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9918 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9919 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9920 CFLAGS="$xorg_testset_save_CFLAGS"
9921 fi
9922
9923 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9924 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9925 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9926 fi
9927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9929 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9930 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9931 $as_echo_n "(cached) " >&6
9932 else
9933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9934 /* end confdefs.h. */
9935 int i;
9936 _ACEOF
9937 if ac_fn_c_try_compile "$LINENO"; then :
9938 xorg_cv_cc_flag_unused_command_line_argument=yes
9939 else
9940 xorg_cv_cc_flag_unused_command_line_argument=no
9941 fi
9942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9943 fi
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9945 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9946 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9947 CFLAGS="$xorg_testset_save_CFLAGS"
9948 fi
9949
9950 found="no"
9951
9952 if test $found = "no" ; then
9953 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9954 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9955 fi
9956
9957 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9959 fi
9960
9961 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9962
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9964 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9965 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9966 if eval \${$cacheid+:} false; then :
9967 $as_echo_n "(cached) " >&6
9968 else
9969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9970 /* end confdefs.h. */
9971 int i;
9972 int
9973 main ()
9974 {
9975
9976 ;
9977 return 0;
9978 }
9979 _ACEOF
9980 if ac_fn_c_try_link "$LINENO"; then :
9981 eval $cacheid=yes
9982 else
9983 eval $cacheid=no
9984 fi
9985 rm -f core conftest.err conftest.$ac_objext \
9986 conftest$ac_exeext conftest.$ac_ext
9987 fi
9988
9989
9990 CFLAGS="$xorg_testset_save_CFLAGS"
9991
9992 eval supported=\$$cacheid
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9994 $as_echo "$supported" >&6; }
9995 if test "$supported" = "yes" ; then
9996 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9997 found="yes"
9998 fi
9999 fi
10000
10001
10002 fi
10003
10004
10005
10006
10007
10008
10009
10010 CWARNFLAGS="$BASE_CFLAGS"
10011 if test "x$GCC" = xyes ; then
10012 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10013 fi
10014
10015
10016
10017
10018
10019
10020
10021
10022 # Check whether --enable-strict-compilation was given.
10023 if test "${enable_strict_compilation+set}" = set; then :
10024 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10025 else
10026 STRICT_COMPILE=no
10027 fi
10028
10029
10030
10031
10032
10033
10034 STRICT_CFLAGS=""
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048 xorg_testset_save_CFLAGS="$CFLAGS"
10049
10050 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10053 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10054 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10055 $as_echo_n "(cached) " >&6
10056 else
10057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10058 /* end confdefs.h. */
10059 int i;
10060 _ACEOF
10061 if ac_fn_c_try_compile "$LINENO"; then :
10062 xorg_cv_cc_flag_unknown_warning_option=yes
10063 else
10064 xorg_cv_cc_flag_unknown_warning_option=no
10065 fi
10066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10067 fi
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10069 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10070 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10071 CFLAGS="$xorg_testset_save_CFLAGS"
10072 fi
10073
10074 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10075 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10076 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10077 fi
10078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10080 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10081 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10082 $as_echo_n "(cached) " >&6
10083 else
10084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10085 /* end confdefs.h. */
10086 int i;
10087 _ACEOF
10088 if ac_fn_c_try_compile "$LINENO"; then :
10089 xorg_cv_cc_flag_unused_command_line_argument=yes
10090 else
10091 xorg_cv_cc_flag_unused_command_line_argument=no
10092 fi
10093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10094 fi
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10096 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10097 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10098 CFLAGS="$xorg_testset_save_CFLAGS"
10099 fi
10100
10101 found="no"
10102
10103 if test $found = "no" ; then
10104 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10105 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10106 fi
10107
10108 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10110 fi
10111
10112 CFLAGS="$CFLAGS -pedantic"
10113
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10115 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10116 cacheid=xorg_cv_cc_flag__pedantic
10117 if eval \${$cacheid+:} false; then :
10118 $as_echo_n "(cached) " >&6
10119 else
10120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10121 /* end confdefs.h. */
10122 int i;
10123 int
10124 main ()
10125 {
10126
10127 ;
10128 return 0;
10129 }
10130 _ACEOF
10131 if ac_fn_c_try_link "$LINENO"; then :
10132 eval $cacheid=yes
10133 else
10134 eval $cacheid=no
10135 fi
10136 rm -f core conftest.err conftest.$ac_objext \
10137 conftest$ac_exeext conftest.$ac_ext
10138 fi
10139
10140
10141 CFLAGS="$xorg_testset_save_CFLAGS"
10142
10143 eval supported=\$$cacheid
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10145 $as_echo "$supported" >&6; }
10146 if test "$supported" = "yes" ; then
10147 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10148 found="yes"
10149 fi
10150 fi
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166 xorg_testset_save_CFLAGS="$CFLAGS"
10167
10168 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10169 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10171 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10172 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10173 $as_echo_n "(cached) " >&6
10174 else
10175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10176 /* end confdefs.h. */
10177 int i;
10178 _ACEOF
10179 if ac_fn_c_try_compile "$LINENO"; then :
10180 xorg_cv_cc_flag_unknown_warning_option=yes
10181 else
10182 xorg_cv_cc_flag_unknown_warning_option=no
10183 fi
10184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10185 fi
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10187 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10188 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10189 CFLAGS="$xorg_testset_save_CFLAGS"
10190 fi
10191
10192 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10193 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10194 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10195 fi
10196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10198 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10199 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10200 $as_echo_n "(cached) " >&6
10201 else
10202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10203 /* end confdefs.h. */
10204 int i;
10205 _ACEOF
10206 if ac_fn_c_try_compile "$LINENO"; then :
10207 xorg_cv_cc_flag_unused_command_line_argument=yes
10208 else
10209 xorg_cv_cc_flag_unused_command_line_argument=no
10210 fi
10211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10212 fi
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10214 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10215 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10216 CFLAGS="$xorg_testset_save_CFLAGS"
10217 fi
10218
10219 found="no"
10220
10221 if test $found = "no" ; then
10222 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10223 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10224 fi
10225
10226 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10228 fi
10229
10230 CFLAGS="$CFLAGS -Werror"
10231
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10233 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10234 cacheid=xorg_cv_cc_flag__Werror
10235 if eval \${$cacheid+:} false; then :
10236 $as_echo_n "(cached) " >&6
10237 else
10238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10239 /* end confdefs.h. */
10240 int i;
10241 int
10242 main ()
10243 {
10244
10245 ;
10246 return 0;
10247 }
10248 _ACEOF
10249 if ac_fn_c_try_link "$LINENO"; then :
10250 eval $cacheid=yes
10251 else
10252 eval $cacheid=no
10253 fi
10254 rm -f core conftest.err conftest.$ac_objext \
10255 conftest$ac_exeext conftest.$ac_ext
10256 fi
10257
10258
10259 CFLAGS="$xorg_testset_save_CFLAGS"
10260
10261 eval supported=\$$cacheid
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10263 $as_echo "$supported" >&6; }
10264 if test "$supported" = "yes" ; then
10265 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10266 found="yes"
10267 fi
10268 fi
10269
10270 if test $found = "no" ; then
10271 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10272 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10273 fi
10274
10275 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10277 fi
10278
10279 CFLAGS="$CFLAGS -errwarn"
10280
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10282 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10283 cacheid=xorg_cv_cc_flag__errwarn
10284 if eval \${$cacheid+:} false; then :
10285 $as_echo_n "(cached) " >&6
10286 else
10287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10288 /* end confdefs.h. */
10289 int i;
10290 int
10291 main ()
10292 {
10293
10294 ;
10295 return 0;
10296 }
10297 _ACEOF
10298 if ac_fn_c_try_link "$LINENO"; then :
10299 eval $cacheid=yes
10300 else
10301 eval $cacheid=no
10302 fi
10303 rm -f core conftest.err conftest.$ac_objext \
10304 conftest$ac_exeext conftest.$ac_ext
10305 fi
10306
10307
10308 CFLAGS="$xorg_testset_save_CFLAGS"
10309
10310 eval supported=\$$cacheid
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10312 $as_echo "$supported" >&6; }
10313 if test "$supported" = "yes" ; then
10314 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10315 found="yes"
10316 fi
10317 fi
10318
10319
10320
10321 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10322 # activate it with -Werror, so we add it here explicitly.
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336 xorg_testset_save_CFLAGS="$CFLAGS"
10337
10338 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10339 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10341 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10342 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10343 $as_echo_n "(cached) " >&6
10344 else
10345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10346 /* end confdefs.h. */
10347 int i;
10348 _ACEOF
10349 if ac_fn_c_try_compile "$LINENO"; then :
10350 xorg_cv_cc_flag_unknown_warning_option=yes
10351 else
10352 xorg_cv_cc_flag_unknown_warning_option=no
10353 fi
10354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10355 fi
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10357 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10358 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10359 CFLAGS="$xorg_testset_save_CFLAGS"
10360 fi
10361
10362 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10363 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10364 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10365 fi
10366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10368 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10369 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10370 $as_echo_n "(cached) " >&6
10371 else
10372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10373 /* end confdefs.h. */
10374 int i;
10375 _ACEOF
10376 if ac_fn_c_try_compile "$LINENO"; then :
10377 xorg_cv_cc_flag_unused_command_line_argument=yes
10378 else
10379 xorg_cv_cc_flag_unused_command_line_argument=no
10380 fi
10381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10382 fi
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10384 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10385 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10386 CFLAGS="$xorg_testset_save_CFLAGS"
10387 fi
10388
10389 found="no"
10390
10391 if test $found = "no" ; then
10392 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10393 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10394 fi
10395
10396 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10398 fi
10399
10400 CFLAGS="$CFLAGS -Werror=attributes"
10401
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10403 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10404 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10405 if eval \${$cacheid+:} false; then :
10406 $as_echo_n "(cached) " >&6
10407 else
10408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10409 /* end confdefs.h. */
10410 int i;
10411 int
10412 main ()
10413 {
10414
10415 ;
10416 return 0;
10417 }
10418 _ACEOF
10419 if ac_fn_c_try_link "$LINENO"; then :
10420 eval $cacheid=yes
10421 else
10422 eval $cacheid=no
10423 fi
10424 rm -f core conftest.err conftest.$ac_objext \
10425 conftest$ac_exeext conftest.$ac_ext
10426 fi
10427
10428
10429 CFLAGS="$xorg_testset_save_CFLAGS"
10430
10431 eval supported=\$$cacheid
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10433 $as_echo "$supported" >&6; }
10434 if test "$supported" = "yes" ; then
10435 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10436 found="yes"
10437 fi
10438 fi
10439
10440
10441
10442 if test "x$STRICT_COMPILE" = "xyes"; then
10443 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10444 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10445 fi
10446
10447
10448
10449
10450
10451
10452 cat >>confdefs.h <<_ACEOF
10453 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10454 _ACEOF
10455
10456 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10457 if test "x$PVM" = "x"; then
10458 PVM="0"
10459 fi
10460
10461 cat >>confdefs.h <<_ACEOF
10462 #define PACKAGE_VERSION_MINOR $PVM
10463 _ACEOF
10464
10465 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10466 if test "x$PVP" = "x"; then
10467 PVP="0"
10468 fi
10469
10470 cat >>confdefs.h <<_ACEOF
10471 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10472 _ACEOF
10473
10474
10475
10476 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10477 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10478 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10479 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10480
10481
10482
10483
10484 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10485 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10486 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10487 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10488 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10489
10490
10491
10492
10493
10494
10495 if test x$APP_MAN_SUFFIX = x ; then
10496 APP_MAN_SUFFIX=1
10497 fi
10498 if test x$APP_MAN_DIR = x ; then
10499 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10500 fi
10501
10502 if test x$LIB_MAN_SUFFIX = x ; then
10503 LIB_MAN_SUFFIX=3
10504 fi
10505 if test x$LIB_MAN_DIR = x ; then
10506 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10507 fi
10508
10509 if test x$FILE_MAN_SUFFIX = x ; then
10510 case $host_os in
10511 solaris*) FILE_MAN_SUFFIX=4 ;;
10512 *) FILE_MAN_SUFFIX=5 ;;
10513 esac
10514 fi
10515 if test x$FILE_MAN_DIR = x ; then
10516 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10517 fi
10518
10519 if test x$MISC_MAN_SUFFIX = x ; then
10520 case $host_os in
10521 solaris*) MISC_MAN_SUFFIX=5 ;;
10522 *) MISC_MAN_SUFFIX=7 ;;
10523 esac
10524 fi
10525 if test x$MISC_MAN_DIR = x ; then
10526 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10527 fi
10528
10529 if test x$DRIVER_MAN_SUFFIX = x ; then
10530 case $host_os in
10531 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10532 *) DRIVER_MAN_SUFFIX=4 ;;
10533 esac
10534 fi
10535 if test x$DRIVER_MAN_DIR = x ; then
10536 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10537 fi
10538
10539 if test x$ADMIN_MAN_SUFFIX = x ; then
10540 case $host_os in
10541 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10542 *) ADMIN_MAN_SUFFIX=8 ;;
10543 esac
10544 fi
10545 if test x$ADMIN_MAN_DIR = x ; then
10546 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10547 fi
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563 XORG_MAN_PAGE="X Version 11"
10564
10565 MAN_SUBSTS="\
10566 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10567 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10568 -e 's|__xservername__|Xorg|g' \
10569 -e 's|__xconfigfile__|xorg.conf|g' \
10570 -e 's|__projectroot__|\$(prefix)|g' \
10571 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10572 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10573 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10574 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10575 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10576 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10577 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10578
10579
10580
10581 # Check whether --enable-silent-rules was given.
10582 if test "${enable_silent_rules+set}" = set; then :
10583 enableval=$enable_silent_rules;
10584 fi
10585
10586 case $enable_silent_rules in
10587 yes) AM_DEFAULT_VERBOSITY=0;;
10588 no) AM_DEFAULT_VERBOSITY=1;;
10589 *) AM_DEFAULT_VERBOSITY=0;;
10590 esac
10591 AM_BACKSLASH='\'
10592
10593
10594
10595 # Initialize libtool
10596 # Check whether --enable-static was given.
10597 if test "${enable_static+set}" = set; then :
10598 enableval=$enable_static; p=${PACKAGE-default}
10599 case $enableval in
10600 yes) enable_static=yes ;;
10601 no) enable_static=no ;;
10602 *)
10603 enable_static=no
10604 # Look at the argument we got. We use all the common list separators.
10605 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10606 for pkg in $enableval; do
10607 IFS="$lt_save_ifs"
10608 if test "X$pkg" = "X$p"; then
10609 enable_static=yes
10610 fi
10611 done
10612 IFS="$lt_save_ifs"
10613 ;;
10614 esac
10615 else
10616 enable_static=no
10617 fi
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627 case `pwd` in
10628 *\ * | *\ *)
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10630 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10631 esac
10632
10633
10634
10635 macro_version='2.4'
10636 macro_revision='1.3293'
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650 ltmain="$ac_aux_dir/ltmain.sh"
10651
10652 # Backslashify metacharacters that are still active within
10653 # double-quoted strings.
10654 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10655
10656 # Same as above, but do not quote variable references.
10657 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10658
10659 # Sed substitution to delay expansion of an escaped shell variable in a
10660 # double_quote_subst'ed string.
10661 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10662
10663 # Sed substitution to delay expansion of an escaped single quote.
10664 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10665
10666 # Sed substitution to avoid accidental globbing in evaled expressions
10667 no_glob_subst='s/\*/\\\*/g'
10668
10669 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10670 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10671 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10672
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10674 $as_echo_n "checking how to print strings... " >&6; }
10675 # Test print first, because it will be a builtin if present.
10676 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10677 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10678 ECHO='print -r --'
10679 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10680 ECHO='printf %s\n'
10681 else
10682 # Use this function as a fallback that always works.
10683 func_fallback_echo ()
10684 {
10685 eval 'cat <<_LTECHO_EOF
10686 $1
10687 _LTECHO_EOF'
10688 }
10689 ECHO='func_fallback_echo'
10690 fi
10691
10692 # func_echo_all arg...
10693 # Invoke $ECHO with all args, space-separated.
10694 func_echo_all ()
10695 {
10696 $ECHO ""
10697 }
10698
10699 case "$ECHO" in
10700 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10701 $as_echo "printf" >&6; } ;;
10702 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10703 $as_echo "print -r" >&6; } ;;
10704 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10705 $as_echo "cat" >&6; } ;;
10706 esac
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10722 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
10723 if ${ac_cv_path_SED+:} false; then :
10724 $as_echo_n "(cached) " >&6
10725 else
10726 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10727 for ac_i in 1 2 3 4 5 6 7; do
10728 ac_script="$ac_script$as_nl$ac_script"
10729 done
10730 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10731 { ac_script=; unset ac_script;}
10732 if test -z "$SED"; then
10733 ac_path_SED_found=false
10734 # Loop through the user's path and test for each of PROGNAME-LIST
10735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10736 for as_dir in $PATH
10737 do
10738 IFS=$as_save_IFS
10739 test -z "$as_dir" && as_dir=.
10740 for ac_prog in sed gsed; do
10741 for ac_exec_ext in '' $ac_executable_extensions; do
10742 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10743 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
10744 # Check for GNU ac_path_SED and select it if it is found.
10745 # Check for GNU $ac_path_SED
10746 case `"$ac_path_SED" --version 2>&1` in
10747 *GNU*)
10748 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10749 *)
10750 ac_count=0
10751 $as_echo_n 0123456789 >"conftest.in"
10752 while :
10753 do
10754 cat "conftest.in" "conftest.in" >"conftest.tmp"
10755 mv "conftest.tmp" "conftest.in"
10756 cp "conftest.in" "conftest.nl"
10757 $as_echo '' >> "conftest.nl"
10758 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10759 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10760 as_fn_arith $ac_count + 1 && ac_count=$as_val
10761 if test $ac_count -gt ${ac_path_SED_max-0}; then
10762 # Best one so far, save it but keep looking for a better one
10763 ac_cv_path_SED="$ac_path_SED"
10764 ac_path_SED_max=$ac_count
10765 fi
10766 # 10*(2^10) chars as input seems more than enough
10767 test $ac_count -gt 10 && break
10768 done
10769 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10770 esac
10771
10772 $ac_path_SED_found && break 3
10773 done
10774 done
10775 done
10776 IFS=$as_save_IFS
10777 if test -z "$ac_cv_path_SED"; then
10778 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10779 fi
10780 else
10781 ac_cv_path_SED=$SED
10782 fi
10783
10784 fi
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10786 $as_echo "$ac_cv_path_SED" >&6; }
10787 SED="$ac_cv_path_SED"
10788 rm -f conftest.sed
10789
10790 test -z "$SED" && SED=sed
10791 Xsed="$SED -e 1s/^X//"
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10804 $as_echo_n "checking for fgrep... " >&6; }
10805 if ${ac_cv_path_FGREP+:} false; then :
10806 $as_echo_n "(cached) " >&6
10807 else
10808 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10809 then ac_cv_path_FGREP="$GREP -F"
10810 else
10811 if test -z "$FGREP"; then
10812 ac_path_FGREP_found=false
10813 # Loop through the user's path and test for each of PROGNAME-LIST
10814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10815 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10816 do
10817 IFS=$as_save_IFS
10818 test -z "$as_dir" && as_dir=.
10819 for ac_prog in fgrep; do
10820 for ac_exec_ext in '' $ac_executable_extensions; do
10821 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10822 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
10823 # Check for GNU ac_path_FGREP and select it if it is found.
10824 # Check for GNU $ac_path_FGREP
10825 case `"$ac_path_FGREP" --version 2>&1` in
10826 *GNU*)
10827 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10828 *)
10829 ac_count=0
10830 $as_echo_n 0123456789 >"conftest.in"
10831 while :
10832 do
10833 cat "conftest.in" "conftest.in" >"conftest.tmp"
10834 mv "conftest.tmp" "conftest.in"
10835 cp "conftest.in" "conftest.nl"
10836 $as_echo 'FGREP' >> "conftest.nl"
10837 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10838 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10839 as_fn_arith $ac_count + 1 && ac_count=$as_val
10840 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10841 # Best one so far, save it but keep looking for a better one
10842 ac_cv_path_FGREP="$ac_path_FGREP"
10843 ac_path_FGREP_max=$ac_count
10844 fi
10845 # 10*(2^10) chars as input seems more than enough
10846 test $ac_count -gt 10 && break
10847 done
10848 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10849 esac
10850
10851 $ac_path_FGREP_found && break 3
10852 done
10853 done
10854 done
10855 IFS=$as_save_IFS
10856 if test -z "$ac_cv_path_FGREP"; then
10857 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10858 fi
10859 else
10860 ac_cv_path_FGREP=$FGREP
10861 fi
10862
10863 fi
10864 fi
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
10866 $as_echo "$ac_cv_path_FGREP" >&6; }
10867 FGREP="$ac_cv_path_FGREP"
10868
10869
10870 test -z "$GREP" && GREP=grep
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890 # Check whether --with-gnu-ld was given.
10891 if test "${with_gnu_ld+set}" = set; then :
10892 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10893 else
10894 with_gnu_ld=no
10895 fi
10896
10897 ac_prog=ld
10898 if test "$GCC" = yes; then
10899 # Check if gcc -print-prog-name=ld gives a path.
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10901 $as_echo_n "checking for ld used by $CC... " >&6; }
10902 case $host in
10903 *-*-mingw*)
10904 # gcc leaves a trailing carriage return which upsets mingw
10905 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10906 *)
10907 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10908 esac
10909 case $ac_prog in
10910 # Accept absolute paths.
10911 [\\/]* | ?:[\\/]*)
10912 re_direlt='/[^/][^/]*/\.\./'
10913 # Canonicalize the pathname of ld
10914 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10915 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10916 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10917 done
10918 test -z "$LD" && LD="$ac_prog"
10919 ;;
10920 "")
10921 # If it fails, then pretend we aren't using GCC.
10922 ac_prog=ld
10923 ;;
10924 *)
10925 # If it is relative, then search for the first ld in PATH.
10926 with_gnu_ld=unknown
10927 ;;
10928 esac
10929 elif test "$with_gnu_ld" = yes; then
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10931 $as_echo_n "checking for GNU ld... " >&6; }
10932 else
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10934 $as_echo_n "checking for non-GNU ld... " >&6; }
10935 fi
10936 if ${lt_cv_path_LD+:} false; then :
10937 $as_echo_n "(cached) " >&6
10938 else
10939 if test -z "$LD"; then
10940 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10941 for ac_dir in $PATH; do
10942 IFS="$lt_save_ifs"
10943 test -z "$ac_dir" && ac_dir=.
10944 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10945 lt_cv_path_LD="$ac_dir/$ac_prog"
10946 # Check to see if the program is GNU ld. I'd rather use --version,
10947 # but apparently some variants of GNU ld only accept -v.
10948 # Break only if it was the GNU/non-GNU ld that we prefer.
10949 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10950 *GNU* | *'with BFD'*)
10951 test "$with_gnu_ld" != no && break
10952 ;;
10953 *)
10954 test "$with_gnu_ld" != yes && break
10955 ;;
10956 esac
10957 fi
10958 done
10959 IFS="$lt_save_ifs"
10960 else
10961 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10962 fi
10963 fi
10964
10965 LD="$lt_cv_path_LD"
10966 if test -n "$LD"; then
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10968 $as_echo "$LD" >&6; }
10969 else
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10971 $as_echo "no" >&6; }
10972 fi
10973 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10975 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10976 if ${lt_cv_prog_gnu_ld+:} false; then :
10977 $as_echo_n "(cached) " >&6
10978 else
10979 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10980 case `$LD -v 2>&1 </dev/null` in
10981 *GNU* | *'with BFD'*)
10982 lt_cv_prog_gnu_ld=yes
10983 ;;
10984 *)
10985 lt_cv_prog_gnu_ld=no
10986 ;;
10987 esac
10988 fi
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10990 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
10991 with_gnu_ld=$lt_cv_prog_gnu_ld
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11002 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11003 if ${lt_cv_path_NM+:} false; then :
11004 $as_echo_n "(cached) " >&6
11005 else
11006 if test -n "$NM"; then
11007 # Let the user override the test.
11008 lt_cv_path_NM="$NM"
11009 else
11010 lt_nm_to_check="${ac_tool_prefix}nm"
11011 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11012 lt_nm_to_check="$lt_nm_to_check nm"
11013 fi
11014 for lt_tmp_nm in $lt_nm_to_check; do
11015 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11016 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11017 IFS="$lt_save_ifs"
11018 test -z "$ac_dir" && ac_dir=.
11019 tmp_nm="$ac_dir/$lt_tmp_nm"
11020 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11021 # Check to see if the nm accepts a BSD-compat flag.
11022 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11023 # nm: unknown option "B" ignored
11024 # Tru64's nm complains that /dev/null is an invalid object file
11025 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11026 */dev/null* | *'Invalid file or object type'*)
11027 lt_cv_path_NM="$tmp_nm -B"
11028 break
11029 ;;
11030 *)
11031 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11032 */dev/null*)
11033 lt_cv_path_NM="$tmp_nm -p"
11034 break
11035 ;;
11036 *)
11037 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11038 continue # so that we can try to find one that supports BSD flags
11039 ;;
11040 esac
11041 ;;
11042 esac
11043 fi
11044 done
11045 IFS="$lt_save_ifs"
11046 done
11047 : ${lt_cv_path_NM=no}
11048 fi
11049 fi
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11051 $as_echo "$lt_cv_path_NM" >&6; }
11052 if test "$lt_cv_path_NM" != "no"; then
11053 NM="$lt_cv_path_NM"
11054 else
11055 # Didn't find any BSD compatible name lister, look for dumpbin.
11056 if test -n "$DUMPBIN"; then :
11057 # Let the user override the test.
11058 else
11059 if test -n "$ac_tool_prefix"; then
11060 for ac_prog in dumpbin "link -dump"
11061 do
11062 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11063 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11065 $as_echo_n "checking for $ac_word... " >&6; }
11066 if ${ac_cv_prog_DUMPBIN+:} false; then :
11067 $as_echo_n "(cached) " >&6
11068 else
11069 if test -n "$DUMPBIN"; then
11070 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11071 else
11072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11073 for as_dir in $PATH
11074 do
11075 IFS=$as_save_IFS
11076 test -z "$as_dir" && as_dir=.
11077 for ac_exec_ext in '' $ac_executable_extensions; do
11078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11079 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11081 break 2
11082 fi
11083 done
11084 done
11085 IFS=$as_save_IFS
11086
11087 fi
11088 fi
11089 DUMPBIN=$ac_cv_prog_DUMPBIN
11090 if test -n "$DUMPBIN"; then
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11092 $as_echo "$DUMPBIN" >&6; }
11093 else
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11095 $as_echo "no" >&6; }
11096 fi
11097
11098
11099 test -n "$DUMPBIN" && break
11100 done
11101 fi
11102 if test -z "$DUMPBIN"; then
11103 ac_ct_DUMPBIN=$DUMPBIN
11104 for ac_prog in dumpbin "link -dump"
11105 do
11106 # Extract the first word of "$ac_prog", so it can be a program name with args.
11107 set dummy $ac_prog; ac_word=$2
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11109 $as_echo_n "checking for $ac_word... " >&6; }
11110 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11111 $as_echo_n "(cached) " >&6
11112 else
11113 if test -n "$ac_ct_DUMPBIN"; then
11114 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11115 else
11116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11117 for as_dir in $PATH
11118 do
11119 IFS=$as_save_IFS
11120 test -z "$as_dir" && as_dir=.
11121 for ac_exec_ext in '' $ac_executable_extensions; do
11122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11123 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11125 break 2
11126 fi
11127 done
11128 done
11129 IFS=$as_save_IFS
11130
11131 fi
11132 fi
11133 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11134 if test -n "$ac_ct_DUMPBIN"; then
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11136 $as_echo "$ac_ct_DUMPBIN" >&6; }
11137 else
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11139 $as_echo "no" >&6; }
11140 fi
11141
11142
11143 test -n "$ac_ct_DUMPBIN" && break
11144 done
11145
11146 if test "x$ac_ct_DUMPBIN" = x; then
11147 DUMPBIN=":"
11148 else
11149 case $cross_compiling:$ac_tool_warned in
11150 yes:)
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11153 ac_tool_warned=yes ;;
11154 esac
11155 DUMPBIN=$ac_ct_DUMPBIN
11156 fi
11157 fi
11158
11159 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11160 *COFF*)
11161 DUMPBIN="$DUMPBIN -symbols"
11162 ;;
11163 *)
11164 DUMPBIN=:
11165 ;;
11166 esac
11167 fi
11168
11169 if test "$DUMPBIN" != ":"; then
11170 NM="$DUMPBIN"
11171 fi
11172 fi
11173 test -z "$NM" && NM=nm
11174
11175
11176
11177
11178
11179
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11181 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11182 if ${lt_cv_nm_interface+:} false; then :
11183 $as_echo_n "(cached) " >&6
11184 else
11185 lt_cv_nm_interface="BSD nm"
11186 echo "int some_variable = 0;" > conftest.$ac_ext
11187 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11188 (eval "$ac_compile" 2>conftest.err)
11189 cat conftest.err >&5
11190 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11191 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11192 cat conftest.err >&5
11193 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11194 cat conftest.out >&5
11195 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11196 lt_cv_nm_interface="MS dumpbin"
11197 fi
11198 rm -f conftest*
11199 fi
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11201 $as_echo "$lt_cv_nm_interface" >&6; }
11202
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11204 $as_echo_n "checking whether ln -s works... " >&6; }
11205 LN_S=$as_ln_s
11206 if test "$LN_S" = "ln -s"; then
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11208 $as_echo "yes" >&6; }
11209 else
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11211 $as_echo "no, using $LN_S" >&6; }
11212 fi
11213
11214 # find the maximum length of command line arguments
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11216 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11217 if ${lt_cv_sys_max_cmd_len+:} false; then :
11218 $as_echo_n "(cached) " >&6
11219 else
11220 i=0
11221 teststring="ABCD"
11222
11223 case $build_os in
11224 msdosdjgpp*)
11225 # On DJGPP, this test can blow up pretty badly due to problems in libc
11226 # (any single argument exceeding 2000 bytes causes a buffer overrun
11227 # during glob expansion). Even if it were fixed, the result of this
11228 # check would be larger than it should be.
11229 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11230 ;;
11231
11232 gnu*)
11233 # Under GNU Hurd, this test is not required because there is
11234 # no limit to the length of command line arguments.
11235 # Libtool will interpret -1 as no limit whatsoever
11236 lt_cv_sys_max_cmd_len=-1;
11237 ;;
11238
11239 cygwin* | mingw* | cegcc*)
11240 # On Win9x/ME, this test blows up -- it succeeds, but takes
11241 # about 5 minutes as the teststring grows exponentially.
11242 # Worse, since 9x/ME are not pre-emptively multitasking,
11243 # you end up with a "frozen" computer, even though with patience
11244 # the test eventually succeeds (with a max line length of 256k).
11245 # Instead, let's just punt: use the minimum linelength reported by
11246 # all of the supported platforms: 8192 (on NT/2K/XP).
11247 lt_cv_sys_max_cmd_len=8192;
11248 ;;
11249
11250 mint*)
11251 # On MiNT this can take a long time and run out of memory.
11252 lt_cv_sys_max_cmd_len=8192;
11253 ;;
11254
11255 amigaos*)
11256 # On AmigaOS with pdksh, this test takes hours, literally.
11257 # So we just punt and use a minimum line length of 8192.
11258 lt_cv_sys_max_cmd_len=8192;
11259 ;;
11260
11261 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11262 # This has been around since 386BSD, at least. Likely further.
11263 if test -x /sbin/sysctl; then
11264 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11265 elif test -x /usr/sbin/sysctl; then
11266 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11267 else
11268 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11269 fi
11270 # And add a safety zone
11271 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11272 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11273 ;;
11274
11275 interix*)
11276 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11277 lt_cv_sys_max_cmd_len=196608
11278 ;;
11279
11280 osf*)
11281 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11282 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11283 # nice to cause kernel panics so lets avoid the loop below.
11284 # First set a reasonable default.
11285 lt_cv_sys_max_cmd_len=16384
11286 #
11287 if test -x /sbin/sysconfig; then
11288 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11289 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11290 esac
11291 fi
11292 ;;
11293 sco3.2v5*)
11294 lt_cv_sys_max_cmd_len=102400
11295 ;;
11296 sysv5* | sco5v6* | sysv4.2uw2*)
11297 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11298 if test -n "$kargmax"; then
11299 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11300 else
11301 lt_cv_sys_max_cmd_len=32768
11302 fi
11303 ;;
11304 *)
11305 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11306 if test -n "$lt_cv_sys_max_cmd_len"; then
11307 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11308 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11309 else
11310 # Make teststring a little bigger before we do anything with it.
11311 # a 1K string should be a reasonable start.
11312 for i in 1 2 3 4 5 6 7 8 ; do
11313 teststring=$teststring$teststring
11314 done
11315 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11316 # If test is not a shell built-in, we'll probably end up computing a
11317 # maximum length that is only half of the actual maximum length, but
11318 # we can't tell.
11319 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
11320 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11321 test $i != 17 # 1/2 MB should be enough
11322 do
11323 i=`expr $i + 1`
11324 teststring=$teststring$teststring
11325 done
11326 # Only check the string length outside the loop.
11327 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11328 teststring=
11329 # Add a significant safety factor because C++ compilers can tack on
11330 # massive amounts of additional arguments before passing them to the
11331 # linker. It appears as though 1/2 is a usable value.
11332 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11333 fi
11334 ;;
11335 esac
11336
11337 fi
11338
11339 if test -n $lt_cv_sys_max_cmd_len ; then
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11341 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11342 else
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11344 $as_echo "none" >&6; }
11345 fi
11346 max_cmd_len=$lt_cv_sys_max_cmd_len
11347
11348
11349
11350
11351
11352
11353 : ${CP="cp -f"}
11354 : ${MV="mv -f"}
11355 : ${RM="rm -f"}
11356
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11358 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11359 # Try some XSI features
11360 xsi_shell=no
11361 ( _lt_dummy="a/b/c"
11362 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11363 = c,a/b,b/c, \
11364 && eval 'test $(( 1 + 1 )) -eq 2 \
11365 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11366 && xsi_shell=yes
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11368 $as_echo "$xsi_shell" >&6; }
11369
11370
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11372 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11373 lt_shell_append=no
11374 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11375 >/dev/null 2>&1 \
11376 && lt_shell_append=yes
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11378 $as_echo "$lt_shell_append" >&6; }
11379
11380
11381 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11382 lt_unset=unset
11383 else
11384 lt_unset=false
11385 fi
11386
11387
11388
11389
11390
11391 # test EBCDIC or ASCII
11392 case `echo X|tr X '\101'` in
11393 A) # ASCII based system
11394 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11395 lt_SP2NL='tr \040 \012'
11396 lt_NL2SP='tr \015\012 \040\040'
11397 ;;
11398 *) # EBCDIC based system
11399 lt_SP2NL='tr \100 \n'
11400 lt_NL2SP='tr \r\n \100\100'
11401 ;;
11402 esac
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11413 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11414 if ${lt_cv_to_host_file_cmd+:} false; then :
11415 $as_echo_n "(cached) " >&6
11416 else
11417 case $host in
11418 *-*-mingw* )
11419 case $build in
11420 *-*-mingw* ) # actually msys
11421 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11422 ;;
11423 *-*-cygwin* )
11424 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11425 ;;
11426 * ) # otherwise, assume *nix
11427 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11428 ;;
11429 esac
11430 ;;
11431 *-*-cygwin* )
11432 case $build in
11433 *-*-mingw* ) # actually msys
11434 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11435 ;;
11436 *-*-cygwin* )
11437 lt_cv_to_host_file_cmd=func_convert_file_noop
11438 ;;
11439 * ) # otherwise, assume *nix
11440 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11441 ;;
11442 esac
11443 ;;
11444 * ) # unhandled hosts (and "normal" native builds)
11445 lt_cv_to_host_file_cmd=func_convert_file_noop
11446 ;;
11447 esac
11448
11449 fi
11450
11451 to_host_file_cmd=$lt_cv_to_host_file_cmd
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11453 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
11454
11455
11456
11457
11458
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11460 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11461 if ${lt_cv_to_tool_file_cmd+:} false; then :
11462 $as_echo_n "(cached) " >&6
11463 else
11464 #assume ordinary cross tools, or native build.
11465 lt_cv_to_tool_file_cmd=func_convert_file_noop
11466 case $host in
11467 *-*-mingw* )
11468 case $build in
11469 *-*-mingw* ) # actually msys
11470 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11471 ;;
11472 esac
11473 ;;
11474 esac
11475
11476 fi
11477
11478 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11480 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11481
11482
11483
11484
11485
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11487 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11488 if ${lt_cv_ld_reload_flag+:} false; then :
11489 $as_echo_n "(cached) " >&6
11490 else
11491 lt_cv_ld_reload_flag='-r'
11492 fi
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11494 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11495 reload_flag=$lt_cv_ld_reload_flag
11496 case $reload_flag in
11497 "" | " "*) ;;
11498 *) reload_flag=" $reload_flag" ;;
11499 esac
11500 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11501 case $host_os in
11502 cygwin* | mingw* | pw32* | cegcc*)
11503 if test "$GCC" != yes; then
11504 reload_cmds=false
11505 fi
11506 ;;
11507 darwin*)
11508 if test "$GCC" = yes; then
11509 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11510 else
11511 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11512 fi
11513 ;;
11514 esac
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524 if test -n "$ac_tool_prefix"; then
11525 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11526 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11528 $as_echo_n "checking for $ac_word... " >&6; }
11529 if ${ac_cv_prog_OBJDUMP+:} false; then :
11530 $as_echo_n "(cached) " >&6
11531 else
11532 if test -n "$OBJDUMP"; then
11533 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11534 else
11535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11536 for as_dir in $PATH
11537 do
11538 IFS=$as_save_IFS
11539 test -z "$as_dir" && as_dir=.
11540 for ac_exec_ext in '' $ac_executable_extensions; do
11541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11542 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11544 break 2
11545 fi
11546 done
11547 done
11548 IFS=$as_save_IFS
11549
11550 fi
11551 fi
11552 OBJDUMP=$ac_cv_prog_OBJDUMP
11553 if test -n "$OBJDUMP"; then
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11555 $as_echo "$OBJDUMP" >&6; }
11556 else
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11558 $as_echo "no" >&6; }
11559 fi
11560
11561
11562 fi
11563 if test -z "$ac_cv_prog_OBJDUMP"; then
11564 ac_ct_OBJDUMP=$OBJDUMP
11565 # Extract the first word of "objdump", so it can be a program name with args.
11566 set dummy objdump; ac_word=$2
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11568 $as_echo_n "checking for $ac_word... " >&6; }
11569 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11570 $as_echo_n "(cached) " >&6
11571 else
11572 if test -n "$ac_ct_OBJDUMP"; then
11573 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11574 else
11575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11576 for as_dir in $PATH
11577 do
11578 IFS=$as_save_IFS
11579 test -z "$as_dir" && as_dir=.
11580 for ac_exec_ext in '' $ac_executable_extensions; do
11581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11582 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11584 break 2
11585 fi
11586 done
11587 done
11588 IFS=$as_save_IFS
11589
11590 fi
11591 fi
11592 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11593 if test -n "$ac_ct_OBJDUMP"; then
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11595 $as_echo "$ac_ct_OBJDUMP" >&6; }
11596 else
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11598 $as_echo "no" >&6; }
11599 fi
11600
11601 if test "x$ac_ct_OBJDUMP" = x; then
11602 OBJDUMP="false"
11603 else
11604 case $cross_compiling:$ac_tool_warned in
11605 yes:)
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11608 ac_tool_warned=yes ;;
11609 esac
11610 OBJDUMP=$ac_ct_OBJDUMP
11611 fi
11612 else
11613 OBJDUMP="$ac_cv_prog_OBJDUMP"
11614 fi
11615
11616 test -z "$OBJDUMP" && OBJDUMP=objdump
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11627 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11628 if ${lt_cv_deplibs_check_method+:} false; then :
11629 $as_echo_n "(cached) " >&6
11630 else
11631 lt_cv_file_magic_cmd='$MAGIC_CMD'
11632 lt_cv_file_magic_test_file=
11633 lt_cv_deplibs_check_method='unknown'
11634 # Need to set the preceding variable on all platforms that support
11635 # interlibrary dependencies.
11636 # 'none' -- dependencies not supported.
11637 # `unknown' -- same as none, but documents that we really don't know.
11638 # 'pass_all' -- all dependencies passed with no checks.
11639 # 'test_compile' -- check by making test program.
11640 # 'file_magic [[regex]]' -- check by looking for files in library path
11641 # which responds to the $file_magic_cmd with a given extended regex.
11642 # If you have `file' or equivalent on your system and you're not sure
11643 # whether `pass_all' will *always* work, you probably want this one.
11644
11645 case $host_os in
11646 aix[4-9]*)
11647 lt_cv_deplibs_check_method=pass_all
11648 ;;
11649
11650 beos*)
11651 lt_cv_deplibs_check_method=pass_all
11652 ;;
11653
11654 bsdi[45]*)
11655 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11656 lt_cv_file_magic_cmd='/usr/bin/file -L'
11657 lt_cv_file_magic_test_file=/shlib/libc.so
11658 ;;
11659
11660 cygwin*)
11661 # func_win32_libid is a shell function defined in ltmain.sh
11662 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11663 lt_cv_file_magic_cmd='func_win32_libid'
11664 ;;
11665
11666 mingw* | pw32*)
11667 # Base MSYS/MinGW do not provide the 'file' command needed by
11668 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11669 # unless we find 'file', for example because we are cross-compiling.
11670 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11671 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11672 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11673 lt_cv_file_magic_cmd='func_win32_libid'
11674 else
11675 # Keep this pattern in sync with the one in func_win32_libid.
11676 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11677 lt_cv_file_magic_cmd='$OBJDUMP -f'
11678 fi
11679 ;;
11680
11681 cegcc*)
11682 # use the weaker test based on 'objdump'. See mingw*.
11683 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11684 lt_cv_file_magic_cmd='$OBJDUMP -f'
11685 ;;
11686
11687 darwin* | rhapsody*)
11688 lt_cv_deplibs_check_method=pass_all
11689 ;;
11690
11691 freebsd* | dragonfly*)
11692 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11693 case $host_cpu in
11694 i*86 )
11695 # Not sure whether the presence of OpenBSD here was a mistake.
11696 # Let's accept both of them until this is cleared up.
11697 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11698 lt_cv_file_magic_cmd=/usr/bin/file
11699 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11700 ;;
11701 esac
11702 else
11703 lt_cv_deplibs_check_method=pass_all
11704 fi
11705 ;;
11706
11707 gnu*)
11708 lt_cv_deplibs_check_method=pass_all
11709 ;;
11710
11711 haiku*)
11712 lt_cv_deplibs_check_method=pass_all
11713 ;;
11714
11715 hpux10.20* | hpux11*)
11716 lt_cv_file_magic_cmd=/usr/bin/file
11717 case $host_cpu in
11718 ia64*)
11719 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11720 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11721 ;;
11722 hppa*64*)
11723 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]'
11724 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11725 ;;
11726 *)
11727 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11728 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11729 ;;
11730 esac
11731 ;;
11732
11733 interix[3-9]*)
11734 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11735 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11736 ;;
11737
11738 irix5* | irix6* | nonstopux*)
11739 case $LD in
11740 *-32|*"-32 ") libmagic=32-bit;;
11741 *-n32|*"-n32 ") libmagic=N32;;
11742 *-64|*"-64 ") libmagic=64-bit;;
11743 *) libmagic=never-match;;
11744 esac
11745 lt_cv_deplibs_check_method=pass_all
11746 ;;
11747
11748 # This must be Linux ELF.
11749 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11750 lt_cv_deplibs_check_method=pass_all
11751 ;;
11752
11753 netbsd*)
11754 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11755 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11756 else
11757 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11758 fi
11759 ;;
11760
11761 newos6*)
11762 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11763 lt_cv_file_magic_cmd=/usr/bin/file
11764 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11765 ;;
11766
11767 *nto* | *qnx*)
11768 lt_cv_deplibs_check_method=pass_all
11769 ;;
11770
11771 openbsd*)
11772 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11773 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11774 else
11775 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11776 fi
11777 ;;
11778
11779 osf3* | osf4* | osf5*)
11780 lt_cv_deplibs_check_method=pass_all
11781 ;;
11782
11783 rdos*)
11784 lt_cv_deplibs_check_method=pass_all
11785 ;;
11786
11787 solaris*)
11788 lt_cv_deplibs_check_method=pass_all
11789 ;;
11790
11791 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11792 lt_cv_deplibs_check_method=pass_all
11793 ;;
11794
11795 sysv4 | sysv4.3*)
11796 case $host_vendor in
11797 motorola)
11798 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]'
11799 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11800 ;;
11801 ncr)
11802 lt_cv_deplibs_check_method=pass_all
11803 ;;
11804 sequent)
11805 lt_cv_file_magic_cmd='/bin/file'
11806 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11807 ;;
11808 sni)
11809 lt_cv_file_magic_cmd='/bin/file'
11810 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11811 lt_cv_file_magic_test_file=/lib/libc.so
11812 ;;
11813 siemens)
11814 lt_cv_deplibs_check_method=pass_all
11815 ;;
11816 pc)
11817 lt_cv_deplibs_check_method=pass_all
11818 ;;
11819 esac
11820 ;;
11821
11822 tpf*)
11823 lt_cv_deplibs_check_method=pass_all
11824 ;;
11825 esac
11826
11827 fi
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11829 $as_echo "$lt_cv_deplibs_check_method" >&6; }
11830
11831 file_magic_glob=
11832 want_nocaseglob=no
11833 if test "$build" = "$host"; then
11834 case $host_os in
11835 mingw* | pw32*)
11836 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11837 want_nocaseglob=yes
11838 else
11839 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11840 fi
11841 ;;
11842 esac
11843 fi
11844
11845 file_magic_cmd=$lt_cv_file_magic_cmd
11846 deplibs_check_method=$lt_cv_deplibs_check_method
11847 test -z "$deplibs_check_method" && deplibs_check_method=unknown
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870 if test -n "$ac_tool_prefix"; then
11871 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11872 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11874 $as_echo_n "checking for $ac_word... " >&6; }
11875 if ${ac_cv_prog_DLLTOOL+:} false; then :
11876 $as_echo_n "(cached) " >&6
11877 else
11878 if test -n "$DLLTOOL"; then
11879 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11880 else
11881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11882 for as_dir in $PATH
11883 do
11884 IFS=$as_save_IFS
11885 test -z "$as_dir" && as_dir=.
11886 for ac_exec_ext in '' $ac_executable_extensions; do
11887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11888 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11890 break 2
11891 fi
11892 done
11893 done
11894 IFS=$as_save_IFS
11895
11896 fi
11897 fi
11898 DLLTOOL=$ac_cv_prog_DLLTOOL
11899 if test -n "$DLLTOOL"; then
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11901 $as_echo "$DLLTOOL" >&6; }
11902 else
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11904 $as_echo "no" >&6; }
11905 fi
11906
11907
11908 fi
11909 if test -z "$ac_cv_prog_DLLTOOL"; then
11910 ac_ct_DLLTOOL=$DLLTOOL
11911 # Extract the first word of "dlltool", so it can be a program name with args.
11912 set dummy dlltool; ac_word=$2
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11914 $as_echo_n "checking for $ac_word... " >&6; }
11915 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11916 $as_echo_n "(cached) " >&6
11917 else
11918 if test -n "$ac_ct_DLLTOOL"; then
11919 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11920 else
11921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11922 for as_dir in $PATH
11923 do
11924 IFS=$as_save_IFS
11925 test -z "$as_dir" && as_dir=.
11926 for ac_exec_ext in '' $ac_executable_extensions; do
11927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11928 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11930 break 2
11931 fi
11932 done
11933 done
11934 IFS=$as_save_IFS
11935
11936 fi
11937 fi
11938 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11939 if test -n "$ac_ct_DLLTOOL"; then
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11941 $as_echo "$ac_ct_DLLTOOL" >&6; }
11942 else
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11944 $as_echo "no" >&6; }
11945 fi
11946
11947 if test "x$ac_ct_DLLTOOL" = x; then
11948 DLLTOOL="false"
11949 else
11950 case $cross_compiling:$ac_tool_warned in
11951 yes:)
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11954 ac_tool_warned=yes ;;
11955 esac
11956 DLLTOOL=$ac_ct_DLLTOOL
11957 fi
11958 else
11959 DLLTOOL="$ac_cv_prog_DLLTOOL"
11960 fi
11961
11962 test -z "$DLLTOOL" && DLLTOOL=dlltool
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11974 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11975 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11976 $as_echo_n "(cached) " >&6
11977 else
11978 lt_cv_sharedlib_from_linklib_cmd='unknown'
11979
11980 case $host_os in
11981 cygwin* | mingw* | pw32* | cegcc*)
11982 # two different shell functions defined in ltmain.sh
11983 # decide which to use based on capabilities of $DLLTOOL
11984 case `$DLLTOOL --help 2>&1` in
11985 *--identify-strict*)
11986 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11987 ;;
11988 *)
11989 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11990 ;;
11991 esac
11992 ;;
11993 *)
11994 # fallback: assume linklib IS sharedlib
11995 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11996 ;;
11997 esac
11998
11999 fi
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12001 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12002 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12003 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12004
12005
12006
12007
12008
12009
12010
12011 if test -n "$ac_tool_prefix"; then
12012 for ac_prog in ar
12013 do
12014 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12015 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12017 $as_echo_n "checking for $ac_word... " >&6; }
12018 if ${ac_cv_prog_AR+:} false; then :
12019 $as_echo_n "(cached) " >&6
12020 else
12021 if test -n "$AR"; then
12022 ac_cv_prog_AR="$AR" # Let the user override the test.
12023 else
12024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12025 for as_dir in $PATH
12026 do
12027 IFS=$as_save_IFS
12028 test -z "$as_dir" && as_dir=.
12029 for ac_exec_ext in '' $ac_executable_extensions; do
12030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12031 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12033 break 2
12034 fi
12035 done
12036 done
12037 IFS=$as_save_IFS
12038
12039 fi
12040 fi
12041 AR=$ac_cv_prog_AR
12042 if test -n "$AR"; then
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12044 $as_echo "$AR" >&6; }
12045 else
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12047 $as_echo "no" >&6; }
12048 fi
12049
12050
12051 test -n "$AR" && break
12052 done
12053 fi
12054 if test -z "$AR"; then
12055 ac_ct_AR=$AR
12056 for ac_prog in ar
12057 do
12058 # Extract the first word of "$ac_prog", so it can be a program name with args.
12059 set dummy $ac_prog; ac_word=$2
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12061 $as_echo_n "checking for $ac_word... " >&6; }
12062 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12063 $as_echo_n "(cached) " >&6
12064 else
12065 if test -n "$ac_ct_AR"; then
12066 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12067 else
12068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12069 for as_dir in $PATH
12070 do
12071 IFS=$as_save_IFS
12072 test -z "$as_dir" && as_dir=.
12073 for ac_exec_ext in '' $ac_executable_extensions; do
12074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12075 ac_cv_prog_ac_ct_AR="$ac_prog"
12076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12077 break 2
12078 fi
12079 done
12080 done
12081 IFS=$as_save_IFS
12082
12083 fi
12084 fi
12085 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12086 if test -n "$ac_ct_AR"; then
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12088 $as_echo "$ac_ct_AR" >&6; }
12089 else
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12091 $as_echo "no" >&6; }
12092 fi
12093
12094
12095 test -n "$ac_ct_AR" && break
12096 done
12097
12098 if test "x$ac_ct_AR" = x; then
12099 AR="false"
12100 else
12101 case $cross_compiling:$ac_tool_warned in
12102 yes:)
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12104 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12105 ac_tool_warned=yes ;;
12106 esac
12107 AR=$ac_ct_AR
12108 fi
12109 fi
12110
12111 : ${AR=ar}
12112 : ${AR_FLAGS=cru}
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12125 $as_echo_n "checking for archiver @FILE support... " >&6; }
12126 if ${lt_cv_ar_at_file+:} false; then :
12127 $as_echo_n "(cached) " >&6
12128 else
12129 lt_cv_ar_at_file=no
12130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12131 /* end confdefs.h. */
12132
12133 int
12134 main ()
12135 {
12136
12137 ;
12138 return 0;
12139 }
12140 _ACEOF
12141 if ac_fn_c_try_compile "$LINENO"; then :
12142 echo conftest.$ac_objext > conftest.lst
12143 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12145 (eval $lt_ar_try) 2>&5
12146 ac_status=$?
12147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12148 test $ac_status = 0; }
12149 if test "$ac_status" -eq 0; then
12150 # Ensure the archiver fails upon bogus file names.
12151 rm -f conftest.$ac_objext libconftest.a
12152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12153 (eval $lt_ar_try) 2>&5
12154 ac_status=$?
12155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12156 test $ac_status = 0; }
12157 if test "$ac_status" -ne 0; then
12158 lt_cv_ar_at_file=@
12159 fi
12160 fi
12161 rm -f conftest.* libconftest.a
12162
12163 fi
12164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12165
12166 fi
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12168 $as_echo "$lt_cv_ar_at_file" >&6; }
12169
12170 if test "x$lt_cv_ar_at_file" = xno; then
12171 archiver_list_spec=
12172 else
12173 archiver_list_spec=$lt_cv_ar_at_file
12174 fi
12175
12176
12177
12178
12179
12180
12181
12182 if test -n "$ac_tool_prefix"; then
12183 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12184 set dummy ${ac_tool_prefix}strip; ac_word=$2
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12186 $as_echo_n "checking for $ac_word... " >&6; }
12187 if ${ac_cv_prog_STRIP+:} false; then :
12188 $as_echo_n "(cached) " >&6
12189 else
12190 if test -n "$STRIP"; then
12191 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12192 else
12193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12194 for as_dir in $PATH
12195 do
12196 IFS=$as_save_IFS
12197 test -z "$as_dir" && as_dir=.
12198 for ac_exec_ext in '' $ac_executable_extensions; do
12199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12200 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12202 break 2
12203 fi
12204 done
12205 done
12206 IFS=$as_save_IFS
12207
12208 fi
12209 fi
12210 STRIP=$ac_cv_prog_STRIP
12211 if test -n "$STRIP"; then
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12213 $as_echo "$STRIP" >&6; }
12214 else
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12216 $as_echo "no" >&6; }
12217 fi
12218
12219
12220 fi
12221 if test -z "$ac_cv_prog_STRIP"; then
12222 ac_ct_STRIP=$STRIP
12223 # Extract the first word of "strip", so it can be a program name with args.
12224 set dummy strip; ac_word=$2
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12226 $as_echo_n "checking for $ac_word... " >&6; }
12227 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12228 $as_echo_n "(cached) " >&6
12229 else
12230 if test -n "$ac_ct_STRIP"; then
12231 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12232 else
12233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12234 for as_dir in $PATH
12235 do
12236 IFS=$as_save_IFS
12237 test -z "$as_dir" && as_dir=.
12238 for ac_exec_ext in '' $ac_executable_extensions; do
12239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12240 ac_cv_prog_ac_ct_STRIP="strip"
12241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12242 break 2
12243 fi
12244 done
12245 done
12246 IFS=$as_save_IFS
12247
12248 fi
12249 fi
12250 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12251 if test -n "$ac_ct_STRIP"; then
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12253 $as_echo "$ac_ct_STRIP" >&6; }
12254 else
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12256 $as_echo "no" >&6; }
12257 fi
12258
12259 if test "x$ac_ct_STRIP" = x; then
12260 STRIP=":"
12261 else
12262 case $cross_compiling:$ac_tool_warned in
12263 yes:)
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12266 ac_tool_warned=yes ;;
12267 esac
12268 STRIP=$ac_ct_STRIP
12269 fi
12270 else
12271 STRIP="$ac_cv_prog_STRIP"
12272 fi
12273
12274 test -z "$STRIP" && STRIP=:
12275
12276
12277
12278
12279
12280
12281 if test -n "$ac_tool_prefix"; then
12282 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12283 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12285 $as_echo_n "checking for $ac_word... " >&6; }
12286 if ${ac_cv_prog_RANLIB+:} false; then :
12287 $as_echo_n "(cached) " >&6
12288 else
12289 if test -n "$RANLIB"; then
12290 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12291 else
12292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12293 for as_dir in $PATH
12294 do
12295 IFS=$as_save_IFS
12296 test -z "$as_dir" && as_dir=.
12297 for ac_exec_ext in '' $ac_executable_extensions; do
12298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12299 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12301 break 2
12302 fi
12303 done
12304 done
12305 IFS=$as_save_IFS
12306
12307 fi
12308 fi
12309 RANLIB=$ac_cv_prog_RANLIB
12310 if test -n "$RANLIB"; then
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12312 $as_echo "$RANLIB" >&6; }
12313 else
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12315 $as_echo "no" >&6; }
12316 fi
12317
12318
12319 fi
12320 if test -z "$ac_cv_prog_RANLIB"; then
12321 ac_ct_RANLIB=$RANLIB
12322 # Extract the first word of "ranlib", so it can be a program name with args.
12323 set dummy ranlib; ac_word=$2
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12325 $as_echo_n "checking for $ac_word... " >&6; }
12326 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12327 $as_echo_n "(cached) " >&6
12328 else
12329 if test -n "$ac_ct_RANLIB"; then
12330 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12331 else
12332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12333 for as_dir in $PATH
12334 do
12335 IFS=$as_save_IFS
12336 test -z "$as_dir" && as_dir=.
12337 for ac_exec_ext in '' $ac_executable_extensions; do
12338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12339 ac_cv_prog_ac_ct_RANLIB="ranlib"
12340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12341 break 2
12342 fi
12343 done
12344 done
12345 IFS=$as_save_IFS
12346
12347 fi
12348 fi
12349 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12350 if test -n "$ac_ct_RANLIB"; then
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12352 $as_echo "$ac_ct_RANLIB" >&6; }
12353 else
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12355 $as_echo "no" >&6; }
12356 fi
12357
12358 if test "x$ac_ct_RANLIB" = x; then
12359 RANLIB=":"
12360 else
12361 case $cross_compiling:$ac_tool_warned in
12362 yes:)
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12365 ac_tool_warned=yes ;;
12366 esac
12367 RANLIB=$ac_ct_RANLIB
12368 fi
12369 else
12370 RANLIB="$ac_cv_prog_RANLIB"
12371 fi
12372
12373 test -z "$RANLIB" && RANLIB=:
12374
12375
12376
12377
12378
12379
12380 # Determine commands to create old-style static archives.
12381 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12382 old_postinstall_cmds='chmod 644 $oldlib'
12383 old_postuninstall_cmds=
12384
12385 if test -n "$RANLIB"; then
12386 case $host_os in
12387 openbsd*)
12388 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
12389 ;;
12390 *)
12391 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
12392 ;;
12393 esac
12394 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12395 fi
12396
12397 case $host_os in
12398 darwin*)
12399 lock_old_archive_extraction=yes ;;
12400 *)
12401 lock_old_archive_extraction=no ;;
12402 esac
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442 # If no C compiler was specified, use CC.
12443 LTCC=${LTCC-"$CC"}
12444
12445 # If no C compiler flags were specified, use CFLAGS.
12446 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12447
12448 # Allow CC to be a program name with arguments.
12449 compiler=$CC
12450
12451
12452 # Check for command to grab the raw symbol name followed by C symbol from nm.
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12454 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12455 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12456 $as_echo_n "(cached) " >&6
12457 else
12458
12459 # These are sane defaults that work on at least a few old systems.
12460 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12461
12462 # Character class describing NM global symbol codes.
12463 symcode='[BCDEGRST]'
12464
12465 # Regexp to match symbols that can be accessed directly from C.
12466 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12467
12468 # Define system-specific variables.
12469 case $host_os in
12470 aix*)
12471 symcode='[BCDT]'
12472 ;;
12473 cygwin* | mingw* | pw32* | cegcc*)
12474 symcode='[ABCDGISTW]'
12475 ;;
12476 hpux*)
12477 if test "$host_cpu" = ia64; then
12478 symcode='[ABCDEGRST]'
12479 fi
12480 ;;
12481 irix* | nonstopux*)
12482 symcode='[BCDEGRST]'
12483 ;;
12484 osf*)
12485 symcode='[BCDEGQRST]'
12486 ;;
12487 solaris*)
12488 symcode='[BDRT]'
12489 ;;
12490 sco3.2v5*)
12491 symcode='[DT]'
12492 ;;
12493 sysv4.2uw2*)
12494 symcode='[DT]'
12495 ;;
12496 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12497 symcode='[ABDT]'
12498 ;;
12499 sysv4)
12500 symcode='[DFNSTU]'
12501 ;;
12502 esac
12503
12504 # If we're using GNU nm, then use its standard symbol codes.
12505 case `$NM -V 2>&1` in
12506 *GNU* | *'with BFD'*)
12507 symcode='[ABCDGIRSTW]' ;;
12508 esac
12509
12510 # Transform an extracted symbol line into a proper C declaration.
12511 # Some systems (esp. on ia64) link data and code symbols differently,
12512 # so use this general approach.
12513 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12514
12515 # Transform an extracted symbol line into symbol name and symbol address
12516 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12517 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'"
12518
12519 # Handle CRLF in mingw tool chain
12520 opt_cr=
12521 case $build_os in
12522 mingw*)
12523 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12524 ;;
12525 esac
12526
12527 # Try without a prefix underscore, then with it.
12528 for ac_symprfx in "" "_"; do
12529
12530 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12531 symxfrm="\\1 $ac_symprfx\\2 \\2"
12532
12533 # Write the raw and C identifiers.
12534 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12535 # Fake it for dumpbin and say T for any non-static function
12536 # and D for any global variable.
12537 # Also find C++ and __fastcall symbols from MSVC++,
12538 # which start with @ or ?.
12539 lt_cv_sys_global_symbol_pipe="$AWK '"\
12540 " {last_section=section; section=\$ 3};"\
12541 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12542 " \$ 0!~/External *\|/{next};"\
12543 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12544 " {if(hide[section]) next};"\
12545 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12546 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12547 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12548 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12549 " ' prfx=^$ac_symprfx"
12550 else
12551 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12552 fi
12553 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12554
12555 # Check to see that the pipe works correctly.
12556 pipe_works=no
12557
12558 rm -f conftest*
12559 cat > conftest.$ac_ext <<_LT_EOF
12560 #ifdef __cplusplus
12561 extern "C" {
12562 #endif
12563 char nm_test_var;
12564 void nm_test_func(void);
12565 void nm_test_func(void){}
12566 #ifdef __cplusplus
12567 }
12568 #endif
12569 int main(){nm_test_var='a';nm_test_func();return(0);}
12570 _LT_EOF
12571
12572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12573 (eval $ac_compile) 2>&5
12574 ac_status=$?
12575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12576 test $ac_status = 0; }; then
12577 # Now try to grab the symbols.
12578 nlist=conftest.nm
12579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12580 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12581 ac_status=$?
12582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12583 test $ac_status = 0; } && test -s "$nlist"; then
12584 # Try sorting and uniquifying the output.
12585 if sort "$nlist" | uniq > "$nlist"T; then
12586 mv -f "$nlist"T "$nlist"
12587 else
12588 rm -f "$nlist"T
12589 fi
12590
12591 # Make sure that we snagged all the symbols we need.
12592 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12593 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12594 cat <<_LT_EOF > conftest.$ac_ext
12595 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12596 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12597 /* DATA imports from DLLs on WIN32 con't be const, because runtime
12598 relocations are performed -- see ld's documentation on pseudo-relocs. */
12599 # define LT_DLSYM_CONST
12600 #elif defined(__osf__)
12601 /* This system does not cope well with relocations in const data. */
12602 # define LT_DLSYM_CONST
12603 #else
12604 # define LT_DLSYM_CONST const
12605 #endif
12606
12607 #ifdef __cplusplus
12608 extern "C" {
12609 #endif
12610
12611 _LT_EOF
12612 # Now generate the symbol file.
12613 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12614
12615 cat <<_LT_EOF >> conftest.$ac_ext
12616
12617 /* The mapping between symbol names and symbols. */
12618 LT_DLSYM_CONST struct {
12619 const char *name;
12620 void *address;
12621 }
12622 lt__PROGRAM__LTX_preloaded_symbols[] =
12623 {
12624 { "@PROGRAM@", (void *) 0 },
12625 _LT_EOF
12626 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12627 cat <<\_LT_EOF >> conftest.$ac_ext
12628 {0, (void *) 0}
12629 };
12630
12631 /* This works around a problem in FreeBSD linker */
12632 #ifdef FREEBSD_WORKAROUND
12633 static const void *lt_preloaded_setup() {
12634 return lt__PROGRAM__LTX_preloaded_symbols;
12635 }
12636 #endif
12637
12638 #ifdef __cplusplus
12639 }
12640 #endif
12641 _LT_EOF
12642 # Now try linking the two files.
12643 mv conftest.$ac_objext conftstm.$ac_objext
12644 lt_globsym_save_LIBS=$LIBS
12645 lt_globsym_save_CFLAGS=$CFLAGS
12646 LIBS="conftstm.$ac_objext"
12647 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12648 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12649 (eval $ac_link) 2>&5
12650 ac_status=$?
12651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12652 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12653 pipe_works=yes
12654 fi
12655 LIBS=$lt_globsym_save_LIBS
12656 CFLAGS=$lt_globsym_save_CFLAGS
12657 else
12658 echo "cannot find nm_test_func in $nlist" >&5
12659 fi
12660 else
12661 echo "cannot find nm_test_var in $nlist" >&5
12662 fi
12663 else
12664 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12665 fi
12666 else
12667 echo "$progname: failed program was:" >&5
12668 cat conftest.$ac_ext >&5
12669 fi
12670 rm -rf conftest* conftst*
12671
12672 # Do not use the global_symbol_pipe unless it works.
12673 if test "$pipe_works" = yes; then
12674 break
12675 else
12676 lt_cv_sys_global_symbol_pipe=
12677 fi
12678 done
12679
12680 fi
12681
12682 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12683 lt_cv_sys_global_symbol_to_cdecl=
12684 fi
12685 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12687 $as_echo "failed" >&6; }
12688 else
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12690 $as_echo "ok" >&6; }
12691 fi
12692
12693 # Response file support.
12694 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12695 nm_file_list_spec='@'
12696 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12697 nm_file_list_spec='@'
12698 fi
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12727 $as_echo_n "checking for sysroot... " >&6; }
12728
12729 # Check whether --with-sysroot was given.
12730 if test "${with_sysroot+set}" = set; then :
12731 withval=$with_sysroot;
12732 else
12733 with_sysroot=no
12734 fi
12735
12736
12737 lt_sysroot=
12738 case ${with_sysroot} in #(
12739 yes)
12740 if test "$GCC" = yes; then
12741 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12742 fi
12743 ;; #(
12744 /*)
12745 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12746 ;; #(
12747 no|'')
12748 ;; #(
12749 *)
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12751 $as_echo "${with_sysroot}" >&6; }
12752 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12753 ;;
12754 esac
12755
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12757 $as_echo "${lt_sysroot:-no}" >&6; }
12758
12759
12760
12761
12762
12763 # Check whether --enable-libtool-lock was given.
12764 if test "${enable_libtool_lock+set}" = set; then :
12765 enableval=$enable_libtool_lock;
12766 fi
12767
12768 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12769
12770 # Some flags need to be propagated to the compiler or linker for good
12771 # libtool support.
12772 case $host in
12773 ia64-*-hpux*)
12774 # Find out which ABI we are using.
12775 echo 'int i;' > conftest.$ac_ext
12776 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12777 (eval $ac_compile) 2>&5
12778 ac_status=$?
12779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12780 test $ac_status = 0; }; then
12781 case `/usr/bin/file conftest.$ac_objext` in
12782 *ELF-32*)
12783 HPUX_IA64_MODE="32"
12784 ;;
12785 *ELF-64*)
12786 HPUX_IA64_MODE="64"
12787 ;;
12788 esac
12789 fi
12790 rm -rf conftest*
12791 ;;
12792 *-*-irix6*)
12793 # Find out which ABI we are using.
12794 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12795 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12796 (eval $ac_compile) 2>&5
12797 ac_status=$?
12798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12799 test $ac_status = 0; }; then
12800 if test "$lt_cv_prog_gnu_ld" = yes; then
12801 case `/usr/bin/file conftest.$ac_objext` in
12802 *32-bit*)
12803 LD="${LD-ld} -melf32bsmip"
12804 ;;
12805 *N32*)
12806 LD="${LD-ld} -melf32bmipn32"
12807 ;;
12808 *64-bit*)
12809 LD="${LD-ld} -melf64bmip"
12810 ;;
12811 esac
12812 else
12813 case `/usr/bin/file conftest.$ac_objext` in
12814 *32-bit*)
12815 LD="${LD-ld} -32"
12816 ;;
12817 *N32*)
12818 LD="${LD-ld} -n32"
12819 ;;
12820 *64-bit*)
12821 LD="${LD-ld} -64"
12822 ;;
12823 esac
12824 fi
12825 fi
12826 rm -rf conftest*
12827 ;;
12828
12829 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12830 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12831 # Find out which ABI we are using.
12832 echo 'int i;' > conftest.$ac_ext
12833 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12834 (eval $ac_compile) 2>&5
12835 ac_status=$?
12836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12837 test $ac_status = 0; }; then
12838 case `/usr/bin/file conftest.o` in
12839 *32-bit*)
12840 case $host in
12841 x86_64-*kfreebsd*-gnu)
12842 LD="${LD-ld} -m elf_i386_fbsd"
12843 ;;
12844 x86_64-*linux*)
12845 LD="${LD-ld} -m elf_i386"
12846 ;;
12847 ppc64-*linux*|powerpc64-*linux*)
12848 LD="${LD-ld} -m elf32ppclinux"
12849 ;;
12850 s390x-*linux*)
12851 LD="${LD-ld} -m elf_s390"
12852 ;;
12853 sparc64-*linux*)
12854 LD="${LD-ld} -m elf32_sparc"
12855 ;;
12856 esac
12857 ;;
12858 *64-bit*)
12859 case $host in
12860 x86_64-*kfreebsd*-gnu)
12861 LD="${LD-ld} -m elf_x86_64_fbsd"
12862 ;;
12863 x86_64-*linux*)
12864 LD="${LD-ld} -m elf_x86_64"
12865 ;;
12866 ppc*-*linux*|powerpc*-*linux*)
12867 LD="${LD-ld} -m elf64ppc"
12868 ;;
12869 s390*-*linux*|s390*-*tpf*)
12870 LD="${LD-ld} -m elf64_s390"
12871 ;;
12872 sparc*-*linux*)
12873 LD="${LD-ld} -m elf64_sparc"
12874 ;;
12875 esac
12876 ;;
12877 esac
12878 fi
12879 rm -rf conftest*
12880 ;;
12881
12882 *-*-sco3.2v5*)
12883 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12884 SAVE_CFLAGS="$CFLAGS"
12885 CFLAGS="$CFLAGS -belf"
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12887 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12888 if ${lt_cv_cc_needs_belf+:} false; then :
12889 $as_echo_n "(cached) " >&6
12890 else
12891 ac_ext=c
12892 ac_cpp='$CPP $CPPFLAGS'
12893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12896
12897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12898 /* end confdefs.h. */
12899
12900 int
12901 main ()
12902 {
12903
12904 ;
12905 return 0;
12906 }
12907 _ACEOF
12908 if ac_fn_c_try_link "$LINENO"; then :
12909 lt_cv_cc_needs_belf=yes
12910 else
12911 lt_cv_cc_needs_belf=no
12912 fi
12913 rm -f core conftest.err conftest.$ac_objext \
12914 conftest$ac_exeext conftest.$ac_ext
12915 ac_ext=c
12916 ac_cpp='$CPP $CPPFLAGS'
12917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12920
12921 fi
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12923 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12924 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12925 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12926 CFLAGS="$SAVE_CFLAGS"
12927 fi
12928 ;;
12929 sparc*-*solaris*)
12930 # Find out which ABI we are using.
12931 echo 'int i;' > conftest.$ac_ext
12932 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12933 (eval $ac_compile) 2>&5
12934 ac_status=$?
12935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12936 test $ac_status = 0; }; then
12937 case `/usr/bin/file conftest.o` in
12938 *64-bit*)
12939 case $lt_cv_prog_gnu_ld in
12940 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12941 *)
12942 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12943 LD="${LD-ld} -64"
12944 fi
12945 ;;
12946 esac
12947 ;;
12948 esac
12949 fi
12950 rm -rf conftest*
12951 ;;
12952 esac
12953
12954 need_locks="$enable_libtool_lock"
12955
12956 if test -n "$ac_tool_prefix"; then
12957 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12958 set dummy ${ac_tool_prefix}mt; ac_word=$2
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12960 $as_echo_n "checking for $ac_word... " >&6; }
12961 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12962 $as_echo_n "(cached) " >&6
12963 else
12964 if test -n "$MANIFEST_TOOL"; then
12965 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12966 else
12967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12968 for as_dir in $PATH
12969 do
12970 IFS=$as_save_IFS
12971 test -z "$as_dir" && as_dir=.
12972 for ac_exec_ext in '' $ac_executable_extensions; do
12973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12974 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12976 break 2
12977 fi
12978 done
12979 done
12980 IFS=$as_save_IFS
12981
12982 fi
12983 fi
12984 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12985 if test -n "$MANIFEST_TOOL"; then
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12987 $as_echo "$MANIFEST_TOOL" >&6; }
12988 else
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12990 $as_echo "no" >&6; }
12991 fi
12992
12993
12994 fi
12995 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12996 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12997 # Extract the first word of "mt", so it can be a program name with args.
12998 set dummy mt; ac_word=$2
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13000 $as_echo_n "checking for $ac_word... " >&6; }
13001 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13002 $as_echo_n "(cached) " >&6
13003 else
13004 if test -n "$ac_ct_MANIFEST_TOOL"; then
13005 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13006 else
13007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13008 for as_dir in $PATH
13009 do
13010 IFS=$as_save_IFS
13011 test -z "$as_dir" && as_dir=.
13012 for ac_exec_ext in '' $ac_executable_extensions; do
13013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13014 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13016 break 2
13017 fi
13018 done
13019 done
13020 IFS=$as_save_IFS
13021
13022 fi
13023 fi
13024 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13025 if test -n "$ac_ct_MANIFEST_TOOL"; then
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13027 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13028 else
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13030 $as_echo "no" >&6; }
13031 fi
13032
13033 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13034 MANIFEST_TOOL=":"
13035 else
13036 case $cross_compiling:$ac_tool_warned in
13037 yes:)
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13039 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13040 ac_tool_warned=yes ;;
13041 esac
13042 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13043 fi
13044 else
13045 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13046 fi
13047
13048 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13050 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13051 if ${lt_cv_path_mainfest_tool+:} false; then :
13052 $as_echo_n "(cached) " >&6
13053 else
13054 lt_cv_path_mainfest_tool=no
13055 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13056 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13057 cat conftest.err >&5
13058 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13059 lt_cv_path_mainfest_tool=yes
13060 fi
13061 rm -f conftest*
13062 fi
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13064 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
13065 if test "x$lt_cv_path_mainfest_tool" != xyes; then
13066 MANIFEST_TOOL=:
13067 fi
13068
13069
13070
13071
13072
13073
13074 case $host_os in
13075 rhapsody* | darwin*)
13076 if test -n "$ac_tool_prefix"; then
13077 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13078 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13080 $as_echo_n "checking for $ac_word... " >&6; }
13081 if ${ac_cv_prog_DSYMUTIL+:} false; then :
13082 $as_echo_n "(cached) " >&6
13083 else
13084 if test -n "$DSYMUTIL"; then
13085 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13086 else
13087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13088 for as_dir in $PATH
13089 do
13090 IFS=$as_save_IFS
13091 test -z "$as_dir" && as_dir=.
13092 for ac_exec_ext in '' $ac_executable_extensions; do
13093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13094 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13096 break 2
13097 fi
13098 done
13099 done
13100 IFS=$as_save_IFS
13101
13102 fi
13103 fi
13104 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13105 if test -n "$DSYMUTIL"; then
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13107 $as_echo "$DSYMUTIL" >&6; }
13108 else
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13110 $as_echo "no" >&6; }
13111 fi
13112
13113
13114 fi
13115 if test -z "$ac_cv_prog_DSYMUTIL"; then
13116 ac_ct_DSYMUTIL=$DSYMUTIL
13117 # Extract the first word of "dsymutil", so it can be a program name with args.
13118 set dummy dsymutil; ac_word=$2
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13120 $as_echo_n "checking for $ac_word... " >&6; }
13121 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13122 $as_echo_n "(cached) " >&6
13123 else
13124 if test -n "$ac_ct_DSYMUTIL"; then
13125 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13126 else
13127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13128 for as_dir in $PATH
13129 do
13130 IFS=$as_save_IFS
13131 test -z "$as_dir" && as_dir=.
13132 for ac_exec_ext in '' $ac_executable_extensions; do
13133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13134 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13136 break 2
13137 fi
13138 done
13139 done
13140 IFS=$as_save_IFS
13141
13142 fi
13143 fi
13144 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13145 if test -n "$ac_ct_DSYMUTIL"; then
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13147 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13148 else
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13150 $as_echo "no" >&6; }
13151 fi
13152
13153 if test "x$ac_ct_DSYMUTIL" = x; then
13154 DSYMUTIL=":"
13155 else
13156 case $cross_compiling:$ac_tool_warned in
13157 yes:)
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13160 ac_tool_warned=yes ;;
13161 esac
13162 DSYMUTIL=$ac_ct_DSYMUTIL
13163 fi
13164 else
13165 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13166 fi
13167
13168 if test -n "$ac_tool_prefix"; then
13169 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13170 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13172 $as_echo_n "checking for $ac_word... " >&6; }
13173 if ${ac_cv_prog_NMEDIT+:} false; then :
13174 $as_echo_n "(cached) " >&6
13175 else
13176 if test -n "$NMEDIT"; then
13177 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13178 else
13179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13180 for as_dir in $PATH
13181 do
13182 IFS=$as_save_IFS
13183 test -z "$as_dir" && as_dir=.
13184 for ac_exec_ext in '' $ac_executable_extensions; do
13185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13186 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13188 break 2
13189 fi
13190 done
13191 done
13192 IFS=$as_save_IFS
13193
13194 fi
13195 fi
13196 NMEDIT=$ac_cv_prog_NMEDIT
13197 if test -n "$NMEDIT"; then
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13199 $as_echo "$NMEDIT" >&6; }
13200 else
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13202 $as_echo "no" >&6; }
13203 fi
13204
13205
13206 fi
13207 if test -z "$ac_cv_prog_NMEDIT"; then
13208 ac_ct_NMEDIT=$NMEDIT
13209 # Extract the first word of "nmedit", so it can be a program name with args.
13210 set dummy nmedit; ac_word=$2
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13212 $as_echo_n "checking for $ac_word... " >&6; }
13213 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13214 $as_echo_n "(cached) " >&6
13215 else
13216 if test -n "$ac_ct_NMEDIT"; then
13217 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13218 else
13219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13220 for as_dir in $PATH
13221 do
13222 IFS=$as_save_IFS
13223 test -z "$as_dir" && as_dir=.
13224 for ac_exec_ext in '' $ac_executable_extensions; do
13225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13226 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13228 break 2
13229 fi
13230 done
13231 done
13232 IFS=$as_save_IFS
13233
13234 fi
13235 fi
13236 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13237 if test -n "$ac_ct_NMEDIT"; then
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13239 $as_echo "$ac_ct_NMEDIT" >&6; }
13240 else
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13242 $as_echo "no" >&6; }
13243 fi
13244
13245 if test "x$ac_ct_NMEDIT" = x; then
13246 NMEDIT=":"
13247 else
13248 case $cross_compiling:$ac_tool_warned in
13249 yes:)
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13252 ac_tool_warned=yes ;;
13253 esac
13254 NMEDIT=$ac_ct_NMEDIT
13255 fi
13256 else
13257 NMEDIT="$ac_cv_prog_NMEDIT"
13258 fi
13259
13260 if test -n "$ac_tool_prefix"; then
13261 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13262 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13264 $as_echo_n "checking for $ac_word... " >&6; }
13265 if ${ac_cv_prog_LIPO+:} false; then :
13266 $as_echo_n "(cached) " >&6
13267 else
13268 if test -n "$LIPO"; then
13269 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13270 else
13271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13272 for as_dir in $PATH
13273 do
13274 IFS=$as_save_IFS
13275 test -z "$as_dir" && as_dir=.
13276 for ac_exec_ext in '' $ac_executable_extensions; do
13277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13278 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13280 break 2
13281 fi
13282 done
13283 done
13284 IFS=$as_save_IFS
13285
13286 fi
13287 fi
13288 LIPO=$ac_cv_prog_LIPO
13289 if test -n "$LIPO"; then
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13291 $as_echo "$LIPO" >&6; }
13292 else
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13294 $as_echo "no" >&6; }
13295 fi
13296
13297
13298 fi
13299 if test -z "$ac_cv_prog_LIPO"; then
13300 ac_ct_LIPO=$LIPO
13301 # Extract the first word of "lipo", so it can be a program name with args.
13302 set dummy lipo; ac_word=$2
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13304 $as_echo_n "checking for $ac_word... " >&6; }
13305 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13306 $as_echo_n "(cached) " >&6
13307 else
13308 if test -n "$ac_ct_LIPO"; then
13309 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13310 else
13311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13312 for as_dir in $PATH
13313 do
13314 IFS=$as_save_IFS
13315 test -z "$as_dir" && as_dir=.
13316 for ac_exec_ext in '' $ac_executable_extensions; do
13317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13318 ac_cv_prog_ac_ct_LIPO="lipo"
13319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13320 break 2
13321 fi
13322 done
13323 done
13324 IFS=$as_save_IFS
13325
13326 fi
13327 fi
13328 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13329 if test -n "$ac_ct_LIPO"; then
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13331 $as_echo "$ac_ct_LIPO" >&6; }
13332 else
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13334 $as_echo "no" >&6; }
13335 fi
13336
13337 if test "x$ac_ct_LIPO" = x; then
13338 LIPO=":"
13339 else
13340 case $cross_compiling:$ac_tool_warned in
13341 yes:)
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13344 ac_tool_warned=yes ;;
13345 esac
13346 LIPO=$ac_ct_LIPO
13347 fi
13348 else
13349 LIPO="$ac_cv_prog_LIPO"
13350 fi
13351
13352 if test -n "$ac_tool_prefix"; then
13353 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13354 set dummy ${ac_tool_prefix}otool; ac_word=$2
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13356 $as_echo_n "checking for $ac_word... " >&6; }
13357 if ${ac_cv_prog_OTOOL+:} false; then :
13358 $as_echo_n "(cached) " >&6
13359 else
13360 if test -n "$OTOOL"; then
13361 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13362 else
13363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13364 for as_dir in $PATH
13365 do
13366 IFS=$as_save_IFS
13367 test -z "$as_dir" && as_dir=.
13368 for ac_exec_ext in '' $ac_executable_extensions; do
13369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13370 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13372 break 2
13373 fi
13374 done
13375 done
13376 IFS=$as_save_IFS
13377
13378 fi
13379 fi
13380 OTOOL=$ac_cv_prog_OTOOL
13381 if test -n "$OTOOL"; then
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13383 $as_echo "$OTOOL" >&6; }
13384 else
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13386 $as_echo "no" >&6; }
13387 fi
13388
13389
13390 fi
13391 if test -z "$ac_cv_prog_OTOOL"; then
13392 ac_ct_OTOOL=$OTOOL
13393 # Extract the first word of "otool", so it can be a program name with args.
13394 set dummy otool; ac_word=$2
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13396 $as_echo_n "checking for $ac_word... " >&6; }
13397 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13398 $as_echo_n "(cached) " >&6
13399 else
13400 if test -n "$ac_ct_OTOOL"; then
13401 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13402 else
13403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13404 for as_dir in $PATH
13405 do
13406 IFS=$as_save_IFS
13407 test -z "$as_dir" && as_dir=.
13408 for ac_exec_ext in '' $ac_executable_extensions; do
13409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13410 ac_cv_prog_ac_ct_OTOOL="otool"
13411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13412 break 2
13413 fi
13414 done
13415 done
13416 IFS=$as_save_IFS
13417
13418 fi
13419 fi
13420 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13421 if test -n "$ac_ct_OTOOL"; then
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13423 $as_echo "$ac_ct_OTOOL" >&6; }
13424 else
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13426 $as_echo "no" >&6; }
13427 fi
13428
13429 if test "x$ac_ct_OTOOL" = x; then
13430 OTOOL=":"
13431 else
13432 case $cross_compiling:$ac_tool_warned in
13433 yes:)
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13436 ac_tool_warned=yes ;;
13437 esac
13438 OTOOL=$ac_ct_OTOOL
13439 fi
13440 else
13441 OTOOL="$ac_cv_prog_OTOOL"
13442 fi
13443
13444 if test -n "$ac_tool_prefix"; then
13445 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13446 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13448 $as_echo_n "checking for $ac_word... " >&6; }
13449 if ${ac_cv_prog_OTOOL64+:} false; then :
13450 $as_echo_n "(cached) " >&6
13451 else
13452 if test -n "$OTOOL64"; then
13453 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13454 else
13455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13456 for as_dir in $PATH
13457 do
13458 IFS=$as_save_IFS
13459 test -z "$as_dir" && as_dir=.
13460 for ac_exec_ext in '' $ac_executable_extensions; do
13461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13462 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13464 break 2
13465 fi
13466 done
13467 done
13468 IFS=$as_save_IFS
13469
13470 fi
13471 fi
13472 OTOOL64=$ac_cv_prog_OTOOL64
13473 if test -n "$OTOOL64"; then
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13475 $as_echo "$OTOOL64" >&6; }
13476 else
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13478 $as_echo "no" >&6; }
13479 fi
13480
13481
13482 fi
13483 if test -z "$ac_cv_prog_OTOOL64"; then
13484 ac_ct_OTOOL64=$OTOOL64
13485 # Extract the first word of "otool64", so it can be a program name with args.
13486 set dummy otool64; ac_word=$2
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13488 $as_echo_n "checking for $ac_word... " >&6; }
13489 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13490 $as_echo_n "(cached) " >&6
13491 else
13492 if test -n "$ac_ct_OTOOL64"; then
13493 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13494 else
13495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13496 for as_dir in $PATH
13497 do
13498 IFS=$as_save_IFS
13499 test -z "$as_dir" && as_dir=.
13500 for ac_exec_ext in '' $ac_executable_extensions; do
13501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13502 ac_cv_prog_ac_ct_OTOOL64="otool64"
13503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13504 break 2
13505 fi
13506 done
13507 done
13508 IFS=$as_save_IFS
13509
13510 fi
13511 fi
13512 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13513 if test -n "$ac_ct_OTOOL64"; then
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13515 $as_echo "$ac_ct_OTOOL64" >&6; }
13516 else
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13518 $as_echo "no" >&6; }
13519 fi
13520
13521 if test "x$ac_ct_OTOOL64" = x; then
13522 OTOOL64=":"
13523 else
13524 case $cross_compiling:$ac_tool_warned in
13525 yes:)
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13528 ac_tool_warned=yes ;;
13529 esac
13530 OTOOL64=$ac_ct_OTOOL64
13531 fi
13532 else
13533 OTOOL64="$ac_cv_prog_OTOOL64"
13534 fi
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13563 $as_echo_n "checking for -single_module linker flag... " >&6; }
13564 if ${lt_cv_apple_cc_single_mod+:} false; then :
13565 $as_echo_n "(cached) " >&6
13566 else
13567 lt_cv_apple_cc_single_mod=no
13568 if test -z "${LT_MULTI_MODULE}"; then
13569 # By default we will add the -single_module flag. You can override
13570 # by either setting the environment variable LT_MULTI_MODULE
13571 # non-empty at configure time, or by adding -multi_module to the
13572 # link flags.
13573 rm -rf libconftest.dylib*
13574 echo "int foo(void){return 1;}" > conftest.c
13575 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13576 -dynamiclib -Wl,-single_module conftest.c" >&5
13577 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13578 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13579 _lt_result=$?
13580 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13581 lt_cv_apple_cc_single_mod=yes
13582 else
13583 cat conftest.err >&5
13584 fi
13585 rm -rf libconftest.dylib*
13586 rm -f conftest.*
13587 fi
13588 fi
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13590 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13592 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13593 if ${lt_cv_ld_exported_symbols_list+:} false; then :
13594 $as_echo_n "(cached) " >&6
13595 else
13596 lt_cv_ld_exported_symbols_list=no
13597 save_LDFLAGS=$LDFLAGS
13598 echo "_main" > conftest.sym
13599 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13601 /* end confdefs.h. */
13602
13603 int
13604 main ()
13605 {
13606
13607 ;
13608 return 0;
13609 }
13610 _ACEOF
13611 if ac_fn_c_try_link "$LINENO"; then :
13612 lt_cv_ld_exported_symbols_list=yes
13613 else
13614 lt_cv_ld_exported_symbols_list=no
13615 fi
13616 rm -f core conftest.err conftest.$ac_objext \
13617 conftest$ac_exeext conftest.$ac_ext
13618 LDFLAGS="$save_LDFLAGS"
13619
13620 fi
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13622 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13624 $as_echo_n "checking for -force_load linker flag... " >&6; }
13625 if ${lt_cv_ld_force_load+:} false; then :
13626 $as_echo_n "(cached) " >&6
13627 else
13628 lt_cv_ld_force_load=no
13629 cat > conftest.c << _LT_EOF
13630 int forced_loaded() { return 2;}
13631 _LT_EOF
13632 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13633 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13634 echo "$AR cru libconftest.a conftest.o" >&5
13635 $AR cru libconftest.a conftest.o 2>&5
13636 echo "$RANLIB libconftest.a" >&5
13637 $RANLIB libconftest.a 2>&5
13638 cat > conftest.c << _LT_EOF
13639 int main() { return 0;}
13640 _LT_EOF
13641 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13642 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13643 _lt_result=$?
13644 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
13645 lt_cv_ld_force_load=yes
13646 else
13647 cat conftest.err >&5
13648 fi
13649 rm -f conftest.err libconftest.a conftest conftest.c
13650 rm -rf conftest.dSYM
13651
13652 fi
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13654 $as_echo "$lt_cv_ld_force_load" >&6; }
13655 case $host_os in
13656 rhapsody* | darwin1.[012])
13657 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13658 darwin1.*)
13659 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13660 darwin*) # darwin 5.x on
13661 # if running on 10.5 or later, the deployment target defaults
13662 # to the OS version, if on x86, and 10.4, the deployment
13663 # target defaults to 10.4. Don't you love it?
13664 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13665 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13666 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13667 10.[012]*)
13668 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13669 10.*)
13670 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13671 esac
13672 ;;
13673 esac
13674 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13675 _lt_dar_single_mod='$single_module'
13676 fi
13677 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13678 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13679 else
13680 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13681 fi
13682 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13683 _lt_dsymutil='~$DSYMUTIL $lib || :'
13684 else
13685 _lt_dsymutil=
13686 fi
13687 ;;
13688 esac
13689
13690 for ac_header in dlfcn.h
13691 do :
13692 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13693 "
13694 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13695 cat >>confdefs.h <<_ACEOF
13696 #define HAVE_DLFCN_H 1
13697 _ACEOF
13698
13699 fi
13700
13701 done
13702
13703
13704
13705
13706
13707 # Set options
13708
13709
13710
13711 enable_dlopen=no
13712
13713
13714 enable_win32_dll=no
13715
13716
13717 # Check whether --enable-shared was given.
13718 if test "${enable_shared+set}" = set; then :
13719 enableval=$enable_shared; p=${PACKAGE-default}
13720 case $enableval in
13721 yes) enable_shared=yes ;;
13722 no) enable_shared=no ;;
13723 *)
13724 enable_shared=no
13725 # Look at the argument we got. We use all the common list separators.
13726 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13727 for pkg in $enableval; do
13728 IFS="$lt_save_ifs"
13729 if test "X$pkg" = "X$p"; then
13730 enable_shared=yes
13731 fi
13732 done
13733 IFS="$lt_save_ifs"
13734 ;;
13735 esac
13736 else
13737 enable_shared=yes
13738 fi
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750 # Check whether --with-pic was given.
13751 if test "${with_pic+set}" = set; then :
13752 withval=$with_pic; pic_mode="$withval"
13753 else
13754 pic_mode=default
13755 fi
13756
13757
13758 test -z "$pic_mode" && pic_mode=default
13759
13760
13761
13762
13763
13764
13765
13766 # Check whether --enable-fast-install was given.
13767 if test "${enable_fast_install+set}" = set; then :
13768 enableval=$enable_fast_install; p=${PACKAGE-default}
13769 case $enableval in
13770 yes) enable_fast_install=yes ;;
13771 no) enable_fast_install=no ;;
13772 *)
13773 enable_fast_install=no
13774 # Look at the argument we got. We use all the common list separators.
13775 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13776 for pkg in $enableval; do
13777 IFS="$lt_save_ifs"
13778 if test "X$pkg" = "X$p"; then
13779 enable_fast_install=yes
13780 fi
13781 done
13782 IFS="$lt_save_ifs"
13783 ;;
13784 esac
13785 else
13786 enable_fast_install=yes
13787 fi
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799 # This can be used to rebuild libtool when needed
13800 LIBTOOL_DEPS="$ltmain"
13801
13802 # Always use our own libtool.
13803 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830 test -z "$LN_S" && LN_S="ln -s"
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845 if test -n "${ZSH_VERSION+set}" ; then
13846 setopt NO_GLOB_SUBST
13847 fi
13848
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13850 $as_echo_n "checking for objdir... " >&6; }
13851 if ${lt_cv_objdir+:} false; then :
13852 $as_echo_n "(cached) " >&6
13853 else
13854 rm -f .libs 2>/dev/null
13855 mkdir .libs 2>/dev/null
13856 if test -d .libs; then
13857 lt_cv_objdir=.libs
13858 else
13859 # MS-DOS does not allow filenames that begin with a dot.
13860 lt_cv_objdir=_libs
13861 fi
13862 rmdir .libs 2>/dev/null
13863 fi
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13865 $as_echo "$lt_cv_objdir" >&6; }
13866 objdir=$lt_cv_objdir
13867
13868
13869
13870
13871
13872 cat >>confdefs.h <<_ACEOF
13873 #define LT_OBJDIR "$lt_cv_objdir/"
13874 _ACEOF
13875
13876
13877
13878
13879 case $host_os in
13880 aix3*)
13881 # AIX sometimes has problems with the GCC collect2 program. For some
13882 # reason, if we set the COLLECT_NAMES environment variable, the problems
13883 # vanish in a puff of smoke.
13884 if test "X${COLLECT_NAMES+set}" != Xset; then
13885 COLLECT_NAMES=
13886 export COLLECT_NAMES
13887 fi
13888 ;;
13889 esac
13890
13891 # Global variables:
13892 ofile=libtool
13893 can_build_shared=yes
13894
13895 # All known linkers require a `.a' archive for static linking (except MSVC,
13896 # which needs '.lib').
13897 libext=a
13898
13899 with_gnu_ld="$lt_cv_prog_gnu_ld"
13900
13901 old_CC="$CC"
13902 old_CFLAGS="$CFLAGS"
13903
13904 # Set sane defaults for various variables
13905 test -z "$CC" && CC=cc
13906 test -z "$LTCC" && LTCC=$CC
13907 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13908 test -z "$LD" && LD=ld
13909 test -z "$ac_objext" && ac_objext=o
13910
13911 for cc_temp in $compiler""; do
13912 case $cc_temp in
13913 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13914 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13915 \-*) ;;
13916 *) break;;
13917 esac
13918 done
13919 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13920
13921
13922 # Only perform the check for file, if the check method requires it
13923 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13924 case $deplibs_check_method in
13925 file_magic*)
13926 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13928 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
13929 if ${lt_cv_path_MAGIC_CMD+:} false; then :
13930 $as_echo_n "(cached) " >&6
13931 else
13932 case $MAGIC_CMD in
13933 [\\/*] | ?:[\\/]*)
13934 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13935 ;;
13936 *)
13937 lt_save_MAGIC_CMD="$MAGIC_CMD"
13938 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13939 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13940 for ac_dir in $ac_dummy; do
13941 IFS="$lt_save_ifs"
13942 test -z "$ac_dir" && ac_dir=.
13943 if test -f $ac_dir/${ac_tool_prefix}file; then
13944 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13945 if test -n "$file_magic_test_file"; then
13946 case $deplibs_check_method in
13947 "file_magic "*)
13948 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13949 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13950 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13951 $EGREP "$file_magic_regex" > /dev/null; then
13952 :
13953 else
13954 cat <<_LT_EOF 1>&2
13955
13956 *** Warning: the command libtool uses to detect shared libraries,
13957 *** $file_magic_cmd, produces output that libtool cannot recognize.
13958 *** The result is that libtool may fail to recognize shared libraries
13959 *** as such. This will affect the creation of libtool libraries that
13960 *** depend on shared libraries, but programs linked with such libtool
13961 *** libraries will work regardless of this problem. Nevertheless, you
13962 *** may want to report the problem to your system manager and/or to
13963 *** bug-libtool@gnu.org
13964
13965 _LT_EOF
13966 fi ;;
13967 esac
13968 fi
13969 break
13970 fi
13971 done
13972 IFS="$lt_save_ifs"
13973 MAGIC_CMD="$lt_save_MAGIC_CMD"
13974 ;;
13975 esac
13976 fi
13977
13978 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13979 if test -n "$MAGIC_CMD"; then
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13981 $as_echo "$MAGIC_CMD" >&6; }
13982 else
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13984 $as_echo "no" >&6; }
13985 fi
13986
13987
13988
13989
13990
13991 if test -z "$lt_cv_path_MAGIC_CMD"; then
13992 if test -n "$ac_tool_prefix"; then
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13994 $as_echo_n "checking for file... " >&6; }
13995 if ${lt_cv_path_MAGIC_CMD+:} false; then :
13996 $as_echo_n "(cached) " >&6
13997 else
13998 case $MAGIC_CMD in
13999 [\\/*] | ?:[\\/]*)
14000 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14001 ;;
14002 *)
14003 lt_save_MAGIC_CMD="$MAGIC_CMD"
14004 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14005 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14006 for ac_dir in $ac_dummy; do
14007 IFS="$lt_save_ifs"
14008 test -z "$ac_dir" && ac_dir=.
14009 if test -f $ac_dir/file; then
14010 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14011 if test -n "$file_magic_test_file"; then
14012 case $deplibs_check_method in
14013 "file_magic "*)
14014 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14015 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14016 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14017 $EGREP "$file_magic_regex" > /dev/null; then
14018 :
14019 else
14020 cat <<_LT_EOF 1>&2
14021
14022 *** Warning: the command libtool uses to detect shared libraries,
14023 *** $file_magic_cmd, produces output that libtool cannot recognize.
14024 *** The result is that libtool may fail to recognize shared libraries
14025 *** as such. This will affect the creation of libtool libraries that
14026 *** depend on shared libraries, but programs linked with such libtool
14027 *** libraries will work regardless of this problem. Nevertheless, you
14028 *** may want to report the problem to your system manager and/or to
14029 *** bug-libtool@gnu.org
14030
14031 _LT_EOF
14032 fi ;;
14033 esac
14034 fi
14035 break
14036 fi
14037 done
14038 IFS="$lt_save_ifs"
14039 MAGIC_CMD="$lt_save_MAGIC_CMD"
14040 ;;
14041 esac
14042 fi
14043
14044 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14045 if test -n "$MAGIC_CMD"; then
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14047 $as_echo "$MAGIC_CMD" >&6; }
14048 else
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14050 $as_echo "no" >&6; }
14051 fi
14052
14053
14054 else
14055 MAGIC_CMD=:
14056 fi
14057 fi
14058
14059 fi
14060 ;;
14061 esac
14062
14063 # Use C for the default configuration in the libtool script
14064
14065 lt_save_CC="$CC"
14066 ac_ext=c
14067 ac_cpp='$CPP $CPPFLAGS'
14068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14071
14072
14073 # Source file extension for C test sources.
14074 ac_ext=c
14075
14076 # Object file extension for compiled C test sources.
14077 objext=o
14078 objext=$objext
14079
14080 # Code to be used in simple compile tests
14081 lt_simple_compile_test_code="int some_variable = 0;"
14082
14083 # Code to be used in simple link tests
14084 lt_simple_link_test_code='int main(){return(0);}'
14085
14086
14087
14088
14089
14090
14091
14092 # If no C compiler was specified, use CC.
14093 LTCC=${LTCC-"$CC"}
14094
14095 # If no C compiler flags were specified, use CFLAGS.
14096 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14097
14098 # Allow CC to be a program name with arguments.
14099 compiler=$CC
14100
14101 # Save the default compiler, since it gets overwritten when the other
14102 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14103 compiler_DEFAULT=$CC
14104
14105 # save warnings/boilerplate of simple test code
14106 ac_outfile=conftest.$ac_objext
14107 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14108 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14109 _lt_compiler_boilerplate=`cat conftest.err`
14110 $RM conftest*
14111
14112 ac_outfile=conftest.$ac_objext
14113 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14114 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14115 _lt_linker_boilerplate=`cat conftest.err`
14116 $RM -r conftest*
14117
14118
14119 if test -n "$compiler"; then
14120
14121 lt_prog_compiler_no_builtin_flag=
14122
14123 if test "$GCC" = yes; then
14124 case $cc_basename in
14125 nvcc*)
14126 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14127 *)
14128 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14129 esac
14130
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14132 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14133 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14134 $as_echo_n "(cached) " >&6
14135 else
14136 lt_cv_prog_compiler_rtti_exceptions=no
14137 ac_outfile=conftest.$ac_objext
14138 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14139 lt_compiler_flag="-fno-rtti -fno-exceptions"
14140 # Insert the option either (1) after the last *FLAGS variable, or
14141 # (2) before a word containing "conftest.", or (3) at the end.
14142 # Note that $ac_compile itself does not contain backslashes and begins
14143 # with a dollar sign (not a hyphen), so the echo should work correctly.
14144 # The option is referenced via a variable to avoid confusing sed.
14145 lt_compile=`echo "$ac_compile" | $SED \
14146 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14147 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14148 -e 's:$: $lt_compiler_flag:'`
14149 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14150 (eval "$lt_compile" 2>conftest.err)
14151 ac_status=$?
14152 cat conftest.err >&5
14153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154 if (exit $ac_status) && test -s "$ac_outfile"; then
14155 # The compiler can only warn and ignore the option if not recognized
14156 # So say no if there are warnings other than the usual output.
14157 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14158 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14159 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14160 lt_cv_prog_compiler_rtti_exceptions=yes
14161 fi
14162 fi
14163 $RM conftest*
14164
14165 fi
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14167 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14168
14169 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14170 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14171 else
14172 :
14173 fi
14174
14175 fi
14176
14177
14178
14179
14180
14181
14182 lt_prog_compiler_wl=
14183 lt_prog_compiler_pic=
14184 lt_prog_compiler_static=
14185
14186
14187 if test "$GCC" = yes; then
14188 lt_prog_compiler_wl='-Wl,'
14189 lt_prog_compiler_static='-static'
14190
14191 case $host_os in
14192 aix*)
14193 # All AIX code is PIC.
14194 if test "$host_cpu" = ia64; then
14195 # AIX 5 now supports IA64 processor
14196 lt_prog_compiler_static='-Bstatic'
14197 fi
14198 ;;
14199
14200 amigaos*)
14201 case $host_cpu in
14202 powerpc)
14203 # see comment about AmigaOS4 .so support
14204 lt_prog_compiler_pic='-fPIC'
14205 ;;
14206 m68k)
14207 # FIXME: we need at least 68020 code to build shared libraries, but
14208 # adding the `-m68020' flag to GCC prevents building anything better,
14209 # like `-m68040'.
14210 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14211 ;;
14212 esac
14213 ;;
14214
14215 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14216 # PIC is the default for these OSes.
14217 ;;
14218
14219 mingw* | cygwin* | pw32* | os2* | cegcc*)
14220 # This hack is so that the source file can tell whether it is being
14221 # built for inclusion in a dll (and should export symbols for example).
14222 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14223 # (--disable-auto-import) libraries
14224 lt_prog_compiler_pic='-DDLL_EXPORT'
14225 ;;
14226
14227 darwin* | rhapsody*)
14228 # PIC is the default on this platform
14229 # Common symbols not allowed in MH_DYLIB files
14230 lt_prog_compiler_pic='-fno-common'
14231 ;;
14232
14233 haiku*)
14234 # PIC is the default for Haiku.
14235 # The "-static" flag exists, but is broken.
14236 lt_prog_compiler_static=
14237 ;;
14238
14239 hpux*)
14240 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14241 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14242 # sets the default TLS model and affects inlining.
14243 case $host_cpu in
14244 hppa*64*)
14245 # +Z the default
14246 ;;
14247 *)
14248 lt_prog_compiler_pic='-fPIC'
14249 ;;
14250 esac
14251 ;;
14252
14253 interix[3-9]*)
14254 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14255 # Instead, we relocate shared libraries at runtime.
14256 ;;
14257
14258 msdosdjgpp*)
14259 # Just because we use GCC doesn't mean we suddenly get shared libraries
14260 # on systems that don't support them.
14261 lt_prog_compiler_can_build_shared=no
14262 enable_shared=no
14263 ;;
14264
14265 *nto* | *qnx*)
14266 # QNX uses GNU C++, but need to define -shared option too, otherwise
14267 # it will coredump.
14268 lt_prog_compiler_pic='-fPIC -shared'
14269 ;;
14270
14271 sysv4*MP*)
14272 if test -d /usr/nec; then
14273 lt_prog_compiler_pic=-Kconform_pic
14274 fi
14275 ;;
14276
14277 *)
14278 lt_prog_compiler_pic='-fPIC'
14279 ;;
14280 esac
14281
14282 case $cc_basename in
14283 nvcc*) # Cuda Compiler Driver 2.2
14284 lt_prog_compiler_wl='-Xlinker '
14285 lt_prog_compiler_pic='-Xcompiler -fPIC'
14286 ;;
14287 esac
14288 else
14289 # PORTME Check for flag to pass linker flags through the system compiler.
14290 case $host_os in
14291 aix*)
14292 lt_prog_compiler_wl='-Wl,'
14293 if test "$host_cpu" = ia64; then
14294 # AIX 5 now supports IA64 processor
14295 lt_prog_compiler_static='-Bstatic'
14296 else
14297 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14298 fi
14299 ;;
14300
14301 mingw* | cygwin* | pw32* | os2* | cegcc*)
14302 # This hack is so that the source file can tell whether it is being
14303 # built for inclusion in a dll (and should export symbols for example).
14304 lt_prog_compiler_pic='-DDLL_EXPORT'
14305 ;;
14306
14307 hpux9* | hpux10* | hpux11*)
14308 lt_prog_compiler_wl='-Wl,'
14309 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14310 # not for PA HP-UX.
14311 case $host_cpu in
14312 hppa*64*|ia64*)
14313 # +Z the default
14314 ;;
14315 *)
14316 lt_prog_compiler_pic='+Z'
14317 ;;
14318 esac
14319 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14320 lt_prog_compiler_static='${wl}-a ${wl}archive'
14321 ;;
14322
14323 irix5* | irix6* | nonstopux*)
14324 lt_prog_compiler_wl='-Wl,'
14325 # PIC (with -KPIC) is the default.
14326 lt_prog_compiler_static='-non_shared'
14327 ;;
14328
14329 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14330 case $cc_basename in
14331 # old Intel for x86_64 which still supported -KPIC.
14332 ecc*)
14333 lt_prog_compiler_wl='-Wl,'
14334 lt_prog_compiler_pic='-KPIC'
14335 lt_prog_compiler_static='-static'
14336 ;;
14337 # icc used to be incompatible with GCC.
14338 # ICC 10 doesn't accept -KPIC any more.
14339 icc* | ifort*)
14340 lt_prog_compiler_wl='-Wl,'
14341 lt_prog_compiler_pic='-fPIC'
14342 lt_prog_compiler_static='-static'
14343 ;;
14344 # Lahey Fortran 8.1.
14345 lf95*)
14346 lt_prog_compiler_wl='-Wl,'
14347 lt_prog_compiler_pic='--shared'
14348 lt_prog_compiler_static='--static'
14349 ;;
14350 nagfor*)
14351 # NAG Fortran compiler
14352 lt_prog_compiler_wl='-Wl,-Wl,,'
14353 lt_prog_compiler_pic='-PIC'
14354 lt_prog_compiler_static='-Bstatic'
14355 ;;
14356 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14357 # Portland Group compilers (*not* the Pentium gcc compiler,
14358 # which looks to be a dead project)
14359 lt_prog_compiler_wl='-Wl,'
14360 lt_prog_compiler_pic='-fpic'
14361 lt_prog_compiler_static='-Bstatic'
14362 ;;
14363 ccc*)
14364 lt_prog_compiler_wl='-Wl,'
14365 # All Alpha code is PIC.
14366 lt_prog_compiler_static='-non_shared'
14367 ;;
14368 xl* | bgxl* | bgf* | mpixl*)
14369 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14370 lt_prog_compiler_wl='-Wl,'
14371 lt_prog_compiler_pic='-qpic'
14372 lt_prog_compiler_static='-qstaticlink'
14373 ;;
14374 *)
14375 case `$CC -V 2>&1 | sed 5q` in
14376 *Sun\ F* | *Sun*Fortran*)
14377 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14378 lt_prog_compiler_pic='-KPIC'
14379 lt_prog_compiler_static='-Bstatic'
14380 lt_prog_compiler_wl=''
14381 ;;
14382 *Sun\ C*)
14383 # Sun C 5.9
14384 lt_prog_compiler_pic='-KPIC'
14385 lt_prog_compiler_static='-Bstatic'
14386 lt_prog_compiler_wl='-Wl,'
14387 ;;
14388 esac
14389 ;;
14390 esac
14391 ;;
14392
14393 newsos6)
14394 lt_prog_compiler_pic='-KPIC'
14395 lt_prog_compiler_static='-Bstatic'
14396 ;;
14397
14398 *nto* | *qnx*)
14399 # QNX uses GNU C++, but need to define -shared option too, otherwise
14400 # it will coredump.
14401 lt_prog_compiler_pic='-fPIC -shared'
14402 ;;
14403
14404 osf3* | osf4* | osf5*)
14405 lt_prog_compiler_wl='-Wl,'
14406 # All OSF/1 code is PIC.
14407 lt_prog_compiler_static='-non_shared'
14408 ;;
14409
14410 rdos*)
14411 lt_prog_compiler_static='-non_shared'
14412 ;;
14413
14414 solaris*)
14415 lt_prog_compiler_pic='-KPIC'
14416 lt_prog_compiler_static='-Bstatic'
14417 case $cc_basename in
14418 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14419 lt_prog_compiler_wl='-Qoption ld ';;
14420 *)
14421 lt_prog_compiler_wl='-Wl,';;
14422 esac
14423 ;;
14424
14425 sunos4*)
14426 lt_prog_compiler_wl='-Qoption ld '
14427 lt_prog_compiler_pic='-PIC'
14428 lt_prog_compiler_static='-Bstatic'
14429 ;;
14430
14431 sysv4 | sysv4.2uw2* | sysv4.3*)
14432 lt_prog_compiler_wl='-Wl,'
14433 lt_prog_compiler_pic='-KPIC'
14434 lt_prog_compiler_static='-Bstatic'
14435 ;;
14436
14437 sysv4*MP*)
14438 if test -d /usr/nec ;then
14439 lt_prog_compiler_pic='-Kconform_pic'
14440 lt_prog_compiler_static='-Bstatic'
14441 fi
14442 ;;
14443
14444 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14445 lt_prog_compiler_wl='-Wl,'
14446 lt_prog_compiler_pic='-KPIC'
14447 lt_prog_compiler_static='-Bstatic'
14448 ;;
14449
14450 unicos*)
14451 lt_prog_compiler_wl='-Wl,'
14452 lt_prog_compiler_can_build_shared=no
14453 ;;
14454
14455 uts4*)
14456 lt_prog_compiler_pic='-pic'
14457 lt_prog_compiler_static='-Bstatic'
14458 ;;
14459
14460 *)
14461 lt_prog_compiler_can_build_shared=no
14462 ;;
14463 esac
14464 fi
14465
14466 case $host_os in
14467 # For platforms which do not support PIC, -DPIC is meaningless:
14468 *djgpp*)
14469 lt_prog_compiler_pic=
14470 ;;
14471 *)
14472 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14473 ;;
14474 esac
14475
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14477 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14478 if ${lt_cv_prog_compiler_pic+:} false; then :
14479 $as_echo_n "(cached) " >&6
14480 else
14481 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14482 fi
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14484 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
14485 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14486
14487 #
14488 # Check to make sure the PIC flag actually works.
14489 #
14490 if test -n "$lt_prog_compiler_pic"; then
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14492 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14493 if ${lt_cv_prog_compiler_pic_works+:} false; then :
14494 $as_echo_n "(cached) " >&6
14495 else
14496 lt_cv_prog_compiler_pic_works=no
14497 ac_outfile=conftest.$ac_objext
14498 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14499 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14500 # Insert the option either (1) after the last *FLAGS variable, or
14501 # (2) before a word containing "conftest.", or (3) at the end.
14502 # Note that $ac_compile itself does not contain backslashes and begins
14503 # with a dollar sign (not a hyphen), so the echo should work correctly.
14504 # The option is referenced via a variable to avoid confusing sed.
14505 lt_compile=`echo "$ac_compile" | $SED \
14506 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14507 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14508 -e 's:$: $lt_compiler_flag:'`
14509 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14510 (eval "$lt_compile" 2>conftest.err)
14511 ac_status=$?
14512 cat conftest.err >&5
14513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514 if (exit $ac_status) && test -s "$ac_outfile"; then
14515 # The compiler can only warn and ignore the option if not recognized
14516 # So say no if there are warnings other than the usual output.
14517 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14518 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14519 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14520 lt_cv_prog_compiler_pic_works=yes
14521 fi
14522 fi
14523 $RM conftest*
14524
14525 fi
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14527 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14528
14529 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14530 case $lt_prog_compiler_pic in
14531 "" | " "*) ;;
14532 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14533 esac
14534 else
14535 lt_prog_compiler_pic=
14536 lt_prog_compiler_can_build_shared=no
14537 fi
14538
14539 fi
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551 #
14552 # Check to make sure the static flag actually works.
14553 #
14554 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14556 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14557 if ${lt_cv_prog_compiler_static_works+:} false; then :
14558 $as_echo_n "(cached) " >&6
14559 else
14560 lt_cv_prog_compiler_static_works=no
14561 save_LDFLAGS="$LDFLAGS"
14562 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14563 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14564 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14565 # The linker can only warn and ignore the option if not recognized
14566 # So say no if there are warnings
14567 if test -s conftest.err; then
14568 # Append any errors to the config.log.
14569 cat conftest.err 1>&5
14570 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14571 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14572 if diff conftest.exp conftest.er2 >/dev/null; then
14573 lt_cv_prog_compiler_static_works=yes
14574 fi
14575 else
14576 lt_cv_prog_compiler_static_works=yes
14577 fi
14578 fi
14579 $RM -r conftest*
14580 LDFLAGS="$save_LDFLAGS"
14581
14582 fi
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14584 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14585
14586 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14587 :
14588 else
14589 lt_prog_compiler_static=
14590 fi
14591
14592
14593
14594
14595
14596
14597
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14599 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14600 if ${lt_cv_prog_compiler_c_o+:} false; then :
14601 $as_echo_n "(cached) " >&6
14602 else
14603 lt_cv_prog_compiler_c_o=no
14604 $RM -r conftest 2>/dev/null
14605 mkdir conftest
14606 cd conftest
14607 mkdir out
14608 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14609
14610 lt_compiler_flag="-o out/conftest2.$ac_objext"
14611 # Insert the option either (1) after the last *FLAGS variable, or
14612 # (2) before a word containing "conftest.", or (3) at the end.
14613 # Note that $ac_compile itself does not contain backslashes and begins
14614 # with a dollar sign (not a hyphen), so the echo should work correctly.
14615 lt_compile=`echo "$ac_compile" | $SED \
14616 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14617 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14618 -e 's:$: $lt_compiler_flag:'`
14619 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14620 (eval "$lt_compile" 2>out/conftest.err)
14621 ac_status=$?
14622 cat out/conftest.err >&5
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14625 then
14626 # The compiler can only warn and ignore the option if not recognized
14627 # So say no if there are warnings
14628 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14629 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14630 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14631 lt_cv_prog_compiler_c_o=yes
14632 fi
14633 fi
14634 chmod u+w . 2>&5
14635 $RM conftest*
14636 # SGI C++ compiler will create directory out/ii_files/ for
14637 # template instantiation
14638 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14639 $RM out/* && rmdir out
14640 cd ..
14641 $RM -r conftest
14642 $RM conftest*
14643
14644 fi
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14646 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14647
14648
14649
14650
14651
14652
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14654 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14655 if ${lt_cv_prog_compiler_c_o+:} false; then :
14656 $as_echo_n "(cached) " >&6
14657 else
14658 lt_cv_prog_compiler_c_o=no
14659 $RM -r conftest 2>/dev/null
14660 mkdir conftest
14661 cd conftest
14662 mkdir out
14663 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14664
14665 lt_compiler_flag="-o out/conftest2.$ac_objext"
14666 # Insert the option either (1) after the last *FLAGS variable, or
14667 # (2) before a word containing "conftest.", or (3) at the end.
14668 # Note that $ac_compile itself does not contain backslashes and begins
14669 # with a dollar sign (not a hyphen), so the echo should work correctly.
14670 lt_compile=`echo "$ac_compile" | $SED \
14671 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14672 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14673 -e 's:$: $lt_compiler_flag:'`
14674 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14675 (eval "$lt_compile" 2>out/conftest.err)
14676 ac_status=$?
14677 cat out/conftest.err >&5
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14680 then
14681 # The compiler can only warn and ignore the option if not recognized
14682 # So say no if there are warnings
14683 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14684 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14685 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14686 lt_cv_prog_compiler_c_o=yes
14687 fi
14688 fi
14689 chmod u+w . 2>&5
14690 $RM conftest*
14691 # SGI C++ compiler will create directory out/ii_files/ for
14692 # template instantiation
14693 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14694 $RM out/* && rmdir out
14695 cd ..
14696 $RM -r conftest
14697 $RM conftest*
14698
14699 fi
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14701 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14702
14703
14704
14705
14706 hard_links="nottested"
14707 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14708 # do not overwrite the value of need_locks provided by the user
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14710 $as_echo_n "checking if we can lock with hard links... " >&6; }
14711 hard_links=yes
14712 $RM conftest*
14713 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14714 touch conftest.a
14715 ln conftest.a conftest.b 2>&5 || hard_links=no
14716 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14718 $as_echo "$hard_links" >&6; }
14719 if test "$hard_links" = no; then
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14721 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14722 need_locks=warn
14723 fi
14724 else
14725 need_locks=no
14726 fi
14727
14728
14729
14730
14731
14732
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14734 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14735
14736 runpath_var=
14737 allow_undefined_flag=
14738 always_export_symbols=no
14739 archive_cmds=
14740 archive_expsym_cmds=
14741 compiler_needs_object=no
14742 enable_shared_with_static_runtimes=no
14743 export_dynamic_flag_spec=
14744 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14745 hardcode_automatic=no
14746 hardcode_direct=no
14747 hardcode_direct_absolute=no
14748 hardcode_libdir_flag_spec=
14749 hardcode_libdir_flag_spec_ld=
14750 hardcode_libdir_separator=
14751 hardcode_minus_L=no
14752 hardcode_shlibpath_var=unsupported
14753 inherit_rpath=no
14754 link_all_deplibs=unknown
14755 module_cmds=
14756 module_expsym_cmds=
14757 old_archive_from_new_cmds=
14758 old_archive_from_expsyms_cmds=
14759 thread_safe_flag_spec=
14760 whole_archive_flag_spec=
14761 # include_expsyms should be a list of space-separated symbols to be *always*
14762 # included in the symbol list
14763 include_expsyms=
14764 # exclude_expsyms can be an extended regexp of symbols to exclude
14765 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14766 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14767 # as well as any symbol that contains `d'.
14768 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14769 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14770 # platforms (ab)use it in PIC code, but their linkers get confused if
14771 # the symbol is explicitly referenced. Since portable code cannot
14772 # rely on this symbol name, it's probably fine to never include it in
14773 # preloaded symbol tables.
14774 # Exclude shared library initialization/finalization symbols.
14775 extract_expsyms_cmds=
14776
14777 case $host_os in
14778 cygwin* | mingw* | pw32* | cegcc*)
14779 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14780 # When not using gcc, we currently assume that we are using
14781 # Microsoft Visual C++.
14782 if test "$GCC" != yes; then
14783 with_gnu_ld=no
14784 fi
14785 ;;
14786 interix*)
14787 # we just hope/assume this is gcc and not c89 (= MSVC++)
14788 with_gnu_ld=yes
14789 ;;
14790 openbsd*)
14791 with_gnu_ld=no
14792 ;;
14793 esac
14794
14795 ld_shlibs=yes
14796
14797 # On some targets, GNU ld is compatible enough with the native linker
14798 # that we're better off using the native interface for both.
14799 lt_use_gnu_ld_interface=no
14800 if test "$with_gnu_ld" = yes; then
14801 case $host_os in
14802 aix*)
14803 # The AIX port of GNU ld has always aspired to compatibility
14804 # with the native linker. However, as the warning in the GNU ld
14805 # block says, versions before 2.19.5* couldn't really create working
14806 # shared libraries, regardless of the interface used.
14807 case `$LD -v 2>&1` in
14808 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14809 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14810 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14811 *)
14812 lt_use_gnu_ld_interface=yes
14813 ;;
14814 esac
14815 ;;
14816 *)
14817 lt_use_gnu_ld_interface=yes
14818 ;;
14819 esac
14820 fi
14821
14822 if test "$lt_use_gnu_ld_interface" = yes; then
14823 # If archive_cmds runs LD, not CC, wlarc should be empty
14824 wlarc='${wl}'
14825
14826 # Set some defaults for GNU ld with shared library support. These
14827 # are reset later if shared libraries are not supported. Putting them
14828 # here allows them to be overridden if necessary.
14829 runpath_var=LD_RUN_PATH
14830 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14831 export_dynamic_flag_spec='${wl}--export-dynamic'
14832 # ancient GNU ld didn't support --whole-archive et. al.
14833 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14834 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14835 else
14836 whole_archive_flag_spec=
14837 fi
14838 supports_anon_versioning=no
14839 case `$LD -v 2>&1` in
14840 *GNU\ gold*) supports_anon_versioning=yes ;;
14841 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14842 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14843 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14844 *\ 2.11.*) ;; # other 2.11 versions
14845 *) supports_anon_versioning=yes ;;
14846 esac
14847
14848 # See if GNU ld supports shared libraries.
14849 case $host_os in
14850 aix[3-9]*)
14851 # On AIX/PPC, the GNU linker is very broken
14852 if test "$host_cpu" != ia64; then
14853 ld_shlibs=no
14854 cat <<_LT_EOF 1>&2
14855
14856 *** Warning: the GNU linker, at least up to release 2.19, is reported
14857 *** to be unable to reliably create shared libraries on AIX.
14858 *** Therefore, libtool is disabling shared libraries support. If you
14859 *** really care for shared libraries, you may want to install binutils
14860 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14861 *** You will then need to restart the configuration process.
14862
14863 _LT_EOF
14864 fi
14865 ;;
14866
14867 amigaos*)
14868 case $host_cpu in
14869 powerpc)
14870 # see comment about AmigaOS4 .so support
14871 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14872 archive_expsym_cmds=''
14873 ;;
14874 m68k)
14875 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)'
14876 hardcode_libdir_flag_spec='-L$libdir'
14877 hardcode_minus_L=yes
14878 ;;
14879 esac
14880 ;;
14881
14882 beos*)
14883 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14884 allow_undefined_flag=unsupported
14885 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
14886 # support --undefined. This deserves some investigation. FIXME
14887 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14888 else
14889 ld_shlibs=no
14890 fi
14891 ;;
14892
14893 cygwin* | mingw* | pw32* | cegcc*)
14894 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14895 # as there is no search path for DLLs.
14896 hardcode_libdir_flag_spec='-L$libdir'
14897 export_dynamic_flag_spec='${wl}--export-all-symbols'
14898 allow_undefined_flag=unsupported
14899 always_export_symbols=no
14900 enable_shared_with_static_runtimes=yes
14901 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'
14902 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14903
14904 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14905 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14906 # If the export-symbols file already is a .def file (1st line
14907 # is EXPORTS), use it as is; otherwise, prepend...
14908 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14909 cp $export_symbols $output_objdir/$soname.def;
14910 else
14911 echo EXPORTS > $output_objdir/$soname.def;
14912 cat $export_symbols >> $output_objdir/$soname.def;
14913 fi~
14914 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14915 else
14916 ld_shlibs=no
14917 fi
14918 ;;
14919
14920 haiku*)
14921 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14922 link_all_deplibs=yes
14923 ;;
14924
14925 interix[3-9]*)
14926 hardcode_direct=no
14927 hardcode_shlibpath_var=no
14928 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14929 export_dynamic_flag_spec='${wl}-E'
14930 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14931 # Instead, shared libraries are loaded at an image base (0x10000000 by
14932 # default) and relocated if they conflict, which is a slow very memory
14933 # consuming and fragmenting process. To avoid this, we pick a random,
14934 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14935 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14936 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14937 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'
14938 ;;
14939
14940 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14941 tmp_diet=no
14942 if test "$host_os" = linux-dietlibc; then
14943 case $cc_basename in
14944 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14945 esac
14946 fi
14947 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14948 && test "$tmp_diet" = no
14949 then
14950 tmp_addflag=' $pic_flag'
14951 tmp_sharedflag='-shared'
14952 case $cc_basename,$host_cpu in
14953 pgcc*) # Portland Group C compiler
14954 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'
14955 tmp_addflag=' $pic_flag'
14956 ;;
14957 pgf77* | pgf90* | pgf95* | pgfortran*)
14958 # Portland Group f77 and f90 compilers
14959 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'
14960 tmp_addflag=' $pic_flag -Mnomain' ;;
14961 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14962 tmp_addflag=' -i_dynamic' ;;
14963 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14964 tmp_addflag=' -i_dynamic -nofor_main' ;;
14965 ifc* | ifort*) # Intel Fortran compiler
14966 tmp_addflag=' -nofor_main' ;;
14967 lf95*) # Lahey Fortran 8.1
14968 whole_archive_flag_spec=
14969 tmp_sharedflag='--shared' ;;
14970 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14971 tmp_sharedflag='-qmkshrobj'
14972 tmp_addflag= ;;
14973 nvcc*) # Cuda Compiler Driver 2.2
14974 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'
14975 compiler_needs_object=yes
14976 ;;
14977 esac
14978 case `$CC -V 2>&1 | sed 5q` in
14979 *Sun\ C*) # Sun C 5.9
14980 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'
14981 compiler_needs_object=yes
14982 tmp_sharedflag='-G' ;;
14983 *Sun\ F*) # Sun Fortran 8.3
14984 tmp_sharedflag='-G' ;;
14985 esac
14986 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14987
14988 if test "x$supports_anon_versioning" = xyes; then
14989 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14990 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14991 echo "local: *; };" >> $output_objdir/$libname.ver~
14992 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14993 fi
14994
14995 case $cc_basename in
14996 xlf* | bgf* | bgxlf* | mpixlf*)
14997 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14998 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14999 hardcode_libdir_flag_spec=
15000 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15001 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15002 if test "x$supports_anon_versioning" = xyes; then
15003 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15004 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15005 echo "local: *; };" >> $output_objdir/$libname.ver~
15006 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15007 fi
15008 ;;
15009 esac
15010 else
15011 ld_shlibs=no
15012 fi
15013 ;;
15014
15015 netbsd*)
15016 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15017 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15018 wlarc=
15019 else
15020 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15021 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15022 fi
15023 ;;
15024
15025 solaris*)
15026 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15027 ld_shlibs=no
15028 cat <<_LT_EOF 1>&2
15029
15030 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15031 *** create shared libraries on Solaris systems. Therefore, libtool
15032 *** is disabling shared libraries support. We urge you to upgrade GNU
15033 *** binutils to release 2.9.1 or newer. Another option is to modify
15034 *** your PATH or compiler configuration so that the native linker is
15035 *** used, and then restart.
15036
15037 _LT_EOF
15038 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15039 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15040 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15041 else
15042 ld_shlibs=no
15043 fi
15044 ;;
15045
15046 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15047 case `$LD -v 2>&1` in
15048 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15049 ld_shlibs=no
15050 cat <<_LT_EOF 1>&2
15051
15052 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15053 *** reliably create shared libraries on SCO systems. Therefore, libtool
15054 *** is disabling shared libraries support. We urge you to upgrade GNU
15055 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15056 *** your PATH or compiler configuration so that the native linker is
15057 *** used, and then restart.
15058
15059 _LT_EOF
15060 ;;
15061 *)
15062 # For security reasons, it is highly recommended that you always
15063 # use absolute paths for naming shared libraries, and exclude the
15064 # DT_RUNPATH tag from executables and libraries. But doing so
15065 # requires that you compile everything twice, which is a pain.
15066 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15067 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15068 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15069 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15070 else
15071 ld_shlibs=no
15072 fi
15073 ;;
15074 esac
15075 ;;
15076
15077 sunos4*)
15078 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15079 wlarc=
15080 hardcode_direct=yes
15081 hardcode_shlibpath_var=no
15082 ;;
15083
15084 *)
15085 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15086 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15087 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15088 else
15089 ld_shlibs=no
15090 fi
15091 ;;
15092 esac
15093
15094 if test "$ld_shlibs" = no; then
15095 runpath_var=
15096 hardcode_libdir_flag_spec=
15097 export_dynamic_flag_spec=
15098 whole_archive_flag_spec=
15099 fi
15100 else
15101 # PORTME fill in a description of your system's linker (not GNU ld)
15102 case $host_os in
15103 aix3*)
15104 allow_undefined_flag=unsupported
15105 always_export_symbols=yes
15106 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'
15107 # Note: this linker hardcodes the directories in LIBPATH if there
15108 # are no directories specified by -L.
15109 hardcode_minus_L=yes
15110 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15111 # Neither direct hardcoding nor static linking is supported with a
15112 # broken collect2.
15113 hardcode_direct=unsupported
15114 fi
15115 ;;
15116
15117 aix[4-9]*)
15118 if test "$host_cpu" = ia64; then
15119 # On IA64, the linker does run time linking by default, so we don't
15120 # have to do anything special.
15121 aix_use_runtimelinking=no
15122 exp_sym_flag='-Bexport'
15123 no_entry_flag=""
15124 else
15125 # If we're using GNU nm, then we don't want the "-C" option.
15126 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15127 # Also, AIX nm treats weak defined symbols like other global
15128 # defined symbols, whereas GNU nm marks them as "W".
15129 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15130 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'
15131 else
15132 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'
15133 fi
15134 aix_use_runtimelinking=no
15135
15136 # Test if we are trying to use run time linking or normal
15137 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15138 # need to do runtime linking.
15139 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15140 for ld_flag in $LDFLAGS; do
15141 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15142 aix_use_runtimelinking=yes
15143 break
15144 fi
15145 done
15146 ;;
15147 esac
15148
15149 exp_sym_flag='-bexport'
15150 no_entry_flag='-bnoentry'
15151 fi
15152
15153 # When large executables or shared objects are built, AIX ld can
15154 # have problems creating the table of contents. If linking a library
15155 # or program results in "error TOC overflow" add -mminimal-toc to
15156 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15157 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15158
15159 archive_cmds=''
15160 hardcode_direct=yes
15161 hardcode_direct_absolute=yes
15162 hardcode_libdir_separator=':'
15163 link_all_deplibs=yes
15164 file_list_spec='${wl}-f,'
15165
15166 if test "$GCC" = yes; then
15167 case $host_os in aix4.[012]|aix4.[012].*)
15168 # We only want to do this on AIX 4.2 and lower, the check
15169 # below for broken collect2 doesn't work under 4.3+
15170 collect2name=`${CC} -print-prog-name=collect2`
15171 if test -f "$collect2name" &&
15172 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15173 then
15174 # We have reworked collect2
15175 :
15176 else
15177 # We have old collect2
15178 hardcode_direct=unsupported
15179 # It fails to find uninstalled libraries when the uninstalled
15180 # path is not listed in the libpath. Setting hardcode_minus_L
15181 # to unsupported forces relinking
15182 hardcode_minus_L=yes
15183 hardcode_libdir_flag_spec='-L$libdir'
15184 hardcode_libdir_separator=
15185 fi
15186 ;;
15187 esac
15188 shared_flag='-shared'
15189 if test "$aix_use_runtimelinking" = yes; then
15190 shared_flag="$shared_flag "'${wl}-G'
15191 fi
15192 else
15193 # not using gcc
15194 if test "$host_cpu" = ia64; then
15195 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15196 # chokes on -Wl,-G. The following line is correct:
15197 shared_flag='-G'
15198 else
15199 if test "$aix_use_runtimelinking" = yes; then
15200 shared_flag='${wl}-G'
15201 else
15202 shared_flag='${wl}-bM:SRE'
15203 fi
15204 fi
15205 fi
15206
15207 export_dynamic_flag_spec='${wl}-bexpall'
15208 # It seems that -bexpall does not export symbols beginning with
15209 # underscore (_), so it is better to generate a list of symbols to export.
15210 always_export_symbols=yes
15211 if test "$aix_use_runtimelinking" = yes; then
15212 # Warning - without using the other runtime loading flags (-brtl),
15213 # -berok will link without error, but may produce a broken library.
15214 allow_undefined_flag='-berok'
15215 # Determine the default libpath from the value encoded in an
15216 # empty executable.
15217 if test "${lt_cv_aix_libpath+set}" = set; then
15218 aix_libpath=$lt_cv_aix_libpath
15219 else
15220 if ${lt_cv_aix_libpath_+:} false; then :
15221 $as_echo_n "(cached) " >&6
15222 else
15223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15224 /* end confdefs.h. */
15225
15226 int
15227 main ()
15228 {
15229
15230 ;
15231 return 0;
15232 }
15233 _ACEOF
15234 if ac_fn_c_try_link "$LINENO"; then :
15235
15236 lt_aix_libpath_sed='
15237 /Import File Strings/,/^$/ {
15238 /^0/ {
15239 s/^0 *\([^ ]*\) *$/\1/
15240 p
15241 }
15242 }'
15243 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15244 # Check for a 64-bit object if we didn't find anything.
15245 if test -z "$lt_cv_aix_libpath_"; then
15246 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15247 fi
15248 fi
15249 rm -f core conftest.err conftest.$ac_objext \
15250 conftest$ac_exeext conftest.$ac_ext
15251 if test -z "$lt_cv_aix_libpath_"; then
15252 lt_cv_aix_libpath_="/usr/lib:/lib"
15253 fi
15254
15255 fi
15256
15257 aix_libpath=$lt_cv_aix_libpath_
15258 fi
15259
15260 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15261 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"
15262 else
15263 if test "$host_cpu" = ia64; then
15264 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15265 allow_undefined_flag="-z nodefs"
15266 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"
15267 else
15268 # Determine the default libpath from the value encoded in an
15269 # empty executable.
15270 if test "${lt_cv_aix_libpath+set}" = set; then
15271 aix_libpath=$lt_cv_aix_libpath
15272 else
15273 if ${lt_cv_aix_libpath_+:} false; then :
15274 $as_echo_n "(cached) " >&6
15275 else
15276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15277 /* end confdefs.h. */
15278
15279 int
15280 main ()
15281 {
15282
15283 ;
15284 return 0;
15285 }
15286 _ACEOF
15287 if ac_fn_c_try_link "$LINENO"; then :
15288
15289 lt_aix_libpath_sed='
15290 /Import File Strings/,/^$/ {
15291 /^0/ {
15292 s/^0 *\([^ ]*\) *$/\1/
15293 p
15294 }
15295 }'
15296 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15297 # Check for a 64-bit object if we didn't find anything.
15298 if test -z "$lt_cv_aix_libpath_"; then
15299 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15300 fi
15301 fi
15302 rm -f core conftest.err conftest.$ac_objext \
15303 conftest$ac_exeext conftest.$ac_ext
15304 if test -z "$lt_cv_aix_libpath_"; then
15305 lt_cv_aix_libpath_="/usr/lib:/lib"
15306 fi
15307
15308 fi
15309
15310 aix_libpath=$lt_cv_aix_libpath_
15311 fi
15312
15313 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15314 # Warning - without using the other run time loading flags,
15315 # -berok will link without error, but may produce a broken library.
15316 no_undefined_flag=' ${wl}-bernotok'
15317 allow_undefined_flag=' ${wl}-berok'
15318 if test "$with_gnu_ld" = yes; then
15319 # We only use this code for GNU lds that support --whole-archive.
15320 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15321 else
15322 # Exported symbols can be pulled into shared objects from archives
15323 whole_archive_flag_spec='$convenience'
15324 fi
15325 archive_cmds_need_lc=yes
15326 # This is similar to how AIX traditionally builds its shared libraries.
15327 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'
15328 fi
15329 fi
15330 ;;
15331
15332 amigaos*)
15333 case $host_cpu in
15334 powerpc)
15335 # see comment about AmigaOS4 .so support
15336 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15337 archive_expsym_cmds=''
15338 ;;
15339 m68k)
15340 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)'
15341 hardcode_libdir_flag_spec='-L$libdir'
15342 hardcode_minus_L=yes
15343 ;;
15344 esac
15345 ;;
15346
15347 bsdi[45]*)
15348 export_dynamic_flag_spec=-rdynamic
15349 ;;
15350
15351 cygwin* | mingw* | pw32* | cegcc*)
15352 # When not using gcc, we currently assume that we are using
15353 # Microsoft Visual C++.
15354 # hardcode_libdir_flag_spec is actually meaningless, as there is
15355 # no search path for DLLs.
15356 case $cc_basename in
15357 cl*)
15358 # Native MSVC
15359 hardcode_libdir_flag_spec=' '
15360 allow_undefined_flag=unsupported
15361 always_export_symbols=yes
15362 file_list_spec='@'
15363 # Tell ltmain to make .lib files, not .a files.
15364 libext=lib
15365 # Tell ltmain to make .dll files, not .so files.
15366 shrext_cmds=".dll"
15367 # FIXME: Setting linknames here is a bad hack.
15368 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15369 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15370 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15371 else
15372 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15373 fi~
15374 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15375 linknames='
15376 # The linker will not automatically build a static lib if we build a DLL.
15377 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15378 enable_shared_with_static_runtimes=yes
15379 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15380 # Don't use ranlib
15381 old_postinstall_cmds='chmod 644 $oldlib'
15382 postlink_cmds='lt_outputfile="@OUTPUT@"~
15383 lt_tool_outputfile="@TOOL_OUTPUT@"~
15384 case $lt_outputfile in
15385 *.exe|*.EXE) ;;
15386 *)
15387 lt_outputfile="$lt_outputfile.exe"
15388 lt_tool_outputfile="$lt_tool_outputfile.exe"
15389 ;;
15390 esac~
15391 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15392 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15393 $RM "$lt_outputfile.manifest";
15394 fi'
15395 ;;
15396 *)
15397 # Assume MSVC wrapper
15398 hardcode_libdir_flag_spec=' '
15399 allow_undefined_flag=unsupported
15400 # Tell ltmain to make .lib files, not .a files.
15401 libext=lib
15402 # Tell ltmain to make .dll files, not .so files.
15403 shrext_cmds=".dll"
15404 # FIXME: Setting linknames here is a bad hack.
15405 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15406 # The linker will automatically build a .lib file if we build a DLL.
15407 old_archive_from_new_cmds='true'
15408 # FIXME: Should let the user specify the lib program.
15409 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15410 enable_shared_with_static_runtimes=yes
15411 ;;
15412 esac
15413 ;;
15414
15415 darwin* | rhapsody*)
15416
15417
15418 archive_cmds_need_lc=no
15419 hardcode_direct=no
15420 hardcode_automatic=yes
15421 hardcode_shlibpath_var=unsupported
15422 if test "$lt_cv_ld_force_load" = "yes"; then
15423 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\"`'
15424 else
15425 whole_archive_flag_spec=''
15426 fi
15427 link_all_deplibs=yes
15428 allow_undefined_flag="$_lt_dar_allow_undefined"
15429 case $cc_basename in
15430 ifort*) _lt_dar_can_shared=yes ;;
15431 *) _lt_dar_can_shared=$GCC ;;
15432 esac
15433 if test "$_lt_dar_can_shared" = "yes"; then
15434 output_verbose_link_cmd=func_echo_all
15435 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15436 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15437 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}"
15438 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}"
15439
15440 else
15441 ld_shlibs=no
15442 fi
15443
15444 ;;
15445
15446 dgux*)
15447 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15448 hardcode_libdir_flag_spec='-L$libdir'
15449 hardcode_shlibpath_var=no
15450 ;;
15451
15452 freebsd1*)
15453 ld_shlibs=no
15454 ;;
15455
15456 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15457 # support. Future versions do this automatically, but an explicit c++rt0.o
15458 # does not break anything, and helps significantly (at the cost of a little
15459 # extra space).
15460 freebsd2.2*)
15461 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15462 hardcode_libdir_flag_spec='-R$libdir'
15463 hardcode_direct=yes
15464 hardcode_shlibpath_var=no
15465 ;;
15466
15467 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15468 freebsd2*)
15469 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15470 hardcode_direct=yes
15471 hardcode_minus_L=yes
15472 hardcode_shlibpath_var=no
15473 ;;
15474
15475 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15476 freebsd* | dragonfly*)
15477 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15478 hardcode_libdir_flag_spec='-R$libdir'
15479 hardcode_direct=yes
15480 hardcode_shlibpath_var=no
15481 ;;
15482
15483 hpux9*)
15484 if test "$GCC" = yes; then
15485 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'
15486 else
15487 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'
15488 fi
15489 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15490 hardcode_libdir_separator=:
15491 hardcode_direct=yes
15492
15493 # hardcode_minus_L: Not really in the search PATH,
15494 # but as the default location of the library.
15495 hardcode_minus_L=yes
15496 export_dynamic_flag_spec='${wl}-E'
15497 ;;
15498
15499 hpux10*)
15500 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15501 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15502 else
15503 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15504 fi
15505 if test "$with_gnu_ld" = no; then
15506 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15507 hardcode_libdir_flag_spec_ld='+b $libdir'
15508 hardcode_libdir_separator=:
15509 hardcode_direct=yes
15510 hardcode_direct_absolute=yes
15511 export_dynamic_flag_spec='${wl}-E'
15512 # hardcode_minus_L: Not really in the search PATH,
15513 # but as the default location of the library.
15514 hardcode_minus_L=yes
15515 fi
15516 ;;
15517
15518 hpux11*)
15519 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15520 case $host_cpu in
15521 hppa*64*)
15522 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15523 ;;
15524 ia64*)
15525 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15526 ;;
15527 *)
15528 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15529 ;;
15530 esac
15531 else
15532 case $host_cpu in
15533 hppa*64*)
15534 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15535 ;;
15536 ia64*)
15537 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15538 ;;
15539 *)
15540
15541 # Older versions of the 11.00 compiler do not understand -b yet
15542 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15544 $as_echo_n "checking if $CC understands -b... " >&6; }
15545 if ${lt_cv_prog_compiler__b+:} false; then :
15546 $as_echo_n "(cached) " >&6
15547 else
15548 lt_cv_prog_compiler__b=no
15549 save_LDFLAGS="$LDFLAGS"
15550 LDFLAGS="$LDFLAGS -b"
15551 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15552 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15553 # The linker can only warn and ignore the option if not recognized
15554 # So say no if there are warnings
15555 if test -s conftest.err; then
15556 # Append any errors to the config.log.
15557 cat conftest.err 1>&5
15558 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15559 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15560 if diff conftest.exp conftest.er2 >/dev/null; then
15561 lt_cv_prog_compiler__b=yes
15562 fi
15563 else
15564 lt_cv_prog_compiler__b=yes
15565 fi
15566 fi
15567 $RM -r conftest*
15568 LDFLAGS="$save_LDFLAGS"
15569
15570 fi
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15572 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15573
15574 if test x"$lt_cv_prog_compiler__b" = xyes; then
15575 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15576 else
15577 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15578 fi
15579
15580 ;;
15581 esac
15582 fi
15583 if test "$with_gnu_ld" = no; then
15584 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15585 hardcode_libdir_separator=:
15586
15587 case $host_cpu in
15588 hppa*64*|ia64*)
15589 hardcode_direct=no
15590 hardcode_shlibpath_var=no
15591 ;;
15592 *)
15593 hardcode_direct=yes
15594 hardcode_direct_absolute=yes
15595 export_dynamic_flag_spec='${wl}-E'
15596
15597 # hardcode_minus_L: Not really in the search PATH,
15598 # but as the default location of the library.
15599 hardcode_minus_L=yes
15600 ;;
15601 esac
15602 fi
15603 ;;
15604
15605 irix5* | irix6* | nonstopux*)
15606 if test "$GCC" = yes; then
15607 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'
15608 # Try to use the -exported_symbol ld option, if it does not
15609 # work, assume that -exports_file does not work either and
15610 # implicitly export all symbols.
15611 # This should be the same for all languages, so no per-tag cache variable.
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15613 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15614 if ${lt_cv_irix_exported_symbol+:} false; then :
15615 $as_echo_n "(cached) " >&6
15616 else
15617 save_LDFLAGS="$LDFLAGS"
15618 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15620 /* end confdefs.h. */
15621 int foo (void) { return 0; }
15622 _ACEOF
15623 if ac_fn_c_try_link "$LINENO"; then :
15624 lt_cv_irix_exported_symbol=yes
15625 else
15626 lt_cv_irix_exported_symbol=no
15627 fi
15628 rm -f core conftest.err conftest.$ac_objext \
15629 conftest$ac_exeext conftest.$ac_ext
15630 LDFLAGS="$save_LDFLAGS"
15631 fi
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15633 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
15634 if test "$lt_cv_irix_exported_symbol" = yes; then
15635 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'
15636 fi
15637 else
15638 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'
15639 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'
15640 fi
15641 archive_cmds_need_lc='no'
15642 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15643 hardcode_libdir_separator=:
15644 inherit_rpath=yes
15645 link_all_deplibs=yes
15646 ;;
15647
15648 netbsd*)
15649 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15650 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15651 else
15652 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15653 fi
15654 hardcode_libdir_flag_spec='-R$libdir'
15655 hardcode_direct=yes
15656 hardcode_shlibpath_var=no
15657 ;;
15658
15659 newsos6)
15660 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15661 hardcode_direct=yes
15662 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15663 hardcode_libdir_separator=:
15664 hardcode_shlibpath_var=no
15665 ;;
15666
15667 *nto* | *qnx*)
15668 ;;
15669
15670 openbsd*)
15671 if test -f /usr/libexec/ld.so; then
15672 hardcode_direct=yes
15673 hardcode_shlibpath_var=no
15674 hardcode_direct_absolute=yes
15675 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15676 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15677 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15678 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15679 export_dynamic_flag_spec='${wl}-E'
15680 else
15681 case $host_os in
15682 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15683 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15684 hardcode_libdir_flag_spec='-R$libdir'
15685 ;;
15686 *)
15687 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15688 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15689 ;;
15690 esac
15691 fi
15692 else
15693 ld_shlibs=no
15694 fi
15695 ;;
15696
15697 os2*)
15698 hardcode_libdir_flag_spec='-L$libdir'
15699 hardcode_minus_L=yes
15700 allow_undefined_flag=unsupported
15701 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'
15702 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15703 ;;
15704
15705 osf3*)
15706 if test "$GCC" = yes; then
15707 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15708 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'
15709 else
15710 allow_undefined_flag=' -expect_unresolved \*'
15711 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'
15712 fi
15713 archive_cmds_need_lc='no'
15714 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15715 hardcode_libdir_separator=:
15716 ;;
15717
15718 osf4* | osf5*) # as osf3* with the addition of -msym flag
15719 if test "$GCC" = yes; then
15720 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15721 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'
15722 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15723 else
15724 allow_undefined_flag=' -expect_unresolved \*'
15725 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'
15726 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~
15727 $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'
15728
15729 # Both c and cxx compiler support -rpath directly
15730 hardcode_libdir_flag_spec='-rpath $libdir'
15731 fi
15732 archive_cmds_need_lc='no'
15733 hardcode_libdir_separator=:
15734 ;;
15735
15736 solaris*)
15737 no_undefined_flag=' -z defs'
15738 if test "$GCC" = yes; then
15739 wlarc='${wl}'
15740 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15741 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15742 $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'
15743 else
15744 case `$CC -V 2>&1` in
15745 *"Compilers 5.0"*)
15746 wlarc=''
15747 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15748 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15749 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15750 ;;
15751 *)
15752 wlarc='${wl}'
15753 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15754 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15755 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15756 ;;
15757 esac
15758 fi
15759 hardcode_libdir_flag_spec='-R$libdir'
15760 hardcode_shlibpath_var=no
15761 case $host_os in
15762 solaris2.[0-5] | solaris2.[0-5].*) ;;
15763 *)
15764 # The compiler driver will combine and reorder linker options,
15765 # but understands `-z linker_flag'. GCC discards it without `$wl',
15766 # but is careful enough not to reorder.
15767 # Supported since Solaris 2.6 (maybe 2.5.1?)
15768 if test "$GCC" = yes; then
15769 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15770 else
15771 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15772 fi
15773 ;;
15774 esac
15775 link_all_deplibs=yes
15776 ;;
15777
15778 sunos4*)
15779 if test "x$host_vendor" = xsequent; then
15780 # Use $CC to link under sequent, because it throws in some extra .o
15781 # files that make .init and .fini sections work.
15782 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15783 else
15784 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15785 fi
15786 hardcode_libdir_flag_spec='-L$libdir'
15787 hardcode_direct=yes
15788 hardcode_minus_L=yes
15789 hardcode_shlibpath_var=no
15790 ;;
15791
15792 sysv4)
15793 case $host_vendor in
15794 sni)
15795 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15796 hardcode_direct=yes # is this really true???
15797 ;;
15798 siemens)
15799 ## LD is ld it makes a PLAMLIB
15800 ## CC just makes a GrossModule.
15801 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15802 reload_cmds='$CC -r -o $output$reload_objs'
15803 hardcode_direct=no
15804 ;;
15805 motorola)
15806 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15807 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15808 ;;
15809 esac
15810 runpath_var='LD_RUN_PATH'
15811 hardcode_shlibpath_var=no
15812 ;;
15813
15814 sysv4.3*)
15815 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15816 hardcode_shlibpath_var=no
15817 export_dynamic_flag_spec='-Bexport'
15818 ;;
15819
15820 sysv4*MP*)
15821 if test -d /usr/nec; then
15822 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15823 hardcode_shlibpath_var=no
15824 runpath_var=LD_RUN_PATH
15825 hardcode_runpath_var=yes
15826 ld_shlibs=yes
15827 fi
15828 ;;
15829
15830 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15831 no_undefined_flag='${wl}-z,text'
15832 archive_cmds_need_lc=no
15833 hardcode_shlibpath_var=no
15834 runpath_var='LD_RUN_PATH'
15835
15836 if test "$GCC" = yes; then
15837 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15838 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15839 else
15840 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15841 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15842 fi
15843 ;;
15844
15845 sysv5* | sco3.2v5* | sco5v6*)
15846 # Note: We can NOT use -z defs as we might desire, because we do not
15847 # link with -lc, and that would cause any symbols used from libc to
15848 # always be unresolved, which means just about no library would
15849 # ever link correctly. If we're not using GNU ld we use -z text
15850 # though, which does catch some bad symbols but isn't as heavy-handed
15851 # as -z defs.
15852 no_undefined_flag='${wl}-z,text'
15853 allow_undefined_flag='${wl}-z,nodefs'
15854 archive_cmds_need_lc=no
15855 hardcode_shlibpath_var=no
15856 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15857 hardcode_libdir_separator=':'
15858 link_all_deplibs=yes
15859 export_dynamic_flag_spec='${wl}-Bexport'
15860 runpath_var='LD_RUN_PATH'
15861
15862 if test "$GCC" = yes; then
15863 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15864 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15865 else
15866 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15867 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15868 fi
15869 ;;
15870
15871 uts4*)
15872 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15873 hardcode_libdir_flag_spec='-L$libdir'
15874 hardcode_shlibpath_var=no
15875 ;;
15876
15877 *)
15878 ld_shlibs=no
15879 ;;
15880 esac
15881
15882 if test x$host_vendor = xsni; then
15883 case $host in
15884 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15885 export_dynamic_flag_spec='${wl}-Blargedynsym'
15886 ;;
15887 esac
15888 fi
15889 fi
15890
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15892 $as_echo "$ld_shlibs" >&6; }
15893 test "$ld_shlibs" = no && can_build_shared=no
15894
15895 with_gnu_ld=$with_gnu_ld
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911 #
15912 # Do we need to explicitly link libc?
15913 #
15914 case "x$archive_cmds_need_lc" in
15915 x|xyes)
15916 # Assume -lc should be added
15917 archive_cmds_need_lc=yes
15918
15919 if test "$enable_shared" = yes && test "$GCC" = yes; then
15920 case $archive_cmds in
15921 *'~'*)
15922 # FIXME: we may have to deal with multi-command sequences.
15923 ;;
15924 '$CC '*)
15925 # Test whether the compiler implicitly links with -lc since on some
15926 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15927 # to ld, don't add -lc before -lgcc.
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15929 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15930 if ${lt_cv_archive_cmds_need_lc+:} false; then :
15931 $as_echo_n "(cached) " >&6
15932 else
15933 $RM conftest*
15934 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15935
15936 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15937 (eval $ac_compile) 2>&5
15938 ac_status=$?
15939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15940 test $ac_status = 0; } 2>conftest.err; then
15941 soname=conftest
15942 lib=conftest
15943 libobjs=conftest.$ac_objext
15944 deplibs=
15945 wl=$lt_prog_compiler_wl
15946 pic_flag=$lt_prog_compiler_pic
15947 compiler_flags=-v
15948 linker_flags=-v
15949 verstring=
15950 output_objdir=.
15951 libname=conftest
15952 lt_save_allow_undefined_flag=$allow_undefined_flag
15953 allow_undefined_flag=
15954 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15955 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15956 ac_status=$?
15957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15958 test $ac_status = 0; }
15959 then
15960 lt_cv_archive_cmds_need_lc=no
15961 else
15962 lt_cv_archive_cmds_need_lc=yes
15963 fi
15964 allow_undefined_flag=$lt_save_allow_undefined_flag
15965 else
15966 cat conftest.err 1>&5
15967 fi
15968 $RM conftest*
15969
15970 fi
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15972 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15973 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15974 ;;
15975 esac
15976 fi
15977 ;;
15978 esac
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16137 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16138
16139 if test "$GCC" = yes; then
16140 case $host_os in
16141 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16142 *) lt_awk_arg="/^libraries:/" ;;
16143 esac
16144 case $host_os in
16145 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16146 *) lt_sed_strip_eq="s,=/,/,g" ;;
16147 esac
16148 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16149 case $lt_search_path_spec in
16150 *\;*)
16151 # if the path contains ";" then we assume it to be the separator
16152 # otherwise default to the standard path separator (i.e. ":") - it is
16153 # assumed that no part of a normal pathname contains ";" but that should
16154 # okay in the real world where ";" in dirpaths is itself problematic.
16155 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16156 ;;
16157 *)
16158 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16159 ;;
16160 esac
16161 # Ok, now we have the path, separated by spaces, we can step through it
16162 # and add multilib dir if necessary.
16163 lt_tmp_lt_search_path_spec=
16164 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16165 for lt_sys_path in $lt_search_path_spec; do
16166 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16167 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16168 else
16169 test -d "$lt_sys_path" && \
16170 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16171 fi
16172 done
16173 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16174 BEGIN {RS=" "; FS="/|\n";} {
16175 lt_foo="";
16176 lt_count=0;
16177 for (lt_i = NF; lt_i > 0; lt_i--) {
16178 if ($lt_i != "" && $lt_i != ".") {
16179 if ($lt_i == "..") {
16180 lt_count++;
16181 } else {
16182 if (lt_count == 0) {
16183 lt_foo="/" $lt_i lt_foo;
16184 } else {
16185 lt_count--;
16186 }
16187 }
16188 }
16189 }
16190 if (lt_foo != "") { lt_freq[lt_foo]++; }
16191 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16192 }'`
16193 # AWK program above erroneously prepends '/' to C:/dos/paths
16194 # for these hosts.
16195 case $host_os in
16196 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16197 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16198 esac
16199 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16200 else
16201 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16202 fi
16203 library_names_spec=
16204 libname_spec='lib$name'
16205 soname_spec=
16206 shrext_cmds=".so"
16207 postinstall_cmds=
16208 postuninstall_cmds=
16209 finish_cmds=
16210 finish_eval=
16211 shlibpath_var=
16212 shlibpath_overrides_runpath=unknown
16213 version_type=none
16214 dynamic_linker="$host_os ld.so"
16215 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16216 need_lib_prefix=unknown
16217 hardcode_into_libs=no
16218
16219 # when you set need_version to no, make sure it does not cause -set_version
16220 # flags to be left without arguments
16221 need_version=unknown
16222
16223 case $host_os in
16224 aix3*)
16225 version_type=linux
16226 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16227 shlibpath_var=LIBPATH
16228
16229 # AIX 3 has no versioning support, so we append a major version to the name.
16230 soname_spec='${libname}${release}${shared_ext}$major'
16231 ;;
16232
16233 aix[4-9]*)
16234 version_type=linux
16235 need_lib_prefix=no
16236 need_version=no
16237 hardcode_into_libs=yes
16238 if test "$host_cpu" = ia64; then
16239 # AIX 5 supports IA64
16240 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16241 shlibpath_var=LD_LIBRARY_PATH
16242 else
16243 # With GCC up to 2.95.x, collect2 would create an import file
16244 # for dependence libraries. The import file would start with
16245 # the line `#! .'. This would cause the generated library to
16246 # depend on `.', always an invalid library. This was fixed in
16247 # development snapshots of GCC prior to 3.0.
16248 case $host_os in
16249 aix4 | aix4.[01] | aix4.[01].*)
16250 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16251 echo ' yes '
16252 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16253 :
16254 else
16255 can_build_shared=no
16256 fi
16257 ;;
16258 esac
16259 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16260 # soname into executable. Probably we can add versioning support to
16261 # collect2, so additional links can be useful in future.
16262 if test "$aix_use_runtimelinking" = yes; then
16263 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16264 # instead of lib<name>.a to let people know that these are not
16265 # typical AIX shared libraries.
16266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16267 else
16268 # We preserve .a as extension for shared libraries through AIX4.2
16269 # and later when we are not doing run time linking.
16270 library_names_spec='${libname}${release}.a $libname.a'
16271 soname_spec='${libname}${release}${shared_ext}$major'
16272 fi
16273 shlibpath_var=LIBPATH
16274 fi
16275 ;;
16276
16277 amigaos*)
16278 case $host_cpu in
16279 powerpc)
16280 # Since July 2007 AmigaOS4 officially supports .so libraries.
16281 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16283 ;;
16284 m68k)
16285 library_names_spec='$libname.ixlibrary $libname.a'
16286 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16287 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'
16288 ;;
16289 esac
16290 ;;
16291
16292 beos*)
16293 library_names_spec='${libname}${shared_ext}'
16294 dynamic_linker="$host_os ld.so"
16295 shlibpath_var=LIBRARY_PATH
16296 ;;
16297
16298 bsdi[45]*)
16299 version_type=linux
16300 need_version=no
16301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16302 soname_spec='${libname}${release}${shared_ext}$major'
16303 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16304 shlibpath_var=LD_LIBRARY_PATH
16305 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16306 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16307 # the default ld.so.conf also contains /usr/contrib/lib and
16308 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16309 # libtool to hard-code these into programs
16310 ;;
16311
16312 cygwin* | mingw* | pw32* | cegcc*)
16313 version_type=windows
16314 shrext_cmds=".dll"
16315 need_version=no
16316 need_lib_prefix=no
16317
16318 case $GCC,$cc_basename in
16319 yes,*)
16320 # gcc
16321 library_names_spec='$libname.dll.a'
16322 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16323 postinstall_cmds='base_file=`basename \${file}`~
16324 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16325 dldir=$destdir/`dirname \$dlpath`~
16326 test -d \$dldir || mkdir -p \$dldir~
16327 $install_prog $dir/$dlname \$dldir/$dlname~
16328 chmod a+x \$dldir/$dlname~
16329 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16330 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16331 fi'
16332 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16333 dlpath=$dir/\$dldll~
16334 $RM \$dlpath'
16335 shlibpath_overrides_runpath=yes
16336
16337 case $host_os in
16338 cygwin*)
16339 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16340 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16341
16342 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16343 ;;
16344 mingw* | cegcc*)
16345 # MinGW DLLs use traditional 'lib' prefix
16346 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16347 ;;
16348 pw32*)
16349 # pw32 DLLs use 'pw' prefix rather than 'lib'
16350 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16351 ;;
16352 esac
16353 dynamic_linker='Win32 ld.exe'
16354 ;;
16355
16356 *,cl*)
16357 # Native MSVC
16358 libname_spec='$name'
16359 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16360 library_names_spec='${libname}.dll.lib'
16361
16362 case $build_os in
16363 mingw*)
16364 sys_lib_search_path_spec=
16365 lt_save_ifs=$IFS
16366 IFS=';'
16367 for lt_path in $LIB
16368 do
16369 IFS=$lt_save_ifs
16370 # Let DOS variable expansion print the short 8.3 style file name.
16371 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16372 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16373 done
16374 IFS=$lt_save_ifs
16375 # Convert to MSYS style.
16376 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16377 ;;
16378 cygwin*)
16379 # Convert to unix form, then to dos form, then back to unix form
16380 # but this time dos style (no spaces!) so that the unix form looks
16381 # like /cygdrive/c/PROGRA~1:/cygdr...
16382 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16383 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16384 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16385 ;;
16386 *)
16387 sys_lib_search_path_spec="$LIB"
16388 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16389 # It is most probably a Windows format PATH.
16390 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16391 else
16392 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16393 fi
16394 # FIXME: find the short name or the path components, as spaces are
16395 # common. (e.g. "Program Files" -> "PROGRA~1")
16396 ;;
16397 esac
16398
16399 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16400 postinstall_cmds='base_file=`basename \${file}`~
16401 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16402 dldir=$destdir/`dirname \$dlpath`~
16403 test -d \$dldir || mkdir -p \$dldir~
16404 $install_prog $dir/$dlname \$dldir/$dlname'
16405 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16406 dlpath=$dir/\$dldll~
16407 $RM \$dlpath'
16408 shlibpath_overrides_runpath=yes
16409 dynamic_linker='Win32 link.exe'
16410 ;;
16411
16412 *)
16413 # Assume MSVC wrapper
16414 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16415 dynamic_linker='Win32 ld.exe'
16416 ;;
16417 esac
16418 # FIXME: first we should search . and the directory the executable is in
16419 shlibpath_var=PATH
16420 ;;
16421
16422 darwin* | rhapsody*)
16423 dynamic_linker="$host_os dyld"
16424 version_type=darwin
16425 need_lib_prefix=no
16426 need_version=no
16427 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16428 soname_spec='${libname}${release}${major}$shared_ext'
16429 shlibpath_overrides_runpath=yes
16430 shlibpath_var=DYLD_LIBRARY_PATH
16431 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16432
16433 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16434 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16435 ;;
16436
16437 dgux*)
16438 version_type=linux
16439 need_lib_prefix=no
16440 need_version=no
16441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16442 soname_spec='${libname}${release}${shared_ext}$major'
16443 shlibpath_var=LD_LIBRARY_PATH
16444 ;;
16445
16446 freebsd1*)
16447 dynamic_linker=no
16448 ;;
16449
16450 freebsd* | dragonfly*)
16451 # DragonFly does not have aout. When/if they implement a new
16452 # versioning mechanism, adjust this.
16453 if test -x /usr/bin/objformat; then
16454 objformat=`/usr/bin/objformat`
16455 else
16456 case $host_os in
16457 freebsd[123]*) objformat=aout ;;
16458 *) objformat=elf ;;
16459 esac
16460 fi
16461 version_type=freebsd-$objformat
16462 case $version_type in
16463 freebsd-elf*)
16464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16465 need_version=no
16466 need_lib_prefix=no
16467 ;;
16468 freebsd-*)
16469 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16470 need_version=yes
16471 ;;
16472 esac
16473 shlibpath_var=LD_LIBRARY_PATH
16474 case $host_os in
16475 freebsd2*)
16476 shlibpath_overrides_runpath=yes
16477 ;;
16478 freebsd3.[01]* | freebsdelf3.[01]*)
16479 shlibpath_overrides_runpath=yes
16480 hardcode_into_libs=yes
16481 ;;
16482 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16483 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16484 shlibpath_overrides_runpath=no
16485 hardcode_into_libs=yes
16486 ;;
16487 *) # from 4.6 on, and DragonFly
16488 shlibpath_overrides_runpath=yes
16489 hardcode_into_libs=yes
16490 ;;
16491 esac
16492 ;;
16493
16494 gnu*)
16495 version_type=linux
16496 need_lib_prefix=no
16497 need_version=no
16498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16499 soname_spec='${libname}${release}${shared_ext}$major'
16500 shlibpath_var=LD_LIBRARY_PATH
16501 hardcode_into_libs=yes
16502 ;;
16503
16504 haiku*)
16505 version_type=linux
16506 need_lib_prefix=no
16507 need_version=no
16508 dynamic_linker="$host_os runtime_loader"
16509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16510 soname_spec='${libname}${release}${shared_ext}$major'
16511 shlibpath_var=LIBRARY_PATH
16512 shlibpath_overrides_runpath=yes
16513 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16514 hardcode_into_libs=yes
16515 ;;
16516
16517 hpux9* | hpux10* | hpux11*)
16518 # Give a soname corresponding to the major version so that dld.sl refuses to
16519 # link against other versions.
16520 version_type=sunos
16521 need_lib_prefix=no
16522 need_version=no
16523 case $host_cpu in
16524 ia64*)
16525 shrext_cmds='.so'
16526 hardcode_into_libs=yes
16527 dynamic_linker="$host_os dld.so"
16528 shlibpath_var=LD_LIBRARY_PATH
16529 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16531 soname_spec='${libname}${release}${shared_ext}$major'
16532 if test "X$HPUX_IA64_MODE" = X32; then
16533 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16534 else
16535 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16536 fi
16537 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16538 ;;
16539 hppa*64*)
16540 shrext_cmds='.sl'
16541 hardcode_into_libs=yes
16542 dynamic_linker="$host_os dld.sl"
16543 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16544 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16546 soname_spec='${libname}${release}${shared_ext}$major'
16547 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16548 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16549 ;;
16550 *)
16551 shrext_cmds='.sl'
16552 dynamic_linker="$host_os dld.sl"
16553 shlibpath_var=SHLIB_PATH
16554 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16556 soname_spec='${libname}${release}${shared_ext}$major'
16557 ;;
16558 esac
16559 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16560 postinstall_cmds='chmod 555 $lib'
16561 # or fails outright, so override atomically:
16562 install_override_mode=555
16563 ;;
16564
16565 interix[3-9]*)
16566 version_type=linux
16567 need_lib_prefix=no
16568 need_version=no
16569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16570 soname_spec='${libname}${release}${shared_ext}$major'
16571 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16572 shlibpath_var=LD_LIBRARY_PATH
16573 shlibpath_overrides_runpath=no
16574 hardcode_into_libs=yes
16575 ;;
16576
16577 irix5* | irix6* | nonstopux*)
16578 case $host_os in
16579 nonstopux*) version_type=nonstopux ;;
16580 *)
16581 if test "$lt_cv_prog_gnu_ld" = yes; then
16582 version_type=linux
16583 else
16584 version_type=irix
16585 fi ;;
16586 esac
16587 need_lib_prefix=no
16588 need_version=no
16589 soname_spec='${libname}${release}${shared_ext}$major'
16590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16591 case $host_os in
16592 irix5* | nonstopux*)
16593 libsuff= shlibsuff=
16594 ;;
16595 *)
16596 case $LD in # libtool.m4 will add one of these switches to LD
16597 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16598 libsuff= shlibsuff= libmagic=32-bit;;
16599 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16600 libsuff=32 shlibsuff=N32 libmagic=N32;;
16601 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16602 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16603 *) libsuff= shlibsuff= libmagic=never-match;;
16604 esac
16605 ;;
16606 esac
16607 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16608 shlibpath_overrides_runpath=no
16609 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16610 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16611 hardcode_into_libs=yes
16612 ;;
16613
16614 # No shared lib support for Linux oldld, aout, or coff.
16615 linux*oldld* | linux*aout* | linux*coff*)
16616 dynamic_linker=no
16617 ;;
16618
16619 # This must be Linux ELF.
16620 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16621 version_type=linux
16622 need_lib_prefix=no
16623 need_version=no
16624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16625 soname_spec='${libname}${release}${shared_ext}$major'
16626 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16627 shlibpath_var=LD_LIBRARY_PATH
16628 shlibpath_overrides_runpath=no
16629
16630 # Some binutils ld are patched to set DT_RUNPATH
16631 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16632 $as_echo_n "(cached) " >&6
16633 else
16634 lt_cv_shlibpath_overrides_runpath=no
16635 save_LDFLAGS=$LDFLAGS
16636 save_libdir=$libdir
16637 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16638 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16640 /* end confdefs.h. */
16641
16642 int
16643 main ()
16644 {
16645
16646 ;
16647 return 0;
16648 }
16649 _ACEOF
16650 if ac_fn_c_try_link "$LINENO"; then :
16651 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16652 lt_cv_shlibpath_overrides_runpath=yes
16653 fi
16654 fi
16655 rm -f core conftest.err conftest.$ac_objext \
16656 conftest$ac_exeext conftest.$ac_ext
16657 LDFLAGS=$save_LDFLAGS
16658 libdir=$save_libdir
16659
16660 fi
16661
16662 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16663
16664 # This implies no fast_install, which is unacceptable.
16665 # Some rework will be needed to allow for fast_install
16666 # before this can be enabled.
16667 hardcode_into_libs=yes
16668
16669 # Add ABI-specific directories to the system library path.
16670 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16671
16672 # Append ld.so.conf contents to the search path
16673 if test -f /etc/ld.so.conf; then
16674 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' ' '`
16675 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16676
16677 fi
16678
16679 # We used to test for /lib/ld.so.1 and disable shared libraries on
16680 # powerpc, because MkLinux only supported shared libraries with the
16681 # GNU dynamic linker. Since this was broken with cross compilers,
16682 # most powerpc-linux boxes support dynamic linking these days and
16683 # people can always --disable-shared, the test was removed, and we
16684 # assume the GNU/Linux dynamic linker is in use.
16685 dynamic_linker='GNU/Linux ld.so'
16686 ;;
16687
16688 netbsd*)
16689 version_type=sunos
16690 need_lib_prefix=no
16691 need_version=no
16692 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16694 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16695 dynamic_linker='NetBSD (a.out) ld.so'
16696 else
16697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16698 soname_spec='${libname}${release}${shared_ext}$major'
16699 dynamic_linker='NetBSD ld.elf_so'
16700 fi
16701 shlibpath_var=LD_LIBRARY_PATH
16702 shlibpath_overrides_runpath=yes
16703 hardcode_into_libs=yes
16704 ;;
16705
16706 newsos6)
16707 version_type=linux
16708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16709 shlibpath_var=LD_LIBRARY_PATH
16710 shlibpath_overrides_runpath=yes
16711 ;;
16712
16713 *nto* | *qnx*)
16714 version_type=qnx
16715 need_lib_prefix=no
16716 need_version=no
16717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16718 soname_spec='${libname}${release}${shared_ext}$major'
16719 shlibpath_var=LD_LIBRARY_PATH
16720 shlibpath_overrides_runpath=no
16721 hardcode_into_libs=yes
16722 dynamic_linker='ldqnx.so'
16723 ;;
16724
16725 openbsd*)
16726 version_type=sunos
16727 sys_lib_dlsearch_path_spec="/usr/lib"
16728 need_lib_prefix=no
16729 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16730 case $host_os in
16731 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16732 *) need_version=no ;;
16733 esac
16734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16735 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16736 shlibpath_var=LD_LIBRARY_PATH
16737 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16738 case $host_os in
16739 openbsd2.[89] | openbsd2.[89].*)
16740 shlibpath_overrides_runpath=no
16741 ;;
16742 *)
16743 shlibpath_overrides_runpath=yes
16744 ;;
16745 esac
16746 else
16747 shlibpath_overrides_runpath=yes
16748 fi
16749 ;;
16750
16751 os2*)
16752 libname_spec='$name'
16753 shrext_cmds=".dll"
16754 need_lib_prefix=no
16755 library_names_spec='$libname${shared_ext} $libname.a'
16756 dynamic_linker='OS/2 ld.exe'
16757 shlibpath_var=LIBPATH
16758 ;;
16759
16760 osf3* | osf4* | osf5*)
16761 version_type=osf
16762 need_lib_prefix=no
16763 need_version=no
16764 soname_spec='${libname}${release}${shared_ext}$major'
16765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16766 shlibpath_var=LD_LIBRARY_PATH
16767 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16768 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16769 ;;
16770
16771 rdos*)
16772 dynamic_linker=no
16773 ;;
16774
16775 solaris*)
16776 version_type=linux
16777 need_lib_prefix=no
16778 need_version=no
16779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16780 soname_spec='${libname}${release}${shared_ext}$major'
16781 shlibpath_var=LD_LIBRARY_PATH
16782 shlibpath_overrides_runpath=yes
16783 hardcode_into_libs=yes
16784 # ldd complains unless libraries are executable
16785 postinstall_cmds='chmod +x $lib'
16786 ;;
16787
16788 sunos4*)
16789 version_type=sunos
16790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16791 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16792 shlibpath_var=LD_LIBRARY_PATH
16793 shlibpath_overrides_runpath=yes
16794 if test "$with_gnu_ld" = yes; then
16795 need_lib_prefix=no
16796 fi
16797 need_version=yes
16798 ;;
16799
16800 sysv4 | sysv4.3*)
16801 version_type=linux
16802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16803 soname_spec='${libname}${release}${shared_ext}$major'
16804 shlibpath_var=LD_LIBRARY_PATH
16805 case $host_vendor in
16806 sni)
16807 shlibpath_overrides_runpath=no
16808 need_lib_prefix=no
16809 runpath_var=LD_RUN_PATH
16810 ;;
16811 siemens)
16812 need_lib_prefix=no
16813 ;;
16814 motorola)
16815 need_lib_prefix=no
16816 need_version=no
16817 shlibpath_overrides_runpath=no
16818 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16819 ;;
16820 esac
16821 ;;
16822
16823 sysv4*MP*)
16824 if test -d /usr/nec ;then
16825 version_type=linux
16826 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16827 soname_spec='$libname${shared_ext}.$major'
16828 shlibpath_var=LD_LIBRARY_PATH
16829 fi
16830 ;;
16831
16832 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16833 version_type=freebsd-elf
16834 need_lib_prefix=no
16835 need_version=no
16836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16837 soname_spec='${libname}${release}${shared_ext}$major'
16838 shlibpath_var=LD_LIBRARY_PATH
16839 shlibpath_overrides_runpath=yes
16840 hardcode_into_libs=yes
16841 if test "$with_gnu_ld" = yes; then
16842 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16843 else
16844 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16845 case $host_os in
16846 sco3.2v5*)
16847 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16848 ;;
16849 esac
16850 fi
16851 sys_lib_dlsearch_path_spec='/usr/lib'
16852 ;;
16853
16854 tpf*)
16855 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16856 version_type=linux
16857 need_lib_prefix=no
16858 need_version=no
16859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16860 shlibpath_var=LD_LIBRARY_PATH
16861 shlibpath_overrides_runpath=no
16862 hardcode_into_libs=yes
16863 ;;
16864
16865 uts4*)
16866 version_type=linux
16867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16868 soname_spec='${libname}${release}${shared_ext}$major'
16869 shlibpath_var=LD_LIBRARY_PATH
16870 ;;
16871
16872 *)
16873 dynamic_linker=no
16874 ;;
16875 esac
16876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16877 $as_echo "$dynamic_linker" >&6; }
16878 test "$dynamic_linker" = no && can_build_shared=no
16879
16880 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16881 if test "$GCC" = yes; then
16882 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16883 fi
16884
16885 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16886 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16887 fi
16888 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16889 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16890 fi
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16984 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16985 hardcode_action=
16986 if test -n "$hardcode_libdir_flag_spec" ||
16987 test -n "$runpath_var" ||
16988 test "X$hardcode_automatic" = "Xyes" ; then
16989
16990 # We can hardcode non-existent directories.
16991 if test "$hardcode_direct" != no &&
16992 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16993 # have to relink, otherwise we might link with an installed library
16994 # when we should be linking with a yet-to-be-installed one
16995 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16996 test "$hardcode_minus_L" != no; then
16997 # Linking always hardcodes the temporary library directory.
16998 hardcode_action=relink
16999 else
17000 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17001 hardcode_action=immediate
17002 fi
17003 else
17004 # We cannot hardcode anything, or else we can only hardcode existing
17005 # directories.
17006 hardcode_action=unsupported
17007 fi
17008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17009 $as_echo "$hardcode_action" >&6; }
17010
17011 if test "$hardcode_action" = relink ||
17012 test "$inherit_rpath" = yes; then
17013 # Fast installation is not supported
17014 enable_fast_install=no
17015 elif test "$shlibpath_overrides_runpath" = yes ||
17016 test "$enable_shared" = no; then
17017 # Fast installation is not necessary
17018 enable_fast_install=needless
17019 fi
17020
17021
17022
17023
17024
17025
17026 if test "x$enable_dlopen" != xyes; then
17027 enable_dlopen=unknown
17028 enable_dlopen_self=unknown
17029 enable_dlopen_self_static=unknown
17030 else
17031 lt_cv_dlopen=no
17032 lt_cv_dlopen_libs=
17033
17034 case $host_os in
17035 beos*)
17036 lt_cv_dlopen="load_add_on"
17037 lt_cv_dlopen_libs=
17038 lt_cv_dlopen_self=yes
17039 ;;
17040
17041 mingw* | pw32* | cegcc*)
17042 lt_cv_dlopen="LoadLibrary"
17043 lt_cv_dlopen_libs=
17044 ;;
17045
17046 cygwin*)
17047 lt_cv_dlopen="dlopen"
17048 lt_cv_dlopen_libs=
17049 ;;
17050
17051 darwin*)
17052 # if libdl is installed we need to link against it
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17054 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17055 if ${ac_cv_lib_dl_dlopen+:} false; then :
17056 $as_echo_n "(cached) " >&6
17057 else
17058 ac_check_lib_save_LIBS=$LIBS
17059 LIBS="-ldl $LIBS"
17060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17061 /* end confdefs.h. */
17062
17063 /* Override any GCC internal prototype to avoid an error.
17064 Use char because int might match the return type of a GCC
17065 builtin and then its argument prototype would still apply. */
17066 #ifdef __cplusplus
17067 extern "C"
17068 #endif
17069 char dlopen ();
17070 int
17071 main ()
17072 {
17073 return dlopen ();
17074 ;
17075 return 0;
17076 }
17077 _ACEOF
17078 if ac_fn_c_try_link "$LINENO"; then :
17079 ac_cv_lib_dl_dlopen=yes
17080 else
17081 ac_cv_lib_dl_dlopen=no
17082 fi
17083 rm -f core conftest.err conftest.$ac_objext \
17084 conftest$ac_exeext conftest.$ac_ext
17085 LIBS=$ac_check_lib_save_LIBS
17086 fi
17087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17088 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17089 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17090 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17091 else
17092
17093 lt_cv_dlopen="dyld"
17094 lt_cv_dlopen_libs=
17095 lt_cv_dlopen_self=yes
17096
17097 fi
17098
17099 ;;
17100
17101 *)
17102 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17103 if test "x$ac_cv_func_shl_load" = xyes; then :
17104 lt_cv_dlopen="shl_load"
17105 else
17106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17107 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17108 if ${ac_cv_lib_dld_shl_load+:} false; then :
17109 $as_echo_n "(cached) " >&6
17110 else
17111 ac_check_lib_save_LIBS=$LIBS
17112 LIBS="-ldld $LIBS"
17113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17114 /* end confdefs.h. */
17115
17116 /* Override any GCC internal prototype to avoid an error.
17117 Use char because int might match the return type of a GCC
17118 builtin and then its argument prototype would still apply. */
17119 #ifdef __cplusplus
17120 extern "C"
17121 #endif
17122 char shl_load ();
17123 int
17124 main ()
17125 {
17126 return shl_load ();
17127 ;
17128 return 0;
17129 }
17130 _ACEOF
17131 if ac_fn_c_try_link "$LINENO"; then :
17132 ac_cv_lib_dld_shl_load=yes
17133 else
17134 ac_cv_lib_dld_shl_load=no
17135 fi
17136 rm -f core conftest.err conftest.$ac_objext \
17137 conftest$ac_exeext conftest.$ac_ext
17138 LIBS=$ac_check_lib_save_LIBS
17139 fi
17140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17141 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17142 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17143 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17144 else
17145 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17146 if test "x$ac_cv_func_dlopen" = xyes; then :
17147 lt_cv_dlopen="dlopen"
17148 else
17149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17150 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17151 if ${ac_cv_lib_dl_dlopen+:} false; then :
17152 $as_echo_n "(cached) " >&6
17153 else
17154 ac_check_lib_save_LIBS=$LIBS
17155 LIBS="-ldl $LIBS"
17156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17157 /* end confdefs.h. */
17158
17159 /* Override any GCC internal prototype to avoid an error.
17160 Use char because int might match the return type of a GCC
17161 builtin and then its argument prototype would still apply. */
17162 #ifdef __cplusplus
17163 extern "C"
17164 #endif
17165 char dlopen ();
17166 int
17167 main ()
17168 {
17169 return dlopen ();
17170 ;
17171 return 0;
17172 }
17173 _ACEOF
17174 if ac_fn_c_try_link "$LINENO"; then :
17175 ac_cv_lib_dl_dlopen=yes
17176 else
17177 ac_cv_lib_dl_dlopen=no
17178 fi
17179 rm -f core conftest.err conftest.$ac_objext \
17180 conftest$ac_exeext conftest.$ac_ext
17181 LIBS=$ac_check_lib_save_LIBS
17182 fi
17183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17184 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17185 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17186 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17187 else
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17189 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17190 if ${ac_cv_lib_svld_dlopen+:} false; then :
17191 $as_echo_n "(cached) " >&6
17192 else
17193 ac_check_lib_save_LIBS=$LIBS
17194 LIBS="-lsvld $LIBS"
17195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17196 /* end confdefs.h. */
17197
17198 /* Override any GCC internal prototype to avoid an error.
17199 Use char because int might match the return type of a GCC
17200 builtin and then its argument prototype would still apply. */
17201 #ifdef __cplusplus
17202 extern "C"
17203 #endif
17204 char dlopen ();
17205 int
17206 main ()
17207 {
17208 return dlopen ();
17209 ;
17210 return 0;
17211 }
17212 _ACEOF
17213 if ac_fn_c_try_link "$LINENO"; then :
17214 ac_cv_lib_svld_dlopen=yes
17215 else
17216 ac_cv_lib_svld_dlopen=no
17217 fi
17218 rm -f core conftest.err conftest.$ac_objext \
17219 conftest$ac_exeext conftest.$ac_ext
17220 LIBS=$ac_check_lib_save_LIBS
17221 fi
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17223 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17224 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17225 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17226 else
17227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17228 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17229 if ${ac_cv_lib_dld_dld_link+:} false; then :
17230 $as_echo_n "(cached) " >&6
17231 else
17232 ac_check_lib_save_LIBS=$LIBS
17233 LIBS="-ldld $LIBS"
17234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17235 /* end confdefs.h. */
17236
17237 /* Override any GCC internal prototype to avoid an error.
17238 Use char because int might match the return type of a GCC
17239 builtin and then its argument prototype would still apply. */
17240 #ifdef __cplusplus
17241 extern "C"
17242 #endif
17243 char dld_link ();
17244 int
17245 main ()
17246 {
17247 return dld_link ();
17248 ;
17249 return 0;
17250 }
17251 _ACEOF
17252 if ac_fn_c_try_link "$LINENO"; then :
17253 ac_cv_lib_dld_dld_link=yes
17254 else
17255 ac_cv_lib_dld_dld_link=no
17256 fi
17257 rm -f core conftest.err conftest.$ac_objext \
17258 conftest$ac_exeext conftest.$ac_ext
17259 LIBS=$ac_check_lib_save_LIBS
17260 fi
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17262 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17263 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17264 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17265 fi
17266
17267
17268 fi
17269
17270
17271 fi
17272
17273
17274 fi
17275
17276
17277 fi
17278
17279
17280 fi
17281
17282 ;;
17283 esac
17284
17285 if test "x$lt_cv_dlopen" != xno; then
17286 enable_dlopen=yes
17287 else
17288 enable_dlopen=no
17289 fi
17290
17291 case $lt_cv_dlopen in
17292 dlopen)
17293 save_CPPFLAGS="$CPPFLAGS"
17294 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17295
17296 save_LDFLAGS="$LDFLAGS"
17297 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17298
17299 save_LIBS="$LIBS"
17300 LIBS="$lt_cv_dlopen_libs $LIBS"
17301
17302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17303 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17304 if ${lt_cv_dlopen_self+:} false; then :
17305 $as_echo_n "(cached) " >&6
17306 else
17307 if test "$cross_compiling" = yes; then :
17308 lt_cv_dlopen_self=cross
17309 else
17310 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17311 lt_status=$lt_dlunknown
17312 cat > conftest.$ac_ext <<_LT_EOF
17313 #line $LINENO "configure"
17314 #include "confdefs.h"
17315
17316 #if HAVE_DLFCN_H
17317 #include <dlfcn.h>
17318 #endif
17319
17320 #include <stdio.h>
17321
17322 #ifdef RTLD_GLOBAL
17323 # define LT_DLGLOBAL RTLD_GLOBAL
17324 #else
17325 # ifdef DL_GLOBAL
17326 # define LT_DLGLOBAL DL_GLOBAL
17327 # else
17328 # define LT_DLGLOBAL 0
17329 # endif
17330 #endif
17331
17332 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17333 find out it does not work in some platform. */
17334 #ifndef LT_DLLAZY_OR_NOW
17335 # ifdef RTLD_LAZY
17336 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17337 # else
17338 # ifdef DL_LAZY
17339 # define LT_DLLAZY_OR_NOW DL_LAZY
17340 # else
17341 # ifdef RTLD_NOW
17342 # define LT_DLLAZY_OR_NOW RTLD_NOW
17343 # else
17344 # ifdef DL_NOW
17345 # define LT_DLLAZY_OR_NOW DL_NOW
17346 # else
17347 # define LT_DLLAZY_OR_NOW 0
17348 # endif
17349 # endif
17350 # endif
17351 # endif
17352 #endif
17353
17354 /* When -fvisbility=hidden is used, assume the code has been annotated
17355 correspondingly for the symbols needed. */
17356 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17357 int fnord () __attribute__((visibility("default")));
17358 #endif
17359
17360 int fnord () { return 42; }
17361 int main ()
17362 {
17363 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17364 int status = $lt_dlunknown;
17365
17366 if (self)
17367 {
17368 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17369 else
17370 {
17371 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17372 else puts (dlerror ());
17373 }
17374 /* dlclose (self); */
17375 }
17376 else
17377 puts (dlerror ());
17378
17379 return status;
17380 }
17381 _LT_EOF
17382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17383 (eval $ac_link) 2>&5
17384 ac_status=$?
17385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17386 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17387 (./conftest; exit; ) >&5 2>/dev/null
17388 lt_status=$?
17389 case x$lt_status in
17390 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17391 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17392 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17393 esac
17394 else :
17395 # compilation failed
17396 lt_cv_dlopen_self=no
17397 fi
17398 fi
17399 rm -fr conftest*
17400
17401
17402 fi
17403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17404 $as_echo "$lt_cv_dlopen_self" >&6; }
17405
17406 if test "x$lt_cv_dlopen_self" = xyes; then
17407 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17409 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17410 if ${lt_cv_dlopen_self_static+:} false; then :
17411 $as_echo_n "(cached) " >&6
17412 else
17413 if test "$cross_compiling" = yes; then :
17414 lt_cv_dlopen_self_static=cross
17415 else
17416 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17417 lt_status=$lt_dlunknown
17418 cat > conftest.$ac_ext <<_LT_EOF
17419 #line $LINENO "configure"
17420 #include "confdefs.h"
17421
17422 #if HAVE_DLFCN_H
17423 #include <dlfcn.h>
17424 #endif
17425
17426 #include <stdio.h>
17427
17428 #ifdef RTLD_GLOBAL
17429 # define LT_DLGLOBAL RTLD_GLOBAL
17430 #else
17431 # ifdef DL_GLOBAL
17432 # define LT_DLGLOBAL DL_GLOBAL
17433 # else
17434 # define LT_DLGLOBAL 0
17435 # endif
17436 #endif
17437
17438 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17439 find out it does not work in some platform. */
17440 #ifndef LT_DLLAZY_OR_NOW
17441 # ifdef RTLD_LAZY
17442 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17443 # else
17444 # ifdef DL_LAZY
17445 # define LT_DLLAZY_OR_NOW DL_LAZY
17446 # else
17447 # ifdef RTLD_NOW
17448 # define LT_DLLAZY_OR_NOW RTLD_NOW
17449 # else
17450 # ifdef DL_NOW
17451 # define LT_DLLAZY_OR_NOW DL_NOW
17452 # else
17453 # define LT_DLLAZY_OR_NOW 0
17454 # endif
17455 # endif
17456 # endif
17457 # endif
17458 #endif
17459
17460 /* When -fvisbility=hidden is used, assume the code has been annotated
17461 correspondingly for the symbols needed. */
17462 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17463 int fnord () __attribute__((visibility("default")));
17464 #endif
17465
17466 int fnord () { return 42; }
17467 int main ()
17468 {
17469 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17470 int status = $lt_dlunknown;
17471
17472 if (self)
17473 {
17474 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17475 else
17476 {
17477 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17478 else puts (dlerror ());
17479 }
17480 /* dlclose (self); */
17481 }
17482 else
17483 puts (dlerror ());
17484
17485 return status;
17486 }
17487 _LT_EOF
17488 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17489 (eval $ac_link) 2>&5
17490 ac_status=$?
17491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17492 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17493 (./conftest; exit; ) >&5 2>/dev/null
17494 lt_status=$?
17495 case x$lt_status in
17496 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17497 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17498 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17499 esac
17500 else :
17501 # compilation failed
17502 lt_cv_dlopen_self_static=no
17503 fi
17504 fi
17505 rm -fr conftest*
17506
17507
17508 fi
17509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17510 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17511 fi
17512
17513 CPPFLAGS="$save_CPPFLAGS"
17514 LDFLAGS="$save_LDFLAGS"
17515 LIBS="$save_LIBS"
17516 ;;
17517 esac
17518
17519 case $lt_cv_dlopen_self in
17520 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17521 *) enable_dlopen_self=unknown ;;
17522 esac
17523
17524 case $lt_cv_dlopen_self_static in
17525 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17526 *) enable_dlopen_self_static=unknown ;;
17527 esac
17528 fi
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546 striplib=
17547 old_striplib=
17548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17549 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17550 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17551 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17552 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17554 $as_echo "yes" >&6; }
17555 else
17556 # FIXME - insert some real tests, host_os isn't really good enough
17557 case $host_os in
17558 darwin*)
17559 if test -n "$STRIP" ; then
17560 striplib="$STRIP -x"
17561 old_striplib="$STRIP -S"
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17563 $as_echo "yes" >&6; }
17564 else
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17566 $as_echo "no" >&6; }
17567 fi
17568 ;;
17569 *)
17570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17571 $as_echo "no" >&6; }
17572 ;;
17573 esac
17574 fi
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587 # Report which library types will actually be built
17588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17589 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17591 $as_echo "$can_build_shared" >&6; }
17592
17593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17594 $as_echo_n "checking whether to build shared libraries... " >&6; }
17595 test "$can_build_shared" = "no" && enable_shared=no
17596
17597 # On AIX, shared libraries and static libraries use the same namespace, and
17598 # are all built from PIC.
17599 case $host_os in
17600 aix3*)
17601 test "$enable_shared" = yes && enable_static=no
17602 if test -n "$RANLIB"; then
17603 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17604 postinstall_cmds='$RANLIB $lib'
17605 fi
17606 ;;
17607
17608 aix[4-9]*)
17609 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17610 test "$enable_shared" = yes && enable_static=no
17611 fi
17612 ;;
17613 esac
17614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17615 $as_echo "$enable_shared" >&6; }
17616
17617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17618 $as_echo_n "checking whether to build static libraries... " >&6; }
17619 # Make sure either enable_shared or enable_static is yes.
17620 test "$enable_shared" = yes || enable_static=yes
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17622 $as_echo "$enable_static" >&6; }
17623
17624
17625
17626
17627 fi
17628 ac_ext=c
17629 ac_cpp='$CPP $CPPFLAGS'
17630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17633
17634 CC="$lt_save_CC"
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648 ac_config_commands="$ac_config_commands libtool"
17649
17650
17651
17652
17653 # Only expand once:
17654
17655
17656
17657
17658
17659 # Define a configure option for an alternate module directory
17660
17661 # Check whether --with-xorg-module-dir was given.
17662 if test "${with_xorg_module_dir+set}" = set; then :
17663 withval=$with_xorg_module_dir; moduledir="$withval"
17664 else
17665 moduledir="$libdir/xorg/modules"
17666 fi
17667
17668
17669 # Store the list of server defined optional extensions in REQUIRED_MODULES
17670
17671
17672 SAVE_CFLAGS="$CFLAGS"
17673 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17675 /* end confdefs.h. */
17676
17677 #include "xorg-server.h"
17678 #if !defined RANDR
17679 #error RANDR not defined
17680 #endif
17681
17682 int
17683 main ()
17684 {
17685
17686 ;
17687 return 0;
17688 }
17689 _ACEOF
17690 if ac_fn_c_try_compile "$LINENO"; then :
17691 _EXT_CHECK=yes
17692 else
17693 _EXT_CHECK=no
17694 fi
17695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17696 CFLAGS="$SAVE_CFLAGS"
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
17698 $as_echo_n "checking if RANDR is defined... " >&6; }
17699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17700 $as_echo "$_EXT_CHECK" >&6; }
17701 if test "$_EXT_CHECK" != no; then
17702 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
17703 fi
17704
17705
17706
17707 SAVE_CFLAGS="$CFLAGS"
17708 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17710 /* end confdefs.h. */
17711
17712 #include "xorg-server.h"
17713 #if !defined RENDER
17714 #error RENDER not defined
17715 #endif
17716
17717 int
17718 main ()
17719 {
17720
17721 ;
17722 return 0;
17723 }
17724 _ACEOF
17725 if ac_fn_c_try_compile "$LINENO"; then :
17726 _EXT_CHECK=yes
17727 else
17728 _EXT_CHECK=no
17729 fi
17730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17731 CFLAGS="$SAVE_CFLAGS"
17732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
17733 $as_echo_n "checking if RENDER is defined... " >&6; }
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17735 $as_echo "$_EXT_CHECK" >&6; }
17736 if test "$_EXT_CHECK" != no; then
17737 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
17738 fi
17739
17740
17741
17742 SAVE_CFLAGS="$CFLAGS"
17743 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17745 /* end confdefs.h. */
17746
17747 #include "xorg-server.h"
17748 #if !defined XV
17749 #error XV not defined
17750 #endif
17751
17752 int
17753 main ()
17754 {
17755
17756 ;
17757 return 0;
17758 }
17759 _ACEOF
17760 if ac_fn_c_try_compile "$LINENO"; then :
17761 _EXT_CHECK=yes
17762 else
17763 _EXT_CHECK=no
17764 fi
17765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17766 CFLAGS="$SAVE_CFLAGS"
17767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
17768 $as_echo_n "checking if XV is defined... " >&6; }
17769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17770 $as_echo "$_EXT_CHECK" >&6; }
17771 if test "$_EXT_CHECK" != no; then
17772 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
17773 fi
17774
17775
17776
17777 SAVE_CFLAGS="$CFLAGS"
17778 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17780 /* end confdefs.h. */
17781
17782 #include "xorg-server.h"
17783 #if !defined DPMSExtension
17784 #error DPMSExtension not defined
17785 #endif
17786
17787 int
17788 main ()
17789 {
17790
17791 ;
17792 return 0;
17793 }
17794 _ACEOF
17795 if ac_fn_c_try_compile "$LINENO"; then :
17796 _EXT_CHECK=yes
17797 else
17798 _EXT_CHECK=no
17799 fi
17800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17801 CFLAGS="$SAVE_CFLAGS"
17802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
17803 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
17804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17805 $as_echo "$_EXT_CHECK" >&6; }
17806 if test "$_EXT_CHECK" != no; then
17807 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
17808 fi
17809
17810
17811 # Obtain compiler/linker options for the driver dependencies
17812
17813 pkg_failed=no
17814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
17815 $as_echo_n "checking for XORG... " >&6; }
17816
17817 if test -n "$XORG_CFLAGS"; then
17818 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
17819 elif test -n "$PKG_CONFIG"; then
17820 if test -n "$PKG_CONFIG" && \
17821 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17822 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
17823 ac_status=$?
17824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17825 test $ac_status = 0; }; then
17826 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17827 else
17828 pkg_failed=yes
17829 fi
17830 else
17831 pkg_failed=untried
17832 fi
17833 if test -n "$XORG_LIBS"; then
17834 pkg_cv_XORG_LIBS="$XORG_LIBS"
17835 elif test -n "$PKG_CONFIG"; then
17836 if test -n "$PKG_CONFIG" && \
17837 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17838 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
17839 ac_status=$?
17840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17841 test $ac_status = 0; }; then
17842 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17843 else
17844 pkg_failed=yes
17845 fi
17846 else
17847 pkg_failed=untried
17848 fi
17849
17850
17851
17852 if test $pkg_failed = yes; then
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17854 $as_echo "no" >&6; }
17855
17856 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17857 _pkg_short_errors_supported=yes
17858 else
17859 _pkg_short_errors_supported=no
17860 fi
17861 if test $_pkg_short_errors_supported = yes; then
17862 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
17863 else
17864 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
17865 fi
17866 # Put the nasty error message in config.log where it belongs
17867 echo "$XORG_PKG_ERRORS" >&5
17868
17869 as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
17870
17871 $XORG_PKG_ERRORS
17872
17873 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17874 installed software in a non-standard prefix.
17875
17876 Alternatively, you may set the environment variables XORG_CFLAGS
17877 and XORG_LIBS to avoid the need to call pkg-config.
17878 See the pkg-config man page for more details." "$LINENO" 5
17879
17880 elif test $pkg_failed = untried; then
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17882 $as_echo "no" >&6; }
17883 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17884 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17885 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17886 is in your PATH or set the PKG_CONFIG environment variable to the full
17887 path to pkg-config.
17888
17889 Alternatively, you may set the environment variables XORG_CFLAGS
17890 and XORG_LIBS to avoid the need to call pkg-config.
17891 See the pkg-config man page for more details.
17892
17893 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17894 See \`config.log' for more details" "$LINENO" 5; }
17895
17896 else
17897 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
17898 XORG_LIBS=$pkg_cv_XORG_LIBS
17899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17900 $as_echo "yes" >&6; }
17901
17902 fi
17903
17904 # Checks for libraries.
17905 SAVE_CPPFLAGS="$CPPFLAGS"
17906 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
17907 ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
17908 "
17909 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
17910 XSERVER_LIBPCIACCESS=yes
17911 else
17912 XSERVER_LIBPCIACCESS=no
17913 fi
17914
17915 CPPFLAGS="$SAVE_CPPFLAGS"
17916
17917 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
17918
17919 pkg_failed=no
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
17921 $as_echo_n "checking for PCIACCESS... " >&6; }
17922
17923 if test -n "$PCIACCESS_CFLAGS"; then
17924 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
17925 elif test -n "$PKG_CONFIG"; then
17926 if test -n "$PKG_CONFIG" && \
17927 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
17928 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
17929 ac_status=$?
17930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17931 test $ac_status = 0; }; then
17932 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
17933 else
17934 pkg_failed=yes
17935 fi
17936 else
17937 pkg_failed=untried
17938 fi
17939 if test -n "$PCIACCESS_LIBS"; then
17940 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
17941 elif test -n "$PKG_CONFIG"; then
17942 if test -n "$PKG_CONFIG" && \
17943 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
17944 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
17945 ac_status=$?
17946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17947 test $ac_status = 0; }; then
17948 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
17949 else
17950 pkg_failed=yes
17951 fi
17952 else
17953 pkg_failed=untried
17954 fi
17955
17956
17957
17958 if test $pkg_failed = yes; then
17959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17960 $as_echo "no" >&6; }
17961
17962 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17963 _pkg_short_errors_supported=yes
17964 else
17965 _pkg_short_errors_supported=no
17966 fi
17967 if test $_pkg_short_errors_supported = yes; then
17968 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1`
17969 else
17970 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1`
17971 fi
17972 # Put the nasty error message in config.log where it belongs
17973 echo "$PCIACCESS_PKG_ERRORS" >&5
17974
17975 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
17976
17977 $PCIACCESS_PKG_ERRORS
17978
17979 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17980 installed software in a non-standard prefix.
17981
17982 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
17983 and PCIACCESS_LIBS to avoid the need to call pkg-config.
17984 See the pkg-config man page for more details." "$LINENO" 5
17985
17986 elif test $pkg_failed = untried; then
17987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17988 $as_echo "no" >&6; }
17989 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17991 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17992 is in your PATH or set the PKG_CONFIG environment variable to the full
17993 path to pkg-config.
17994
17995 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
17996 and PCIACCESS_LIBS to avoid the need to call pkg-config.
17997 See the pkg-config man page for more details.
17998
17999 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18000 See \`config.log' for more details" "$LINENO" 5; }
18001
18002 else
18003 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18004 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18006 $as_echo "yes" >&6; }
18007
18008 fi
18009 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
18010 fi
18011 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18012 XSERVER_LIBPCIACCESS_TRUE=
18013 XSERVER_LIBPCIACCESS_FALSE='#'
18014 else
18015 XSERVER_LIBPCIACCESS_TRUE='#'
18016 XSERVER_LIBPCIACCESS_FALSE=
18017 fi
18018
18019
18020 # Check whether --enable-xaa was given.
18021 if test "${enable_xaa+set}" = set; then :
18022 enableval=$enable_xaa; XAA="$enableval"
18023 else
18024 XAA=auto
18025 fi
18026
18027 if test "x$XAA" != xno; then
18028 save_CFLAGS=$CFLAGS
18029 save_CPPFLAGS=$CPPFLAGS
18030 CFLAGS=$XORG_CFLAGS
18031 CPPFLAGS="$XORG_CFLAGS"
18032 for ac_header in xaa.h
18033 do :
18034 ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
18035 if test "x$ac_cv_header_xaa_h" = xyes; then :
18036 cat >>confdefs.h <<_ACEOF
18037 #define HAVE_XAA_H 1
18038 _ACEOF
18039 XAA=yes
18040 else
18041 XAA=no
18042 fi
18043
18044 done
18045
18046 CFLAGS=$save_CFLAGS
18047 CPPFLAGS=$save_CPPFLAGS
18048 fi
18049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
18050 $as_echo_n "checking whether to include XAA support... " >&6; }
18051 if test "x$XAA" = xyes; then
18052 XAA_TRUE=
18053 XAA_FALSE='#'
18054 else
18055 XAA_TRUE='#'
18056 XAA_FALSE=
18057 fi
18058
18059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
18060 $as_echo "$XAA" >&6; }
18061
18062
18063
18064
18065 DRIVER_NAME=nv
18066
18067
18068 ac_config_files="$ac_config_files Makefile src/Makefile"
18069
18070 cat >confcache <<\_ACEOF
18071 # This file is a shell script that caches the results of configure
18072 # tests run on this system so they can be shared between configure
18073 # scripts and configure runs, see configure's option --config-cache.
18074 # It is not useful on other systems. If it contains results you don't
18075 # want to keep, you may remove or edit it.
18076 #
18077 # config.status only pays attention to the cache file if you give it
18078 # the --recheck option to rerun configure.
18079 #
18080 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18081 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18082 # following values.
18083
18084 _ACEOF
18085
18086 # The following way of writing the cache mishandles newlines in values,
18087 # but we know of no workaround that is simple, portable, and efficient.
18088 # So, we kill variables containing newlines.
18089 # Ultrix sh set writes to stderr and can't be redirected directly,
18090 # and sets the high bit in the cache file unless we assign to the vars.
18091 (
18092 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18093 eval ac_val=\$$ac_var
18094 case $ac_val in #(
18095 *${as_nl}*)
18096 case $ac_var in #(
18097 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18098 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18099 esac
18100 case $ac_var in #(
18101 _ | IFS | as_nl) ;; #(
18102 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18103 *) { eval $ac_var=; unset $ac_var;} ;;
18104 esac ;;
18105 esac
18106 done
18107
18108 (set) 2>&1 |
18109 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18110 *${as_nl}ac_space=\ *)
18111 # `set' does not quote correctly, so add quotes: double-quote
18112 # substitution turns \\\\ into \\, and sed turns \\ into \.
18113 sed -n \
18114 "s/'/'\\\\''/g;
18115 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18116 ;; #(
18117 *)
18118 # `set' quotes correctly as required by POSIX, so do not add quotes.
18119 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18120 ;;
18121 esac |
18122 sort
18123 ) |
18124 sed '
18125 /^ac_cv_env_/b end
18126 t clear
18127 :clear
18128 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18129 t end
18130 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18131 :end' >>confcache
18132 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18133 if test -w "$cache_file"; then
18134 if test "x$cache_file" != "x/dev/null"; then
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18136 $as_echo "$as_me: updating cache $cache_file" >&6;}
18137 if test ! -f "$cache_file" || test -h "$cache_file"; then
18138 cat confcache >"$cache_file"
18139 else
18140 case $cache_file in #(
18141 */* | ?:*)
18142 mv -f confcache "$cache_file"$$ &&
18143 mv -f "$cache_file"$$ "$cache_file" ;; #(
18144 *)
18145 mv -f confcache "$cache_file" ;;
18146 esac
18147 fi
18148 fi
18149 else
18150 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18151 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18152 fi
18153 fi
18154 rm -f confcache
18155
18156 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18157 # Let make expand exec_prefix.
18158 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18159
18160 DEFS=-DHAVE_CONFIG_H
18161
18162 ac_libobjs=
18163 ac_ltlibobjs=
18164 U=
18165 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18166 # 1. Remove the extension, and $U if already installed.
18167 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18168 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18169 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18170 # will be set to the directory where LIBOBJS objects are built.
18171 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18172 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18173 done
18174 LIBOBJS=$ac_libobjs
18175
18176 LTLIBOBJS=$ac_ltlibobjs
18177
18178
18179 if test -n "$EXEEXT"; then
18180 am__EXEEXT_TRUE=
18181 am__EXEEXT_FALSE='#'
18182 else
18183 am__EXEEXT_TRUE='#'
18184 am__EXEEXT_FALSE=
18185 fi
18186
18187 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18188 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18189 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18190 fi
18191 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18192 as_fn_error $? "conditional \"AMDEP\" was never defined.
18193 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18194 fi
18195 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18196 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18197 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18198 fi
18199 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
18200 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
18201 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18202 fi
18203 if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
18204 as_fn_error $? "conditional \"XAA\" was never defined.
18205 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18206 fi
18207
18208 : "${CONFIG_STATUS=./config.status}"
18209 ac_write_fail=0
18210 ac_clean_files_save=$ac_clean_files
18211 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18213 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18214 as_write_fail=0
18215 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18216 #! $SHELL
18217 # Generated by $as_me.
18218 # Run this file to recreate the current configuration.
18219 # Compiler output produced by configure, useful for debugging
18220 # configure, is in config.log if it exists.
18221
18222 debug=false
18223 ac_cs_recheck=false
18224 ac_cs_silent=false
18225
18226 SHELL=\${CONFIG_SHELL-$SHELL}
18227 export SHELL
18228 _ASEOF
18229 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18230 ## -------------------- ##
18231 ## M4sh Initialization. ##
18232 ## -------------------- ##
18233
18234 # Be more Bourne compatible
18235 DUALCASE=1; export DUALCASE # for MKS sh
18236 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18237 emulate sh
18238 NULLCMD=:
18239 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18240 # is contrary to our usage. Disable this feature.
18241 alias -g '${1+"$@"}'='"$@"'
18242 setopt NO_GLOB_SUBST
18243 else
18244 case `(set -o) 2>/dev/null` in #(
18245 *posix*) :
18246 set -o posix ;; #(
18247 *) :
18248 ;;
18249 esac
18250 fi
18251
18252
18253 as_nl='
18254 '
18255 export as_nl
18256 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18257 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18258 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18259 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18260 # Prefer a ksh shell builtin over an external printf program on Solaris,
18261 # but without wasting forks for bash or zsh.
18262 if test -z "$BASH_VERSION$ZSH_VERSION" \
18263 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18264 as_echo='print -r --'
18265 as_echo_n='print -rn --'
18266 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18267 as_echo='printf %s\n'
18268 as_echo_n='printf %s'
18269 else
18270 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18271 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18272 as_echo_n='/usr/ucb/echo -n'
18273 else
18274 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18275 as_echo_n_body='eval
18276 arg=$1;
18277 case $arg in #(
18278 *"$as_nl"*)
18279 expr "X$arg" : "X\\(.*\\)$as_nl";
18280 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18281 esac;
18282 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18283 '
18284 export as_echo_n_body
18285 as_echo_n='sh -c $as_echo_n_body as_echo'
18286 fi
18287 export as_echo_body
18288 as_echo='sh -c $as_echo_body as_echo'
18289 fi
18290
18291 # The user is always right.
18292 if test "${PATH_SEPARATOR+set}" != set; then
18293 PATH_SEPARATOR=:
18294 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18295 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18296 PATH_SEPARATOR=';'
18297 }
18298 fi
18299
18300
18301 # IFS
18302 # We need space, tab and new line, in precisely that order. Quoting is
18303 # there to prevent editors from complaining about space-tab.
18304 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18305 # splitting by setting IFS to empty value.)
18306 IFS=" "" $as_nl"
18307
18308 # Find who we are. Look in the path if we contain no directory separator.
18309 as_myself=
18310 case $0 in #((
18311 *[\\/]* ) as_myself=$0 ;;
18312 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18313 for as_dir in $PATH
18314 do
18315 IFS=$as_save_IFS
18316 test -z "$as_dir" && as_dir=.
18317 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18318 done
18319 IFS=$as_save_IFS
18320
18321 ;;
18322 esac
18323 # We did not find ourselves, most probably we were run as `sh COMMAND'
18324 # in which case we are not to be found in the path.
18325 if test "x$as_myself" = x; then
18326 as_myself=$0
18327 fi
18328 if test ! -f "$as_myself"; then
18329 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18330 exit 1
18331 fi
18332
18333 # Unset variables that we do not need and which cause bugs (e.g. in
18334 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18335 # suppresses any "Segmentation fault" message there. '((' could
18336 # trigger a bug in pdksh 5.2.14.
18337 for as_var in BASH_ENV ENV MAIL MAILPATH
18338 do eval test x\${$as_var+set} = xset \
18339 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18340 done
18341 PS1='$ '
18342 PS2='> '
18343 PS4='+ '
18344
18345 # NLS nuisances.
18346 LC_ALL=C
18347 export LC_ALL
18348 LANGUAGE=C
18349 export LANGUAGE
18350
18351 # CDPATH.
18352 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18353
18354
18355 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18356 # ----------------------------------------
18357 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18358 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18359 # script with STATUS, using 1 if that was 0.
18360 as_fn_error ()
18361 {
18362 as_status=$1; test $as_status -eq 0 && as_status=1
18363 if test "$4"; then
18364 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18365 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18366 fi
18367 $as_echo "$as_me: error: $2" >&2
18368 as_fn_exit $as_status
18369 } # as_fn_error
18370
18371
18372 # as_fn_set_status STATUS
18373 # -----------------------
18374 # Set $? to STATUS, without forking.
18375 as_fn_set_status ()
18376 {
18377 return $1
18378 } # as_fn_set_status
18379
18380 # as_fn_exit STATUS
18381 # -----------------
18382 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18383 as_fn_exit ()
18384 {
18385 set +e
18386 as_fn_set_status $1
18387 exit $1
18388 } # as_fn_exit
18389
18390 # as_fn_unset VAR
18391 # ---------------
18392 # Portably unset VAR.
18393 as_fn_unset ()
18394 {
18395 { eval $1=; unset $1;}
18396 }
18397 as_unset=as_fn_unset
18398 # as_fn_append VAR VALUE
18399 # ----------------------
18400 # Append the text in VALUE to the end of the definition contained in VAR. Take
18401 # advantage of any shell optimizations that allow amortized linear growth over
18402 # repeated appends, instead of the typical quadratic growth present in naive
18403 # implementations.
18404 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18405 eval 'as_fn_append ()
18406 {
18407 eval $1+=\$2
18408 }'
18409 else
18410 as_fn_append ()
18411 {
18412 eval $1=\$$1\$2
18413 }
18414 fi # as_fn_append
18415
18416 # as_fn_arith ARG...
18417 # ------------------
18418 # Perform arithmetic evaluation on the ARGs, and store the result in the
18419 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18420 # must be portable across $(()) and expr.
18421 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18422 eval 'as_fn_arith ()
18423 {
18424 as_val=$(( $* ))
18425 }'
18426 else
18427 as_fn_arith ()
18428 {
18429 as_val=`expr "$@" || test $? -eq 1`
18430 }
18431 fi # as_fn_arith
18432
18433
18434 if expr a : '\(a\)' >/dev/null 2>&1 &&
18435 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18436 as_expr=expr
18437 else
18438 as_expr=false
18439 fi
18440
18441 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18442 as_basename=basename
18443 else
18444 as_basename=false
18445 fi
18446
18447 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18448 as_dirname=dirname
18449 else
18450 as_dirname=false
18451 fi
18452
18453 as_me=`$as_basename -- "$0" ||
18454 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18455 X"$0" : 'X\(//\)$' \| \
18456 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18457 $as_echo X/"$0" |
18458 sed '/^.*\/\([^/][^/]*\)\/*$/{
18459 s//\1/
18460 q
18461 }
18462 /^X\/\(\/\/\)$/{
18463 s//\1/
18464 q
18465 }
18466 /^X\/\(\/\).*/{
18467 s//\1/
18468 q
18469 }
18470 s/.*/./; q'`
18471
18472 # Avoid depending upon Character Ranges.
18473 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18474 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18475 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18476 as_cr_digits='0123456789'
18477 as_cr_alnum=$as_cr_Letters$as_cr_digits
18478
18479 ECHO_C= ECHO_N= ECHO_T=
18480 case `echo -n x` in #(((((
18481 -n*)
18482 case `echo 'xy\c'` in
18483 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18484 xy) ECHO_C='\c';;
18485 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18486 ECHO_T=' ';;
18487 esac;;
18488 *)
18489 ECHO_N='-n';;
18490 esac
18491
18492 rm -f conf$$ conf$$.exe conf$$.file
18493 if test -d conf$$.dir; then
18494 rm -f conf$$.dir/conf$$.file
18495 else
18496 rm -f conf$$.dir
18497 mkdir conf$$.dir 2>/dev/null
18498 fi
18499 if (echo >conf$$.file) 2>/dev/null; then
18500 if ln -s conf$$.file conf$$ 2>/dev/null; then
18501 as_ln_s='ln -s'
18502 # ... but there are two gotchas:
18503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18505 # In both cases, we have to default to `cp -p'.
18506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18507 as_ln_s='cp -p'
18508 elif ln conf$$.file conf$$ 2>/dev/null; then
18509 as_ln_s=ln
18510 else
18511 as_ln_s='cp -p'
18512 fi
18513 else
18514 as_ln_s='cp -p'
18515 fi
18516 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18517 rmdir conf$$.dir 2>/dev/null
18518
18519
18520 # as_fn_mkdir_p
18521 # -------------
18522 # Create "$as_dir" as a directory, including parents if necessary.
18523 as_fn_mkdir_p ()
18524 {
18525
18526 case $as_dir in #(
18527 -*) as_dir=./$as_dir;;
18528 esac
18529 test -d "$as_dir" || eval $as_mkdir_p || {
18530 as_dirs=
18531 while :; do
18532 case $as_dir in #(
18533 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18534 *) as_qdir=$as_dir;;
18535 esac
18536 as_dirs="'$as_qdir' $as_dirs"
18537 as_dir=`$as_dirname -- "$as_dir" ||
18538 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18539 X"$as_dir" : 'X\(//\)[^/]' \| \
18540 X"$as_dir" : 'X\(//\)$' \| \
18541 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18542 $as_echo X"$as_dir" |
18543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18544 s//\1/
18545 q
18546 }
18547 /^X\(\/\/\)[^/].*/{
18548 s//\1/
18549 q
18550 }
18551 /^X\(\/\/\)$/{
18552 s//\1/
18553 q
18554 }
18555 /^X\(\/\).*/{
18556 s//\1/
18557 q
18558 }
18559 s/.*/./; q'`
18560 test -d "$as_dir" && break
18561 done
18562 test -z "$as_dirs" || eval "mkdir $as_dirs"
18563 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18564
18565
18566 } # as_fn_mkdir_p
18567 if mkdir -p . 2>/dev/null; then
18568 as_mkdir_p='mkdir -p "$as_dir"'
18569 else
18570 test -d ./-p && rmdir ./-p
18571 as_mkdir_p=false
18572 fi
18573
18574 if test -x / >/dev/null 2>&1; then
18575 as_test_x='test -x'
18576 else
18577 if ls -dL / >/dev/null 2>&1; then
18578 as_ls_L_option=L
18579 else
18580 as_ls_L_option=
18581 fi
18582 as_test_x='
18583 eval sh -c '\''
18584 if test -d "$1"; then
18585 test -d "$1/.";
18586 else
18587 case $1 in #(
18588 -*)set "./$1";;
18589 esac;
18590 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18591 ???[sx]*):;;*)false;;esac;fi
18592 '\'' sh
18593 '
18594 fi
18595 as_executable_p=$as_test_x
18596
18597 # Sed expression to map a string onto a valid CPP name.
18598 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18599
18600 # Sed expression to map a string onto a valid variable name.
18601 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18602
18603
18604 exec 6>&1
18605 ## ----------------------------------- ##
18606 ## Main body of $CONFIG_STATUS script. ##
18607 ## ----------------------------------- ##
18608 _ASEOF
18609 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18610
18611 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18612 # Save the log message, to keep $0 and so on meaningful, and to
18613 # report actual input values of CONFIG_FILES etc. instead of their
18614 # values after options handling.
18615 ac_log="
18616 This file was extended by xf86-video-ast $as_me 0.98.0, which was
18617 generated by GNU Autoconf 2.68. Invocation command line was
18618
18619 CONFIG_FILES = $CONFIG_FILES
18620 CONFIG_HEADERS = $CONFIG_HEADERS
18621 CONFIG_LINKS = $CONFIG_LINKS
18622 CONFIG_COMMANDS = $CONFIG_COMMANDS
18623 $ $0 $@
18624
18625 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18626 "
18627
18628 _ACEOF
18629
18630 case $ac_config_files in *"
18631 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18632 esac
18633
18634 case $ac_config_headers in *"
18635 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18636 esac
18637
18638
18639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18640 # Files that config.status was made for.
18641 config_files="$ac_config_files"
18642 config_headers="$ac_config_headers"
18643 config_commands="$ac_config_commands"
18644
18645 _ACEOF
18646
18647 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18648 ac_cs_usage="\
18649 \`$as_me' instantiates files and other configuration actions
18650 from templates according to the current configuration. Unless the files
18651 and actions are specified as TAGs, all are instantiated by default.
18652
18653 Usage: $0 [OPTION]... [TAG]...
18654
18655 -h, --help print this help, then exit
18656 -V, --version print version number and configuration settings, then exit
18657 --config print configuration, then exit
18658 -q, --quiet, --silent
18659 do not print progress messages
18660 -d, --debug don't remove temporary files
18661 --recheck update $as_me by reconfiguring in the same conditions
18662 --file=FILE[:TEMPLATE]
18663 instantiate the configuration file FILE
18664 --header=FILE[:TEMPLATE]
18665 instantiate the configuration header FILE
18666
18667 Configuration files:
18668 $config_files
18669
18670 Configuration headers:
18671 $config_headers
18672
18673 Configuration commands:
18674 $config_commands
18675
18676 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18677
18678 _ACEOF
18679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18680 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18681 ac_cs_version="\\
18682 xf86-video-ast config.status 0.98.0
18683 configured by $0, generated by GNU Autoconf 2.68,
18684 with options \\"\$ac_cs_config\\"
18685
18686 Copyright (C) 2010 Free Software Foundation, Inc.
18687 This config.status script is free software; the Free Software Foundation
18688 gives unlimited permission to copy, distribute and modify it."
18689
18690 ac_pwd='$ac_pwd'
18691 srcdir='$srcdir'
18692 INSTALL='$INSTALL'
18693 MKDIR_P='$MKDIR_P'
18694 AWK='$AWK'
18695 test -n "\$AWK" || AWK=awk
18696 _ACEOF
18697
18698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18699 # The default lists apply if the user does not specify any file.
18700 ac_need_defaults=:
18701 while test $# != 0
18702 do
18703 case $1 in
18704 --*=?*)
18705 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18706 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18707 ac_shift=:
18708 ;;
18709 --*=)
18710 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18711 ac_optarg=
18712 ac_shift=:
18713 ;;
18714 *)
18715 ac_option=$1
18716 ac_optarg=$2
18717 ac_shift=shift
18718 ;;
18719 esac
18720
18721 case $ac_option in
18722 # Handling of the options.
18723 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18724 ac_cs_recheck=: ;;
18725 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18726 $as_echo "$ac_cs_version"; exit ;;
18727 --config | --confi | --conf | --con | --co | --c )
18728 $as_echo "$ac_cs_config"; exit ;;
18729 --debug | --debu | --deb | --de | --d | -d )
18730 debug=: ;;
18731 --file | --fil | --fi | --f )
18732 $ac_shift
18733 case $ac_optarg in
18734 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18735 '') as_fn_error $? "missing file argument" ;;
18736 esac
18737 as_fn_append CONFIG_FILES " '$ac_optarg'"
18738 ac_need_defaults=false;;
18739 --header | --heade | --head | --hea )
18740 $ac_shift
18741 case $ac_optarg in
18742 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18743 esac
18744 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18745 ac_need_defaults=false;;
18746 --he | --h)
18747 # Conflict between --help and --header
18748 as_fn_error $? "ambiguous option: \`$1'
18749 Try \`$0 --help' for more information.";;
18750 --help | --hel | -h )
18751 $as_echo "$ac_cs_usage"; exit ;;
18752 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18753 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18754 ac_cs_silent=: ;;
18755
18756 # This is an error.
18757 -*) as_fn_error $? "unrecognized option: \`$1'
18758 Try \`$0 --help' for more information." ;;
18759
18760 *) as_fn_append ac_config_targets " $1"
18761 ac_need_defaults=false ;;
18762
18763 esac
18764 shift
18765 done
18766
18767 ac_configure_extra_args=
18768
18769 if $ac_cs_silent; then
18770 exec 6>/dev/null
18771 ac_configure_extra_args="$ac_configure_extra_args --silent"
18772 fi
18773
18774 _ACEOF
18775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18776 if \$ac_cs_recheck; then
18777 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18778 shift
18779 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18780 CONFIG_SHELL='$SHELL'
18781 export CONFIG_SHELL
18782 exec "\$@"
18783 fi
18784
18785 _ACEOF
18786 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18787 exec 5>>config.log
18788 {
18789 echo
18790 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18791 ## Running $as_me. ##
18792 _ASBOX
18793 $as_echo "$ac_log"
18794 } >&5
18795
18796 _ACEOF
18797 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18798 #
18799 # INIT-COMMANDS
18800 #
18801 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18802
18803
18804 # The HP-UX ksh and POSIX shell print the target directory to stdout
18805 # if CDPATH is set.
18806 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18807
18808 sed_quote_subst='$sed_quote_subst'
18809 double_quote_subst='$double_quote_subst'
18810 delay_variable_subst='$delay_variable_subst'
18811 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18812 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18813 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18814 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18815 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18816 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18817 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18818 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18819 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18820 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18821 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18822 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18823 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18824 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18825 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18826 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18827 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18828 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18829 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18830 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18831 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18832 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18833 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18834 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18835 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18836 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18837 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18838 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18839 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18840 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18841 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18842 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18843 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18844 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18845 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18846 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18847 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18848 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18849 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18850 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18851 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18852 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18853 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18854 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18855 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18856 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18857 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18858 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18859 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18860 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18861 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18862 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18863 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18864 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18865 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18866 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"`'
18867 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18868 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18869 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18870 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18871 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18872 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18873 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18874 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18875 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18876 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18877 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18878 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18879 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18880 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18881 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18882 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18883 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18884 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18885 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18886 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18887 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18888 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18889 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18890 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18891 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18892 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18893 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18894 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18895 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18896 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18897 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18898 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18899 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18900 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18901 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18902 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18903 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18904 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18905 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18906 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18907 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18908 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18909 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18910 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18911 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18912 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18913 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18914 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18915 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18916 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18917 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18918 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18919 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18920 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18921 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18922 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18923 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18924 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18925 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18926 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18927 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18928 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18929 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18930 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18931 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18932 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18933 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18934 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18935 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18936 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18937 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18938 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18939 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18940 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18941
18942 LTCC='$LTCC'
18943 LTCFLAGS='$LTCFLAGS'
18944 compiler='$compiler_DEFAULT'
18945
18946 # A function that is used when there is no print builtin or printf.
18947 func_fallback_echo ()
18948 {
18949 eval 'cat <<_LTECHO_EOF
18950 \$1
18951 _LTECHO_EOF'
18952 }
18953
18954 # Quote evaled strings.
18955 for var in SHELL \
18956 ECHO \
18957 SED \
18958 GREP \
18959 EGREP \
18960 FGREP \
18961 LD \
18962 NM \
18963 LN_S \
18964 lt_SP2NL \
18965 lt_NL2SP \
18966 reload_flag \
18967 OBJDUMP \
18968 deplibs_check_method \
18969 file_magic_cmd \
18970 file_magic_glob \
18971 want_nocaseglob \
18972 DLLTOOL \
18973 sharedlib_from_linklib_cmd \
18974 AR \
18975 AR_FLAGS \
18976 archiver_list_spec \
18977 STRIP \
18978 RANLIB \
18979 CC \
18980 CFLAGS \
18981 compiler \
18982 lt_cv_sys_global_symbol_pipe \
18983 lt_cv_sys_global_symbol_to_cdecl \
18984 lt_cv_sys_global_symbol_to_c_name_address \
18985 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18986 nm_file_list_spec \
18987 lt_prog_compiler_no_builtin_flag \
18988 lt_prog_compiler_pic \
18989 lt_prog_compiler_wl \
18990 lt_prog_compiler_static \
18991 lt_cv_prog_compiler_c_o \
18992 need_locks \
18993 MANIFEST_TOOL \
18994 DSYMUTIL \
18995 NMEDIT \
18996 LIPO \
18997 OTOOL \
18998 OTOOL64 \
18999 shrext_cmds \
19000 export_dynamic_flag_spec \
19001 whole_archive_flag_spec \
19002 compiler_needs_object \
19003 with_gnu_ld \
19004 allow_undefined_flag \
19005 no_undefined_flag \
19006 hardcode_libdir_flag_spec \
19007 hardcode_libdir_flag_spec_ld \
19008 hardcode_libdir_separator \
19009 exclude_expsyms \
19010 include_expsyms \
19011 file_list_spec \
19012 variables_saved_for_relink \
19013 libname_spec \
19014 library_names_spec \
19015 soname_spec \
19016 install_override_mode \
19017 finish_eval \
19018 old_striplib \
19019 striplib; do
19020 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19021 *[\\\\\\\`\\"\\\$]*)
19022 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19023 ;;
19024 *)
19025 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19026 ;;
19027 esac
19028 done
19029
19030 # Double-quote double-evaled strings.
19031 for var in reload_cmds \
19032 old_postinstall_cmds \
19033 old_postuninstall_cmds \
19034 old_archive_cmds \
19035 extract_expsyms_cmds \
19036 old_archive_from_new_cmds \
19037 old_archive_from_expsyms_cmds \
19038 archive_cmds \
19039 archive_expsym_cmds \
19040 module_cmds \
19041 module_expsym_cmds \
19042 export_symbols_cmds \
19043 prelink_cmds \
19044 postlink_cmds \
19045 postinstall_cmds \
19046 postuninstall_cmds \
19047 finish_cmds \
19048 sys_lib_search_path_spec \
19049 sys_lib_dlsearch_path_spec; do
19050 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19051 *[\\\\\\\`\\"\\\$]*)
19052 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19053 ;;
19054 *)
19055 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19056 ;;
19057 esac
19058 done
19059
19060 ac_aux_dir='$ac_aux_dir'
19061 xsi_shell='$xsi_shell'
19062 lt_shell_append='$lt_shell_append'
19063
19064 # See if we are running on zsh, and set the options which allow our
19065 # commands through without removal of \ escapes INIT.
19066 if test -n "\${ZSH_VERSION+set}" ; then
19067 setopt NO_GLOB_SUBST
19068 fi
19069
19070
19071 PACKAGE='$PACKAGE'
19072 VERSION='$VERSION'
19073 TIMESTAMP='$TIMESTAMP'
19074 RM='$RM'
19075 ofile='$ofile'
19076
19077
19078
19079
19080 _ACEOF
19081
19082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19083
19084 # Handling of arguments.
19085 for ac_config_target in $ac_config_targets
19086 do
19087 case $ac_config_target in
19088 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19089 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19090 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19091 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19092 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19093
19094 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19095 esac
19096 done
19097
19098
19099 # If the user did not use the arguments to specify the items to instantiate,
19100 # then the envvar interface is used. Set only those that are not.
19101 # We use the long form for the default assignment because of an extremely
19102 # bizarre bug on SunOS 4.1.3.
19103 if $ac_need_defaults; then
19104 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19105 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19106 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19107 fi
19108
19109 # Have a temporary directory for convenience. Make it in the build tree
19110 # simply because there is no reason against having it here, and in addition,
19111 # creating and moving files from /tmp can sometimes cause problems.
19112 # Hook for its removal unless debugging.
19113 # Note that there is a small window in which the directory will not be cleaned:
19114 # after its creation but before its name has been assigned to `$tmp'.
19115 $debug ||
19116 {
19117 tmp= ac_tmp=
19118 trap 'exit_status=$?
19119 : "${ac_tmp:=$tmp}"
19120 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19121 ' 0
19122 trap 'as_fn_exit 1' 1 2 13 15
19123 }
19124 # Create a (secure) tmp directory for tmp files.
19125
19126 {
19127 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19128 test -d "$tmp"
19129 } ||
19130 {
19131 tmp=./conf$$-$RANDOM
19132 (umask 077 && mkdir "$tmp")
19133 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19134 ac_tmp=$tmp
19135
19136 # Set up the scripts for CONFIG_FILES section.
19137 # No need to generate them if there are no CONFIG_FILES.
19138 # This happens for instance with `./config.status config.h'.
19139 if test -n "$CONFIG_FILES"; then
19140
19141
19142 ac_cr=`echo X | tr X '\015'`
19143 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19144 # But we know of no other shell where ac_cr would be empty at this
19145 # point, so we can use a bashism as a fallback.
19146 if test "x$ac_cr" = x; then
19147 eval ac_cr=\$\'\\r\'
19148 fi
19149 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19150 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19151 ac_cs_awk_cr='\\r'
19152 else
19153 ac_cs_awk_cr=$ac_cr
19154 fi
19155
19156 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19157 _ACEOF
19158
19159
19160 {
19161 echo "cat >conf$$subs.awk <<_ACEOF" &&
19162 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19163 echo "_ACEOF"
19164 } >conf$$subs.sh ||
19165 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19166 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19167 ac_delim='%!_!# '
19168 for ac_last_try in false false false false false :; do
19169 . ./conf$$subs.sh ||
19170 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19171
19172 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19173 if test $ac_delim_n = $ac_delim_num; then
19174 break
19175 elif $ac_last_try; then
19176 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19177 else
19178 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19179 fi
19180 done
19181 rm -f conf$$subs.sh
19182
19183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19184 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19185 _ACEOF
19186 sed -n '
19187 h
19188 s/^/S["/; s/!.*/"]=/
19189 p
19190 g
19191 s/^[^!]*!//
19192 :repl
19193 t repl
19194 s/'"$ac_delim"'$//
19195 t delim
19196 :nl
19197 h
19198 s/\(.\{148\}\)..*/\1/
19199 t more1
19200 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19201 p
19202 n
19203 b repl
19204 :more1
19205 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19206 p
19207 g
19208 s/.\{148\}//
19209 t nl
19210 :delim
19211 h
19212 s/\(.\{148\}\)..*/\1/
19213 t more2
19214 s/["\\]/\\&/g; s/^/"/; s/$/"/
19215 p
19216 b
19217 :more2
19218 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19219 p
19220 g
19221 s/.\{148\}//
19222 t delim
19223 ' <conf$$subs.awk | sed '
19224 /^[^""]/{
19225 N
19226 s/\n//
19227 }
19228 ' >>$CONFIG_STATUS || ac_write_fail=1
19229 rm -f conf$$subs.awk
19230 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19231 _ACAWK
19232 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19233 for (key in S) S_is_set[key] = 1
19234 FS = ""
19235
19236 }
19237 {
19238 line = $ 0
19239 nfields = split(line, field, "@")
19240 substed = 0
19241 len = length(field[1])
19242 for (i = 2; i < nfields; i++) {
19243 key = field[i]
19244 keylen = length(key)
19245 if (S_is_set[key]) {
19246 value = S[key]
19247 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19248 len += length(value) + length(field[++i])
19249 substed = 1
19250 } else
19251 len += 1 + keylen
19252 }
19253
19254 print line
19255 }
19256
19257 _ACAWK
19258 _ACEOF
19259 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19260 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19261 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19262 else
19263 cat
19264 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19265 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19266 _ACEOF
19267
19268 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19269 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19270 # trailing colons and then remove the whole line if VPATH becomes empty
19271 # (actually we leave an empty line to preserve line numbers).
19272 if test "x$srcdir" = x.; then
19273 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19274 h
19275 s///
19276 s/^/:/
19277 s/[ ]*$/:/
19278 s/:\$(srcdir):/:/g
19279 s/:\${srcdir}:/:/g
19280 s/:@srcdir@:/:/g
19281 s/^:*//
19282 s/:*$//
19283 x
19284 s/\(=[ ]*\).*/\1/
19285 G
19286 s/\n//
19287 s/^[^=]*=[ ]*$//
19288 }'
19289 fi
19290
19291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19292 fi # test -n "$CONFIG_FILES"
19293
19294 # Set up the scripts for CONFIG_HEADERS section.
19295 # No need to generate them if there are no CONFIG_HEADERS.
19296 # This happens for instance with `./config.status Makefile'.
19297 if test -n "$CONFIG_HEADERS"; then
19298 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19299 BEGIN {
19300 _ACEOF
19301
19302 # Transform confdefs.h into an awk script `defines.awk', embedded as
19303 # here-document in config.status, that substitutes the proper values into
19304 # config.h.in to produce config.h.
19305
19306 # Create a delimiter string that does not exist in confdefs.h, to ease
19307 # handling of long lines.
19308 ac_delim='%!_!# '
19309 for ac_last_try in false false :; do
19310 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19311 if test -z "$ac_tt"; then
19312 break
19313 elif $ac_last_try; then
19314 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19315 else
19316 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19317 fi
19318 done
19319
19320 # For the awk script, D is an array of macro values keyed by name,
19321 # likewise P contains macro parameters if any. Preserve backslash
19322 # newline sequences.
19323
19324 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19325 sed -n '
19326 s/.\{148\}/&'"$ac_delim"'/g
19327 t rset
19328 :rset
19329 s/^[ ]*#[ ]*define[ ][ ]*/ /
19330 t def
19331 d
19332 :def
19333 s/\\$//
19334 t bsnl
19335 s/["\\]/\\&/g
19336 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19337 D["\1"]=" \3"/p
19338 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19339 d
19340 :bsnl
19341 s/["\\]/\\&/g
19342 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19343 D["\1"]=" \3\\\\\\n"\\/p
19344 t cont
19345 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19346 t cont
19347 d
19348 :cont
19349 n
19350 s/.\{148\}/&'"$ac_delim"'/g
19351 t clear
19352 :clear
19353 s/\\$//
19354 t bsnlc
19355 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19356 d
19357 :bsnlc
19358 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19359 b cont
19360 ' <confdefs.h | sed '
19361 s/'"$ac_delim"'/"\\\
19362 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19363
19364 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19365 for (key in D) D_is_set[key] = 1
19366 FS = ""
19367 }
19368 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19369 line = \$ 0
19370 split(line, arg, " ")
19371 if (arg[1] == "#") {
19372 defundef = arg[2]
19373 mac1 = arg[3]
19374 } else {
19375 defundef = substr(arg[1], 2)
19376 mac1 = arg[2]
19377 }
19378 split(mac1, mac2, "(") #)
19379 macro = mac2[1]
19380 prefix = substr(line, 1, index(line, defundef) - 1)
19381 if (D_is_set[macro]) {
19382 # Preserve the white space surrounding the "#".
19383 print prefix "define", macro P[macro] D[macro]
19384 next
19385 } else {
19386 # Replace #undef with comments. This is necessary, for example,
19387 # in the case of _POSIX_SOURCE, which is predefined and required
19388 # on some systems where configure will not decide to define it.
19389 if (defundef == "undef") {
19390 print "/*", prefix defundef, macro, "*/"
19391 next
19392 }
19393 }
19394 }
19395 { print }
19396 _ACAWK
19397 _ACEOF
19398 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19399 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19400 fi # test -n "$CONFIG_HEADERS"
19401
19402
19403 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19404 shift
19405 for ac_tag
19406 do
19407 case $ac_tag in
19408 :[FHLC]) ac_mode=$ac_tag; continue;;
19409 esac
19410 case $ac_mode$ac_tag in
19411 :[FHL]*:*);;
19412 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19413 :[FH]-) ac_tag=-:-;;
19414 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19415 esac
19416 ac_save_IFS=$IFS
19417 IFS=:
19418 set x $ac_tag
19419 IFS=$ac_save_IFS
19420 shift
19421 ac_file=$1
19422 shift
19423
19424 case $ac_mode in
19425 :L) ac_source=$1;;
19426 :[FH])
19427 ac_file_inputs=
19428 for ac_f
19429 do
19430 case $ac_f in
19431 -) ac_f="$ac_tmp/stdin";;
19432 *) # Look for the file first in the build tree, then in the source tree
19433 # (if the path is not absolute). The absolute path cannot be DOS-style,
19434 # because $ac_f cannot contain `:'.
19435 test -f "$ac_f" ||
19436 case $ac_f in
19437 [\\/$]*) false;;
19438 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19439 esac ||
19440 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19441 esac
19442 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19443 as_fn_append ac_file_inputs " '$ac_f'"
19444 done
19445
19446 # Let's still pretend it is `configure' which instantiates (i.e., don't
19447 # use $as_me), people would be surprised to read:
19448 # /* config.h. Generated by config.status. */
19449 configure_input='Generated from '`
19450 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19451 `' by configure.'
19452 if test x"$ac_file" != x-; then
19453 configure_input="$ac_file. $configure_input"
19454 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19455 $as_echo "$as_me: creating $ac_file" >&6;}
19456 fi
19457 # Neutralize special characters interpreted by sed in replacement strings.
19458 case $configure_input in #(
19459 *\&* | *\|* | *\\* )
19460 ac_sed_conf_input=`$as_echo "$configure_input" |
19461 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19462 *) ac_sed_conf_input=$configure_input;;
19463 esac
19464
19465 case $ac_tag in
19466 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19467 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19468 esac
19469 ;;
19470 esac
19471
19472 ac_dir=`$as_dirname -- "$ac_file" ||
19473 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19474 X"$ac_file" : 'X\(//\)[^/]' \| \
19475 X"$ac_file" : 'X\(//\)$' \| \
19476 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19477 $as_echo X"$ac_file" |
19478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19479 s//\1/
19480 q
19481 }
19482 /^X\(\/\/\)[^/].*/{
19483 s//\1/
19484 q
19485 }
19486 /^X\(\/\/\)$/{
19487 s//\1/
19488 q
19489 }
19490 /^X\(\/\).*/{
19491 s//\1/
19492 q
19493 }
19494 s/.*/./; q'`
19495 as_dir="$ac_dir"; as_fn_mkdir_p
19496 ac_builddir=.
19497
19498 case "$ac_dir" in
19499 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19500 *)
19501 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19502 # A ".." for each directory in $ac_dir_suffix.
19503 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19504 case $ac_top_builddir_sub in
19505 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19506 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19507 esac ;;
19508 esac
19509 ac_abs_top_builddir=$ac_pwd
19510 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19511 # for backward compatibility:
19512 ac_top_builddir=$ac_top_build_prefix
19513
19514 case $srcdir in
19515 .) # We are building in place.
19516 ac_srcdir=.
19517 ac_top_srcdir=$ac_top_builddir_sub
19518 ac_abs_top_srcdir=$ac_pwd ;;
19519 [\\/]* | ?:[\\/]* ) # Absolute name.
19520 ac_srcdir=$srcdir$ac_dir_suffix;
19521 ac_top_srcdir=$srcdir
19522 ac_abs_top_srcdir=$srcdir ;;
19523 *) # Relative name.
19524 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19525 ac_top_srcdir=$ac_top_build_prefix$srcdir
19526 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19527 esac
19528 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19529
19530
19531 case $ac_mode in
19532 :F)
19533 #
19534 # CONFIG_FILE
19535 #
19536
19537 case $INSTALL in
19538 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19539 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19540 esac
19541 ac_MKDIR_P=$MKDIR_P
19542 case $MKDIR_P in
19543 [\\/$]* | ?:[\\/]* ) ;;
19544 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19545 esac
19546 _ACEOF
19547
19548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19549 # If the template does not know about datarootdir, expand it.
19550 # FIXME: This hack should be removed a few years after 2.60.
19551 ac_datarootdir_hack=; ac_datarootdir_seen=
19552 ac_sed_dataroot='
19553 /datarootdir/ {
19554 p
19555 q
19556 }
19557 /@datadir@/p
19558 /@docdir@/p
19559 /@infodir@/p
19560 /@localedir@/p
19561 /@mandir@/p'
19562 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19563 *datarootdir*) ac_datarootdir_seen=yes;;
19564 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19566 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19567 _ACEOF
19568 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19569 ac_datarootdir_hack='
19570 s&@datadir@&$datadir&g
19571 s&@docdir@&$docdir&g
19572 s&@infodir@&$infodir&g
19573 s&@localedir@&$localedir&g
19574 s&@mandir@&$mandir&g
19575 s&\\\${datarootdir}&$datarootdir&g' ;;
19576 esac
19577 _ACEOF
19578
19579 # Neutralize VPATH when `$srcdir' = `.'.
19580 # Shell code in configure.ac might set extrasub.
19581 # FIXME: do we really want to maintain this feature?
19582 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19583 ac_sed_extra="$ac_vpsub
19584 $extrasub
19585 _ACEOF
19586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19587 :t
19588 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19589 s|@configure_input@|$ac_sed_conf_input|;t t
19590 s&@top_builddir@&$ac_top_builddir_sub&;t t
19591 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19592 s&@srcdir@&$ac_srcdir&;t t
19593 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19594 s&@top_srcdir@&$ac_top_srcdir&;t t
19595 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19596 s&@builddir@&$ac_builddir&;t t
19597 s&@abs_builddir@&$ac_abs_builddir&;t t
19598 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19599 s&@INSTALL@&$ac_INSTALL&;t t
19600 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19601 $ac_datarootdir_hack
19602 "
19603 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19604 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19605
19606 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19607 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19608 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19609 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19611 which seems to be undefined. Please make sure it is defined" >&5
19612 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19613 which seems to be undefined. Please make sure it is defined" >&2;}
19614
19615 rm -f "$ac_tmp/stdin"
19616 case $ac_file in
19617 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19618 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19619 esac \
19620 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19621 ;;
19622 :H)
19623 #
19624 # CONFIG_HEADER
19625 #
19626 if test x"$ac_file" != x-; then
19627 {
19628 $as_echo "/* $configure_input */" \
19629 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19630 } >"$ac_tmp/config.h" \
19631 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19632 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19633 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19634 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19635 else
19636 rm -f "$ac_file"
19637 mv "$ac_tmp/config.h" "$ac_file" \
19638 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19639 fi
19640 else
19641 $as_echo "/* $configure_input */" \
19642 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19643 || as_fn_error $? "could not create -" "$LINENO" 5
19644 fi
19645 # Compute "$ac_file"'s index in $config_headers.
19646 _am_arg="$ac_file"
19647 _am_stamp_count=1
19648 for _am_header in $config_headers :; do
19649 case $_am_header in
19650 $_am_arg | $_am_arg:* )
19651 break ;;
19652 * )
19653 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19654 esac
19655 done
19656 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19657 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19658 X"$_am_arg" : 'X\(//\)[^/]' \| \
19659 X"$_am_arg" : 'X\(//\)$' \| \
19660 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19661 $as_echo X"$_am_arg" |
19662 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19663 s//\1/
19664 q
19665 }
19666 /^X\(\/\/\)[^/].*/{
19667 s//\1/
19668 q
19669 }
19670 /^X\(\/\/\)$/{
19671 s//\1/
19672 q
19673 }
19674 /^X\(\/\).*/{
19675 s//\1/
19676 q
19677 }
19678 s/.*/./; q'`/stamp-h$_am_stamp_count
19679 ;;
19680
19681 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19682 $as_echo "$as_me: executing $ac_file commands" >&6;}
19683 ;;
19684 esac
19685
19686
19687 case $ac_file$ac_mode in
19688 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19689 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19690 # are listed without --file. Let's play safe and only enable the eval
19691 # if we detect the quoting.
19692 case $CONFIG_FILES in
19693 *\'*) eval set x "$CONFIG_FILES" ;;
19694 *) set x $CONFIG_FILES ;;
19695 esac
19696 shift
19697 for mf
19698 do
19699 # Strip MF so we end up with the name of the file.
19700 mf=`echo "$mf" | sed -e 's/:.*$//'`
19701 # Check whether this is an Automake generated Makefile or not.
19702 # We used to match only the files named `Makefile.in', but
19703 # some people rename them; so instead we look at the file content.
19704 # Grep'ing the first line is not enough: some people post-process
19705 # each Makefile.in and add a new line on top of each file to say so.
19706 # Grep'ing the whole file is not good either: AIX grep has a line
19707 # limit of 2048, but all sed's we know have understand at least 4000.
19708 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19709 dirpart=`$as_dirname -- "$mf" ||
19710 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19711 X"$mf" : 'X\(//\)[^/]' \| \
19712 X"$mf" : 'X\(//\)$' \| \
19713 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19714 $as_echo X"$mf" |
19715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19716 s//\1/
19717 q
19718 }
19719 /^X\(\/\/\)[^/].*/{
19720 s//\1/
19721 q
19722 }
19723 /^X\(\/\/\)$/{
19724 s//\1/
19725 q
19726 }
19727 /^X\(\/\).*/{
19728 s//\1/
19729 q
19730 }
19731 s/.*/./; q'`
19732 else
19733 continue
19734 fi
19735 # Extract the definition of DEPDIR, am__include, and am__quote
19736 # from the Makefile without running `make'.
19737 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19738 test -z "$DEPDIR" && continue
19739 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19740 test -z "am__include" && continue
19741 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19742 # When using ansi2knr, U may be empty or an underscore; expand it
19743 U=`sed -n 's/^U = //p' < "$mf"`
19744 # Find all dependency output files, they are included files with
19745 # $(DEPDIR) in their names. We invoke sed twice because it is the
19746 # simplest approach to changing $(DEPDIR) to its actual value in the
19747 # expansion.
19748 for file in `sed -n "
19749 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19750 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19751 # Make sure the directory exists.
19752 test -f "$dirpart/$file" && continue
19753 fdir=`$as_dirname -- "$file" ||
19754 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19755 X"$file" : 'X\(//\)[^/]' \| \
19756 X"$file" : 'X\(//\)$' \| \
19757 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19758 $as_echo X"$file" |
19759 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19760 s//\1/
19761 q
19762 }
19763 /^X\(\/\/\)[^/].*/{
19764 s//\1/
19765 q
19766 }
19767 /^X\(\/\/\)$/{
19768 s//\1/
19769 q
19770 }
19771 /^X\(\/\).*/{
19772 s//\1/
19773 q
19774 }
19775 s/.*/./; q'`
19776 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19777 # echo "creating $dirpart/$file"
19778 echo '# dummy' > "$dirpart/$file"
19779 done
19780 done
19781 }
19782 ;;
19783 "libtool":C)
19784
19785 # See if we are running on zsh, and set the options which allow our
19786 # commands through without removal of \ escapes.
19787 if test -n "${ZSH_VERSION+set}" ; then
19788 setopt NO_GLOB_SUBST
19789 fi
19790
19791 cfgfile="${ofile}T"
19792 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19793 $RM "$cfgfile"
19794
19795 cat <<_LT_EOF >> "$cfgfile"
19796 #! $SHELL
19797
19798 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19799 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19800 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19801 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19802 #
19803 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19804 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
19805 # Inc.
19806 # Written by Gordon Matzigkeit, 1996
19807 #
19808 # This file is part of GNU Libtool.
19809 #
19810 # GNU Libtool is free software; you can redistribute it and/or
19811 # modify it under the terms of the GNU General Public License as
19812 # published by the Free Software Foundation; either version 2 of
19813 # the License, or (at your option) any later version.
19814 #
19815 # As a special exception to the GNU General Public License,
19816 # if you distribute this file as part of a program or library that
19817 # is built using GNU Libtool, you may include this file under the
19818 # same distribution terms that you use for the rest of that program.
19819 #
19820 # GNU Libtool is distributed in the hope that it will be useful,
19821 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19822 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19823 # GNU General Public License for more details.
19824 #
19825 # You should have received a copy of the GNU General Public License
19826 # along with GNU Libtool; see the file COPYING. If not, a copy
19827 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19828 # obtained by writing to the Free Software Foundation, Inc.,
19829 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19830
19831
19832 # The names of the tagged configurations supported by this script.
19833 available_tags=""
19834
19835 # ### BEGIN LIBTOOL CONFIG
19836
19837 # Whether or not to build static libraries.
19838 build_old_libs=$enable_static
19839
19840 # Which release of libtool.m4 was used?
19841 macro_version=$macro_version
19842 macro_revision=$macro_revision
19843
19844 # Whether or not to build shared libraries.
19845 build_libtool_libs=$enable_shared
19846
19847 # What type of objects to build.
19848 pic_mode=$pic_mode
19849
19850 # Whether or not to optimize for fast installation.
19851 fast_install=$enable_fast_install
19852
19853 # Shell to use when invoking shell scripts.
19854 SHELL=$lt_SHELL
19855
19856 # An echo program that protects backslashes.
19857 ECHO=$lt_ECHO
19858
19859 # The host system.
19860 host_alias=$host_alias
19861 host=$host
19862 host_os=$host_os
19863
19864 # The build system.
19865 build_alias=$build_alias
19866 build=$build
19867 build_os=$build_os
19868
19869 # A sed program that does not truncate output.
19870 SED=$lt_SED
19871
19872 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19873 Xsed="\$SED -e 1s/^X//"
19874
19875 # A grep program that handles long lines.
19876 GREP=$lt_GREP
19877
19878 # An ERE matcher.
19879 EGREP=$lt_EGREP
19880
19881 # A literal string matcher.
19882 FGREP=$lt_FGREP
19883
19884 # A BSD- or MS-compatible name lister.
19885 NM=$lt_NM
19886
19887 # Whether we need soft or hard links.
19888 LN_S=$lt_LN_S
19889
19890 # What is the maximum length of a command?
19891 max_cmd_len=$max_cmd_len
19892
19893 # Object file suffix (normally "o").
19894 objext=$ac_objext
19895
19896 # Executable file suffix (normally "").
19897 exeext=$exeext
19898
19899 # whether the shell understands "unset".
19900 lt_unset=$lt_unset
19901
19902 # turn spaces into newlines.
19903 SP2NL=$lt_lt_SP2NL
19904
19905 # turn newlines into spaces.
19906 NL2SP=$lt_lt_NL2SP
19907
19908 # convert \$build file names to \$host format.
19909 to_host_file_cmd=$lt_cv_to_host_file_cmd
19910
19911 # convert \$build files to toolchain format.
19912 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19913
19914 # An object symbol dumper.
19915 OBJDUMP=$lt_OBJDUMP
19916
19917 # Method to check whether dependent libraries are shared objects.
19918 deplibs_check_method=$lt_deplibs_check_method
19919
19920 # Command to use when deplibs_check_method = "file_magic".
19921 file_magic_cmd=$lt_file_magic_cmd
19922
19923 # How to find potential files when deplibs_check_method = "file_magic".
19924 file_magic_glob=$lt_file_magic_glob
19925
19926 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19927 want_nocaseglob=$lt_want_nocaseglob
19928
19929 # DLL creation program.
19930 DLLTOOL=$lt_DLLTOOL
19931
19932 # Command to associate shared and link libraries.
19933 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19934
19935 # The archiver.
19936 AR=$lt_AR
19937
19938 # Flags to create an archive.
19939 AR_FLAGS=$lt_AR_FLAGS
19940
19941 # How to feed a file listing to the archiver.
19942 archiver_list_spec=$lt_archiver_list_spec
19943
19944 # A symbol stripping program.
19945 STRIP=$lt_STRIP
19946
19947 # Commands used to install an old-style archive.
19948 RANLIB=$lt_RANLIB
19949 old_postinstall_cmds=$lt_old_postinstall_cmds
19950 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19951
19952 # Whether to use a lock for old archive extraction.
19953 lock_old_archive_extraction=$lock_old_archive_extraction
19954
19955 # A C compiler.
19956 LTCC=$lt_CC
19957
19958 # LTCC compiler flags.
19959 LTCFLAGS=$lt_CFLAGS
19960
19961 # Take the output of nm and produce a listing of raw symbols and C names.
19962 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19963
19964 # Transform the output of nm in a proper C declaration.
19965 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19966
19967 # Transform the output of nm in a C name address pair.
19968 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19969
19970 # Transform the output of nm in a C name address pair when lib prefix is needed.
19971 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19972
19973 # Specify filename containing input files for \$NM.
19974 nm_file_list_spec=$lt_nm_file_list_spec
19975
19976 # The root where to search for dependent libraries,and in which our libraries should be installed.
19977 lt_sysroot=$lt_sysroot
19978
19979 # The name of the directory that contains temporary libtool files.
19980 objdir=$objdir
19981
19982 # Used to examine libraries when file_magic_cmd begins with "file".
19983 MAGIC_CMD=$MAGIC_CMD
19984
19985 # Must we lock files when doing compilation?
19986 need_locks=$lt_need_locks
19987
19988 # Manifest tool.
19989 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19990
19991 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19992 DSYMUTIL=$lt_DSYMUTIL
19993
19994 # Tool to change global to local symbols on Mac OS X.
19995 NMEDIT=$lt_NMEDIT
19996
19997 # Tool to manipulate fat objects and archives on Mac OS X.
19998 LIPO=$lt_LIPO
19999
20000 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20001 OTOOL=$lt_OTOOL
20002
20003 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20004 OTOOL64=$lt_OTOOL64
20005
20006 # Old archive suffix (normally "a").
20007 libext=$libext
20008
20009 # Shared library suffix (normally ".so").
20010 shrext_cmds=$lt_shrext_cmds
20011
20012 # The commands to extract the exported symbol list from a shared archive.
20013 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20014
20015 # Variables whose values should be saved in libtool wrapper scripts and
20016 # restored at link time.
20017 variables_saved_for_relink=$lt_variables_saved_for_relink
20018
20019 # Do we need the "lib" prefix for modules?
20020 need_lib_prefix=$need_lib_prefix
20021
20022 # Do we need a version for libraries?
20023 need_version=$need_version
20024
20025 # Library versioning type.
20026 version_type=$version_type
20027
20028 # Shared library runtime path variable.
20029 runpath_var=$runpath_var
20030
20031 # Shared library path variable.
20032 shlibpath_var=$shlibpath_var
20033
20034 # Is shlibpath searched before the hard-coded library search path?
20035 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20036
20037 # Format of library name prefix.
20038 libname_spec=$lt_libname_spec
20039
20040 # List of archive names. First name is the real one, the rest are links.
20041 # The last name is the one that the linker finds with -lNAME
20042 library_names_spec=$lt_library_names_spec
20043
20044 # The coded name of the library, if different from the real name.
20045 soname_spec=$lt_soname_spec
20046
20047 # Permission mode override for installation of shared libraries.
20048 install_override_mode=$lt_install_override_mode
20049
20050 # Command to use after installation of a shared archive.
20051 postinstall_cmds=$lt_postinstall_cmds
20052
20053 # Command to use after uninstallation of a shared archive.
20054 postuninstall_cmds=$lt_postuninstall_cmds
20055
20056 # Commands used to finish a libtool library installation in a directory.
20057 finish_cmds=$lt_finish_cmds
20058
20059 # As "finish_cmds", except a single script fragment to be evaled but
20060 # not shown.
20061 finish_eval=$lt_finish_eval
20062
20063 # Whether we should hardcode library paths into libraries.
20064 hardcode_into_libs=$hardcode_into_libs
20065
20066 # Compile-time system search path for libraries.
20067 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20068
20069 # Run-time system search path for libraries.
20070 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20071
20072 # Whether dlopen is supported.
20073 dlopen_support=$enable_dlopen
20074
20075 # Whether dlopen of programs is supported.
20076 dlopen_self=$enable_dlopen_self
20077
20078 # Whether dlopen of statically linked programs is supported.
20079 dlopen_self_static=$enable_dlopen_self_static
20080
20081 # Commands to strip libraries.
20082 old_striplib=$lt_old_striplib
20083 striplib=$lt_striplib
20084
20085
20086 # The linker used to build libraries.
20087 LD=$lt_LD
20088
20089 # How to create reloadable object files.
20090 reload_flag=$lt_reload_flag
20091 reload_cmds=$lt_reload_cmds
20092
20093 # Commands used to build an old-style archive.
20094 old_archive_cmds=$lt_old_archive_cmds
20095
20096 # A language specific compiler.
20097 CC=$lt_compiler
20098
20099 # Is the compiler the GNU compiler?
20100 with_gcc=$GCC
20101
20102 # Compiler flag to turn off builtin functions.
20103 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20104
20105 # Additional compiler flags for building library objects.
20106 pic_flag=$lt_lt_prog_compiler_pic
20107
20108 # How to pass a linker flag through the compiler.
20109 wl=$lt_lt_prog_compiler_wl
20110
20111 # Compiler flag to prevent dynamic linking.
20112 link_static_flag=$lt_lt_prog_compiler_static
20113
20114 # Does compiler simultaneously support -c and -o options?
20115 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20116
20117 # Whether or not to add -lc for building shared libraries.
20118 build_libtool_need_lc=$archive_cmds_need_lc
20119
20120 # Whether or not to disallow shared libs when runtime libs are static.
20121 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20122
20123 # Compiler flag to allow reflexive dlopens.
20124 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20125
20126 # Compiler flag to generate shared objects directly from archives.
20127 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20128
20129 # Whether the compiler copes with passing no objects directly.
20130 compiler_needs_object=$lt_compiler_needs_object
20131
20132 # Create an old-style archive from a shared archive.
20133 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20134
20135 # Create a temporary old-style archive to link instead of a shared archive.
20136 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20137
20138 # Commands used to build a shared archive.
20139 archive_cmds=$lt_archive_cmds
20140 archive_expsym_cmds=$lt_archive_expsym_cmds
20141
20142 # Commands used to build a loadable module if different from building
20143 # a shared archive.
20144 module_cmds=$lt_module_cmds
20145 module_expsym_cmds=$lt_module_expsym_cmds
20146
20147 # Whether we are building with GNU ld or not.
20148 with_gnu_ld=$lt_with_gnu_ld
20149
20150 # Flag that allows shared libraries with undefined symbols to be built.
20151 allow_undefined_flag=$lt_allow_undefined_flag
20152
20153 # Flag that enforces no undefined symbols.
20154 no_undefined_flag=$lt_no_undefined_flag
20155
20156 # Flag to hardcode \$libdir into a binary during linking.
20157 # This must work even if \$libdir does not exist
20158 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20159
20160 # If ld is used when linking, flag to hardcode \$libdir into a binary
20161 # during linking. This must work even if \$libdir does not exist.
20162 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20163
20164 # Whether we need a single "-rpath" flag with a separated argument.
20165 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20166
20167 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20168 # DIR into the resulting binary.
20169 hardcode_direct=$hardcode_direct
20170
20171 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20172 # DIR into the resulting binary and the resulting library dependency is
20173 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20174 # library is relocated.
20175 hardcode_direct_absolute=$hardcode_direct_absolute
20176
20177 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20178 # into the resulting binary.
20179 hardcode_minus_L=$hardcode_minus_L
20180
20181 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20182 # into the resulting binary.
20183 hardcode_shlibpath_var=$hardcode_shlibpath_var
20184
20185 # Set to "yes" if building a shared library automatically hardcodes DIR
20186 # into the library and all subsequent libraries and executables linked
20187 # against it.
20188 hardcode_automatic=$hardcode_automatic
20189
20190 # Set to yes if linker adds runtime paths of dependent libraries
20191 # to runtime path list.
20192 inherit_rpath=$inherit_rpath
20193
20194 # Whether libtool must link a program against all its dependency libraries.
20195 link_all_deplibs=$link_all_deplibs
20196
20197 # Set to "yes" if exported symbols are required.
20198 always_export_symbols=$always_export_symbols
20199
20200 # The commands to list exported symbols.
20201 export_symbols_cmds=$lt_export_symbols_cmds
20202
20203 # Symbols that should not be listed in the preloaded symbols.
20204 exclude_expsyms=$lt_exclude_expsyms
20205
20206 # Symbols that must always be exported.
20207 include_expsyms=$lt_include_expsyms
20208
20209 # Commands necessary for linking programs (against libraries) with templates.
20210 prelink_cmds=$lt_prelink_cmds
20211
20212 # Commands necessary for finishing linking programs.
20213 postlink_cmds=$lt_postlink_cmds
20214
20215 # Specify filename containing input files.
20216 file_list_spec=$lt_file_list_spec
20217
20218 # How to hardcode a shared library path into an executable.
20219 hardcode_action=$hardcode_action
20220
20221 # ### END LIBTOOL CONFIG
20222
20223 _LT_EOF
20224
20225 case $host_os in
20226 aix3*)
20227 cat <<\_LT_EOF >> "$cfgfile"
20228 # AIX sometimes has problems with the GCC collect2 program. For some
20229 # reason, if we set the COLLECT_NAMES environment variable, the problems
20230 # vanish in a puff of smoke.
20231 if test "X${COLLECT_NAMES+set}" != Xset; then
20232 COLLECT_NAMES=
20233 export COLLECT_NAMES
20234 fi
20235 _LT_EOF
20236 ;;
20237 esac
20238
20239
20240 ltmain="$ac_aux_dir/ltmain.sh"
20241
20242
20243 # We use sed instead of cat because bash on DJGPP gets confused if
20244 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20245 # text mode, it properly converts lines to CR/LF. This bash problem
20246 # is reportedly fixed, but why not run on old versions too?
20247 sed '$q' "$ltmain" >> "$cfgfile" \
20248 || (rm -f "$cfgfile"; exit 1)
20249
20250 if test x"$xsi_shell" = xyes; then
20251 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20252 func_dirname ()\
20253 {\
20254 \ case ${1} in\
20255 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20256 \ * ) func_dirname_result="${3}" ;;\
20257 \ esac\
20258 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20259 && mv -f "$cfgfile.tmp" "$cfgfile" \
20260 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20261 test 0 -eq $? || _lt_function_replace_fail=:
20262
20263
20264 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20265 func_basename ()\
20266 {\
20267 \ func_basename_result="${1##*/}"\
20268 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20269 && mv -f "$cfgfile.tmp" "$cfgfile" \
20270 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20271 test 0 -eq $? || _lt_function_replace_fail=:
20272
20273
20274 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20275 func_dirname_and_basename ()\
20276 {\
20277 \ case ${1} in\
20278 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20279 \ * ) func_dirname_result="${3}" ;;\
20280 \ esac\
20281 \ func_basename_result="${1##*/}"\
20282 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20283 && mv -f "$cfgfile.tmp" "$cfgfile" \
20284 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20285 test 0 -eq $? || _lt_function_replace_fail=:
20286
20287
20288 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20289 func_stripname ()\
20290 {\
20291 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20292 \ # positional parameters, so assign one to ordinary parameter first.\
20293 \ func_stripname_result=${3}\
20294 \ func_stripname_result=${func_stripname_result#"${1}"}\
20295 \ func_stripname_result=${func_stripname_result%"${2}"}\
20296 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20297 && mv -f "$cfgfile.tmp" "$cfgfile" \
20298 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20299 test 0 -eq $? || _lt_function_replace_fail=:
20300
20301
20302 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20303 func_split_long_opt ()\
20304 {\
20305 \ func_split_long_opt_name=${1%%=*}\
20306 \ func_split_long_opt_arg=${1#*=}\
20307 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20308 && mv -f "$cfgfile.tmp" "$cfgfile" \
20309 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20310 test 0 -eq $? || _lt_function_replace_fail=:
20311
20312
20313 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20314 func_split_short_opt ()\
20315 {\
20316 \ func_split_short_opt_arg=${1#??}\
20317 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20318 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20319 && mv -f "$cfgfile.tmp" "$cfgfile" \
20320 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20321 test 0 -eq $? || _lt_function_replace_fail=:
20322
20323
20324 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20325 func_lo2o ()\
20326 {\
20327 \ case ${1} in\
20328 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20329 \ *) func_lo2o_result=${1} ;;\
20330 \ esac\
20331 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20332 && mv -f "$cfgfile.tmp" "$cfgfile" \
20333 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20334 test 0 -eq $? || _lt_function_replace_fail=:
20335
20336
20337 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20338 func_xform ()\
20339 {\
20340 func_xform_result=${1%.*}.lo\
20341 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20342 && mv -f "$cfgfile.tmp" "$cfgfile" \
20343 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20344 test 0 -eq $? || _lt_function_replace_fail=:
20345
20346
20347 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20348 func_arith ()\
20349 {\
20350 func_arith_result=$(( $* ))\
20351 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20352 && mv -f "$cfgfile.tmp" "$cfgfile" \
20353 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20354 test 0 -eq $? || _lt_function_replace_fail=:
20355
20356
20357 sed -e '/^func_len ()$/,/^} # func_len /c\
20358 func_len ()\
20359 {\
20360 func_len_result=${#1}\
20361 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20362 && mv -f "$cfgfile.tmp" "$cfgfile" \
20363 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20364 test 0 -eq $? || _lt_function_replace_fail=:
20365
20366 fi
20367
20368 if test x"$lt_shell_append" = xyes; then
20369 sed -e '/^func_append ()$/,/^} # func_append /c\
20370 func_append ()\
20371 {\
20372 eval "${1}+=\\${2}"\
20373 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20374 && mv -f "$cfgfile.tmp" "$cfgfile" \
20375 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20376 test 0 -eq $? || _lt_function_replace_fail=:
20377
20378
20379 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20380 func_append_quoted ()\
20381 {\
20382 \ func_quote_for_eval "${2}"\
20383 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20384 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20385 && mv -f "$cfgfile.tmp" "$cfgfile" \
20386 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20387 test 0 -eq $? || _lt_function_replace_fail=:
20388
20389
20390 # Save a `func_append' function call where possible by direct use of '+='
20391 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20392 && mv -f "$cfgfile.tmp" "$cfgfile" \
20393 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20394 test 0 -eq $? || _lt_function_replace_fail=:
20395 else
20396 # Save a `func_append' function call even when '+=' is not available
20397 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20398 && mv -f "$cfgfile.tmp" "$cfgfile" \
20399 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20400 test 0 -eq $? || _lt_function_replace_fail=:
20401 fi
20402
20403 if test x"$_lt_function_replace_fail" = x":"; then
20404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20405 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20406 fi
20407
20408
20409 mv -f "$cfgfile" "$ofile" ||
20410 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20411 chmod +x "$ofile"
20412
20413 ;;
20414
20415 esac
20416 done # for ac_tag
20417
20418
20419 as_fn_exit 0
20420 _ACEOF
20421 ac_clean_files=$ac_clean_files_save
20422
20423 test $ac_write_fail = 0 ||
20424 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20425
20426
20427 # configure is writing to config.log, and then calls config.status.
20428 # config.status does its own redirection, appending to config.log.
20429 # Unfortunately, on DOS this fails, as config.log is still kept open
20430 # by configure, so config.status won't be able to write to it; its
20431 # output is simply discarded. So we exec the FD to /dev/null,
20432 # effectively closing config.log, so it can be properly (re)opened and
20433 # appended to by config.status. When coming back to configure, we
20434 # need to make the FD available again.
20435 if test "$no_create" != yes; then
20436 ac_cs_success=:
20437 ac_config_status_args=
20438 test "$silent" = yes &&
20439 ac_config_status_args="$ac_config_status_args --quiet"
20440 exec 5>/dev/null
20441 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20442 exec 5>>config.log
20443 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20444 # would make configure fail if this is the last instruction.
20445 $ac_cs_success || as_fn_exit 1
20446 fi
20447 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20449 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20450 fi
20451
20452