configure revision 1.1.1.5 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for xf86-video-i740 1.3.4.
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-i740'
573 PACKAGE_TARNAME='xf86-video-i740'
574 PACKAGE_VERSION='1.3.4'
575 PACKAGE_STRING='xf86-video-i740 1.3.4'
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 AM_DEFAULT_V
651 AM_V
652 MAN_SUBSTS
653 XORG_MAN_PAGE
654 ADMIN_MAN_DIR
655 DRIVER_MAN_DIR
656 MISC_MAN_DIR
657 FILE_MAN_DIR
658 LIB_MAN_DIR
659 APP_MAN_DIR
660 ADMIN_MAN_SUFFIX
661 DRIVER_MAN_SUFFIX
662 MISC_MAN_SUFFIX
663 FILE_MAN_SUFFIX
664 LIB_MAN_SUFFIX
665 APP_MAN_SUFFIX
666 SED
667 host_os
668 host_vendor
669 host_cpu
670 host
671 build_os
672 build_vendor
673 build_cpu
674 build
675 INSTALL_CMD
676 PKG_CONFIG_LIBDIR
677 PKG_CONFIG_PATH
678 PKG_CONFIG
679 CHANGELOG_CMD
680 STRICT_CFLAGS
681 CWARNFLAGS
682 BASE_CFLAGS
683 EGREP
684 GREP
685 CPP
686 am__fastdepCC_FALSE
687 am__fastdepCC_TRUE
688 CCDEPMODE
689 am__nodep
690 AMDEPBACKSLASH
691 AMDEP_FALSE
692 AMDEP_TRUE
693 am__quote
694 am__include
695 DEPDIR
696 OBJEXT
697 EXEEXT
698 ac_ct_CC
699 CPPFLAGS
700 LDFLAGS
701 CFLAGS
702 CC
703 MAINT
704 MAINTAINER_MODE_FALSE
705 MAINTAINER_MODE_TRUE
706 am__untar
707 am__tar
708 AMTAR
709 am__leading_dot
710 SET_MAKE
711 AWK
712 mkdir_p
713 MKDIR_P
714 INSTALL_STRIP_PROGRAM
715 STRIP
716 install_sh
717 MAKEINFO
718 AUTOHEADER
719 AUTOMAKE
720 AUTOCONF
721 ACLOCAL
722 VERSION
723 PACKAGE
724 CYGPATH_W
725 am__isrc
726 INSTALL_DATA
727 INSTALL_SCRIPT
728 INSTALL_PROGRAM
729 target_alias
730 host_alias
731 build_alias
732 LIBS
733 ECHO_T
734 ECHO_N
735 ECHO_C
736 DEFS
737 mandir
738 localedir
739 libdir
740 psdir
741 pdfdir
742 dvidir
743 htmldir
744 infodir
745 docdir
746 oldincludedir
747 includedir
748 localstatedir
749 sharedstatedir
750 sysconfdir
751 datadir
752 datarootdir
753 libexecdir
754 sbindir
755 bindir
756 program_transform_name
757 prefix
758 exec_prefix
759 PACKAGE_URL
760 PACKAGE_BUGREPORT
761 PACKAGE_STRING
762 PACKAGE_VERSION
763 PACKAGE_TARNAME
764 PACKAGE_NAME
765 PATH_SEPARATOR
766 SHELL'
767 ac_subst_files=''
768 ac_user_opts='
769 enable_option_checking
770 enable_maintainer_mode
771 enable_dependency_tracking
772 enable_selective_werror
773 enable_strict_compilation
774 enable_silent_rules
775 enable_static
776 enable_shared
777 with_pic
778 enable_fast_install
779 with_gnu_ld
780 with_sysroot
781 enable_libtool_lock
782 with_xorg_module_dir
783 enable_xaa
784 '
785 ac_precious_vars='build_alias
786 host_alias
787 target_alias
788 CC
789 CFLAGS
790 LDFLAGS
791 LIBS
792 CPPFLAGS
793 CPP
794 PKG_CONFIG
795 PKG_CONFIG_PATH
796 PKG_CONFIG_LIBDIR
797 XORG_CFLAGS
798 XORG_LIBS
799 PCIACCESS_CFLAGS
800 PCIACCESS_LIBS'
801
802
803 # Initialize some variables set by options.
804 ac_init_help=
805 ac_init_version=false
806 ac_unrecognized_opts=
807 ac_unrecognized_sep=
808 # The variables have the same names as the options, with
809 # dashes changed to underlines.
810 cache_file=/dev/null
811 exec_prefix=NONE
812 no_create=
813 no_recursion=
814 prefix=NONE
815 program_prefix=NONE
816 program_suffix=NONE
817 program_transform_name=s,x,x,
818 silent=
819 site=
820 srcdir=
821 verbose=
822 x_includes=NONE
823 x_libraries=NONE
824
825 # Installation directory options.
826 # These are left unexpanded so users can "make install exec_prefix=/foo"
827 # and all the variables that are supposed to be based on exec_prefix
828 # by default will actually change.
829 # Use braces instead of parens because sh, perl, etc. also accept them.
830 # (The list follows the same order as the GNU Coding Standards.)
831 bindir='${exec_prefix}/bin'
832 sbindir='${exec_prefix}/sbin'
833 libexecdir='${exec_prefix}/libexec'
834 datarootdir='${prefix}/share'
835 datadir='${datarootdir}'
836 sysconfdir='${prefix}/etc'
837 sharedstatedir='${prefix}/com'
838 localstatedir='${prefix}/var'
839 includedir='${prefix}/include'
840 oldincludedir='/usr/include'
841 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
842 infodir='${datarootdir}/info'
843 htmldir='${docdir}'
844 dvidir='${docdir}'
845 pdfdir='${docdir}'
846 psdir='${docdir}'
847 libdir='${exec_prefix}/lib'
848 localedir='${datarootdir}/locale'
849 mandir='${datarootdir}/man'
850
851 ac_prev=
852 ac_dashdash=
853 for ac_option
854 do
855 # If the previous option needs an argument, assign it.
856 if test -n "$ac_prev"; then
857 eval $ac_prev=\$ac_option
858 ac_prev=
859 continue
860 fi
861
862 case $ac_option in
863 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
864 *=) ac_optarg= ;;
865 *) ac_optarg=yes ;;
866 esac
867
868 # Accept the important Cygnus configure options, so we can diagnose typos.
869
870 case $ac_dashdash$ac_option in
871 --)
872 ac_dashdash=yes ;;
873
874 -bindir | --bindir | --bindi | --bind | --bin | --bi)
875 ac_prev=bindir ;;
876 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
877 bindir=$ac_optarg ;;
878
879 -build | --build | --buil | --bui | --bu)
880 ac_prev=build_alias ;;
881 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
882 build_alias=$ac_optarg ;;
883
884 -cache-file | --cache-file | --cache-fil | --cache-fi \
885 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
886 ac_prev=cache_file ;;
887 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
888 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
889 cache_file=$ac_optarg ;;
890
891 --config-cache | -C)
892 cache_file=config.cache ;;
893
894 -datadir | --datadir | --datadi | --datad)
895 ac_prev=datadir ;;
896 -datadir=* | --datadir=* | --datadi=* | --datad=*)
897 datadir=$ac_optarg ;;
898
899 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
900 | --dataroo | --dataro | --datar)
901 ac_prev=datarootdir ;;
902 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
903 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
904 datarootdir=$ac_optarg ;;
905
906 -disable-* | --disable-*)
907 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
908 # Reject names that are not valid shell variable names.
909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910 as_fn_error $? "invalid feature name: $ac_useropt"
911 ac_useropt_orig=$ac_useropt
912 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913 case $ac_user_opts in
914 *"
915 "enable_$ac_useropt"
916 "*) ;;
917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
918 ac_unrecognized_sep=', ';;
919 esac
920 eval enable_$ac_useropt=no ;;
921
922 -docdir | --docdir | --docdi | --doc | --do)
923 ac_prev=docdir ;;
924 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
925 docdir=$ac_optarg ;;
926
927 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
928 ac_prev=dvidir ;;
929 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
930 dvidir=$ac_optarg ;;
931
932 -enable-* | --enable-*)
933 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936 as_fn_error $? "invalid feature name: $ac_useropt"
937 ac_useropt_orig=$ac_useropt
938 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939 case $ac_user_opts in
940 *"
941 "enable_$ac_useropt"
942 "*) ;;
943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
944 ac_unrecognized_sep=', ';;
945 esac
946 eval enable_$ac_useropt=\$ac_optarg ;;
947
948 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950 | --exec | --exe | --ex)
951 ac_prev=exec_prefix ;;
952 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954 | --exec=* | --exe=* | --ex=*)
955 exec_prefix=$ac_optarg ;;
956
957 -gas | --gas | --ga | --g)
958 # Obsolete; use --with-gas.
959 with_gas=yes ;;
960
961 -help | --help | --hel | --he | -h)
962 ac_init_help=long ;;
963 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964 ac_init_help=recursive ;;
965 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966 ac_init_help=short ;;
967
968 -host | --host | --hos | --ho)
969 ac_prev=host_alias ;;
970 -host=* | --host=* | --hos=* | --ho=*)
971 host_alias=$ac_optarg ;;
972
973 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974 ac_prev=htmldir ;;
975 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976 | --ht=*)
977 htmldir=$ac_optarg ;;
978
979 -includedir | --includedir | --includedi | --included | --include \
980 | --includ | --inclu | --incl | --inc)
981 ac_prev=includedir ;;
982 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983 | --includ=* | --inclu=* | --incl=* | --inc=*)
984 includedir=$ac_optarg ;;
985
986 -infodir | --infodir | --infodi | --infod | --info | --inf)
987 ac_prev=infodir ;;
988 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989 infodir=$ac_optarg ;;
990
991 -libdir | --libdir | --libdi | --libd)
992 ac_prev=libdir ;;
993 -libdir=* | --libdir=* | --libdi=* | --libd=*)
994 libdir=$ac_optarg ;;
995
996 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997 | --libexe | --libex | --libe)
998 ac_prev=libexecdir ;;
999 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000 | --libexe=* | --libex=* | --libe=*)
1001 libexecdir=$ac_optarg ;;
1002
1003 -localedir | --localedir | --localedi | --localed | --locale)
1004 ac_prev=localedir ;;
1005 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006 localedir=$ac_optarg ;;
1007
1008 -localstatedir | --localstatedir | --localstatedi | --localstated \
1009 | --localstate | --localstat | --localsta | --localst | --locals)
1010 ac_prev=localstatedir ;;
1011 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1012 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1013 localstatedir=$ac_optarg ;;
1014
1015 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016 ac_prev=mandir ;;
1017 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018 mandir=$ac_optarg ;;
1019
1020 -nfp | --nfp | --nf)
1021 # Obsolete; use --without-fp.
1022 with_fp=no ;;
1023
1024 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025 | --no-cr | --no-c | -n)
1026 no_create=yes ;;
1027
1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030 no_recursion=yes ;;
1031
1032 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034 | --oldin | --oldi | --old | --ol | --o)
1035 ac_prev=oldincludedir ;;
1036 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039 oldincludedir=$ac_optarg ;;
1040
1041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042 ac_prev=prefix ;;
1043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044 prefix=$ac_optarg ;;
1045
1046 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047 | --program-pre | --program-pr | --program-p)
1048 ac_prev=program_prefix ;;
1049 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051 program_prefix=$ac_optarg ;;
1052
1053 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054 | --program-suf | --program-su | --program-s)
1055 ac_prev=program_suffix ;;
1056 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058 program_suffix=$ac_optarg ;;
1059
1060 -program-transform-name | --program-transform-name \
1061 | --program-transform-nam | --program-transform-na \
1062 | --program-transform-n | --program-transform- \
1063 | --program-transform | --program-transfor \
1064 | --program-transfo | --program-transf \
1065 | --program-trans | --program-tran \
1066 | --progr-tra | --program-tr | --program-t)
1067 ac_prev=program_transform_name ;;
1068 -program-transform-name=* | --program-transform-name=* \
1069 | --program-transform-nam=* | --program-transform-na=* \
1070 | --program-transform-n=* | --program-transform-=* \
1071 | --program-transform=* | --program-transfor=* \
1072 | --program-transfo=* | --program-transf=* \
1073 | --program-trans=* | --program-tran=* \
1074 | --progr-tra=* | --program-tr=* | --program-t=*)
1075 program_transform_name=$ac_optarg ;;
1076
1077 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078 ac_prev=pdfdir ;;
1079 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080 pdfdir=$ac_optarg ;;
1081
1082 -psdir | --psdir | --psdi | --psd | --ps)
1083 ac_prev=psdir ;;
1084 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085 psdir=$ac_optarg ;;
1086
1087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088 | -silent | --silent | --silen | --sile | --sil)
1089 silent=yes ;;
1090
1091 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092 ac_prev=sbindir ;;
1093 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094 | --sbi=* | --sb=*)
1095 sbindir=$ac_optarg ;;
1096
1097 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1098 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1099 | --sharedst | --shareds | --shared | --share | --shar \
1100 | --sha | --sh)
1101 ac_prev=sharedstatedir ;;
1102 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1103 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1104 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105 | --sha=* | --sh=*)
1106 sharedstatedir=$ac_optarg ;;
1107
1108 -site | --site | --sit)
1109 ac_prev=site ;;
1110 -site=* | --site=* | --sit=*)
1111 site=$ac_optarg ;;
1112
1113 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114 ac_prev=srcdir ;;
1115 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1116 srcdir=$ac_optarg ;;
1117
1118 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1119 | --syscon | --sysco | --sysc | --sys | --sy)
1120 ac_prev=sysconfdir ;;
1121 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1122 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1123 sysconfdir=$ac_optarg ;;
1124
1125 -target | --target | --targe | --targ | --tar | --ta | --t)
1126 ac_prev=target_alias ;;
1127 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1128 target_alias=$ac_optarg ;;
1129
1130 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1131 verbose=yes ;;
1132
1133 -version | --version | --versio | --versi | --vers | -V)
1134 ac_init_version=: ;;
1135
1136 -with-* | --with-*)
1137 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1138 # Reject names that are not valid shell variable names.
1139 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140 as_fn_error $? "invalid package name: $ac_useropt"
1141 ac_useropt_orig=$ac_useropt
1142 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143 case $ac_user_opts in
1144 *"
1145 "with_$ac_useropt"
1146 "*) ;;
1147 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1148 ac_unrecognized_sep=', ';;
1149 esac
1150 eval with_$ac_useropt=\$ac_optarg ;;
1151
1152 -without-* | --without-*)
1153 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156 as_fn_error $? "invalid package name: $ac_useropt"
1157 ac_useropt_orig=$ac_useropt
1158 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159 case $ac_user_opts in
1160 *"
1161 "with_$ac_useropt"
1162 "*) ;;
1163 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1164 ac_unrecognized_sep=', ';;
1165 esac
1166 eval with_$ac_useropt=no ;;
1167
1168 --x)
1169 # Obsolete; use --with-x.
1170 with_x=yes ;;
1171
1172 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1173 | --x-incl | --x-inc | --x-in | --x-i)
1174 ac_prev=x_includes ;;
1175 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1176 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1177 x_includes=$ac_optarg ;;
1178
1179 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1180 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1181 ac_prev=x_libraries ;;
1182 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1183 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1184 x_libraries=$ac_optarg ;;
1185
1186 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1187 Try \`$0 --help' for more information"
1188 ;;
1189
1190 *=*)
1191 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1192 # Reject names that are not valid shell variable names.
1193 case $ac_envvar in #(
1194 '' | [0-9]* | *[!_$as_cr_alnum]* )
1195 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1196 esac
1197 eval $ac_envvar=\$ac_optarg
1198 export $ac_envvar ;;
1199
1200 *)
1201 # FIXME: should be removed in autoconf 3.0.
1202 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1203 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1204 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1205 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1206 ;;
1207
1208 esac
1209 done
1210
1211 if test -n "$ac_prev"; then
1212 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1213 as_fn_error $? "missing argument to $ac_option"
1214 fi
1215
1216 if test -n "$ac_unrecognized_opts"; then
1217 case $enable_option_checking in
1218 no) ;;
1219 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1220 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1221 esac
1222 fi
1223
1224 # Check all directory arguments for consistency.
1225 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1226 datadir sysconfdir sharedstatedir localstatedir includedir \
1227 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1228 libdir localedir mandir
1229 do
1230 eval ac_val=\$$ac_var
1231 # Remove trailing slashes.
1232 case $ac_val in
1233 */ )
1234 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1235 eval $ac_var=\$ac_val;;
1236 esac
1237 # Be sure to have absolute directory names.
1238 case $ac_val in
1239 [\\/$]* | ?:[\\/]* ) continue;;
1240 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1241 esac
1242 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1243 done
1244
1245 # There might be people who depend on the old broken behavior: `$host'
1246 # used to hold the argument of --host etc.
1247 # FIXME: To remove some day.
1248 build=$build_alias
1249 host=$host_alias
1250 target=$target_alias
1251
1252 # FIXME: To remove some day.
1253 if test "x$host_alias" != x; then
1254 if test "x$build_alias" = x; then
1255 cross_compiling=maybe
1256 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1257 If a cross compiler is detected then cross compile mode will be used" >&2
1258 elif test "x$build_alias" != "x$host_alias"; then
1259 cross_compiling=yes
1260 fi
1261 fi
1262
1263 ac_tool_prefix=
1264 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1265
1266 test "$silent" = yes && exec 6>/dev/null
1267
1268
1269 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1270 ac_ls_di=`ls -di .` &&
1271 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1272 as_fn_error $? "working directory cannot be determined"
1273 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1274 as_fn_error $? "pwd does not report name of working directory"
1275
1276
1277 # Find the source files, if location was not specified.
1278 if test -z "$srcdir"; then
1279 ac_srcdir_defaulted=yes
1280 # Try the directory containing this script, then the parent directory.
1281 ac_confdir=`$as_dirname -- "$as_myself" ||
1282 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1283 X"$as_myself" : 'X\(//\)[^/]' \| \
1284 X"$as_myself" : 'X\(//\)$' \| \
1285 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1286 $as_echo X"$as_myself" |
1287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1288 s//\1/
1289 q
1290 }
1291 /^X\(\/\/\)[^/].*/{
1292 s//\1/
1293 q
1294 }
1295 /^X\(\/\/\)$/{
1296 s//\1/
1297 q
1298 }
1299 /^X\(\/\).*/{
1300 s//\1/
1301 q
1302 }
1303 s/.*/./; q'`
1304 srcdir=$ac_confdir
1305 if test ! -r "$srcdir/$ac_unique_file"; then
1306 srcdir=..
1307 fi
1308 else
1309 ac_srcdir_defaulted=no
1310 fi
1311 if test ! -r "$srcdir/$ac_unique_file"; then
1312 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1313 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1314 fi
1315 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1316 ac_abs_confdir=`(
1317 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1318 pwd)`
1319 # When building in place, set srcdir=.
1320 if test "$ac_abs_confdir" = "$ac_pwd"; then
1321 srcdir=.
1322 fi
1323 # Remove unnecessary trailing slashes from srcdir.
1324 # Double slashes in file names in object file debugging info
1325 # mess up M-x gdb in Emacs.
1326 case $srcdir in
1327 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1328 esac
1329 for ac_var in $ac_precious_vars; do
1330 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1331 eval ac_env_${ac_var}_value=\$${ac_var}
1332 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1333 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1334 done
1335
1336 #
1337 # Report the --help message.
1338 #
1339 if test "$ac_init_help" = "long"; then
1340 # Omit some internal or obsolete options to make the list less imposing.
1341 # This message is too long to be a string in the A/UX 3.1 sh.
1342 cat <<_ACEOF
1343 \`configure' configures xf86-video-i740 1.3.4 to adapt to many kinds of systems.
1344
1345 Usage: $0 [OPTION]... [VAR=VALUE]...
1346
1347 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1348 VAR=VALUE. See below for descriptions of some of the useful variables.
1349
1350 Defaults for the options are specified in brackets.
1351
1352 Configuration:
1353 -h, --help display this help and exit
1354 --help=short display options specific to this package
1355 --help=recursive display the short help of all the included packages
1356 -V, --version display version information and exit
1357 -q, --quiet, --silent do not print \`checking ...' messages
1358 --cache-file=FILE cache test results in FILE [disabled]
1359 -C, --config-cache alias for \`--cache-file=config.cache'
1360 -n, --no-create do not create output files
1361 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1362
1363 Installation directories:
1364 --prefix=PREFIX install architecture-independent files in PREFIX
1365 [$ac_default_prefix]
1366 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1367 [PREFIX]
1368
1369 By default, \`make install' will install all the files in
1370 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1371 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1372 for instance \`--prefix=\$HOME'.
1373
1374 For better control, use the options below.
1375
1376 Fine tuning of the installation directories:
1377 --bindir=DIR user executables [EPREFIX/bin]
1378 --sbindir=DIR system admin executables [EPREFIX/sbin]
1379 --libexecdir=DIR program executables [EPREFIX/libexec]
1380 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1381 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1382 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1383 --libdir=DIR object code libraries [EPREFIX/lib]
1384 --includedir=DIR C header files [PREFIX/include]
1385 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1386 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1387 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1388 --infodir=DIR info documentation [DATAROOTDIR/info]
1389 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1390 --mandir=DIR man documentation [DATAROOTDIR/man]
1391 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-i740]
1392 --htmldir=DIR html documentation [DOCDIR]
1393 --dvidir=DIR dvi documentation [DOCDIR]
1394 --pdfdir=DIR pdf documentation [DOCDIR]
1395 --psdir=DIR ps documentation [DOCDIR]
1396 _ACEOF
1397
1398 cat <<\_ACEOF
1399
1400 Program names:
1401 --program-prefix=PREFIX prepend PREFIX to installed program names
1402 --program-suffix=SUFFIX append SUFFIX to installed program names
1403 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1404
1405 System types:
1406 --build=BUILD configure for building on BUILD [guessed]
1407 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1408 _ACEOF
1409 fi
1410
1411 if test -n "$ac_init_help"; then
1412 case $ac_init_help in
1413 short | recursive ) echo "Configuration of xf86-video-i740 1.3.4:";;
1414 esac
1415 cat <<\_ACEOF
1416
1417 Optional Features:
1418 --disable-option-checking ignore unrecognized --enable/--with options
1419 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1420 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1421 --enable-maintainer-mode enable make rules and dependencies not useful
1422 (and sometimes confusing) to the casual installer
1423 --disable-dependency-tracking speeds up one-time build
1424 --enable-dependency-tracking do not reject slow dependency extractors
1425 --disable-selective-werror
1426 Turn off selective compiler errors. (default:
1427 enabled)
1428 --enable-strict-compilation
1429 Enable all warnings from compiler and make them
1430 errors (default: disabled)
1431 --enable-silent-rules less verbose build output (undo: `make V=1')
1432 --disable-silent-rules verbose build output (undo: `make V=0')
1433 --enable-static[=PKGS] build static libraries [default=no]
1434 --enable-shared[=PKGS] build shared libraries [default=yes]
1435 --enable-fast-install[=PKGS]
1436 optimize for fast installation [default=yes]
1437 --disable-libtool-lock avoid locking (might break parallel builds)
1438 --enable-xaa Enable legacy X Acceleration Architecture (XAA)
1439 [default=auto]
1440
1441 Optional Packages:
1442 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1443 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1444 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1445 both]
1446 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1447 --with-sysroot=DIR Search for dependent libraries within DIR
1448 (or the compiler's sysroot if not specified).
1449 --with-xorg-module-dir=DIR
1450 Default xorg module directory
1451 [[default=$libdir/xorg/modules]]
1452
1453 Some influential environment variables:
1454 CC C compiler command
1455 CFLAGS C compiler flags
1456 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1457 nonstandard directory <lib dir>
1458 LIBS libraries to pass to the linker, e.g. -l<library>
1459 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1460 you have headers in a nonstandard directory <include dir>
1461 CPP C preprocessor
1462 PKG_CONFIG path to pkg-config utility
1463 PKG_CONFIG_PATH
1464 directories to add to pkg-config's search path
1465 PKG_CONFIG_LIBDIR
1466 path overriding pkg-config's built-in search path
1467 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1468 XORG_LIBS linker flags for XORG, overriding pkg-config
1469 PCIACCESS_CFLAGS
1470 C compiler flags for PCIACCESS, overriding pkg-config
1471 PCIACCESS_LIBS
1472 linker flags for PCIACCESS, overriding pkg-config
1473
1474 Use these variables to override the choices made by `configure' or to help
1475 it to find libraries and programs with nonstandard names/locations.
1476
1477 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1478 _ACEOF
1479 ac_status=$?
1480 fi
1481
1482 if test "$ac_init_help" = "recursive"; then
1483 # If there are subdirs, report their specific --help.
1484 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1485 test -d "$ac_dir" ||
1486 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1487 continue
1488 ac_builddir=.
1489
1490 case "$ac_dir" in
1491 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492 *)
1493 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1494 # A ".." for each directory in $ac_dir_suffix.
1495 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1496 case $ac_top_builddir_sub in
1497 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1499 esac ;;
1500 esac
1501 ac_abs_top_builddir=$ac_pwd
1502 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1503 # for backward compatibility:
1504 ac_top_builddir=$ac_top_build_prefix
1505
1506 case $srcdir in
1507 .) # We are building in place.
1508 ac_srcdir=.
1509 ac_top_srcdir=$ac_top_builddir_sub
1510 ac_abs_top_srcdir=$ac_pwd ;;
1511 [\\/]* | ?:[\\/]* ) # Absolute name.
1512 ac_srcdir=$srcdir$ac_dir_suffix;
1513 ac_top_srcdir=$srcdir
1514 ac_abs_top_srcdir=$srcdir ;;
1515 *) # Relative name.
1516 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1517 ac_top_srcdir=$ac_top_build_prefix$srcdir
1518 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1519 esac
1520 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1521
1522 cd "$ac_dir" || { ac_status=$?; continue; }
1523 # Check for guested configure.
1524 if test -f "$ac_srcdir/configure.gnu"; then
1525 echo &&
1526 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1527 elif test -f "$ac_srcdir/configure"; then
1528 echo &&
1529 $SHELL "$ac_srcdir/configure" --help=recursive
1530 else
1531 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1532 fi || ac_status=$?
1533 cd "$ac_pwd" || { ac_status=$?; break; }
1534 done
1535 fi
1536
1537 test -n "$ac_init_help" && exit $ac_status
1538 if $ac_init_version; then
1539 cat <<\_ACEOF
1540 xf86-video-i740 configure 1.3.4
1541 generated by GNU Autoconf 2.68
1542
1543 Copyright (C) 2010 Free Software Foundation, Inc.
1544 This configure script is free software; the Free Software Foundation
1545 gives unlimited permission to copy, distribute and modify it.
1546 _ACEOF
1547 exit
1548 fi
1549
1550 ## ------------------------ ##
1551 ## Autoconf initialization. ##
1552 ## ------------------------ ##
1553
1554 # ac_fn_c_try_compile LINENO
1555 # --------------------------
1556 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1557 ac_fn_c_try_compile ()
1558 {
1559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560 rm -f conftest.$ac_objext
1561 if { { ac_try="$ac_compile"
1562 case "(($ac_try" in
1563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1564 *) ac_try_echo=$ac_try;;
1565 esac
1566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567 $as_echo "$ac_try_echo"; } >&5
1568 (eval "$ac_compile") 2>conftest.err
1569 ac_status=$?
1570 if test -s conftest.err; then
1571 grep -v '^ *+' conftest.err >conftest.er1
1572 cat conftest.er1 >&5
1573 mv -f conftest.er1 conftest.err
1574 fi
1575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576 test $ac_status = 0; } && {
1577 test -z "$ac_c_werror_flag" ||
1578 test ! -s conftest.err
1579 } && test -s conftest.$ac_objext; then :
1580 ac_retval=0
1581 else
1582 $as_echo "$as_me: failed program was:" >&5
1583 sed 's/^/| /' conftest.$ac_ext >&5
1584
1585 ac_retval=1
1586 fi
1587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1588 as_fn_set_status $ac_retval
1589
1590 } # ac_fn_c_try_compile
1591
1592 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1593 # ---------------------------------------------
1594 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1595 # accordingly.
1596 ac_fn_c_check_decl ()
1597 {
1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599 as_decl_name=`echo $2|sed 's/ *(.*//'`
1600 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1602 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1603 if eval \${$3+:} false; then :
1604 $as_echo_n "(cached) " >&6
1605 else
1606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1607 /* end confdefs.h. */
1608 $4
1609 int
1610 main ()
1611 {
1612 #ifndef $as_decl_name
1613 #ifdef __cplusplus
1614 (void) $as_decl_use;
1615 #else
1616 (void) $as_decl_name;
1617 #endif
1618 #endif
1619
1620 ;
1621 return 0;
1622 }
1623 _ACEOF
1624 if ac_fn_c_try_compile "$LINENO"; then :
1625 eval "$3=yes"
1626 else
1627 eval "$3=no"
1628 fi
1629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1630 fi
1631 eval ac_res=\$$3
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1633 $as_echo "$ac_res" >&6; }
1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635
1636 } # ac_fn_c_check_decl
1637
1638 # ac_fn_c_try_cpp LINENO
1639 # ----------------------
1640 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1641 ac_fn_c_try_cpp ()
1642 {
1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644 if { { ac_try="$ac_cpp conftest.$ac_ext"
1645 case "(($ac_try" in
1646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647 *) ac_try_echo=$ac_try;;
1648 esac
1649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650 $as_echo "$ac_try_echo"; } >&5
1651 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1652 ac_status=$?
1653 if test -s conftest.err; then
1654 grep -v '^ *+' conftest.err >conftest.er1
1655 cat conftest.er1 >&5
1656 mv -f conftest.er1 conftest.err
1657 fi
1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; } > conftest.i && {
1660 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1661 test ! -s conftest.err
1662 }; then :
1663 ac_retval=0
1664 else
1665 $as_echo "$as_me: failed program was:" >&5
1666 sed 's/^/| /' conftest.$ac_ext >&5
1667
1668 ac_retval=1
1669 fi
1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671 as_fn_set_status $ac_retval
1672
1673 } # ac_fn_c_try_cpp
1674
1675 # ac_fn_c_try_run LINENO
1676 # ----------------------
1677 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1678 # that executables *can* be run.
1679 ac_fn_c_try_run ()
1680 {
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 if { { ac_try="$ac_link"
1683 case "(($ac_try" in
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1686 esac
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_link") 2>&5
1690 ac_status=$?
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1693 { { case "(($ac_try" in
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1696 esac
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_try") 2>&5
1700 ac_status=$?
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; }; }; then :
1703 ac_retval=0
1704 else
1705 $as_echo "$as_me: program exited with status $ac_status" >&5
1706 $as_echo "$as_me: failed program was:" >&5
1707 sed 's/^/| /' conftest.$ac_ext >&5
1708
1709 ac_retval=$ac_status
1710 fi
1711 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 as_fn_set_status $ac_retval
1714
1715 } # ac_fn_c_try_run
1716
1717 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1718 # -------------------------------------------------------
1719 # Tests whether HEADER exists and can be compiled using the include files in
1720 # INCLUDES, setting the cache variable VAR accordingly.
1721 ac_fn_c_check_header_compile ()
1722 {
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725 $as_echo_n "checking for $2... " >&6; }
1726 if eval \${$3+:} false; then :
1727 $as_echo_n "(cached) " >&6
1728 else
1729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730 /* end confdefs.h. */
1731 $4
1732 #include <$2>
1733 _ACEOF
1734 if ac_fn_c_try_compile "$LINENO"; then :
1735 eval "$3=yes"
1736 else
1737 eval "$3=no"
1738 fi
1739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1740 fi
1741 eval ac_res=\$$3
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1743 $as_echo "$ac_res" >&6; }
1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745
1746 } # ac_fn_c_check_header_compile
1747
1748 # ac_fn_c_try_link LINENO
1749 # -----------------------
1750 # Try to link conftest.$ac_ext, and return whether this succeeded.
1751 ac_fn_c_try_link ()
1752 {
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 rm -f conftest.$ac_objext conftest$ac_exeext
1755 if { { ac_try="$ac_link"
1756 case "(($ac_try" in
1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758 *) ac_try_echo=$ac_try;;
1759 esac
1760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761 $as_echo "$ac_try_echo"; } >&5
1762 (eval "$ac_link") 2>conftest.err
1763 ac_status=$?
1764 if test -s conftest.err; then
1765 grep -v '^ *+' conftest.err >conftest.er1
1766 cat conftest.er1 >&5
1767 mv -f conftest.er1 conftest.err
1768 fi
1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770 test $ac_status = 0; } && {
1771 test -z "$ac_c_werror_flag" ||
1772 test ! -s conftest.err
1773 } && test -s conftest$ac_exeext && {
1774 test "$cross_compiling" = yes ||
1775 $as_test_x conftest$ac_exeext
1776 }; then :
1777 ac_retval=0
1778 else
1779 $as_echo "$as_me: failed program was:" >&5
1780 sed 's/^/| /' conftest.$ac_ext >&5
1781
1782 ac_retval=1
1783 fi
1784 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1785 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1786 # interfere with the next link command; also delete a directory that is
1787 # left behind by Apple's compiler. We do this before executing the actions.
1788 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790 as_fn_set_status $ac_retval
1791
1792 } # ac_fn_c_try_link
1793
1794 # ac_fn_c_check_func LINENO FUNC VAR
1795 # ----------------------------------
1796 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1797 ac_fn_c_check_func ()
1798 {
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1801 $as_echo_n "checking for $2... " >&6; }
1802 if eval \${$3+:} false; then :
1803 $as_echo_n "(cached) " >&6
1804 else
1805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806 /* end confdefs.h. */
1807 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1809 #define $2 innocuous_$2
1810
1811 /* System header to define __stub macros and hopefully few prototypes,
1812 which can conflict with char $2 (); below.
1813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1814 <limits.h> exists even on freestanding compilers. */
1815
1816 #ifdef __STDC__
1817 # include <limits.h>
1818 #else
1819 # include <assert.h>
1820 #endif
1821
1822 #undef $2
1823
1824 /* Override any GCC internal prototype to avoid an error.
1825 Use char because int might match the return type of a GCC
1826 builtin and then its argument prototype would still apply. */
1827 #ifdef __cplusplus
1828 extern "C"
1829 #endif
1830 char $2 ();
1831 /* The GNU C library defines this for functions which it implements
1832 to always fail with ENOSYS. Some functions are actually named
1833 something starting with __ and the normal name is an alias. */
1834 #if defined __stub_$2 || defined __stub___$2
1835 choke me
1836 #endif
1837
1838 int
1839 main ()
1840 {
1841 return $2 ();
1842 ;
1843 return 0;
1844 }
1845 _ACEOF
1846 if ac_fn_c_try_link "$LINENO"; then :
1847 eval "$3=yes"
1848 else
1849 eval "$3=no"
1850 fi
1851 rm -f core conftest.err conftest.$ac_objext \
1852 conftest$ac_exeext conftest.$ac_ext
1853 fi
1854 eval ac_res=\$$3
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856 $as_echo "$ac_res" >&6; }
1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858
1859 } # ac_fn_c_check_func
1860
1861 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1862 # -------------------------------------------------------
1863 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1864 # the include files in INCLUDES and setting the cache variable VAR
1865 # accordingly.
1866 ac_fn_c_check_header_mongrel ()
1867 {
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 if eval \${$3+:} false; then :
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871 $as_echo_n "checking for $2... " >&6; }
1872 if eval \${$3+:} false; then :
1873 $as_echo_n "(cached) " >&6
1874 fi
1875 eval ac_res=\$$3
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877 $as_echo "$ac_res" >&6; }
1878 else
1879 # Is the header compilable?
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1881 $as_echo_n "checking $2 usability... " >&6; }
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h. */
1884 $4
1885 #include <$2>
1886 _ACEOF
1887 if ac_fn_c_try_compile "$LINENO"; then :
1888 ac_header_compiler=yes
1889 else
1890 ac_header_compiler=no
1891 fi
1892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1894 $as_echo "$ac_header_compiler" >&6; }
1895
1896 # Is the header present?
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1898 $as_echo_n "checking $2 presence... " >&6; }
1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900 /* end confdefs.h. */
1901 #include <$2>
1902 _ACEOF
1903 if ac_fn_c_try_cpp "$LINENO"; then :
1904 ac_header_preproc=yes
1905 else
1906 ac_header_preproc=no
1907 fi
1908 rm -f conftest.err conftest.i conftest.$ac_ext
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1910 $as_echo "$ac_header_preproc" >&6; }
1911
1912 # So? What about this header?
1913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1914 yes:no: )
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1916 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1918 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1919 ;;
1920 no:yes:* )
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1922 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1924 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1926 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1928 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1930 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1931 ( $as_echo "## ---------------------------------------------------------------------- ##
1932 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1933 ## ---------------------------------------------------------------------- ##"
1934 ) | sed "s/^/$as_me: WARNING: /" >&2
1935 ;;
1936 esac
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938 $as_echo_n "checking for $2... " >&6; }
1939 if eval \${$3+:} false; then :
1940 $as_echo_n "(cached) " >&6
1941 else
1942 eval "$3=\$ac_header_compiler"
1943 fi
1944 eval ac_res=\$$3
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1946 $as_echo "$ac_res" >&6; }
1947 fi
1948 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1949
1950 } # ac_fn_c_check_header_mongrel
1951 cat >config.log <<_ACEOF
1952 This file contains any messages produced by compilers while
1953 running configure, to aid debugging if configure makes a mistake.
1954
1955 It was created by xf86-video-i740 $as_me 1.3.4, which was
1956 generated by GNU Autoconf 2.68. Invocation command line was
1957
1958 $ $0 $@
1959
1960 _ACEOF
1961 exec 5>>config.log
1962 {
1963 cat <<_ASUNAME
1964 ## --------- ##
1965 ## Platform. ##
1966 ## --------- ##
1967
1968 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1969 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1970 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1971 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1972 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1973
1974 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1975 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1976
1977 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1978 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1979 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1980 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1981 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1982 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1983 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1984
1985 _ASUNAME
1986
1987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988 for as_dir in $PATH
1989 do
1990 IFS=$as_save_IFS
1991 test -z "$as_dir" && as_dir=.
1992 $as_echo "PATH: $as_dir"
1993 done
1994 IFS=$as_save_IFS
1995
1996 } >&5
1997
1998 cat >&5 <<_ACEOF
1999
2000
2001 ## ----------- ##
2002 ## Core tests. ##
2003 ## ----------- ##
2004
2005 _ACEOF
2006
2007
2008 # Keep a trace of the command line.
2009 # Strip out --no-create and --no-recursion so they do not pile up.
2010 # Strip out --silent because we don't want to record it for future runs.
2011 # Also quote any args containing shell meta-characters.
2012 # Make two passes to allow for proper duplicate-argument suppression.
2013 ac_configure_args=
2014 ac_configure_args0=
2015 ac_configure_args1=
2016 ac_must_keep_next=false
2017 for ac_pass in 1 2
2018 do
2019 for ac_arg
2020 do
2021 case $ac_arg in
2022 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2023 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2024 | -silent | --silent | --silen | --sile | --sil)
2025 continue ;;
2026 *\'*)
2027 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2028 esac
2029 case $ac_pass in
2030 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2031 2)
2032 as_fn_append ac_configure_args1 " '$ac_arg'"
2033 if test $ac_must_keep_next = true; then
2034 ac_must_keep_next=false # Got value, back to normal.
2035 else
2036 case $ac_arg in
2037 *=* | --config-cache | -C | -disable-* | --disable-* \
2038 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2039 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2040 | -with-* | --with-* | -without-* | --without-* | --x)
2041 case "$ac_configure_args0 " in
2042 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2043 esac
2044 ;;
2045 -* ) ac_must_keep_next=true ;;
2046 esac
2047 fi
2048 as_fn_append ac_configure_args " '$ac_arg'"
2049 ;;
2050 esac
2051 done
2052 done
2053 { ac_configure_args0=; unset ac_configure_args0;}
2054 { ac_configure_args1=; unset ac_configure_args1;}
2055
2056 # When interrupted or exit'd, cleanup temporary files, and complete
2057 # config.log. We remove comments because anyway the quotes in there
2058 # would cause problems or look ugly.
2059 # WARNING: Use '\'' to represent an apostrophe within the trap.
2060 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2061 trap 'exit_status=$?
2062 # Save into config.log some information that might help in debugging.
2063 {
2064 echo
2065
2066 $as_echo "## ---------------- ##
2067 ## Cache variables. ##
2068 ## ---------------- ##"
2069 echo
2070 # The following way of writing the cache mishandles newlines in values,
2071 (
2072 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2073 eval ac_val=\$$ac_var
2074 case $ac_val in #(
2075 *${as_nl}*)
2076 case $ac_var in #(
2077 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2078 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2079 esac
2080 case $ac_var in #(
2081 _ | IFS | as_nl) ;; #(
2082 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2083 *) { eval $ac_var=; unset $ac_var;} ;;
2084 esac ;;
2085 esac
2086 done
2087 (set) 2>&1 |
2088 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2089 *${as_nl}ac_space=\ *)
2090 sed -n \
2091 "s/'\''/'\''\\\\'\'''\''/g;
2092 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2093 ;; #(
2094 *)
2095 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2096 ;;
2097 esac |
2098 sort
2099 )
2100 echo
2101
2102 $as_echo "## ----------------- ##
2103 ## Output variables. ##
2104 ## ----------------- ##"
2105 echo
2106 for ac_var in $ac_subst_vars
2107 do
2108 eval ac_val=\$$ac_var
2109 case $ac_val in
2110 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2111 esac
2112 $as_echo "$ac_var='\''$ac_val'\''"
2113 done | sort
2114 echo
2115
2116 if test -n "$ac_subst_files"; then
2117 $as_echo "## ------------------- ##
2118 ## File substitutions. ##
2119 ## ------------------- ##"
2120 echo
2121 for ac_var in $ac_subst_files
2122 do
2123 eval ac_val=\$$ac_var
2124 case $ac_val in
2125 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2126 esac
2127 $as_echo "$ac_var='\''$ac_val'\''"
2128 done | sort
2129 echo
2130 fi
2131
2132 if test -s confdefs.h; then
2133 $as_echo "## ----------- ##
2134 ## confdefs.h. ##
2135 ## ----------- ##"
2136 echo
2137 cat confdefs.h
2138 echo
2139 fi
2140 test "$ac_signal" != 0 &&
2141 $as_echo "$as_me: caught signal $ac_signal"
2142 $as_echo "$as_me: exit $exit_status"
2143 } >&5
2144 rm -f core *.core core.conftest.* &&
2145 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2146 exit $exit_status
2147 ' 0
2148 for ac_signal in 1 2 13 15; do
2149 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2150 done
2151 ac_signal=0
2152
2153 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2154 rm -f -r conftest* confdefs.h
2155
2156 $as_echo "/* confdefs.h */" > confdefs.h
2157
2158 # Predefined preprocessor variables.
2159
2160 cat >>confdefs.h <<_ACEOF
2161 #define PACKAGE_NAME "$PACKAGE_NAME"
2162 _ACEOF
2163
2164 cat >>confdefs.h <<_ACEOF
2165 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2166 _ACEOF
2167
2168 cat >>confdefs.h <<_ACEOF
2169 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2170 _ACEOF
2171
2172 cat >>confdefs.h <<_ACEOF
2173 #define PACKAGE_STRING "$PACKAGE_STRING"
2174 _ACEOF
2175
2176 cat >>confdefs.h <<_ACEOF
2177 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2178 _ACEOF
2179
2180 cat >>confdefs.h <<_ACEOF
2181 #define PACKAGE_URL "$PACKAGE_URL"
2182 _ACEOF
2183
2184
2185 # Let the site file select an alternate cache file if it wants to.
2186 # Prefer an explicitly selected file to automatically selected ones.
2187 ac_site_file1=NONE
2188 ac_site_file2=NONE
2189 if test -n "$CONFIG_SITE"; then
2190 # We do not want a PATH search for config.site.
2191 case $CONFIG_SITE in #((
2192 -*) ac_site_file1=./$CONFIG_SITE;;
2193 */*) ac_site_file1=$CONFIG_SITE;;
2194 *) ac_site_file1=./$CONFIG_SITE;;
2195 esac
2196 elif test "x$prefix" != xNONE; then
2197 ac_site_file1=$prefix/share/config.site
2198 ac_site_file2=$prefix/etc/config.site
2199 else
2200 ac_site_file1=$ac_default_prefix/share/config.site
2201 ac_site_file2=$ac_default_prefix/etc/config.site
2202 fi
2203 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2204 do
2205 test "x$ac_site_file" = xNONE && continue
2206 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2208 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2209 sed 's/^/| /' "$ac_site_file" >&5
2210 . "$ac_site_file" \
2211 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2213 as_fn_error $? "failed to load site script $ac_site_file
2214 See \`config.log' for more details" "$LINENO" 5; }
2215 fi
2216 done
2217
2218 if test -r "$cache_file"; then
2219 # Some versions of bash will fail to source /dev/null (special files
2220 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2221 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2223 $as_echo "$as_me: loading cache $cache_file" >&6;}
2224 case $cache_file in
2225 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2226 *) . "./$cache_file";;
2227 esac
2228 fi
2229 else
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2231 $as_echo "$as_me: creating cache $cache_file" >&6;}
2232 >$cache_file
2233 fi
2234
2235 # Check that the precious variables saved in the cache have kept the same
2236 # value.
2237 ac_cache_corrupted=false
2238 for ac_var in $ac_precious_vars; do
2239 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2240 eval ac_new_set=\$ac_env_${ac_var}_set
2241 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2242 eval ac_new_val=\$ac_env_${ac_var}_value
2243 case $ac_old_set,$ac_new_set in
2244 set,)
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2246 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2247 ac_cache_corrupted=: ;;
2248 ,set)
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2250 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2251 ac_cache_corrupted=: ;;
2252 ,);;
2253 *)
2254 if test "x$ac_old_val" != "x$ac_new_val"; then
2255 # differences in whitespace do not lead to failure.
2256 ac_old_val_w=`echo x $ac_old_val`
2257 ac_new_val_w=`echo x $ac_new_val`
2258 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2260 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2261 ac_cache_corrupted=:
2262 else
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2264 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2265 eval $ac_var=\$ac_old_val
2266 fi
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2268 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2270 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2271 fi;;
2272 esac
2273 # Pass precious variables to config.status.
2274 if test "$ac_new_set" = set; then
2275 case $ac_new_val in
2276 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2277 *) ac_arg=$ac_var=$ac_new_val ;;
2278 esac
2279 case " $ac_configure_args " in
2280 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2281 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2282 esac
2283 fi
2284 done
2285 if $ac_cache_corrupted; then
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2289 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2290 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2291 fi
2292 ## -------------------- ##
2293 ## Main body of script. ##
2294 ## -------------------- ##
2295
2296 ac_ext=c
2297 ac_cpp='$CPP $CPPFLAGS'
2298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2301
2302
2303
2304 ac_config_headers="$ac_config_headers config.h"
2305
2306 ac_aux_dir=
2307 for ac_dir in . "$srcdir"/.; do
2308 if test -f "$ac_dir/install-sh"; then
2309 ac_aux_dir=$ac_dir
2310 ac_install_sh="$ac_aux_dir/install-sh -c"
2311 break
2312 elif test -f "$ac_dir/install.sh"; then
2313 ac_aux_dir=$ac_dir
2314 ac_install_sh="$ac_aux_dir/install.sh -c"
2315 break
2316 elif test -f "$ac_dir/shtool"; then
2317 ac_aux_dir=$ac_dir
2318 ac_install_sh="$ac_aux_dir/shtool install -c"
2319 break
2320 fi
2321 done
2322 if test -z "$ac_aux_dir"; then
2323 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2324 fi
2325
2326 # These three variables are undocumented and unsupported,
2327 # and are intended to be withdrawn in a future Autoconf release.
2328 # They can cause serious problems if a builder's source tree is in a directory
2329 # whose full name contains unusual characters.
2330 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2331 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2332 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2333
2334
2335
2336 # Initialize Automake
2337 am__api_version='1.11'
2338
2339 # Find a good install program. We prefer a C program (faster),
2340 # so one script is as good as another. But avoid the broken or
2341 # incompatible versions:
2342 # SysV /etc/install, /usr/sbin/install
2343 # SunOS /usr/etc/install
2344 # IRIX /sbin/install
2345 # AIX /bin/install
2346 # AmigaOS /C/install, which installs bootblocks on floppy discs
2347 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2348 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2349 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2350 # OS/2's system install, which has a completely different semantic
2351 # ./install, which can be erroneously created by make from ./install.sh.
2352 # Reject install programs that cannot install multiple files.
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2354 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2355 if test -z "$INSTALL"; then
2356 if ${ac_cv_path_install+:} false; then :
2357 $as_echo_n "(cached) " >&6
2358 else
2359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360 for as_dir in $PATH
2361 do
2362 IFS=$as_save_IFS
2363 test -z "$as_dir" && as_dir=.
2364 # Account for people who put trailing slashes in PATH elements.
2365 case $as_dir/ in #((
2366 ./ | .// | /[cC]/* | \
2367 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2368 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2369 /usr/ucb/* ) ;;
2370 *)
2371 # OSF1 and SCO ODT 3.0 have their own names for install.
2372 # Don't use installbsd from OSF since it installs stuff as root
2373 # by default.
2374 for ac_prog in ginstall scoinst install; do
2375 for ac_exec_ext in '' $ac_executable_extensions; do
2376 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2377 if test $ac_prog = install &&
2378 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2379 # AIX install. It has an incompatible calling convention.
2380 :
2381 elif test $ac_prog = install &&
2382 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2383 # program-specific install script used by HP pwplus--don't use.
2384 :
2385 else
2386 rm -rf conftest.one conftest.two conftest.dir
2387 echo one > conftest.one
2388 echo two > conftest.two
2389 mkdir conftest.dir
2390 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2391 test -s conftest.one && test -s conftest.two &&
2392 test -s conftest.dir/conftest.one &&
2393 test -s conftest.dir/conftest.two
2394 then
2395 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2396 break 3
2397 fi
2398 fi
2399 fi
2400 done
2401 done
2402 ;;
2403 esac
2404
2405 done
2406 IFS=$as_save_IFS
2407
2408 rm -rf conftest.one conftest.two conftest.dir
2409
2410 fi
2411 if test "${ac_cv_path_install+set}" = set; then
2412 INSTALL=$ac_cv_path_install
2413 else
2414 # As a last resort, use the slow shell script. Don't cache a
2415 # value for INSTALL within a source directory, because that will
2416 # break other packages using the cache if that directory is
2417 # removed, or if the value is a relative name.
2418 INSTALL=$ac_install_sh
2419 fi
2420 fi
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2422 $as_echo "$INSTALL" >&6; }
2423
2424 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2425 # It thinks the first close brace ends the variable substitution.
2426 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2427
2428 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2429
2430 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2431
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2433 $as_echo_n "checking whether build environment is sane... " >&6; }
2434 # Just in case
2435 sleep 1
2436 echo timestamp > conftest.file
2437 # Reject unsafe characters in $srcdir or the absolute working directory
2438 # name. Accept space and tab only in the latter.
2439 am_lf='
2440 '
2441 case `pwd` in
2442 *[\\\"\#\$\&\'\`$am_lf]*)
2443 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2444 esac
2445 case $srcdir in
2446 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2447 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2448 esac
2449
2450 # Do `set' in a subshell so we don't clobber the current shell's
2451 # arguments. Must try -L first in case configure is actually a
2452 # symlink; some systems play weird games with the mod time of symlinks
2453 # (eg FreeBSD returns the mod time of the symlink's containing
2454 # directory).
2455 if (
2456 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2457 if test "$*" = "X"; then
2458 # -L didn't work.
2459 set X `ls -t "$srcdir/configure" conftest.file`
2460 fi
2461 rm -f conftest.file
2462 if test "$*" != "X $srcdir/configure conftest.file" \
2463 && test "$*" != "X conftest.file $srcdir/configure"; then
2464
2465 # If neither matched, then we have a broken ls. This can happen
2466 # if, for instance, CONFIG_SHELL is bash and it inherits a
2467 # broken ls alias from the environment. This has actually
2468 # happened. Such a system could not be considered "sane".
2469 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2470 alias in your environment" "$LINENO" 5
2471 fi
2472
2473 test "$2" = conftest.file
2474 )
2475 then
2476 # Ok.
2477 :
2478 else
2479 as_fn_error $? "newly created file is older than distributed files!
2480 Check your system clock" "$LINENO" 5
2481 fi
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2483 $as_echo "yes" >&6; }
2484 test "$program_prefix" != NONE &&
2485 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2486 # Use a double $ so make ignores it.
2487 test "$program_suffix" != NONE &&
2488 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2489 # Double any \ or $.
2490 # By default was `s,x,x', remove it if useless.
2491 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2492 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2493
2494 # expand $ac_aux_dir to an absolute path
2495 am_aux_dir=`cd $ac_aux_dir && pwd`
2496
2497 if test x"${MISSING+set}" != xset; then
2498 case $am_aux_dir in
2499 *\ * | *\ *)
2500 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2501 *)
2502 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2503 esac
2504 fi
2505 # Use eval to expand $SHELL
2506 if eval "$MISSING --run true"; then
2507 am_missing_run="$MISSING --run "
2508 else
2509 am_missing_run=
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2511 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2512 fi
2513
2514 if test x"${install_sh}" != xset; then
2515 case $am_aux_dir in
2516 *\ * | *\ *)
2517 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2518 *)
2519 install_sh="\${SHELL} $am_aux_dir/install-sh"
2520 esac
2521 fi
2522
2523 # Installed binaries are usually stripped using `strip' when the user
2524 # run `make install-strip'. However `strip' might not be the right
2525 # tool to use in cross-compilation environments, therefore Automake
2526 # will honor the `STRIP' environment variable to overrule this program.
2527 if test "$cross_compiling" != no; then
2528 if test -n "$ac_tool_prefix"; then
2529 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2530 set dummy ${ac_tool_prefix}strip; ac_word=$2
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2532 $as_echo_n "checking for $ac_word... " >&6; }
2533 if ${ac_cv_prog_STRIP+:} false; then :
2534 $as_echo_n "(cached) " >&6
2535 else
2536 if test -n "$STRIP"; then
2537 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2538 else
2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 for as_dir in $PATH
2541 do
2542 IFS=$as_save_IFS
2543 test -z "$as_dir" && as_dir=.
2544 for ac_exec_ext in '' $ac_executable_extensions; do
2545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2546 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2548 break 2
2549 fi
2550 done
2551 done
2552 IFS=$as_save_IFS
2553
2554 fi
2555 fi
2556 STRIP=$ac_cv_prog_STRIP
2557 if test -n "$STRIP"; then
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2559 $as_echo "$STRIP" >&6; }
2560 else
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2562 $as_echo "no" >&6; }
2563 fi
2564
2565
2566 fi
2567 if test -z "$ac_cv_prog_STRIP"; then
2568 ac_ct_STRIP=$STRIP
2569 # Extract the first word of "strip", so it can be a program name with args.
2570 set dummy strip; ac_word=$2
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2572 $as_echo_n "checking for $ac_word... " >&6; }
2573 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2574 $as_echo_n "(cached) " >&6
2575 else
2576 if test -n "$ac_ct_STRIP"; then
2577 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2578 else
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 for as_dir in $PATH
2581 do
2582 IFS=$as_save_IFS
2583 test -z "$as_dir" && as_dir=.
2584 for ac_exec_ext in '' $ac_executable_extensions; do
2585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2586 ac_cv_prog_ac_ct_STRIP="strip"
2587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2588 break 2
2589 fi
2590 done
2591 done
2592 IFS=$as_save_IFS
2593
2594 fi
2595 fi
2596 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2597 if test -n "$ac_ct_STRIP"; then
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2599 $as_echo "$ac_ct_STRIP" >&6; }
2600 else
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2602 $as_echo "no" >&6; }
2603 fi
2604
2605 if test "x$ac_ct_STRIP" = x; then
2606 STRIP=":"
2607 else
2608 case $cross_compiling:$ac_tool_warned in
2609 yes:)
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2612 ac_tool_warned=yes ;;
2613 esac
2614 STRIP=$ac_ct_STRIP
2615 fi
2616 else
2617 STRIP="$ac_cv_prog_STRIP"
2618 fi
2619
2620 fi
2621 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2622
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2624 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2625 if test -z "$MKDIR_P"; then
2626 if ${ac_cv_path_mkdir+:} false; then :
2627 $as_echo_n "(cached) " >&6
2628 else
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2631 do
2632 IFS=$as_save_IFS
2633 test -z "$as_dir" && as_dir=.
2634 for ac_prog in mkdir gmkdir; do
2635 for ac_exec_ext in '' $ac_executable_extensions; do
2636 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2637 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2638 'mkdir (GNU coreutils) '* | \
2639 'mkdir (coreutils) '* | \
2640 'mkdir (fileutils) '4.1*)
2641 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2642 break 3;;
2643 esac
2644 done
2645 done
2646 done
2647 IFS=$as_save_IFS
2648
2649 fi
2650
2651 test -d ./--version && rmdir ./--version
2652 if test "${ac_cv_path_mkdir+set}" = set; then
2653 MKDIR_P="$ac_cv_path_mkdir -p"
2654 else
2655 # As a last resort, use the slow shell script. Don't cache a
2656 # value for MKDIR_P within a source directory, because that will
2657 # break other packages using the cache if that directory is
2658 # removed, or if the value is a relative name.
2659 MKDIR_P="$ac_install_sh -d"
2660 fi
2661 fi
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2663 $as_echo "$MKDIR_P" >&6; }
2664
2665 mkdir_p="$MKDIR_P"
2666 case $mkdir_p in
2667 [\\/$]* | ?:[\\/]*) ;;
2668 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2669 esac
2670
2671 for ac_prog in gawk mawk nawk awk
2672 do
2673 # Extract the first word of "$ac_prog", so it can be a program name with args.
2674 set dummy $ac_prog; ac_word=$2
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2676 $as_echo_n "checking for $ac_word... " >&6; }
2677 if ${ac_cv_prog_AWK+:} false; then :
2678 $as_echo_n "(cached) " >&6
2679 else
2680 if test -n "$AWK"; then
2681 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2682 else
2683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 for as_dir in $PATH
2685 do
2686 IFS=$as_save_IFS
2687 test -z "$as_dir" && as_dir=.
2688 for ac_exec_ext in '' $ac_executable_extensions; do
2689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2690 ac_cv_prog_AWK="$ac_prog"
2691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2692 break 2
2693 fi
2694 done
2695 done
2696 IFS=$as_save_IFS
2697
2698 fi
2699 fi
2700 AWK=$ac_cv_prog_AWK
2701 if test -n "$AWK"; then
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2703 $as_echo "$AWK" >&6; }
2704 else
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2706 $as_echo "no" >&6; }
2707 fi
2708
2709
2710 test -n "$AWK" && break
2711 done
2712
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2714 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2715 set x ${MAKE-make}
2716 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2717 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2718 $as_echo_n "(cached) " >&6
2719 else
2720 cat >conftest.make <<\_ACEOF
2721 SHELL = /bin/sh
2722 all:
2723 @echo '@@@%%%=$(MAKE)=@@@%%%'
2724 _ACEOF
2725 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2726 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2727 *@@@%%%=?*=@@@%%%*)
2728 eval ac_cv_prog_make_${ac_make}_set=yes;;
2729 *)
2730 eval ac_cv_prog_make_${ac_make}_set=no;;
2731 esac
2732 rm -f conftest.make
2733 fi
2734 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2736 $as_echo "yes" >&6; }
2737 SET_MAKE=
2738 else
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2740 $as_echo "no" >&6; }
2741 SET_MAKE="MAKE=${MAKE-make}"
2742 fi
2743
2744 rm -rf .tst 2>/dev/null
2745 mkdir .tst 2>/dev/null
2746 if test -d .tst; then
2747 am__leading_dot=.
2748 else
2749 am__leading_dot=_
2750 fi
2751 rmdir .tst 2>/dev/null
2752
2753 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2754 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2755 # is not polluted with repeated "-I."
2756 am__isrc=' -I$(srcdir)'
2757 # test to see if srcdir already configured
2758 if test -f $srcdir/config.status; then
2759 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2760 fi
2761 fi
2762
2763 # test whether we have cygpath
2764 if test -z "$CYGPATH_W"; then
2765 if (cygpath --version) >/dev/null 2>/dev/null; then
2766 CYGPATH_W='cygpath -w'
2767 else
2768 CYGPATH_W=echo
2769 fi
2770 fi
2771
2772
2773 # Define the identity of the package.
2774 PACKAGE='xf86-video-i740'
2775 VERSION='1.3.4'
2776
2777
2778 cat >>confdefs.h <<_ACEOF
2779 #define PACKAGE "$PACKAGE"
2780 _ACEOF
2781
2782
2783 cat >>confdefs.h <<_ACEOF
2784 #define VERSION "$VERSION"
2785 _ACEOF
2786
2787 # Some tools Automake needs.
2788
2789 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2790
2791
2792 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2793
2794
2795 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2796
2797
2798 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2799
2800
2801 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2802
2803 # We need awk for the "check" target. The system "awk" is bad on
2804 # some platforms.
2805 # Always define AMTAR for backward compatibility. Yes, it's still used
2806 # in the wild :-( We should find a proper way to deprecate it ...
2807 AMTAR='$${TAR-tar}'
2808
2809 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2810
2811
2812
2813
2814
2815
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2817 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2818 # Check whether --enable-maintainer-mode was given.
2819 if test "${enable_maintainer_mode+set}" = set; then :
2820 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2821 else
2822 USE_MAINTAINER_MODE=no
2823 fi
2824
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2826 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2827 if test $USE_MAINTAINER_MODE = yes; then
2828 MAINTAINER_MODE_TRUE=
2829 MAINTAINER_MODE_FALSE='#'
2830 else
2831 MAINTAINER_MODE_TRUE='#'
2832 MAINTAINER_MODE_FALSE=
2833 fi
2834
2835 MAINT=$MAINTAINER_MODE_TRUE
2836
2837
2838
2839 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851 DEPDIR="${am__leading_dot}deps"
2852
2853 ac_config_commands="$ac_config_commands depfiles"
2854
2855
2856 am_make=${MAKE-make}
2857 cat > confinc << 'END'
2858 am__doit:
2859 @echo this is the am__doit target
2860 .PHONY: am__doit
2861 END
2862 # If we don't find an include directive, just comment out the code.
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2864 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2865 am__include="#"
2866 am__quote=
2867 _am_result=none
2868 # First try GNU make style include.
2869 echo "include confinc" > confmf
2870 # Ignore all kinds of additional output from `make'.
2871 case `$am_make -s -f confmf 2> /dev/null` in #(
2872 *the\ am__doit\ target*)
2873 am__include=include
2874 am__quote=
2875 _am_result=GNU
2876 ;;
2877 esac
2878 # Now try BSD make style include.
2879 if test "$am__include" = "#"; then
2880 echo '.include "confinc"' > confmf
2881 case `$am_make -s -f confmf 2> /dev/null` in #(
2882 *the\ am__doit\ target*)
2883 am__include=.include
2884 am__quote="\""
2885 _am_result=BSD
2886 ;;
2887 esac
2888 fi
2889
2890
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2892 $as_echo "$_am_result" >&6; }
2893 rm -f confinc confmf
2894
2895 # Check whether --enable-dependency-tracking was given.
2896 if test "${enable_dependency_tracking+set}" = set; then :
2897 enableval=$enable_dependency_tracking;
2898 fi
2899
2900 if test "x$enable_dependency_tracking" != xno; then
2901 am_depcomp="$ac_aux_dir/depcomp"
2902 AMDEPBACKSLASH='\'
2903 am__nodep='_no'
2904 fi
2905 if test "x$enable_dependency_tracking" != xno; then
2906 AMDEP_TRUE=
2907 AMDEP_FALSE='#'
2908 else
2909 AMDEP_TRUE='#'
2910 AMDEP_FALSE=
2911 fi
2912
2913
2914 ac_ext=c
2915 ac_cpp='$CPP $CPPFLAGS'
2916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2919 if test -n "$ac_tool_prefix"; then
2920 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2921 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923 $as_echo_n "checking for $ac_word... " >&6; }
2924 if ${ac_cv_prog_CC+:} false; then :
2925 $as_echo_n "(cached) " >&6
2926 else
2927 if test -n "$CC"; then
2928 ac_cv_prog_CC="$CC" # Let the user override the test.
2929 else
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 for as_dir in $PATH
2932 do
2933 IFS=$as_save_IFS
2934 test -z "$as_dir" && as_dir=.
2935 for ac_exec_ext in '' $ac_executable_extensions; do
2936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2937 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2939 break 2
2940 fi
2941 done
2942 done
2943 IFS=$as_save_IFS
2944
2945 fi
2946 fi
2947 CC=$ac_cv_prog_CC
2948 if test -n "$CC"; then
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2950 $as_echo "$CC" >&6; }
2951 else
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953 $as_echo "no" >&6; }
2954 fi
2955
2956
2957 fi
2958 if test -z "$ac_cv_prog_CC"; then
2959 ac_ct_CC=$CC
2960 # Extract the first word of "gcc", so it can be a program name with args.
2961 set dummy gcc; ac_word=$2
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2963 $as_echo_n "checking for $ac_word... " >&6; }
2964 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2965 $as_echo_n "(cached) " >&6
2966 else
2967 if test -n "$ac_ct_CC"; then
2968 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2969 else
2970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971 for as_dir in $PATH
2972 do
2973 IFS=$as_save_IFS
2974 test -z "$as_dir" && as_dir=.
2975 for ac_exec_ext in '' $ac_executable_extensions; do
2976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2977 ac_cv_prog_ac_ct_CC="gcc"
2978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2979 break 2
2980 fi
2981 done
2982 done
2983 IFS=$as_save_IFS
2984
2985 fi
2986 fi
2987 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2988 if test -n "$ac_ct_CC"; then
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2990 $as_echo "$ac_ct_CC" >&6; }
2991 else
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2993 $as_echo "no" >&6; }
2994 fi
2995
2996 if test "x$ac_ct_CC" = x; then
2997 CC=""
2998 else
2999 case $cross_compiling:$ac_tool_warned in
3000 yes:)
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3003 ac_tool_warned=yes ;;
3004 esac
3005 CC=$ac_ct_CC
3006 fi
3007 else
3008 CC="$ac_cv_prog_CC"
3009 fi
3010
3011 if test -z "$CC"; then
3012 if test -n "$ac_tool_prefix"; then
3013 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3014 set dummy ${ac_tool_prefix}cc; ac_word=$2
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3016 $as_echo_n "checking for $ac_word... " >&6; }
3017 if ${ac_cv_prog_CC+:} false; then :
3018 $as_echo_n "(cached) " >&6
3019 else
3020 if test -n "$CC"; then
3021 ac_cv_prog_CC="$CC" # Let the user override the test.
3022 else
3023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3024 for as_dir in $PATH
3025 do
3026 IFS=$as_save_IFS
3027 test -z "$as_dir" && as_dir=.
3028 for ac_exec_ext in '' $ac_executable_extensions; do
3029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3030 ac_cv_prog_CC="${ac_tool_prefix}cc"
3031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3032 break 2
3033 fi
3034 done
3035 done
3036 IFS=$as_save_IFS
3037
3038 fi
3039 fi
3040 CC=$ac_cv_prog_CC
3041 if test -n "$CC"; then
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3043 $as_echo "$CC" >&6; }
3044 else
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3046 $as_echo "no" >&6; }
3047 fi
3048
3049
3050 fi
3051 fi
3052 if test -z "$CC"; then
3053 # Extract the first word of "cc", so it can be a program name with args.
3054 set dummy cc; ac_word=$2
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3056 $as_echo_n "checking for $ac_word... " >&6; }
3057 if ${ac_cv_prog_CC+:} false; then :
3058 $as_echo_n "(cached) " >&6
3059 else
3060 if test -n "$CC"; then
3061 ac_cv_prog_CC="$CC" # Let the user override the test.
3062 else
3063 ac_prog_rejected=no
3064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065 for as_dir in $PATH
3066 do
3067 IFS=$as_save_IFS
3068 test -z "$as_dir" && as_dir=.
3069 for ac_exec_ext in '' $ac_executable_extensions; do
3070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3071 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3072 ac_prog_rejected=yes
3073 continue
3074 fi
3075 ac_cv_prog_CC="cc"
3076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3077 break 2
3078 fi
3079 done
3080 done
3081 IFS=$as_save_IFS
3082
3083 if test $ac_prog_rejected = yes; then
3084 # We found a bogon in the path, so make sure we never use it.
3085 set dummy $ac_cv_prog_CC
3086 shift
3087 if test $# != 0; then
3088 # We chose a different compiler from the bogus one.
3089 # However, it has the same basename, so the bogon will be chosen
3090 # first if we set CC to just the basename; use the full file name.
3091 shift
3092 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3093 fi
3094 fi
3095 fi
3096 fi
3097 CC=$ac_cv_prog_CC
3098 if test -n "$CC"; then
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3100 $as_echo "$CC" >&6; }
3101 else
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3103 $as_echo "no" >&6; }
3104 fi
3105
3106
3107 fi
3108 if test -z "$CC"; then
3109 if test -n "$ac_tool_prefix"; then
3110 for ac_prog in cl.exe
3111 do
3112 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3113 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3115 $as_echo_n "checking for $ac_word... " >&6; }
3116 if ${ac_cv_prog_CC+:} false; then :
3117 $as_echo_n "(cached) " >&6
3118 else
3119 if test -n "$CC"; then
3120 ac_cv_prog_CC="$CC" # Let the user override the test.
3121 else
3122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123 for as_dir in $PATH
3124 do
3125 IFS=$as_save_IFS
3126 test -z "$as_dir" && as_dir=.
3127 for ac_exec_ext in '' $ac_executable_extensions; do
3128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3129 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3131 break 2
3132 fi
3133 done
3134 done
3135 IFS=$as_save_IFS
3136
3137 fi
3138 fi
3139 CC=$ac_cv_prog_CC
3140 if test -n "$CC"; then
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3142 $as_echo "$CC" >&6; }
3143 else
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145 $as_echo "no" >&6; }
3146 fi
3147
3148
3149 test -n "$CC" && break
3150 done
3151 fi
3152 if test -z "$CC"; then
3153 ac_ct_CC=$CC
3154 for ac_prog in cl.exe
3155 do
3156 # Extract the first word of "$ac_prog", so it can be a program name with args.
3157 set dummy $ac_prog; ac_word=$2
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3159 $as_echo_n "checking for $ac_word... " >&6; }
3160 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3161 $as_echo_n "(cached) " >&6
3162 else
3163 if test -n "$ac_ct_CC"; then
3164 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3165 else
3166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167 for as_dir in $PATH
3168 do
3169 IFS=$as_save_IFS
3170 test -z "$as_dir" && as_dir=.
3171 for ac_exec_ext in '' $ac_executable_extensions; do
3172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3173 ac_cv_prog_ac_ct_CC="$ac_prog"
3174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3175 break 2
3176 fi
3177 done
3178 done
3179 IFS=$as_save_IFS
3180
3181 fi
3182 fi
3183 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3184 if test -n "$ac_ct_CC"; then
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3186 $as_echo "$ac_ct_CC" >&6; }
3187 else
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3189 $as_echo "no" >&6; }
3190 fi
3191
3192
3193 test -n "$ac_ct_CC" && break
3194 done
3195
3196 if test "x$ac_ct_CC" = x; then
3197 CC=""
3198 else
3199 case $cross_compiling:$ac_tool_warned in
3200 yes:)
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3203 ac_tool_warned=yes ;;
3204 esac
3205 CC=$ac_ct_CC
3206 fi
3207 fi
3208
3209 fi
3210
3211
3212 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3214 as_fn_error $? "no acceptable C compiler found in \$PATH
3215 See \`config.log' for more details" "$LINENO" 5; }
3216
3217 # Provide some information about the compiler.
3218 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3219 set X $ac_compile
3220 ac_compiler=$2
3221 for ac_option in --version -v -V -qversion; do
3222 { { ac_try="$ac_compiler $ac_option >&5"
3223 case "(($ac_try" in
3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225 *) ac_try_echo=$ac_try;;
3226 esac
3227 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3228 $as_echo "$ac_try_echo"; } >&5
3229 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3230 ac_status=$?
3231 if test -s conftest.err; then
3232 sed '10a\
3233 ... rest of stderr output deleted ...
3234 10q' conftest.err >conftest.er1
3235 cat conftest.er1 >&5
3236 fi
3237 rm -f conftest.er1 conftest.err
3238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3239 test $ac_status = 0; }
3240 done
3241
3242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3243 /* end confdefs.h. */
3244
3245 int
3246 main ()
3247 {
3248
3249 ;
3250 return 0;
3251 }
3252 _ACEOF
3253 ac_clean_files_save=$ac_clean_files
3254 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3255 # Try to create an executable without -o first, disregard a.out.
3256 # It will help us diagnose broken compilers, and finding out an intuition
3257 # of exeext.
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3259 $as_echo_n "checking whether the C compiler works... " >&6; }
3260 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3261
3262 # The possible output files:
3263 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3264
3265 ac_rmfiles=
3266 for ac_file in $ac_files
3267 do
3268 case $ac_file in
3269 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3270 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3271 esac
3272 done
3273 rm -f $ac_rmfiles
3274
3275 if { { ac_try="$ac_link_default"
3276 case "(($ac_try" in
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
3279 esac
3280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3281 $as_echo "$ac_try_echo"; } >&5
3282 (eval "$ac_link_default") 2>&5
3283 ac_status=$?
3284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3285 test $ac_status = 0; }; then :
3286 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3287 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3288 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3289 # so that the user can short-circuit this test for compilers unknown to
3290 # Autoconf.
3291 for ac_file in $ac_files ''
3292 do
3293 test -f "$ac_file" || continue
3294 case $ac_file in
3295 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3296 ;;
3297 [ab].out )
3298 # We found the default executable, but exeext='' is most
3299 # certainly right.
3300 break;;
3301 *.* )
3302 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3303 then :; else
3304 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3305 fi
3306 # We set ac_cv_exeext here because the later test for it is not
3307 # safe: cross compilers may not add the suffix if given an `-o'
3308 # argument, so we may need to know it at that point already.
3309 # Even if this section looks crufty: it has the advantage of
3310 # actually working.
3311 break;;
3312 * )
3313 break;;
3314 esac
3315 done
3316 test "$ac_cv_exeext" = no && ac_cv_exeext=
3317
3318 else
3319 ac_file=''
3320 fi
3321 if test -z "$ac_file"; then :
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3323 $as_echo "no" >&6; }
3324 $as_echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3326
3327 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3328 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3329 as_fn_error 77 "C compiler cannot create executables
3330 See \`config.log' for more details" "$LINENO" 5; }
3331 else
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3333 $as_echo "yes" >&6; }
3334 fi
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3336 $as_echo_n "checking for C compiler default output file name... " >&6; }
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3338 $as_echo "$ac_file" >&6; }
3339 ac_exeext=$ac_cv_exeext
3340
3341 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3342 ac_clean_files=$ac_clean_files_save
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3344 $as_echo_n "checking for suffix of executables... " >&6; }
3345 if { { ac_try="$ac_link"
3346 case "(($ac_try" in
3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348 *) ac_try_echo=$ac_try;;
3349 esac
3350 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3351 $as_echo "$ac_try_echo"; } >&5
3352 (eval "$ac_link") 2>&5
3353 ac_status=$?
3354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3355 test $ac_status = 0; }; then :
3356 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3357 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3358 # work properly (i.e., refer to `conftest.exe'), while it won't with
3359 # `rm'.
3360 for ac_file in conftest.exe conftest conftest.*; do
3361 test -f "$ac_file" || continue
3362 case $ac_file in
3363 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3364 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3365 break;;
3366 * ) break;;
3367 esac
3368 done
3369 else
3370 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3372 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3373 See \`config.log' for more details" "$LINENO" 5; }
3374 fi
3375 rm -f conftest conftest$ac_cv_exeext
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3377 $as_echo "$ac_cv_exeext" >&6; }
3378
3379 rm -f conftest.$ac_ext
3380 EXEEXT=$ac_cv_exeext
3381 ac_exeext=$EXEEXT
3382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3383 /* end confdefs.h. */
3384 #include <stdio.h>
3385 int
3386 main ()
3387 {
3388 FILE *f = fopen ("conftest.out", "w");
3389 return ferror (f) || fclose (f) != 0;
3390
3391 ;
3392 return 0;
3393 }
3394 _ACEOF
3395 ac_clean_files="$ac_clean_files conftest.out"
3396 # Check that the compiler produces executables we can run. If not, either
3397 # the compiler is broken, or we cross compile.
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3399 $as_echo_n "checking whether we are cross compiling... " >&6; }
3400 if test "$cross_compiling" != yes; then
3401 { { ac_try="$ac_link"
3402 case "(($ac_try" in
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3405 esac
3406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3407 $as_echo "$ac_try_echo"; } >&5
3408 (eval "$ac_link") 2>&5
3409 ac_status=$?
3410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3411 test $ac_status = 0; }
3412 if { ac_try='./conftest$ac_cv_exeext'
3413 { { case "(($ac_try" in
3414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415 *) ac_try_echo=$ac_try;;
3416 esac
3417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3418 $as_echo "$ac_try_echo"; } >&5
3419 (eval "$ac_try") 2>&5
3420 ac_status=$?
3421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3422 test $ac_status = 0; }; }; then
3423 cross_compiling=no
3424 else
3425 if test "$cross_compiling" = maybe; then
3426 cross_compiling=yes
3427 else
3428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3430 as_fn_error $? "cannot run C compiled programs.
3431 If you meant to cross compile, use \`--host'.
3432 See \`config.log' for more details" "$LINENO" 5; }
3433 fi
3434 fi
3435 fi
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3437 $as_echo "$cross_compiling" >&6; }
3438
3439 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3440 ac_clean_files=$ac_clean_files_save
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3442 $as_echo_n "checking for suffix of object files... " >&6; }
3443 if ${ac_cv_objext+:} false; then :
3444 $as_echo_n "(cached) " >&6
3445 else
3446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447 /* end confdefs.h. */
3448
3449 int
3450 main ()
3451 {
3452
3453 ;
3454 return 0;
3455 }
3456 _ACEOF
3457 rm -f conftest.o conftest.obj
3458 if { { ac_try="$ac_compile"
3459 case "(($ac_try" in
3460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461 *) ac_try_echo=$ac_try;;
3462 esac
3463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3464 $as_echo "$ac_try_echo"; } >&5
3465 (eval "$ac_compile") 2>&5
3466 ac_status=$?
3467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3468 test $ac_status = 0; }; then :
3469 for ac_file in conftest.o conftest.obj conftest.*; do
3470 test -f "$ac_file" || continue;
3471 case $ac_file in
3472 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3473 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3474 break;;
3475 esac
3476 done
3477 else
3478 $as_echo "$as_me: failed program was:" >&5
3479 sed 's/^/| /' conftest.$ac_ext >&5
3480
3481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3483 as_fn_error $? "cannot compute suffix of object files: cannot compile
3484 See \`config.log' for more details" "$LINENO" 5; }
3485 fi
3486 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3487 fi
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3489 $as_echo "$ac_cv_objext" >&6; }
3490 OBJEXT=$ac_cv_objext
3491 ac_objext=$OBJEXT
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3493 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3494 if ${ac_cv_c_compiler_gnu+:} false; then :
3495 $as_echo_n "(cached) " >&6
3496 else
3497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498 /* end confdefs.h. */
3499
3500 int
3501 main ()
3502 {
3503 #ifndef __GNUC__
3504 choke me
3505 #endif
3506
3507 ;
3508 return 0;
3509 }
3510 _ACEOF
3511 if ac_fn_c_try_compile "$LINENO"; then :
3512 ac_compiler_gnu=yes
3513 else
3514 ac_compiler_gnu=no
3515 fi
3516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3517 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3518
3519 fi
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3521 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3522 if test $ac_compiler_gnu = yes; then
3523 GCC=yes
3524 else
3525 GCC=
3526 fi
3527 ac_test_CFLAGS=${CFLAGS+set}
3528 ac_save_CFLAGS=$CFLAGS
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3530 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3531 if ${ac_cv_prog_cc_g+:} false; then :
3532 $as_echo_n "(cached) " >&6
3533 else
3534 ac_save_c_werror_flag=$ac_c_werror_flag
3535 ac_c_werror_flag=yes
3536 ac_cv_prog_cc_g=no
3537 CFLAGS="-g"
3538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3539 /* end confdefs.h. */
3540
3541 int
3542 main ()
3543 {
3544
3545 ;
3546 return 0;
3547 }
3548 _ACEOF
3549 if ac_fn_c_try_compile "$LINENO"; then :
3550 ac_cv_prog_cc_g=yes
3551 else
3552 CFLAGS=""
3553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3554 /* end confdefs.h. */
3555
3556 int
3557 main ()
3558 {
3559
3560 ;
3561 return 0;
3562 }
3563 _ACEOF
3564 if ac_fn_c_try_compile "$LINENO"; then :
3565
3566 else
3567 ac_c_werror_flag=$ac_save_c_werror_flag
3568 CFLAGS="-g"
3569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3570 /* end confdefs.h. */
3571
3572 int
3573 main ()
3574 {
3575
3576 ;
3577 return 0;
3578 }
3579 _ACEOF
3580 if ac_fn_c_try_compile "$LINENO"; then :
3581 ac_cv_prog_cc_g=yes
3582 fi
3583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3584 fi
3585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3586 fi
3587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3588 ac_c_werror_flag=$ac_save_c_werror_flag
3589 fi
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3591 $as_echo "$ac_cv_prog_cc_g" >&6; }
3592 if test "$ac_test_CFLAGS" = set; then
3593 CFLAGS=$ac_save_CFLAGS
3594 elif test $ac_cv_prog_cc_g = yes; then
3595 if test "$GCC" = yes; then
3596 CFLAGS="-g -O2"
3597 else
3598 CFLAGS="-g"
3599 fi
3600 else
3601 if test "$GCC" = yes; then
3602 CFLAGS="-O2"
3603 else
3604 CFLAGS=
3605 fi
3606 fi
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3608 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3609 if ${ac_cv_prog_cc_c89+:} false; then :
3610 $as_echo_n "(cached) " >&6
3611 else
3612 ac_cv_prog_cc_c89=no
3613 ac_save_CC=$CC
3614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615 /* end confdefs.h. */
3616 #include <stdarg.h>
3617 #include <stdio.h>
3618 #include <sys/types.h>
3619 #include <sys/stat.h>
3620 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3621 struct buf { int x; };
3622 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3623 static char *e (p, i)
3624 char **p;
3625 int i;
3626 {
3627 return p[i];
3628 }
3629 static char *f (char * (*g) (char **, int), char **p, ...)
3630 {
3631 char *s;
3632 va_list v;
3633 va_start (v,p);
3634 s = g (p, va_arg (v,int));
3635 va_end (v);
3636 return s;
3637 }
3638
3639 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3640 function prototypes and stuff, but not '\xHH' hex character constants.
3641 These don't provoke an error unfortunately, instead are silently treated
3642 as 'x'. The following induces an error, until -std is added to get
3643 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3644 array size at least. It's necessary to write '\x00'==0 to get something
3645 that's true only with -std. */
3646 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3647
3648 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3649 inside strings and character constants. */
3650 #define FOO(x) 'x'
3651 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3652
3653 int test (int i, double x);
3654 struct s1 {int (*f) (int a);};
3655 struct s2 {int (*f) (double a);};
3656 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3657 int argc;
3658 char **argv;
3659 int
3660 main ()
3661 {
3662 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3663 ;
3664 return 0;
3665 }
3666 _ACEOF
3667 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3668 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3669 do
3670 CC="$ac_save_CC $ac_arg"
3671 if ac_fn_c_try_compile "$LINENO"; then :
3672 ac_cv_prog_cc_c89=$ac_arg
3673 fi
3674 rm -f core conftest.err conftest.$ac_objext
3675 test "x$ac_cv_prog_cc_c89" != "xno" && break
3676 done
3677 rm -f conftest.$ac_ext
3678 CC=$ac_save_CC
3679
3680 fi
3681 # AC_CACHE_VAL
3682 case "x$ac_cv_prog_cc_c89" in
3683 x)
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3685 $as_echo "none needed" >&6; } ;;
3686 xno)
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3688 $as_echo "unsupported" >&6; } ;;
3689 *)
3690 CC="$CC $ac_cv_prog_cc_c89"
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3692 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3693 esac
3694 if test "x$ac_cv_prog_cc_c89" != xno; then :
3695
3696 fi
3697
3698 ac_ext=c
3699 ac_cpp='$CPP $CPPFLAGS'
3700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3703
3704 depcc="$CC" am_compiler_list=
3705
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3707 $as_echo_n "checking dependency style of $depcc... " >&6; }
3708 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3709 $as_echo_n "(cached) " >&6
3710 else
3711 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3712 # We make a subdir and do the tests there. Otherwise we can end up
3713 # making bogus files that we don't know about and never remove. For
3714 # instance it was reported that on HP-UX the gcc test will end up
3715 # making a dummy file named `D' -- because `-MD' means `put the output
3716 # in D'.
3717 rm -rf conftest.dir
3718 mkdir conftest.dir
3719 # Copy depcomp to subdir because otherwise we won't find it if we're
3720 # using a relative directory.
3721 cp "$am_depcomp" conftest.dir
3722 cd conftest.dir
3723 # We will build objects and dependencies in a subdirectory because
3724 # it helps to detect inapplicable dependency modes. For instance
3725 # both Tru64's cc and ICC support -MD to output dependencies as a
3726 # side effect of compilation, but ICC will put the dependencies in
3727 # the current directory while Tru64 will put them in the object
3728 # directory.
3729 mkdir sub
3730
3731 am_cv_CC_dependencies_compiler_type=none
3732 if test "$am_compiler_list" = ""; then
3733 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3734 fi
3735 am__universal=false
3736 case " $depcc " in #(
3737 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3738 esac
3739
3740 for depmode in $am_compiler_list; do
3741 # Setup a source with many dependencies, because some compilers
3742 # like to wrap large dependency lists on column 80 (with \), and
3743 # we should not choose a depcomp mode which is confused by this.
3744 #
3745 # We need to recreate these files for each test, as the compiler may
3746 # overwrite some of them when testing with obscure command lines.
3747 # This happens at least with the AIX C compiler.
3748 : > sub/conftest.c
3749 for i in 1 2 3 4 5 6; do
3750 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3751 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3752 # Solaris 8's {/usr,}/bin/sh.
3753 touch sub/conftst$i.h
3754 done
3755 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3756
3757 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3758 # mode. It turns out that the SunPro C++ compiler does not properly
3759 # handle `-M -o', and we need to detect this. Also, some Intel
3760 # versions had trouble with output in subdirs
3761 am__obj=sub/conftest.${OBJEXT-o}
3762 am__minus_obj="-o $am__obj"
3763 case $depmode in
3764 gcc)
3765 # This depmode causes a compiler race in universal mode.
3766 test "$am__universal" = false || continue
3767 ;;
3768 nosideeffect)
3769 # after this tag, mechanisms are not by side-effect, so they'll
3770 # only be used when explicitly requested
3771 if test "x$enable_dependency_tracking" = xyes; then
3772 continue
3773 else
3774 break
3775 fi
3776 ;;
3777 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3778 # This compiler won't grok `-c -o', but also, the minuso test has
3779 # not run yet. These depmodes are late enough in the game, and
3780 # so weak that their functioning should not be impacted.
3781 am__obj=conftest.${OBJEXT-o}
3782 am__minus_obj=
3783 ;;
3784 none) break ;;
3785 esac
3786 if depmode=$depmode \
3787 source=sub/conftest.c object=$am__obj \
3788 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3789 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3790 >/dev/null 2>conftest.err &&
3791 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3792 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3793 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3794 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3795 # icc doesn't choke on unknown options, it will just issue warnings
3796 # or remarks (even with -Werror). So we grep stderr for any message
3797 # that says an option was ignored or not supported.
3798 # When given -MP, icc 7.0 and 7.1 complain thusly:
3799 # icc: Command line warning: ignoring option '-M'; no argument required
3800 # The diagnosis changed in icc 8.0:
3801 # icc: Command line remark: option '-MP' not supported
3802 if (grep 'ignoring option' conftest.err ||
3803 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3804 am_cv_CC_dependencies_compiler_type=$depmode
3805 break
3806 fi
3807 fi
3808 done
3809
3810 cd ..
3811 rm -rf conftest.dir
3812 else
3813 am_cv_CC_dependencies_compiler_type=none
3814 fi
3815
3816 fi
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3818 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3819 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3820
3821 if
3822 test "x$enable_dependency_tracking" != xno \
3823 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3824 am__fastdepCC_TRUE=
3825 am__fastdepCC_FALSE='#'
3826 else
3827 am__fastdepCC_TRUE='#'
3828 am__fastdepCC_FALSE=
3829 fi
3830
3831
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3833 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3834 if ${ac_cv_prog_cc_c99+:} false; then :
3835 $as_echo_n "(cached) " >&6
3836 else
3837 ac_cv_prog_cc_c99=no
3838 ac_save_CC=$CC
3839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3840 /* end confdefs.h. */
3841 #include <stdarg.h>
3842 #include <stdbool.h>
3843 #include <stdlib.h>
3844 #include <wchar.h>
3845 #include <stdio.h>
3846
3847 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3848 #define debug(...) fprintf (stderr, __VA_ARGS__)
3849 #define showlist(...) puts (#__VA_ARGS__)
3850 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3851 static void
3852 test_varargs_macros (void)
3853 {
3854 int x = 1234;
3855 int y = 5678;
3856 debug ("Flag");
3857 debug ("X = %d\n", x);
3858 showlist (The first, second, and third items.);
3859 report (x>y, "x is %d but y is %d", x, y);
3860 }
3861
3862 // Check long long types.
3863 #define BIG64 18446744073709551615ull
3864 #define BIG32 4294967295ul
3865 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3866 #if !BIG_OK
3867 your preprocessor is broken;
3868 #endif
3869 #if BIG_OK
3870 #else
3871 your preprocessor is broken;
3872 #endif
3873 static long long int bignum = -9223372036854775807LL;
3874 static unsigned long long int ubignum = BIG64;
3875
3876 struct incomplete_array
3877 {
3878 int datasize;
3879 double data[];
3880 };
3881
3882 struct named_init {
3883 int number;
3884 const wchar_t *name;
3885 double average;
3886 };
3887
3888 typedef const char *ccp;
3889
3890 static inline int
3891 test_restrict (ccp restrict text)
3892 {
3893 // See if C++-style comments work.
3894 // Iterate through items via the restricted pointer.
3895 // Also check for declarations in for loops.
3896 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3897 continue;
3898 return 0;
3899 }
3900
3901 // Check varargs and va_copy.
3902 static void
3903 test_varargs (const char *format, ...)
3904 {
3905 va_list args;
3906 va_start (args, format);
3907 va_list args_copy;
3908 va_copy (args_copy, args);
3909
3910 const char *str;
3911 int number;
3912 float fnumber;
3913
3914 while (*format)
3915 {
3916 switch (*format++)
3917 {
3918 case 's': // string
3919 str = va_arg (args_copy, const char *);
3920 break;
3921 case 'd': // int
3922 number = va_arg (args_copy, int);
3923 break;
3924 case 'f': // float
3925 fnumber = va_arg (args_copy, double);
3926 break;
3927 default:
3928 break;
3929 }
3930 }
3931 va_end (args_copy);
3932 va_end (args);
3933 }
3934
3935 int
3936 main ()
3937 {
3938
3939 // Check bool.
3940 _Bool success = false;
3941
3942 // Check restrict.
3943 if (test_restrict ("String literal") == 0)
3944 success = true;
3945 char *restrict newvar = "Another string";
3946
3947 // Check varargs.
3948 test_varargs ("s, d' f .", "string", 65, 34.234);
3949 test_varargs_macros ();
3950
3951 // Check flexible array members.
3952 struct incomplete_array *ia =
3953 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3954 ia->datasize = 10;
3955 for (int i = 0; i < ia->datasize; ++i)
3956 ia->data[i] = i * 1.234;
3957
3958 // Check named initializers.
3959 struct named_init ni = {
3960 .number = 34,
3961 .name = L"Test wide string",
3962 .average = 543.34343,
3963 };
3964
3965 ni.number = 58;
3966
3967 int dynamic_array[ni.number];
3968 dynamic_array[ni.number - 1] = 543;
3969
3970 // work around unused variable warnings
3971 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3972 || dynamic_array[ni.number - 1] != 543);
3973
3974 ;
3975 return 0;
3976 }
3977 _ACEOF
3978 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3979 do
3980 CC="$ac_save_CC $ac_arg"
3981 if ac_fn_c_try_compile "$LINENO"; then :
3982 ac_cv_prog_cc_c99=$ac_arg
3983 fi
3984 rm -f core conftest.err conftest.$ac_objext
3985 test "x$ac_cv_prog_cc_c99" != "xno" && break
3986 done
3987 rm -f conftest.$ac_ext
3988 CC=$ac_save_CC
3989
3990 fi
3991 # AC_CACHE_VAL
3992 case "x$ac_cv_prog_cc_c99" in
3993 x)
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3995 $as_echo "none needed" >&6; } ;;
3996 xno)
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3998 $as_echo "unsupported" >&6; } ;;
3999 *)
4000 CC="$CC $ac_cv_prog_cc_c99"
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4002 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4003 esac
4004 if test "x$ac_cv_prog_cc_c99" != xno; then :
4005
4006 fi
4007
4008
4009
4010 ac_ext=c
4011 ac_cpp='$CPP $CPPFLAGS'
4012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4016 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4017 # On Suns, sometimes $CPP names a directory.
4018 if test -n "$CPP" && test -d "$CPP"; then
4019 CPP=
4020 fi
4021 if test -z "$CPP"; then
4022 if ${ac_cv_prog_CPP+:} false; then :
4023 $as_echo_n "(cached) " >&6
4024 else
4025 # Double quotes because CPP needs to be expanded
4026 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4027 do
4028 ac_preproc_ok=false
4029 for ac_c_preproc_warn_flag in '' yes
4030 do
4031 # Use a header file that comes with gcc, so configuring glibc
4032 # with a fresh cross-compiler works.
4033 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4034 # <limits.h> exists even on freestanding compilers.
4035 # On the NeXT, cc -E runs the code through the compiler's parser,
4036 # not just through cpp. "Syntax error" is here to catch this case.
4037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038 /* end confdefs.h. */
4039 #ifdef __STDC__
4040 # include <limits.h>
4041 #else
4042 # include <assert.h>
4043 #endif
4044 Syntax error
4045 _ACEOF
4046 if ac_fn_c_try_cpp "$LINENO"; then :
4047
4048 else
4049 # Broken: fails on valid input.
4050 continue
4051 fi
4052 rm -f conftest.err conftest.i conftest.$ac_ext
4053
4054 # OK, works on sane cases. Now check whether nonexistent headers
4055 # can be detected and how.
4056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4057 /* end confdefs.h. */
4058 #include <ac_nonexistent.h>
4059 _ACEOF
4060 if ac_fn_c_try_cpp "$LINENO"; then :
4061 # Broken: success on invalid input.
4062 continue
4063 else
4064 # Passes both tests.
4065 ac_preproc_ok=:
4066 break
4067 fi
4068 rm -f conftest.err conftest.i conftest.$ac_ext
4069
4070 done
4071 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4072 rm -f conftest.i conftest.err conftest.$ac_ext
4073 if $ac_preproc_ok; then :
4074 break
4075 fi
4076
4077 done
4078 ac_cv_prog_CPP=$CPP
4079
4080 fi
4081 CPP=$ac_cv_prog_CPP
4082 else
4083 ac_cv_prog_CPP=$CPP
4084 fi
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4086 $as_echo "$CPP" >&6; }
4087 ac_preproc_ok=false
4088 for ac_c_preproc_warn_flag in '' yes
4089 do
4090 # Use a header file that comes with gcc, so configuring glibc
4091 # with a fresh cross-compiler works.
4092 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4093 # <limits.h> exists even on freestanding compilers.
4094 # On the NeXT, cc -E runs the code through the compiler's parser,
4095 # not just through cpp. "Syntax error" is here to catch this case.
4096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097 /* end confdefs.h. */
4098 #ifdef __STDC__
4099 # include <limits.h>
4100 #else
4101 # include <assert.h>
4102 #endif
4103 Syntax error
4104 _ACEOF
4105 if ac_fn_c_try_cpp "$LINENO"; then :
4106
4107 else
4108 # Broken: fails on valid input.
4109 continue
4110 fi
4111 rm -f conftest.err conftest.i conftest.$ac_ext
4112
4113 # OK, works on sane cases. Now check whether nonexistent headers
4114 # can be detected and how.
4115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116 /* end confdefs.h. */
4117 #include <ac_nonexistent.h>
4118 _ACEOF
4119 if ac_fn_c_try_cpp "$LINENO"; then :
4120 # Broken: success on invalid input.
4121 continue
4122 else
4123 # Passes both tests.
4124 ac_preproc_ok=:
4125 break
4126 fi
4127 rm -f conftest.err conftest.i conftest.$ac_ext
4128
4129 done
4130 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4131 rm -f conftest.i conftest.err conftest.$ac_ext
4132 if $ac_preproc_ok; then :
4133
4134 else
4135 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4137 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4138 See \`config.log' for more details" "$LINENO" 5; }
4139 fi
4140
4141 ac_ext=c
4142 ac_cpp='$CPP $CPPFLAGS'
4143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4146
4147
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4149 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4150 if ${ac_cv_path_GREP+:} false; then :
4151 $as_echo_n "(cached) " >&6
4152 else
4153 if test -z "$GREP"; then
4154 ac_path_GREP_found=false
4155 # Loop through the user's path and test for each of PROGNAME-LIST
4156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4157 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4158 do
4159 IFS=$as_save_IFS
4160 test -z "$as_dir" && as_dir=.
4161 for ac_prog in grep ggrep; do
4162 for ac_exec_ext in '' $ac_executable_extensions; do
4163 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4164 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4165 # Check for GNU ac_path_GREP and select it if it is found.
4166 # Check for GNU $ac_path_GREP
4167 case `"$ac_path_GREP" --version 2>&1` in
4168 *GNU*)
4169 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4170 *)
4171 ac_count=0
4172 $as_echo_n 0123456789 >"conftest.in"
4173 while :
4174 do
4175 cat "conftest.in" "conftest.in" >"conftest.tmp"
4176 mv "conftest.tmp" "conftest.in"
4177 cp "conftest.in" "conftest.nl"
4178 $as_echo 'GREP' >> "conftest.nl"
4179 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4180 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4181 as_fn_arith $ac_count + 1 && ac_count=$as_val
4182 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4183 # Best one so far, save it but keep looking for a better one
4184 ac_cv_path_GREP="$ac_path_GREP"
4185 ac_path_GREP_max=$ac_count
4186 fi
4187 # 10*(2^10) chars as input seems more than enough
4188 test $ac_count -gt 10 && break
4189 done
4190 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4191 esac
4192
4193 $ac_path_GREP_found && break 3
4194 done
4195 done
4196 done
4197 IFS=$as_save_IFS
4198 if test -z "$ac_cv_path_GREP"; then
4199 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4200 fi
4201 else
4202 ac_cv_path_GREP=$GREP
4203 fi
4204
4205 fi
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4207 $as_echo "$ac_cv_path_GREP" >&6; }
4208 GREP="$ac_cv_path_GREP"
4209
4210
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4212 $as_echo_n "checking for egrep... " >&6; }
4213 if ${ac_cv_path_EGREP+:} false; then :
4214 $as_echo_n "(cached) " >&6
4215 else
4216 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4217 then ac_cv_path_EGREP="$GREP -E"
4218 else
4219 if test -z "$EGREP"; then
4220 ac_path_EGREP_found=false
4221 # Loop through the user's path and test for each of PROGNAME-LIST
4222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4224 do
4225 IFS=$as_save_IFS
4226 test -z "$as_dir" && as_dir=.
4227 for ac_prog in egrep; do
4228 for ac_exec_ext in '' $ac_executable_extensions; do
4229 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4230 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4231 # Check for GNU ac_path_EGREP and select it if it is found.
4232 # Check for GNU $ac_path_EGREP
4233 case `"$ac_path_EGREP" --version 2>&1` in
4234 *GNU*)
4235 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4236 *)
4237 ac_count=0
4238 $as_echo_n 0123456789 >"conftest.in"
4239 while :
4240 do
4241 cat "conftest.in" "conftest.in" >"conftest.tmp"
4242 mv "conftest.tmp" "conftest.in"
4243 cp "conftest.in" "conftest.nl"
4244 $as_echo 'EGREP' >> "conftest.nl"
4245 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4246 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4247 as_fn_arith $ac_count + 1 && ac_count=$as_val
4248 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4249 # Best one so far, save it but keep looking for a better one
4250 ac_cv_path_EGREP="$ac_path_EGREP"
4251 ac_path_EGREP_max=$ac_count
4252 fi
4253 # 10*(2^10) chars as input seems more than enough
4254 test $ac_count -gt 10 && break
4255 done
4256 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4257 esac
4258
4259 $ac_path_EGREP_found && break 3
4260 done
4261 done
4262 done
4263 IFS=$as_save_IFS
4264 if test -z "$ac_cv_path_EGREP"; then
4265 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4266 fi
4267 else
4268 ac_cv_path_EGREP=$EGREP
4269 fi
4270
4271 fi
4272 fi
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4274 $as_echo "$ac_cv_path_EGREP" >&6; }
4275 EGREP="$ac_cv_path_EGREP"
4276
4277
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4279 $as_echo_n "checking for ANSI C header files... " >&6; }
4280 if ${ac_cv_header_stdc+:} false; then :
4281 $as_echo_n "(cached) " >&6
4282 else
4283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4284 /* end confdefs.h. */
4285 #include <stdlib.h>
4286 #include <stdarg.h>
4287 #include <string.h>
4288 #include <float.h>
4289
4290 int
4291 main ()
4292 {
4293
4294 ;
4295 return 0;
4296 }
4297 _ACEOF
4298 if ac_fn_c_try_compile "$LINENO"; then :
4299 ac_cv_header_stdc=yes
4300 else
4301 ac_cv_header_stdc=no
4302 fi
4303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4304
4305 if test $ac_cv_header_stdc = yes; then
4306 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4308 /* end confdefs.h. */
4309 #include <string.h>
4310
4311 _ACEOF
4312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4313 $EGREP "memchr" >/dev/null 2>&1; then :
4314
4315 else
4316 ac_cv_header_stdc=no
4317 fi
4318 rm -f conftest*
4319
4320 fi
4321
4322 if test $ac_cv_header_stdc = yes; then
4323 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h. */
4326 #include <stdlib.h>
4327
4328 _ACEOF
4329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4330 $EGREP "free" >/dev/null 2>&1; then :
4331
4332 else
4333 ac_cv_header_stdc=no
4334 fi
4335 rm -f conftest*
4336
4337 fi
4338
4339 if test $ac_cv_header_stdc = yes; then
4340 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4341 if test "$cross_compiling" = yes; then :
4342 :
4343 else
4344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4345 /* end confdefs.h. */
4346 #include <ctype.h>
4347 #include <stdlib.h>
4348 #if ((' ' & 0x0FF) == 0x020)
4349 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4350 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4351 #else
4352 # define ISLOWER(c) \
4353 (('a' <= (c) && (c) <= 'i') \
4354 || ('j' <= (c) && (c) <= 'r') \
4355 || ('s' <= (c) && (c) <= 'z'))
4356 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4357 #endif
4358
4359 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4360 int
4361 main ()
4362 {
4363 int i;
4364 for (i = 0; i < 256; i++)
4365 if (XOR (islower (i), ISLOWER (i))
4366 || toupper (i) != TOUPPER (i))
4367 return 2;
4368 return 0;
4369 }
4370 _ACEOF
4371 if ac_fn_c_try_run "$LINENO"; then :
4372
4373 else
4374 ac_cv_header_stdc=no
4375 fi
4376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4377 conftest.$ac_objext conftest.beam conftest.$ac_ext
4378 fi
4379
4380 fi
4381 fi
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4383 $as_echo "$ac_cv_header_stdc" >&6; }
4384 if test $ac_cv_header_stdc = yes; then
4385
4386 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4387
4388 fi
4389
4390 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4391 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4392 inttypes.h stdint.h unistd.h
4393 do :
4394 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4395 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4396 "
4397 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4398 cat >>confdefs.h <<_ACEOF
4399 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4400 _ACEOF
4401
4402 fi
4403
4404 done
4405
4406
4407
4408
4409
4410
4411 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4412 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4413 CLANGCC="yes"
4414 else
4415 CLANGCC="no"
4416 fi
4417
4418 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4419 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4420 INTELCC="yes"
4421 else
4422 INTELCC="no"
4423 fi
4424
4425 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4426 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4427 SUNCC="yes"
4428 else
4429 SUNCC="no"
4430 fi
4431
4432
4433
4434
4435
4436
4437
4438
4439 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4440 if test -n "$ac_tool_prefix"; then
4441 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4442 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4444 $as_echo_n "checking for $ac_word... " >&6; }
4445 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4446 $as_echo_n "(cached) " >&6
4447 else
4448 case $PKG_CONFIG in
4449 [\\/]* | ?:[\\/]*)
4450 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4451 ;;
4452 *)
4453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454 for as_dir in $PATH
4455 do
4456 IFS=$as_save_IFS
4457 test -z "$as_dir" && as_dir=.
4458 for ac_exec_ext in '' $ac_executable_extensions; do
4459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4460 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4462 break 2
4463 fi
4464 done
4465 done
4466 IFS=$as_save_IFS
4467
4468 ;;
4469 esac
4470 fi
4471 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4472 if test -n "$PKG_CONFIG"; then
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4474 $as_echo "$PKG_CONFIG" >&6; }
4475 else
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4477 $as_echo "no" >&6; }
4478 fi
4479
4480
4481 fi
4482 if test -z "$ac_cv_path_PKG_CONFIG"; then
4483 ac_pt_PKG_CONFIG=$PKG_CONFIG
4484 # Extract the first word of "pkg-config", so it can be a program name with args.
4485 set dummy pkg-config; ac_word=$2
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4487 $as_echo_n "checking for $ac_word... " >&6; }
4488 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4489 $as_echo_n "(cached) " >&6
4490 else
4491 case $ac_pt_PKG_CONFIG in
4492 [\\/]* | ?:[\\/]*)
4493 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4494 ;;
4495 *)
4496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497 for as_dir in $PATH
4498 do
4499 IFS=$as_save_IFS
4500 test -z "$as_dir" && as_dir=.
4501 for ac_exec_ext in '' $ac_executable_extensions; do
4502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4503 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4505 break 2
4506 fi
4507 done
4508 done
4509 IFS=$as_save_IFS
4510
4511 ;;
4512 esac
4513 fi
4514 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4515 if test -n "$ac_pt_PKG_CONFIG"; then
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4517 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4518 else
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4520 $as_echo "no" >&6; }
4521 fi
4522
4523 if test "x$ac_pt_PKG_CONFIG" = x; then
4524 PKG_CONFIG=""
4525 else
4526 case $cross_compiling:$ac_tool_warned in
4527 yes:)
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4530 ac_tool_warned=yes ;;
4531 esac
4532 PKG_CONFIG=$ac_pt_PKG_CONFIG
4533 fi
4534 else
4535 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4536 fi
4537
4538 fi
4539 if test -n "$PKG_CONFIG"; then
4540 _pkg_min_version=0.9.0
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4542 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4543 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4545 $as_echo "yes" >&6; }
4546 else
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4548 $as_echo "no" >&6; }
4549 PKG_CONFIG=""
4550 fi
4551 fi
4552 # Make sure we can run config.sub.
4553 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4554 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4555
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4557 $as_echo_n "checking build system type... " >&6; }
4558 if ${ac_cv_build+:} false; then :
4559 $as_echo_n "(cached) " >&6
4560 else
4561 ac_build_alias=$build_alias
4562 test "x$ac_build_alias" = x &&
4563 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4564 test "x$ac_build_alias" = x &&
4565 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4566 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4567 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4568
4569 fi
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4571 $as_echo "$ac_cv_build" >&6; }
4572 case $ac_cv_build in
4573 *-*-*) ;;
4574 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4575 esac
4576 build=$ac_cv_build
4577 ac_save_IFS=$IFS; IFS='-'
4578 set x $ac_cv_build
4579 shift
4580 build_cpu=$1
4581 build_vendor=$2
4582 shift; shift
4583 # Remember, the first character of IFS is used to create $*,
4584 # except with old shells:
4585 build_os=$*
4586 IFS=$ac_save_IFS
4587 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4588
4589
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4591 $as_echo_n "checking host system type... " >&6; }
4592 if ${ac_cv_host+:} false; then :
4593 $as_echo_n "(cached) " >&6
4594 else
4595 if test "x$host_alias" = x; then
4596 ac_cv_host=$ac_cv_build
4597 else
4598 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4599 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4600 fi
4601
4602 fi
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4604 $as_echo "$ac_cv_host" >&6; }
4605 case $ac_cv_host in
4606 *-*-*) ;;
4607 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4608 esac
4609 host=$ac_cv_host
4610 ac_save_IFS=$IFS; IFS='-'
4611 set x $ac_cv_host
4612 shift
4613 host_cpu=$1
4614 host_vendor=$2
4615 shift; shift
4616 # Remember, the first character of IFS is used to create $*,
4617 # except with old shells:
4618 host_os=$*
4619 IFS=$ac_save_IFS
4620 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4621
4622
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4624 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4625 if ${ac_cv_path_SED+:} false; then :
4626 $as_echo_n "(cached) " >&6
4627 else
4628 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4629 for ac_i in 1 2 3 4 5 6 7; do
4630 ac_script="$ac_script$as_nl$ac_script"
4631 done
4632 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4633 { ac_script=; unset ac_script;}
4634 if test -z "$SED"; then
4635 ac_path_SED_found=false
4636 # Loop through the user's path and test for each of PROGNAME-LIST
4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638 for as_dir in $PATH
4639 do
4640 IFS=$as_save_IFS
4641 test -z "$as_dir" && as_dir=.
4642 for ac_prog in sed gsed; do
4643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4645 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4646 # Check for GNU ac_path_SED and select it if it is found.
4647 # Check for GNU $ac_path_SED
4648 case `"$ac_path_SED" --version 2>&1` in
4649 *GNU*)
4650 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4651 *)
4652 ac_count=0
4653 $as_echo_n 0123456789 >"conftest.in"
4654 while :
4655 do
4656 cat "conftest.in" "conftest.in" >"conftest.tmp"
4657 mv "conftest.tmp" "conftest.in"
4658 cp "conftest.in" "conftest.nl"
4659 $as_echo '' >> "conftest.nl"
4660 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4661 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4662 as_fn_arith $ac_count + 1 && ac_count=$as_val
4663 if test $ac_count -gt ${ac_path_SED_max-0}; then
4664 # Best one so far, save it but keep looking for a better one
4665 ac_cv_path_SED="$ac_path_SED"
4666 ac_path_SED_max=$ac_count
4667 fi
4668 # 10*(2^10) chars as input seems more than enough
4669 test $ac_count -gt 10 && break
4670 done
4671 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4672 esac
4673
4674 $ac_path_SED_found && break 3
4675 done
4676 done
4677 done
4678 IFS=$as_save_IFS
4679 if test -z "$ac_cv_path_SED"; then
4680 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4681 fi
4682 else
4683 ac_cv_path_SED=$SED
4684 fi
4685
4686 fi
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4688 $as_echo "$ac_cv_path_SED" >&6; }
4689 SED="$ac_cv_path_SED"
4690 rm -f conftest.sed
4691
4692
4693
4694
4695
4696
4697 # Check whether --enable-selective-werror was given.
4698 if test "${enable_selective_werror+set}" = set; then :
4699 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4700 else
4701 SELECTIVE_WERROR=yes
4702 fi
4703
4704
4705
4706
4707
4708 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4709 if test "x$SUNCC" = "xyes"; then
4710 BASE_CFLAGS="-v"
4711 else
4712 BASE_CFLAGS=""
4713 fi
4714
4715 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729 xorg_testset_save_CFLAGS="$CFLAGS"
4730
4731 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4732 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4734 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4735 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4736 $as_echo_n "(cached) " >&6
4737 else
4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h. */
4740 int i;
4741 _ACEOF
4742 if ac_fn_c_try_compile "$LINENO"; then :
4743 xorg_cv_cc_flag_unknown_warning_option=yes
4744 else
4745 xorg_cv_cc_flag_unknown_warning_option=no
4746 fi
4747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4748 fi
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4750 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4751 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4752 CFLAGS="$xorg_testset_save_CFLAGS"
4753 fi
4754
4755 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4757 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4758 fi
4759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4761 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4762 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4763 $as_echo_n "(cached) " >&6
4764 else
4765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4766 /* end confdefs.h. */
4767 int i;
4768 _ACEOF
4769 if ac_fn_c_try_compile "$LINENO"; then :
4770 xorg_cv_cc_flag_unused_command_line_argument=yes
4771 else
4772 xorg_cv_cc_flag_unused_command_line_argument=no
4773 fi
4774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4775 fi
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4777 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4778 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4779 CFLAGS="$xorg_testset_save_CFLAGS"
4780 fi
4781
4782 found="no"
4783
4784 if test $found = "no" ; then
4785 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4786 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4787 fi
4788
4789 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4791 fi
4792
4793 CFLAGS="$CFLAGS -Wall"
4794
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4796 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4797 cacheid=xorg_cv_cc_flag__Wall
4798 if eval \${$cacheid+:} false; then :
4799 $as_echo_n "(cached) " >&6
4800 else
4801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4802 /* end confdefs.h. */
4803 int i;
4804 int
4805 main ()
4806 {
4807
4808 ;
4809 return 0;
4810 }
4811 _ACEOF
4812 if ac_fn_c_try_link "$LINENO"; then :
4813 eval $cacheid=yes
4814 else
4815 eval $cacheid=no
4816 fi
4817 rm -f core conftest.err conftest.$ac_objext \
4818 conftest$ac_exeext conftest.$ac_ext
4819 fi
4820
4821
4822 CFLAGS="$xorg_testset_save_CFLAGS"
4823
4824 eval supported=\$$cacheid
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4826 $as_echo "$supported" >&6; }
4827 if test "$supported" = "yes" ; then
4828 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4829 found="yes"
4830 fi
4831 fi
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847 xorg_testset_save_CFLAGS="$CFLAGS"
4848
4849 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4850 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4852 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4853 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4854 $as_echo_n "(cached) " >&6
4855 else
4856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4857 /* end confdefs.h. */
4858 int i;
4859 _ACEOF
4860 if ac_fn_c_try_compile "$LINENO"; then :
4861 xorg_cv_cc_flag_unknown_warning_option=yes
4862 else
4863 xorg_cv_cc_flag_unknown_warning_option=no
4864 fi
4865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4866 fi
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4868 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4869 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4870 CFLAGS="$xorg_testset_save_CFLAGS"
4871 fi
4872
4873 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4875 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4876 fi
4877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4879 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4880 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4881 $as_echo_n "(cached) " >&6
4882 else
4883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884 /* end confdefs.h. */
4885 int i;
4886 _ACEOF
4887 if ac_fn_c_try_compile "$LINENO"; then :
4888 xorg_cv_cc_flag_unused_command_line_argument=yes
4889 else
4890 xorg_cv_cc_flag_unused_command_line_argument=no
4891 fi
4892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4893 fi
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4895 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4896 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4897 CFLAGS="$xorg_testset_save_CFLAGS"
4898 fi
4899
4900 found="no"
4901
4902 if test $found = "no" ; then
4903 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4904 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4905 fi
4906
4907 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4909 fi
4910
4911 CFLAGS="$CFLAGS -Wpointer-arith"
4912
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4914 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4915 cacheid=xorg_cv_cc_flag__Wpointer_arith
4916 if eval \${$cacheid+:} false; then :
4917 $as_echo_n "(cached) " >&6
4918 else
4919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4920 /* end confdefs.h. */
4921 int i;
4922 int
4923 main ()
4924 {
4925
4926 ;
4927 return 0;
4928 }
4929 _ACEOF
4930 if ac_fn_c_try_link "$LINENO"; then :
4931 eval $cacheid=yes
4932 else
4933 eval $cacheid=no
4934 fi
4935 rm -f core conftest.err conftest.$ac_objext \
4936 conftest$ac_exeext conftest.$ac_ext
4937 fi
4938
4939
4940 CFLAGS="$xorg_testset_save_CFLAGS"
4941
4942 eval supported=\$$cacheid
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4944 $as_echo "$supported" >&6; }
4945 if test "$supported" = "yes" ; then
4946 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4947 found="yes"
4948 fi
4949 fi
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965 xorg_testset_save_CFLAGS="$CFLAGS"
4966
4967 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4970 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4971 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4972 $as_echo_n "(cached) " >&6
4973 else
4974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4975 /* end confdefs.h. */
4976 int i;
4977 _ACEOF
4978 if ac_fn_c_try_compile "$LINENO"; then :
4979 xorg_cv_cc_flag_unknown_warning_option=yes
4980 else
4981 xorg_cv_cc_flag_unknown_warning_option=no
4982 fi
4983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4984 fi
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4986 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4987 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4988 CFLAGS="$xorg_testset_save_CFLAGS"
4989 fi
4990
4991 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4993 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4994 fi
4995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4997 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4998 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4999 $as_echo_n "(cached) " >&6
5000 else
5001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5002 /* end confdefs.h. */
5003 int i;
5004 _ACEOF
5005 if ac_fn_c_try_compile "$LINENO"; then :
5006 xorg_cv_cc_flag_unused_command_line_argument=yes
5007 else
5008 xorg_cv_cc_flag_unused_command_line_argument=no
5009 fi
5010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5011 fi
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5013 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5014 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5015 CFLAGS="$xorg_testset_save_CFLAGS"
5016 fi
5017
5018 found="no"
5019
5020 if test $found = "no" ; then
5021 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5022 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5023 fi
5024
5025 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5027 fi
5028
5029 CFLAGS="$CFLAGS -Wmissing-declarations"
5030
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5032 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5033 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5034 if eval \${$cacheid+:} false; then :
5035 $as_echo_n "(cached) " >&6
5036 else
5037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5038 /* end confdefs.h. */
5039 int i;
5040 int
5041 main ()
5042 {
5043
5044 ;
5045 return 0;
5046 }
5047 _ACEOF
5048 if ac_fn_c_try_link "$LINENO"; then :
5049 eval $cacheid=yes
5050 else
5051 eval $cacheid=no
5052 fi
5053 rm -f core conftest.err conftest.$ac_objext \
5054 conftest$ac_exeext conftest.$ac_ext
5055 fi
5056
5057
5058 CFLAGS="$xorg_testset_save_CFLAGS"
5059
5060 eval supported=\$$cacheid
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5062 $as_echo "$supported" >&6; }
5063 if test "$supported" = "yes" ; then
5064 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5065 found="yes"
5066 fi
5067 fi
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083 xorg_testset_save_CFLAGS="$CFLAGS"
5084
5085 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5088 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5089 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5090 $as_echo_n "(cached) " >&6
5091 else
5092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093 /* end confdefs.h. */
5094 int i;
5095 _ACEOF
5096 if ac_fn_c_try_compile "$LINENO"; then :
5097 xorg_cv_cc_flag_unknown_warning_option=yes
5098 else
5099 xorg_cv_cc_flag_unknown_warning_option=no
5100 fi
5101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5102 fi
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5104 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5105 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5106 CFLAGS="$xorg_testset_save_CFLAGS"
5107 fi
5108
5109 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5111 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5112 fi
5113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5115 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5116 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5117 $as_echo_n "(cached) " >&6
5118 else
5119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120 /* end confdefs.h. */
5121 int i;
5122 _ACEOF
5123 if ac_fn_c_try_compile "$LINENO"; then :
5124 xorg_cv_cc_flag_unused_command_line_argument=yes
5125 else
5126 xorg_cv_cc_flag_unused_command_line_argument=no
5127 fi
5128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5129 fi
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5131 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5132 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5133 CFLAGS="$xorg_testset_save_CFLAGS"
5134 fi
5135
5136 found="no"
5137
5138 if test $found = "no" ; then
5139 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5141 fi
5142
5143 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5145 fi
5146
5147 CFLAGS="$CFLAGS -Wformat=2"
5148
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5150 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5151 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5152 if eval \${$cacheid+:} false; then :
5153 $as_echo_n "(cached) " >&6
5154 else
5155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h. */
5157 int i;
5158 int
5159 main ()
5160 {
5161
5162 ;
5163 return 0;
5164 }
5165 _ACEOF
5166 if ac_fn_c_try_link "$LINENO"; then :
5167 eval $cacheid=yes
5168 else
5169 eval $cacheid=no
5170 fi
5171 rm -f core conftest.err conftest.$ac_objext \
5172 conftest$ac_exeext conftest.$ac_ext
5173 fi
5174
5175
5176 CFLAGS="$xorg_testset_save_CFLAGS"
5177
5178 eval supported=\$$cacheid
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5180 $as_echo "$supported" >&6; }
5181 if test "$supported" = "yes" ; then
5182 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5183 found="yes"
5184 fi
5185 fi
5186
5187 if test $found = "no" ; then
5188 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5189 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5190 fi
5191
5192 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5194 fi
5195
5196 CFLAGS="$CFLAGS -Wformat"
5197
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5199 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5200 cacheid=xorg_cv_cc_flag__Wformat
5201 if eval \${$cacheid+:} false; then :
5202 $as_echo_n "(cached) " >&6
5203 else
5204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5205 /* end confdefs.h. */
5206 int i;
5207 int
5208 main ()
5209 {
5210
5211 ;
5212 return 0;
5213 }
5214 _ACEOF
5215 if ac_fn_c_try_link "$LINENO"; then :
5216 eval $cacheid=yes
5217 else
5218 eval $cacheid=no
5219 fi
5220 rm -f core conftest.err conftest.$ac_objext \
5221 conftest$ac_exeext conftest.$ac_ext
5222 fi
5223
5224
5225 CFLAGS="$xorg_testset_save_CFLAGS"
5226
5227 eval supported=\$$cacheid
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5229 $as_echo "$supported" >&6; }
5230 if test "$supported" = "yes" ; then
5231 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5232 found="yes"
5233 fi
5234 fi
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252 xorg_testset_save_CFLAGS="$CFLAGS"
5253
5254 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5255 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5257 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5258 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5259 $as_echo_n "(cached) " >&6
5260 else
5261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262 /* end confdefs.h. */
5263 int i;
5264 _ACEOF
5265 if ac_fn_c_try_compile "$LINENO"; then :
5266 xorg_cv_cc_flag_unknown_warning_option=yes
5267 else
5268 xorg_cv_cc_flag_unknown_warning_option=no
5269 fi
5270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5271 fi
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5273 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5274 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5275 CFLAGS="$xorg_testset_save_CFLAGS"
5276 fi
5277
5278 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5279 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5280 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5281 fi
5282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5284 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5285 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5286 $as_echo_n "(cached) " >&6
5287 else
5288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5289 /* end confdefs.h. */
5290 int i;
5291 _ACEOF
5292 if ac_fn_c_try_compile "$LINENO"; then :
5293 xorg_cv_cc_flag_unused_command_line_argument=yes
5294 else
5295 xorg_cv_cc_flag_unused_command_line_argument=no
5296 fi
5297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5298 fi
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5300 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5301 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5302 CFLAGS="$xorg_testset_save_CFLAGS"
5303 fi
5304
5305 found="no"
5306
5307 if test $found = "no" ; then
5308 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5309 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5310 fi
5311
5312 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5314 fi
5315
5316 CFLAGS="$CFLAGS -Wstrict-prototypes"
5317
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5319 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5320 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5321 if eval \${$cacheid+:} false; then :
5322 $as_echo_n "(cached) " >&6
5323 else
5324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5325 /* end confdefs.h. */
5326 int i;
5327 int
5328 main ()
5329 {
5330
5331 ;
5332 return 0;
5333 }
5334 _ACEOF
5335 if ac_fn_c_try_link "$LINENO"; then :
5336 eval $cacheid=yes
5337 else
5338 eval $cacheid=no
5339 fi
5340 rm -f core conftest.err conftest.$ac_objext \
5341 conftest$ac_exeext conftest.$ac_ext
5342 fi
5343
5344
5345 CFLAGS="$xorg_testset_save_CFLAGS"
5346
5347 eval supported=\$$cacheid
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5349 $as_echo "$supported" >&6; }
5350 if test "$supported" = "yes" ; then
5351 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5352 found="yes"
5353 fi
5354 fi
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370 xorg_testset_save_CFLAGS="$CFLAGS"
5371
5372 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5373 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5375 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5376 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5377 $as_echo_n "(cached) " >&6
5378 else
5379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380 /* end confdefs.h. */
5381 int i;
5382 _ACEOF
5383 if ac_fn_c_try_compile "$LINENO"; then :
5384 xorg_cv_cc_flag_unknown_warning_option=yes
5385 else
5386 xorg_cv_cc_flag_unknown_warning_option=no
5387 fi
5388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5389 fi
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5391 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5392 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5393 CFLAGS="$xorg_testset_save_CFLAGS"
5394 fi
5395
5396 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5397 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5398 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5399 fi
5400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5402 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5403 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5404 $as_echo_n "(cached) " >&6
5405 else
5406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5407 /* end confdefs.h. */
5408 int i;
5409 _ACEOF
5410 if ac_fn_c_try_compile "$LINENO"; then :
5411 xorg_cv_cc_flag_unused_command_line_argument=yes
5412 else
5413 xorg_cv_cc_flag_unused_command_line_argument=no
5414 fi
5415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5416 fi
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5418 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5419 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5420 CFLAGS="$xorg_testset_save_CFLAGS"
5421 fi
5422
5423 found="no"
5424
5425 if test $found = "no" ; then
5426 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5427 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5428 fi
5429
5430 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5432 fi
5433
5434 CFLAGS="$CFLAGS -Wmissing-prototypes"
5435
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5437 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5438 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5439 if eval \${$cacheid+:} false; then :
5440 $as_echo_n "(cached) " >&6
5441 else
5442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5443 /* end confdefs.h. */
5444 int i;
5445 int
5446 main ()
5447 {
5448
5449 ;
5450 return 0;
5451 }
5452 _ACEOF
5453 if ac_fn_c_try_link "$LINENO"; then :
5454 eval $cacheid=yes
5455 else
5456 eval $cacheid=no
5457 fi
5458 rm -f core conftest.err conftest.$ac_objext \
5459 conftest$ac_exeext conftest.$ac_ext
5460 fi
5461
5462
5463 CFLAGS="$xorg_testset_save_CFLAGS"
5464
5465 eval supported=\$$cacheid
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5467 $as_echo "$supported" >&6; }
5468 if test "$supported" = "yes" ; then
5469 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5470 found="yes"
5471 fi
5472 fi
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488 xorg_testset_save_CFLAGS="$CFLAGS"
5489
5490 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5491 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5493 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5494 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5495 $as_echo_n "(cached) " >&6
5496 else
5497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5498 /* end confdefs.h. */
5499 int i;
5500 _ACEOF
5501 if ac_fn_c_try_compile "$LINENO"; then :
5502 xorg_cv_cc_flag_unknown_warning_option=yes
5503 else
5504 xorg_cv_cc_flag_unknown_warning_option=no
5505 fi
5506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5507 fi
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5509 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5510 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5511 CFLAGS="$xorg_testset_save_CFLAGS"
5512 fi
5513
5514 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5516 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5517 fi
5518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5520 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5521 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5522 $as_echo_n "(cached) " >&6
5523 else
5524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525 /* end confdefs.h. */
5526 int i;
5527 _ACEOF
5528 if ac_fn_c_try_compile "$LINENO"; then :
5529 xorg_cv_cc_flag_unused_command_line_argument=yes
5530 else
5531 xorg_cv_cc_flag_unused_command_line_argument=no
5532 fi
5533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5534 fi
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5536 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5537 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5538 CFLAGS="$xorg_testset_save_CFLAGS"
5539 fi
5540
5541 found="no"
5542
5543 if test $found = "no" ; then
5544 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5545 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5546 fi
5547
5548 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5549 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5550 fi
5551
5552 CFLAGS="$CFLAGS -Wnested-externs"
5553
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5555 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5556 cacheid=xorg_cv_cc_flag__Wnested_externs
5557 if eval \${$cacheid+:} false; then :
5558 $as_echo_n "(cached) " >&6
5559 else
5560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5561 /* end confdefs.h. */
5562 int i;
5563 int
5564 main ()
5565 {
5566
5567 ;
5568 return 0;
5569 }
5570 _ACEOF
5571 if ac_fn_c_try_link "$LINENO"; then :
5572 eval $cacheid=yes
5573 else
5574 eval $cacheid=no
5575 fi
5576 rm -f core conftest.err conftest.$ac_objext \
5577 conftest$ac_exeext conftest.$ac_ext
5578 fi
5579
5580
5581 CFLAGS="$xorg_testset_save_CFLAGS"
5582
5583 eval supported=\$$cacheid
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5585 $as_echo "$supported" >&6; }
5586 if test "$supported" = "yes" ; then
5587 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5588 found="yes"
5589 fi
5590 fi
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606 xorg_testset_save_CFLAGS="$CFLAGS"
5607
5608 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5609 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5611 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5612 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5613 $as_echo_n "(cached) " >&6
5614 else
5615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616 /* end confdefs.h. */
5617 int i;
5618 _ACEOF
5619 if ac_fn_c_try_compile "$LINENO"; then :
5620 xorg_cv_cc_flag_unknown_warning_option=yes
5621 else
5622 xorg_cv_cc_flag_unknown_warning_option=no
5623 fi
5624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5625 fi
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5627 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5628 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5629 CFLAGS="$xorg_testset_save_CFLAGS"
5630 fi
5631
5632 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5634 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5635 fi
5636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5638 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5639 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5640 $as_echo_n "(cached) " >&6
5641 else
5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643 /* end confdefs.h. */
5644 int i;
5645 _ACEOF
5646 if ac_fn_c_try_compile "$LINENO"; then :
5647 xorg_cv_cc_flag_unused_command_line_argument=yes
5648 else
5649 xorg_cv_cc_flag_unused_command_line_argument=no
5650 fi
5651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5652 fi
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5654 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5655 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5656 CFLAGS="$xorg_testset_save_CFLAGS"
5657 fi
5658
5659 found="no"
5660
5661 if test $found = "no" ; then
5662 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5663 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5664 fi
5665
5666 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5668 fi
5669
5670 CFLAGS="$CFLAGS -Wbad-function-cast"
5671
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5673 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5674 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5675 if eval \${$cacheid+:} false; then :
5676 $as_echo_n "(cached) " >&6
5677 else
5678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5679 /* end confdefs.h. */
5680 int i;
5681 int
5682 main ()
5683 {
5684
5685 ;
5686 return 0;
5687 }
5688 _ACEOF
5689 if ac_fn_c_try_link "$LINENO"; then :
5690 eval $cacheid=yes
5691 else
5692 eval $cacheid=no
5693 fi
5694 rm -f core conftest.err conftest.$ac_objext \
5695 conftest$ac_exeext conftest.$ac_ext
5696 fi
5697
5698
5699 CFLAGS="$xorg_testset_save_CFLAGS"
5700
5701 eval supported=\$$cacheid
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5703 $as_echo "$supported" >&6; }
5704 if test "$supported" = "yes" ; then
5705 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5706 found="yes"
5707 fi
5708 fi
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724 xorg_testset_save_CFLAGS="$CFLAGS"
5725
5726 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5729 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5730 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5731 $as_echo_n "(cached) " >&6
5732 else
5733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5734 /* end confdefs.h. */
5735 int i;
5736 _ACEOF
5737 if ac_fn_c_try_compile "$LINENO"; then :
5738 xorg_cv_cc_flag_unknown_warning_option=yes
5739 else
5740 xorg_cv_cc_flag_unknown_warning_option=no
5741 fi
5742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5743 fi
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5745 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5746 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5747 CFLAGS="$xorg_testset_save_CFLAGS"
5748 fi
5749
5750 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5752 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5753 fi
5754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5756 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5757 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5758 $as_echo_n "(cached) " >&6
5759 else
5760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h. */
5762 int i;
5763 _ACEOF
5764 if ac_fn_c_try_compile "$LINENO"; then :
5765 xorg_cv_cc_flag_unused_command_line_argument=yes
5766 else
5767 xorg_cv_cc_flag_unused_command_line_argument=no
5768 fi
5769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5770 fi
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5772 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5773 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5774 CFLAGS="$xorg_testset_save_CFLAGS"
5775 fi
5776
5777 found="no"
5778
5779 if test $found = "no" ; then
5780 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5781 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5782 fi
5783
5784 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5786 fi
5787
5788 CFLAGS="$CFLAGS -Wold-style-definition"
5789
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5791 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5792 cacheid=xorg_cv_cc_flag__Wold_style_definition
5793 if eval \${$cacheid+:} false; then :
5794 $as_echo_n "(cached) " >&6
5795 else
5796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5797 /* end confdefs.h. */
5798 int i;
5799 int
5800 main ()
5801 {
5802
5803 ;
5804 return 0;
5805 }
5806 _ACEOF
5807 if ac_fn_c_try_link "$LINENO"; then :
5808 eval $cacheid=yes
5809 else
5810 eval $cacheid=no
5811 fi
5812 rm -f core conftest.err conftest.$ac_objext \
5813 conftest$ac_exeext conftest.$ac_ext
5814 fi
5815
5816
5817 CFLAGS="$xorg_testset_save_CFLAGS"
5818
5819 eval supported=\$$cacheid
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5821 $as_echo "$supported" >&6; }
5822 if test "$supported" = "yes" ; then
5823 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5824 found="yes"
5825 fi
5826 fi
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842 xorg_testset_save_CFLAGS="$CFLAGS"
5843
5844 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5847 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5848 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5849 $as_echo_n "(cached) " >&6
5850 else
5851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5852 /* end confdefs.h. */
5853 int i;
5854 _ACEOF
5855 if ac_fn_c_try_compile "$LINENO"; then :
5856 xorg_cv_cc_flag_unknown_warning_option=yes
5857 else
5858 xorg_cv_cc_flag_unknown_warning_option=no
5859 fi
5860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5861 fi
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5863 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5864 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5865 CFLAGS="$xorg_testset_save_CFLAGS"
5866 fi
5867
5868 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5870 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5871 fi
5872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5874 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5875 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5876 $as_echo_n "(cached) " >&6
5877 else
5878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5879 /* end confdefs.h. */
5880 int i;
5881 _ACEOF
5882 if ac_fn_c_try_compile "$LINENO"; then :
5883 xorg_cv_cc_flag_unused_command_line_argument=yes
5884 else
5885 xorg_cv_cc_flag_unused_command_line_argument=no
5886 fi
5887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5888 fi
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5890 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5891 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5892 CFLAGS="$xorg_testset_save_CFLAGS"
5893 fi
5894
5895 found="no"
5896
5897 if test $found = "no" ; then
5898 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5899 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5900 fi
5901
5902 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5904 fi
5905
5906 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5907
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5909 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5910 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5911 if eval \${$cacheid+:} false; then :
5912 $as_echo_n "(cached) " >&6
5913 else
5914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5915 /* end confdefs.h. */
5916 int i;
5917 int
5918 main ()
5919 {
5920
5921 ;
5922 return 0;
5923 }
5924 _ACEOF
5925 if ac_fn_c_try_link "$LINENO"; then :
5926 eval $cacheid=yes
5927 else
5928 eval $cacheid=no
5929 fi
5930 rm -f core conftest.err conftest.$ac_objext \
5931 conftest$ac_exeext conftest.$ac_ext
5932 fi
5933
5934
5935 CFLAGS="$xorg_testset_save_CFLAGS"
5936
5937 eval supported=\$$cacheid
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5939 $as_echo "$supported" >&6; }
5940 if test "$supported" = "yes" ; then
5941 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5942 found="yes"
5943 fi
5944 fi
5945
5946
5947
5948
5949
5950 # This chunk adds additional warnings that could catch undesired effects.
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964 xorg_testset_save_CFLAGS="$CFLAGS"
5965
5966 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5967 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5969 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5970 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5971 $as_echo_n "(cached) " >&6
5972 else
5973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5974 /* end confdefs.h. */
5975 int i;
5976 _ACEOF
5977 if ac_fn_c_try_compile "$LINENO"; then :
5978 xorg_cv_cc_flag_unknown_warning_option=yes
5979 else
5980 xorg_cv_cc_flag_unknown_warning_option=no
5981 fi
5982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5983 fi
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5985 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5986 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5987 CFLAGS="$xorg_testset_save_CFLAGS"
5988 fi
5989
5990 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5993 fi
5994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5996 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5997 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5998 $as_echo_n "(cached) " >&6
5999 else
6000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6001 /* end confdefs.h. */
6002 int i;
6003 _ACEOF
6004 if ac_fn_c_try_compile "$LINENO"; then :
6005 xorg_cv_cc_flag_unused_command_line_argument=yes
6006 else
6007 xorg_cv_cc_flag_unused_command_line_argument=no
6008 fi
6009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6010 fi
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6012 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6013 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6014 CFLAGS="$xorg_testset_save_CFLAGS"
6015 fi
6016
6017 found="no"
6018
6019 if test $found = "no" ; then
6020 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6021 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6022 fi
6023
6024 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6026 fi
6027
6028 CFLAGS="$CFLAGS -Wunused"
6029
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6031 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6032 cacheid=xorg_cv_cc_flag__Wunused
6033 if eval \${$cacheid+:} false; then :
6034 $as_echo_n "(cached) " >&6
6035 else
6036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6037 /* end confdefs.h. */
6038 int i;
6039 int
6040 main ()
6041 {
6042
6043 ;
6044 return 0;
6045 }
6046 _ACEOF
6047 if ac_fn_c_try_link "$LINENO"; then :
6048 eval $cacheid=yes
6049 else
6050 eval $cacheid=no
6051 fi
6052 rm -f core conftest.err conftest.$ac_objext \
6053 conftest$ac_exeext conftest.$ac_ext
6054 fi
6055
6056
6057 CFLAGS="$xorg_testset_save_CFLAGS"
6058
6059 eval supported=\$$cacheid
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6061 $as_echo "$supported" >&6; }
6062 if test "$supported" = "yes" ; then
6063 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6064 found="yes"
6065 fi
6066 fi
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082 xorg_testset_save_CFLAGS="$CFLAGS"
6083
6084 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6087 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6088 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6089 $as_echo_n "(cached) " >&6
6090 else
6091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6092 /* end confdefs.h. */
6093 int i;
6094 _ACEOF
6095 if ac_fn_c_try_compile "$LINENO"; then :
6096 xorg_cv_cc_flag_unknown_warning_option=yes
6097 else
6098 xorg_cv_cc_flag_unknown_warning_option=no
6099 fi
6100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6101 fi
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6103 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6104 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6105 CFLAGS="$xorg_testset_save_CFLAGS"
6106 fi
6107
6108 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6110 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6111 fi
6112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6114 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6115 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6116 $as_echo_n "(cached) " >&6
6117 else
6118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6119 /* end confdefs.h. */
6120 int i;
6121 _ACEOF
6122 if ac_fn_c_try_compile "$LINENO"; then :
6123 xorg_cv_cc_flag_unused_command_line_argument=yes
6124 else
6125 xorg_cv_cc_flag_unused_command_line_argument=no
6126 fi
6127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6128 fi
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6130 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6131 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6132 CFLAGS="$xorg_testset_save_CFLAGS"
6133 fi
6134
6135 found="no"
6136
6137 if test $found = "no" ; then
6138 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6139 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6140 fi
6141
6142 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6144 fi
6145
6146 CFLAGS="$CFLAGS -Wuninitialized"
6147
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6149 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6150 cacheid=xorg_cv_cc_flag__Wuninitialized
6151 if eval \${$cacheid+:} false; then :
6152 $as_echo_n "(cached) " >&6
6153 else
6154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6155 /* end confdefs.h. */
6156 int i;
6157 int
6158 main ()
6159 {
6160
6161 ;
6162 return 0;
6163 }
6164 _ACEOF
6165 if ac_fn_c_try_link "$LINENO"; then :
6166 eval $cacheid=yes
6167 else
6168 eval $cacheid=no
6169 fi
6170 rm -f core conftest.err conftest.$ac_objext \
6171 conftest$ac_exeext conftest.$ac_ext
6172 fi
6173
6174
6175 CFLAGS="$xorg_testset_save_CFLAGS"
6176
6177 eval supported=\$$cacheid
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6179 $as_echo "$supported" >&6; }
6180 if test "$supported" = "yes" ; then
6181 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6182 found="yes"
6183 fi
6184 fi
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200 xorg_testset_save_CFLAGS="$CFLAGS"
6201
6202 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6205 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6206 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6207 $as_echo_n "(cached) " >&6
6208 else
6209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6210 /* end confdefs.h. */
6211 int i;
6212 _ACEOF
6213 if ac_fn_c_try_compile "$LINENO"; then :
6214 xorg_cv_cc_flag_unknown_warning_option=yes
6215 else
6216 xorg_cv_cc_flag_unknown_warning_option=no
6217 fi
6218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6219 fi
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6221 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6222 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6223 CFLAGS="$xorg_testset_save_CFLAGS"
6224 fi
6225
6226 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6228 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6229 fi
6230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6232 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6233 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6234 $as_echo_n "(cached) " >&6
6235 else
6236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6237 /* end confdefs.h. */
6238 int i;
6239 _ACEOF
6240 if ac_fn_c_try_compile "$LINENO"; then :
6241 xorg_cv_cc_flag_unused_command_line_argument=yes
6242 else
6243 xorg_cv_cc_flag_unused_command_line_argument=no
6244 fi
6245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6246 fi
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6248 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6249 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6250 CFLAGS="$xorg_testset_save_CFLAGS"
6251 fi
6252
6253 found="no"
6254
6255 if test $found = "no" ; then
6256 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6257 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6258 fi
6259
6260 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6262 fi
6263
6264 CFLAGS="$CFLAGS -Wshadow"
6265
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6267 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6268 cacheid=xorg_cv_cc_flag__Wshadow
6269 if eval \${$cacheid+:} false; then :
6270 $as_echo_n "(cached) " >&6
6271 else
6272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273 /* end confdefs.h. */
6274 int i;
6275 int
6276 main ()
6277 {
6278
6279 ;
6280 return 0;
6281 }
6282 _ACEOF
6283 if ac_fn_c_try_link "$LINENO"; then :
6284 eval $cacheid=yes
6285 else
6286 eval $cacheid=no
6287 fi
6288 rm -f core conftest.err conftest.$ac_objext \
6289 conftest$ac_exeext conftest.$ac_ext
6290 fi
6291
6292
6293 CFLAGS="$xorg_testset_save_CFLAGS"
6294
6295 eval supported=\$$cacheid
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6297 $as_echo "$supported" >&6; }
6298 if test "$supported" = "yes" ; then
6299 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6300 found="yes"
6301 fi
6302 fi
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318 xorg_testset_save_CFLAGS="$CFLAGS"
6319
6320 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6321 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6323 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6324 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6325 $as_echo_n "(cached) " >&6
6326 else
6327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6328 /* end confdefs.h. */
6329 int i;
6330 _ACEOF
6331 if ac_fn_c_try_compile "$LINENO"; then :
6332 xorg_cv_cc_flag_unknown_warning_option=yes
6333 else
6334 xorg_cv_cc_flag_unknown_warning_option=no
6335 fi
6336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6337 fi
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6339 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6340 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6341 CFLAGS="$xorg_testset_save_CFLAGS"
6342 fi
6343
6344 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6346 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6347 fi
6348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6350 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6351 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6352 $as_echo_n "(cached) " >&6
6353 else
6354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6355 /* end confdefs.h. */
6356 int i;
6357 _ACEOF
6358 if ac_fn_c_try_compile "$LINENO"; then :
6359 xorg_cv_cc_flag_unused_command_line_argument=yes
6360 else
6361 xorg_cv_cc_flag_unused_command_line_argument=no
6362 fi
6363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6364 fi
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6366 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6367 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6368 CFLAGS="$xorg_testset_save_CFLAGS"
6369 fi
6370
6371 found="no"
6372
6373 if test $found = "no" ; then
6374 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6376 fi
6377
6378 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6380 fi
6381
6382 CFLAGS="$CFLAGS -Wcast-qual"
6383
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6385 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6386 cacheid=xorg_cv_cc_flag__Wcast_qual
6387 if eval \${$cacheid+:} false; then :
6388 $as_echo_n "(cached) " >&6
6389 else
6390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6391 /* end confdefs.h. */
6392 int i;
6393 int
6394 main ()
6395 {
6396
6397 ;
6398 return 0;
6399 }
6400 _ACEOF
6401 if ac_fn_c_try_link "$LINENO"; then :
6402 eval $cacheid=yes
6403 else
6404 eval $cacheid=no
6405 fi
6406 rm -f core conftest.err conftest.$ac_objext \
6407 conftest$ac_exeext conftest.$ac_ext
6408 fi
6409
6410
6411 CFLAGS="$xorg_testset_save_CFLAGS"
6412
6413 eval supported=\$$cacheid
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6415 $as_echo "$supported" >&6; }
6416 if test "$supported" = "yes" ; then
6417 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6418 found="yes"
6419 fi
6420 fi
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436 xorg_testset_save_CFLAGS="$CFLAGS"
6437
6438 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6439 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6441 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6442 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6443 $as_echo_n "(cached) " >&6
6444 else
6445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6446 /* end confdefs.h. */
6447 int i;
6448 _ACEOF
6449 if ac_fn_c_try_compile "$LINENO"; then :
6450 xorg_cv_cc_flag_unknown_warning_option=yes
6451 else
6452 xorg_cv_cc_flag_unknown_warning_option=no
6453 fi
6454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6455 fi
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6457 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6458 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6459 CFLAGS="$xorg_testset_save_CFLAGS"
6460 fi
6461
6462 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6464 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6465 fi
6466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6468 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6469 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6470 $as_echo_n "(cached) " >&6
6471 else
6472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6473 /* end confdefs.h. */
6474 int i;
6475 _ACEOF
6476 if ac_fn_c_try_compile "$LINENO"; then :
6477 xorg_cv_cc_flag_unused_command_line_argument=yes
6478 else
6479 xorg_cv_cc_flag_unused_command_line_argument=no
6480 fi
6481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6482 fi
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6484 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6485 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6486 CFLAGS="$xorg_testset_save_CFLAGS"
6487 fi
6488
6489 found="no"
6490
6491 if test $found = "no" ; then
6492 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6493 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6494 fi
6495
6496 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6498 fi
6499
6500 CFLAGS="$CFLAGS -Wmissing-noreturn"
6501
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6503 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6504 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6505 if eval \${$cacheid+:} false; then :
6506 $as_echo_n "(cached) " >&6
6507 else
6508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6509 /* end confdefs.h. */
6510 int i;
6511 int
6512 main ()
6513 {
6514
6515 ;
6516 return 0;
6517 }
6518 _ACEOF
6519 if ac_fn_c_try_link "$LINENO"; then :
6520 eval $cacheid=yes
6521 else
6522 eval $cacheid=no
6523 fi
6524 rm -f core conftest.err conftest.$ac_objext \
6525 conftest$ac_exeext conftest.$ac_ext
6526 fi
6527
6528
6529 CFLAGS="$xorg_testset_save_CFLAGS"
6530
6531 eval supported=\$$cacheid
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6533 $as_echo "$supported" >&6; }
6534 if test "$supported" = "yes" ; then
6535 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6536 found="yes"
6537 fi
6538 fi
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554 xorg_testset_save_CFLAGS="$CFLAGS"
6555
6556 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6557 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6559 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6560 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6561 $as_echo_n "(cached) " >&6
6562 else
6563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6564 /* end confdefs.h. */
6565 int i;
6566 _ACEOF
6567 if ac_fn_c_try_compile "$LINENO"; then :
6568 xorg_cv_cc_flag_unknown_warning_option=yes
6569 else
6570 xorg_cv_cc_flag_unknown_warning_option=no
6571 fi
6572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6573 fi
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6575 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6576 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6577 CFLAGS="$xorg_testset_save_CFLAGS"
6578 fi
6579
6580 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6583 fi
6584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6586 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6587 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6588 $as_echo_n "(cached) " >&6
6589 else
6590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591 /* end confdefs.h. */
6592 int i;
6593 _ACEOF
6594 if ac_fn_c_try_compile "$LINENO"; then :
6595 xorg_cv_cc_flag_unused_command_line_argument=yes
6596 else
6597 xorg_cv_cc_flag_unused_command_line_argument=no
6598 fi
6599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6600 fi
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6602 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6603 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6604 CFLAGS="$xorg_testset_save_CFLAGS"
6605 fi
6606
6607 found="no"
6608
6609 if test $found = "no" ; then
6610 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6611 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6612 fi
6613
6614 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6616 fi
6617
6618 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6619
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6621 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6622 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6623 if eval \${$cacheid+:} false; then :
6624 $as_echo_n "(cached) " >&6
6625 else
6626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6627 /* end confdefs.h. */
6628 int i;
6629 int
6630 main ()
6631 {
6632
6633 ;
6634 return 0;
6635 }
6636 _ACEOF
6637 if ac_fn_c_try_link "$LINENO"; then :
6638 eval $cacheid=yes
6639 else
6640 eval $cacheid=no
6641 fi
6642 rm -f core conftest.err conftest.$ac_objext \
6643 conftest$ac_exeext conftest.$ac_ext
6644 fi
6645
6646
6647 CFLAGS="$xorg_testset_save_CFLAGS"
6648
6649 eval supported=\$$cacheid
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6651 $as_echo "$supported" >&6; }
6652 if test "$supported" = "yes" ; then
6653 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6654 found="yes"
6655 fi
6656 fi
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672 xorg_testset_save_CFLAGS="$CFLAGS"
6673
6674 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6675 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6677 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6678 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6679 $as_echo_n "(cached) " >&6
6680 else
6681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6682 /* end confdefs.h. */
6683 int i;
6684 _ACEOF
6685 if ac_fn_c_try_compile "$LINENO"; then :
6686 xorg_cv_cc_flag_unknown_warning_option=yes
6687 else
6688 xorg_cv_cc_flag_unknown_warning_option=no
6689 fi
6690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6691 fi
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6693 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6694 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6695 CFLAGS="$xorg_testset_save_CFLAGS"
6696 fi
6697
6698 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6699 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6700 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6701 fi
6702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6704 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6705 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6706 $as_echo_n "(cached) " >&6
6707 else
6708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6709 /* end confdefs.h. */
6710 int i;
6711 _ACEOF
6712 if ac_fn_c_try_compile "$LINENO"; then :
6713 xorg_cv_cc_flag_unused_command_line_argument=yes
6714 else
6715 xorg_cv_cc_flag_unused_command_line_argument=no
6716 fi
6717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6718 fi
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6720 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6721 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6722 CFLAGS="$xorg_testset_save_CFLAGS"
6723 fi
6724
6725 found="no"
6726
6727 if test $found = "no" ; then
6728 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6729 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6730 fi
6731
6732 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6734 fi
6735
6736 CFLAGS="$CFLAGS -Wredundant-decls"
6737
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6739 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6740 cacheid=xorg_cv_cc_flag__Wredundant_decls
6741 if eval \${$cacheid+:} false; then :
6742 $as_echo_n "(cached) " >&6
6743 else
6744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6745 /* end confdefs.h. */
6746 int i;
6747 int
6748 main ()
6749 {
6750
6751 ;
6752 return 0;
6753 }
6754 _ACEOF
6755 if ac_fn_c_try_link "$LINENO"; then :
6756 eval $cacheid=yes
6757 else
6758 eval $cacheid=no
6759 fi
6760 rm -f core conftest.err conftest.$ac_objext \
6761 conftest$ac_exeext conftest.$ac_ext
6762 fi
6763
6764
6765 CFLAGS="$xorg_testset_save_CFLAGS"
6766
6767 eval supported=\$$cacheid
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6769 $as_echo "$supported" >&6; }
6770 if test "$supported" = "yes" ; then
6771 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6772 found="yes"
6773 fi
6774 fi
6775
6776
6777
6778 # These are currently disabled because they are noisy. They will be enabled
6779 # in the future once the codebase is sufficiently modernized to silence
6780 # them. For now, I don't want them to drown out the other warnings.
6781 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6782 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6783 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6784
6785 # Turn some warnings into errors, so we don't accidently get successful builds
6786 # when there are problems that should be fixed.
6787
6788 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802 xorg_testset_save_CFLAGS="$CFLAGS"
6803
6804 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6805 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6807 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6808 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6809 $as_echo_n "(cached) " >&6
6810 else
6811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6812 /* end confdefs.h. */
6813 int i;
6814 _ACEOF
6815 if ac_fn_c_try_compile "$LINENO"; then :
6816 xorg_cv_cc_flag_unknown_warning_option=yes
6817 else
6818 xorg_cv_cc_flag_unknown_warning_option=no
6819 fi
6820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6821 fi
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6823 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6824 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6825 CFLAGS="$xorg_testset_save_CFLAGS"
6826 fi
6827
6828 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6830 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6831 fi
6832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6834 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6835 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6836 $as_echo_n "(cached) " >&6
6837 else
6838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6839 /* end confdefs.h. */
6840 int i;
6841 _ACEOF
6842 if ac_fn_c_try_compile "$LINENO"; then :
6843 xorg_cv_cc_flag_unused_command_line_argument=yes
6844 else
6845 xorg_cv_cc_flag_unused_command_line_argument=no
6846 fi
6847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6848 fi
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6850 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6851 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6852 CFLAGS="$xorg_testset_save_CFLAGS"
6853 fi
6854
6855 found="no"
6856
6857 if test $found = "no" ; then
6858 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6859 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6860 fi
6861
6862 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6864 fi
6865
6866 CFLAGS="$CFLAGS -Werror=implicit"
6867
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6869 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6870 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6871 if eval \${$cacheid+:} false; then :
6872 $as_echo_n "(cached) " >&6
6873 else
6874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6875 /* end confdefs.h. */
6876 int i;
6877 int
6878 main ()
6879 {
6880
6881 ;
6882 return 0;
6883 }
6884 _ACEOF
6885 if ac_fn_c_try_link "$LINENO"; then :
6886 eval $cacheid=yes
6887 else
6888 eval $cacheid=no
6889 fi
6890 rm -f core conftest.err conftest.$ac_objext \
6891 conftest$ac_exeext conftest.$ac_ext
6892 fi
6893
6894
6895 CFLAGS="$xorg_testset_save_CFLAGS"
6896
6897 eval supported=\$$cacheid
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6899 $as_echo "$supported" >&6; }
6900 if test "$supported" = "yes" ; then
6901 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6902 found="yes"
6903 fi
6904 fi
6905
6906 if test $found = "no" ; then
6907 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6908 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6909 fi
6910
6911 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6913 fi
6914
6915 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6916
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6918 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6919 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6920 if eval \${$cacheid+:} false; then :
6921 $as_echo_n "(cached) " >&6
6922 else
6923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6924 /* end confdefs.h. */
6925 int i;
6926 int
6927 main ()
6928 {
6929
6930 ;
6931 return 0;
6932 }
6933 _ACEOF
6934 if ac_fn_c_try_link "$LINENO"; then :
6935 eval $cacheid=yes
6936 else
6937 eval $cacheid=no
6938 fi
6939 rm -f core conftest.err conftest.$ac_objext \
6940 conftest$ac_exeext conftest.$ac_ext
6941 fi
6942
6943
6944 CFLAGS="$xorg_testset_save_CFLAGS"
6945
6946 eval supported=\$$cacheid
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6948 $as_echo "$supported" >&6; }
6949 if test "$supported" = "yes" ; then
6950 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6951 found="yes"
6952 fi
6953 fi
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969 xorg_testset_save_CFLAGS="$CFLAGS"
6970
6971 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6972 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6974 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6975 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6976 $as_echo_n "(cached) " >&6
6977 else
6978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6979 /* end confdefs.h. */
6980 int i;
6981 _ACEOF
6982 if ac_fn_c_try_compile "$LINENO"; then :
6983 xorg_cv_cc_flag_unknown_warning_option=yes
6984 else
6985 xorg_cv_cc_flag_unknown_warning_option=no
6986 fi
6987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6988 fi
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6990 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6991 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6992 CFLAGS="$xorg_testset_save_CFLAGS"
6993 fi
6994
6995 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6996 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6997 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6998 fi
6999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7001 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7002 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7003 $as_echo_n "(cached) " >&6
7004 else
7005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7006 /* end confdefs.h. */
7007 int i;
7008 _ACEOF
7009 if ac_fn_c_try_compile "$LINENO"; then :
7010 xorg_cv_cc_flag_unused_command_line_argument=yes
7011 else
7012 xorg_cv_cc_flag_unused_command_line_argument=no
7013 fi
7014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7015 fi
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7017 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7018 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7019 CFLAGS="$xorg_testset_save_CFLAGS"
7020 fi
7021
7022 found="no"
7023
7024 if test $found = "no" ; then
7025 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7026 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7027 fi
7028
7029 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7031 fi
7032
7033 CFLAGS="$CFLAGS -Werror=nonnull"
7034
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7036 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7037 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
7038 if eval \${$cacheid+:} false; then :
7039 $as_echo_n "(cached) " >&6
7040 else
7041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7042 /* end confdefs.h. */
7043 int i;
7044 int
7045 main ()
7046 {
7047
7048 ;
7049 return 0;
7050 }
7051 _ACEOF
7052 if ac_fn_c_try_link "$LINENO"; then :
7053 eval $cacheid=yes
7054 else
7055 eval $cacheid=no
7056 fi
7057 rm -f core conftest.err conftest.$ac_objext \
7058 conftest$ac_exeext conftest.$ac_ext
7059 fi
7060
7061
7062 CFLAGS="$xorg_testset_save_CFLAGS"
7063
7064 eval supported=\$$cacheid
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7066 $as_echo "$supported" >&6; }
7067 if test "$supported" = "yes" ; then
7068 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7069 found="yes"
7070 fi
7071 fi
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087 xorg_testset_save_CFLAGS="$CFLAGS"
7088
7089 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7090 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7092 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7093 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7094 $as_echo_n "(cached) " >&6
7095 else
7096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7097 /* end confdefs.h. */
7098 int i;
7099 _ACEOF
7100 if ac_fn_c_try_compile "$LINENO"; then :
7101 xorg_cv_cc_flag_unknown_warning_option=yes
7102 else
7103 xorg_cv_cc_flag_unknown_warning_option=no
7104 fi
7105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7106 fi
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7108 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7109 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7110 CFLAGS="$xorg_testset_save_CFLAGS"
7111 fi
7112
7113 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7115 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7116 fi
7117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7119 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7120 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7121 $as_echo_n "(cached) " >&6
7122 else
7123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7124 /* end confdefs.h. */
7125 int i;
7126 _ACEOF
7127 if ac_fn_c_try_compile "$LINENO"; then :
7128 xorg_cv_cc_flag_unused_command_line_argument=yes
7129 else
7130 xorg_cv_cc_flag_unused_command_line_argument=no
7131 fi
7132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7133 fi
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7135 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7136 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7137 CFLAGS="$xorg_testset_save_CFLAGS"
7138 fi
7139
7140 found="no"
7141
7142 if test $found = "no" ; then
7143 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7144 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7145 fi
7146
7147 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7149 fi
7150
7151 CFLAGS="$CFLAGS -Werror=init-self"
7152
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7154 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7155 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7156 if eval \${$cacheid+:} false; then :
7157 $as_echo_n "(cached) " >&6
7158 else
7159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7160 /* end confdefs.h. */
7161 int i;
7162 int
7163 main ()
7164 {
7165
7166 ;
7167 return 0;
7168 }
7169 _ACEOF
7170 if ac_fn_c_try_link "$LINENO"; then :
7171 eval $cacheid=yes
7172 else
7173 eval $cacheid=no
7174 fi
7175 rm -f core conftest.err conftest.$ac_objext \
7176 conftest$ac_exeext conftest.$ac_ext
7177 fi
7178
7179
7180 CFLAGS="$xorg_testset_save_CFLAGS"
7181
7182 eval supported=\$$cacheid
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7184 $as_echo "$supported" >&6; }
7185 if test "$supported" = "yes" ; then
7186 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7187 found="yes"
7188 fi
7189 fi
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205 xorg_testset_save_CFLAGS="$CFLAGS"
7206
7207 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7208 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7210 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7211 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7212 $as_echo_n "(cached) " >&6
7213 else
7214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7215 /* end confdefs.h. */
7216 int i;
7217 _ACEOF
7218 if ac_fn_c_try_compile "$LINENO"; then :
7219 xorg_cv_cc_flag_unknown_warning_option=yes
7220 else
7221 xorg_cv_cc_flag_unknown_warning_option=no
7222 fi
7223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7224 fi
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7226 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7227 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7228 CFLAGS="$xorg_testset_save_CFLAGS"
7229 fi
7230
7231 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7234 fi
7235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7237 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7238 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7239 $as_echo_n "(cached) " >&6
7240 else
7241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7242 /* end confdefs.h. */
7243 int i;
7244 _ACEOF
7245 if ac_fn_c_try_compile "$LINENO"; then :
7246 xorg_cv_cc_flag_unused_command_line_argument=yes
7247 else
7248 xorg_cv_cc_flag_unused_command_line_argument=no
7249 fi
7250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7251 fi
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7253 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7254 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7255 CFLAGS="$xorg_testset_save_CFLAGS"
7256 fi
7257
7258 found="no"
7259
7260 if test $found = "no" ; then
7261 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7262 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7263 fi
7264
7265 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7267 fi
7268
7269 CFLAGS="$CFLAGS -Werror=main"
7270
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7272 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7273 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7274 if eval \${$cacheid+:} false; then :
7275 $as_echo_n "(cached) " >&6
7276 else
7277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7278 /* end confdefs.h. */
7279 int i;
7280 int
7281 main ()
7282 {
7283
7284 ;
7285 return 0;
7286 }
7287 _ACEOF
7288 if ac_fn_c_try_link "$LINENO"; then :
7289 eval $cacheid=yes
7290 else
7291 eval $cacheid=no
7292 fi
7293 rm -f core conftest.err conftest.$ac_objext \
7294 conftest$ac_exeext conftest.$ac_ext
7295 fi
7296
7297
7298 CFLAGS="$xorg_testset_save_CFLAGS"
7299
7300 eval supported=\$$cacheid
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7302 $as_echo "$supported" >&6; }
7303 if test "$supported" = "yes" ; then
7304 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7305 found="yes"
7306 fi
7307 fi
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323 xorg_testset_save_CFLAGS="$CFLAGS"
7324
7325 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7326 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7328 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7329 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7330 $as_echo_n "(cached) " >&6
7331 else
7332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7333 /* end confdefs.h. */
7334 int i;
7335 _ACEOF
7336 if ac_fn_c_try_compile "$LINENO"; then :
7337 xorg_cv_cc_flag_unknown_warning_option=yes
7338 else
7339 xorg_cv_cc_flag_unknown_warning_option=no
7340 fi
7341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7342 fi
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7344 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7345 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7346 CFLAGS="$xorg_testset_save_CFLAGS"
7347 fi
7348
7349 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7351 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7352 fi
7353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7355 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7356 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7357 $as_echo_n "(cached) " >&6
7358 else
7359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7360 /* end confdefs.h. */
7361 int i;
7362 _ACEOF
7363 if ac_fn_c_try_compile "$LINENO"; then :
7364 xorg_cv_cc_flag_unused_command_line_argument=yes
7365 else
7366 xorg_cv_cc_flag_unused_command_line_argument=no
7367 fi
7368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7369 fi
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7371 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7372 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7373 CFLAGS="$xorg_testset_save_CFLAGS"
7374 fi
7375
7376 found="no"
7377
7378 if test $found = "no" ; then
7379 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7380 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7381 fi
7382
7383 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7385 fi
7386
7387 CFLAGS="$CFLAGS -Werror=missing-braces"
7388
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7390 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7391 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7392 if eval \${$cacheid+:} false; then :
7393 $as_echo_n "(cached) " >&6
7394 else
7395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7396 /* end confdefs.h. */
7397 int i;
7398 int
7399 main ()
7400 {
7401
7402 ;
7403 return 0;
7404 }
7405 _ACEOF
7406 if ac_fn_c_try_link "$LINENO"; then :
7407 eval $cacheid=yes
7408 else
7409 eval $cacheid=no
7410 fi
7411 rm -f core conftest.err conftest.$ac_objext \
7412 conftest$ac_exeext conftest.$ac_ext
7413 fi
7414
7415
7416 CFLAGS="$xorg_testset_save_CFLAGS"
7417
7418 eval supported=\$$cacheid
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7420 $as_echo "$supported" >&6; }
7421 if test "$supported" = "yes" ; then
7422 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7423 found="yes"
7424 fi
7425 fi
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441 xorg_testset_save_CFLAGS="$CFLAGS"
7442
7443 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7446 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7447 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7448 $as_echo_n "(cached) " >&6
7449 else
7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451 /* end confdefs.h. */
7452 int i;
7453 _ACEOF
7454 if ac_fn_c_try_compile "$LINENO"; then :
7455 xorg_cv_cc_flag_unknown_warning_option=yes
7456 else
7457 xorg_cv_cc_flag_unknown_warning_option=no
7458 fi
7459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7460 fi
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7462 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7463 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7464 CFLAGS="$xorg_testset_save_CFLAGS"
7465 fi
7466
7467 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7470 fi
7471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7473 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7474 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7475 $as_echo_n "(cached) " >&6
7476 else
7477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7478 /* end confdefs.h. */
7479 int i;
7480 _ACEOF
7481 if ac_fn_c_try_compile "$LINENO"; then :
7482 xorg_cv_cc_flag_unused_command_line_argument=yes
7483 else
7484 xorg_cv_cc_flag_unused_command_line_argument=no
7485 fi
7486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7487 fi
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7489 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7490 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7491 CFLAGS="$xorg_testset_save_CFLAGS"
7492 fi
7493
7494 found="no"
7495
7496 if test $found = "no" ; then
7497 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7498 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7499 fi
7500
7501 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7503 fi
7504
7505 CFLAGS="$CFLAGS -Werror=sequence-point"
7506
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7508 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7509 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7510 if eval \${$cacheid+:} false; then :
7511 $as_echo_n "(cached) " >&6
7512 else
7513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7514 /* end confdefs.h. */
7515 int i;
7516 int
7517 main ()
7518 {
7519
7520 ;
7521 return 0;
7522 }
7523 _ACEOF
7524 if ac_fn_c_try_link "$LINENO"; then :
7525 eval $cacheid=yes
7526 else
7527 eval $cacheid=no
7528 fi
7529 rm -f core conftest.err conftest.$ac_objext \
7530 conftest$ac_exeext conftest.$ac_ext
7531 fi
7532
7533
7534 CFLAGS="$xorg_testset_save_CFLAGS"
7535
7536 eval supported=\$$cacheid
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7538 $as_echo "$supported" >&6; }
7539 if test "$supported" = "yes" ; then
7540 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7541 found="yes"
7542 fi
7543 fi
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559 xorg_testset_save_CFLAGS="$CFLAGS"
7560
7561 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7564 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7565 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7566 $as_echo_n "(cached) " >&6
7567 else
7568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7569 /* end confdefs.h. */
7570 int i;
7571 _ACEOF
7572 if ac_fn_c_try_compile "$LINENO"; then :
7573 xorg_cv_cc_flag_unknown_warning_option=yes
7574 else
7575 xorg_cv_cc_flag_unknown_warning_option=no
7576 fi
7577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7578 fi
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7580 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7581 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7582 CFLAGS="$xorg_testset_save_CFLAGS"
7583 fi
7584
7585 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7587 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7588 fi
7589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7591 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7592 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7593 $as_echo_n "(cached) " >&6
7594 else
7595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7596 /* end confdefs.h. */
7597 int i;
7598 _ACEOF
7599 if ac_fn_c_try_compile "$LINENO"; then :
7600 xorg_cv_cc_flag_unused_command_line_argument=yes
7601 else
7602 xorg_cv_cc_flag_unused_command_line_argument=no
7603 fi
7604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7605 fi
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7607 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7608 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7609 CFLAGS="$xorg_testset_save_CFLAGS"
7610 fi
7611
7612 found="no"
7613
7614 if test $found = "no" ; then
7615 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7616 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7617 fi
7618
7619 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7621 fi
7622
7623 CFLAGS="$CFLAGS -Werror=return-type"
7624
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7626 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7627 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7628 if eval \${$cacheid+:} false; then :
7629 $as_echo_n "(cached) " >&6
7630 else
7631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7632 /* end confdefs.h. */
7633 int i;
7634 int
7635 main ()
7636 {
7637
7638 ;
7639 return 0;
7640 }
7641 _ACEOF
7642 if ac_fn_c_try_link "$LINENO"; then :
7643 eval $cacheid=yes
7644 else
7645 eval $cacheid=no
7646 fi
7647 rm -f core conftest.err conftest.$ac_objext \
7648 conftest$ac_exeext conftest.$ac_ext
7649 fi
7650
7651
7652 CFLAGS="$xorg_testset_save_CFLAGS"
7653
7654 eval supported=\$$cacheid
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7656 $as_echo "$supported" >&6; }
7657 if test "$supported" = "yes" ; then
7658 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7659 found="yes"
7660 fi
7661 fi
7662
7663 if test $found = "no" ; then
7664 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7666 fi
7667
7668 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7670 fi
7671
7672 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7673
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7675 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7676 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7677 if eval \${$cacheid+:} false; then :
7678 $as_echo_n "(cached) " >&6
7679 else
7680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7681 /* end confdefs.h. */
7682 int i;
7683 int
7684 main ()
7685 {
7686
7687 ;
7688 return 0;
7689 }
7690 _ACEOF
7691 if ac_fn_c_try_link "$LINENO"; then :
7692 eval $cacheid=yes
7693 else
7694 eval $cacheid=no
7695 fi
7696 rm -f core conftest.err conftest.$ac_objext \
7697 conftest$ac_exeext conftest.$ac_ext
7698 fi
7699
7700
7701 CFLAGS="$xorg_testset_save_CFLAGS"
7702
7703 eval supported=\$$cacheid
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7705 $as_echo "$supported" >&6; }
7706 if test "$supported" = "yes" ; then
7707 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7708 found="yes"
7709 fi
7710 fi
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726 xorg_testset_save_CFLAGS="$CFLAGS"
7727
7728 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7729 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7731 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7732 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7733 $as_echo_n "(cached) " >&6
7734 else
7735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7736 /* end confdefs.h. */
7737 int i;
7738 _ACEOF
7739 if ac_fn_c_try_compile "$LINENO"; then :
7740 xorg_cv_cc_flag_unknown_warning_option=yes
7741 else
7742 xorg_cv_cc_flag_unknown_warning_option=no
7743 fi
7744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7745 fi
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7747 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7748 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7749 CFLAGS="$xorg_testset_save_CFLAGS"
7750 fi
7751
7752 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7754 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7755 fi
7756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7758 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7759 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7760 $as_echo_n "(cached) " >&6
7761 else
7762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7763 /* end confdefs.h. */
7764 int i;
7765 _ACEOF
7766 if ac_fn_c_try_compile "$LINENO"; then :
7767 xorg_cv_cc_flag_unused_command_line_argument=yes
7768 else
7769 xorg_cv_cc_flag_unused_command_line_argument=no
7770 fi
7771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7772 fi
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7774 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7775 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7776 CFLAGS="$xorg_testset_save_CFLAGS"
7777 fi
7778
7779 found="no"
7780
7781 if test $found = "no" ; then
7782 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7783 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7784 fi
7785
7786 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7788 fi
7789
7790 CFLAGS="$CFLAGS -Werror=trigraphs"
7791
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7793 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7794 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7795 if eval \${$cacheid+:} false; then :
7796 $as_echo_n "(cached) " >&6
7797 else
7798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7799 /* end confdefs.h. */
7800 int i;
7801 int
7802 main ()
7803 {
7804
7805 ;
7806 return 0;
7807 }
7808 _ACEOF
7809 if ac_fn_c_try_link "$LINENO"; then :
7810 eval $cacheid=yes
7811 else
7812 eval $cacheid=no
7813 fi
7814 rm -f core conftest.err conftest.$ac_objext \
7815 conftest$ac_exeext conftest.$ac_ext
7816 fi
7817
7818
7819 CFLAGS="$xorg_testset_save_CFLAGS"
7820
7821 eval supported=\$$cacheid
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7823 $as_echo "$supported" >&6; }
7824 if test "$supported" = "yes" ; then
7825 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7826 found="yes"
7827 fi
7828 fi
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844 xorg_testset_save_CFLAGS="$CFLAGS"
7845
7846 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7847 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7849 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7850 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7851 $as_echo_n "(cached) " >&6
7852 else
7853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7854 /* end confdefs.h. */
7855 int i;
7856 _ACEOF
7857 if ac_fn_c_try_compile "$LINENO"; then :
7858 xorg_cv_cc_flag_unknown_warning_option=yes
7859 else
7860 xorg_cv_cc_flag_unknown_warning_option=no
7861 fi
7862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7863 fi
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7865 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7866 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7867 CFLAGS="$xorg_testset_save_CFLAGS"
7868 fi
7869
7870 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7872 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7873 fi
7874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7876 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7877 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7878 $as_echo_n "(cached) " >&6
7879 else
7880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7881 /* end confdefs.h. */
7882 int i;
7883 _ACEOF
7884 if ac_fn_c_try_compile "$LINENO"; then :
7885 xorg_cv_cc_flag_unused_command_line_argument=yes
7886 else
7887 xorg_cv_cc_flag_unused_command_line_argument=no
7888 fi
7889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7890 fi
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7892 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7893 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7894 CFLAGS="$xorg_testset_save_CFLAGS"
7895 fi
7896
7897 found="no"
7898
7899 if test $found = "no" ; then
7900 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7901 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7902 fi
7903
7904 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7906 fi
7907
7908 CFLAGS="$CFLAGS -Werror=array-bounds"
7909
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7911 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7912 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7913 if eval \${$cacheid+:} false; then :
7914 $as_echo_n "(cached) " >&6
7915 else
7916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7917 /* end confdefs.h. */
7918 int i;
7919 int
7920 main ()
7921 {
7922
7923 ;
7924 return 0;
7925 }
7926 _ACEOF
7927 if ac_fn_c_try_link "$LINENO"; then :
7928 eval $cacheid=yes
7929 else
7930 eval $cacheid=no
7931 fi
7932 rm -f core conftest.err conftest.$ac_objext \
7933 conftest$ac_exeext conftest.$ac_ext
7934 fi
7935
7936
7937 CFLAGS="$xorg_testset_save_CFLAGS"
7938
7939 eval supported=\$$cacheid
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7941 $as_echo "$supported" >&6; }
7942 if test "$supported" = "yes" ; then
7943 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7944 found="yes"
7945 fi
7946 fi
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962 xorg_testset_save_CFLAGS="$CFLAGS"
7963
7964 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7965 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7967 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7968 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7969 $as_echo_n "(cached) " >&6
7970 else
7971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7972 /* end confdefs.h. */
7973 int i;
7974 _ACEOF
7975 if ac_fn_c_try_compile "$LINENO"; then :
7976 xorg_cv_cc_flag_unknown_warning_option=yes
7977 else
7978 xorg_cv_cc_flag_unknown_warning_option=no
7979 fi
7980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7981 fi
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7983 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7984 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7985 CFLAGS="$xorg_testset_save_CFLAGS"
7986 fi
7987
7988 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7990 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7991 fi
7992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7994 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7995 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7996 $as_echo_n "(cached) " >&6
7997 else
7998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7999 /* end confdefs.h. */
8000 int i;
8001 _ACEOF
8002 if ac_fn_c_try_compile "$LINENO"; then :
8003 xorg_cv_cc_flag_unused_command_line_argument=yes
8004 else
8005 xorg_cv_cc_flag_unused_command_line_argument=no
8006 fi
8007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8008 fi
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8010 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8011 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8012 CFLAGS="$xorg_testset_save_CFLAGS"
8013 fi
8014
8015 found="no"
8016
8017 if test $found = "no" ; then
8018 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8019 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8020 fi
8021
8022 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8024 fi
8025
8026 CFLAGS="$CFLAGS -Werror=write-strings"
8027
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8029 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8030 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
8031 if eval \${$cacheid+:} false; then :
8032 $as_echo_n "(cached) " >&6
8033 else
8034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8035 /* end confdefs.h. */
8036 int i;
8037 int
8038 main ()
8039 {
8040
8041 ;
8042 return 0;
8043 }
8044 _ACEOF
8045 if ac_fn_c_try_link "$LINENO"; then :
8046 eval $cacheid=yes
8047 else
8048 eval $cacheid=no
8049 fi
8050 rm -f core conftest.err conftest.$ac_objext \
8051 conftest$ac_exeext conftest.$ac_ext
8052 fi
8053
8054
8055 CFLAGS="$xorg_testset_save_CFLAGS"
8056
8057 eval supported=\$$cacheid
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8059 $as_echo "$supported" >&6; }
8060 if test "$supported" = "yes" ; then
8061 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8062 found="yes"
8063 fi
8064 fi
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080 xorg_testset_save_CFLAGS="$CFLAGS"
8081
8082 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8083 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8085 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8086 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8087 $as_echo_n "(cached) " >&6
8088 else
8089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8090 /* end confdefs.h. */
8091 int i;
8092 _ACEOF
8093 if ac_fn_c_try_compile "$LINENO"; then :
8094 xorg_cv_cc_flag_unknown_warning_option=yes
8095 else
8096 xorg_cv_cc_flag_unknown_warning_option=no
8097 fi
8098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8099 fi
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8101 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8102 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8103 CFLAGS="$xorg_testset_save_CFLAGS"
8104 fi
8105
8106 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8108 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8109 fi
8110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8112 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8113 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8114 $as_echo_n "(cached) " >&6
8115 else
8116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8117 /* end confdefs.h. */
8118 int i;
8119 _ACEOF
8120 if ac_fn_c_try_compile "$LINENO"; then :
8121 xorg_cv_cc_flag_unused_command_line_argument=yes
8122 else
8123 xorg_cv_cc_flag_unused_command_line_argument=no
8124 fi
8125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8126 fi
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8128 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8129 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8130 CFLAGS="$xorg_testset_save_CFLAGS"
8131 fi
8132
8133 found="no"
8134
8135 if test $found = "no" ; then
8136 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8137 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8138 fi
8139
8140 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8142 fi
8143
8144 CFLAGS="$CFLAGS -Werror=address"
8145
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8147 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8148 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8149 if eval \${$cacheid+:} false; then :
8150 $as_echo_n "(cached) " >&6
8151 else
8152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8153 /* end confdefs.h. */
8154 int i;
8155 int
8156 main ()
8157 {
8158
8159 ;
8160 return 0;
8161 }
8162 _ACEOF
8163 if ac_fn_c_try_link "$LINENO"; then :
8164 eval $cacheid=yes
8165 else
8166 eval $cacheid=no
8167 fi
8168 rm -f core conftest.err conftest.$ac_objext \
8169 conftest$ac_exeext conftest.$ac_ext
8170 fi
8171
8172
8173 CFLAGS="$xorg_testset_save_CFLAGS"
8174
8175 eval supported=\$$cacheid
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8177 $as_echo "$supported" >&6; }
8178 if test "$supported" = "yes" ; then
8179 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8180 found="yes"
8181 fi
8182 fi
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198 xorg_testset_save_CFLAGS="$CFLAGS"
8199
8200 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8201 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8203 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8204 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8205 $as_echo_n "(cached) " >&6
8206 else
8207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8208 /* end confdefs.h. */
8209 int i;
8210 _ACEOF
8211 if ac_fn_c_try_compile "$LINENO"; then :
8212 xorg_cv_cc_flag_unknown_warning_option=yes
8213 else
8214 xorg_cv_cc_flag_unknown_warning_option=no
8215 fi
8216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8217 fi
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8219 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8220 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8221 CFLAGS="$xorg_testset_save_CFLAGS"
8222 fi
8223
8224 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8227 fi
8228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8230 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8231 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8232 $as_echo_n "(cached) " >&6
8233 else
8234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8235 /* end confdefs.h. */
8236 int i;
8237 _ACEOF
8238 if ac_fn_c_try_compile "$LINENO"; then :
8239 xorg_cv_cc_flag_unused_command_line_argument=yes
8240 else
8241 xorg_cv_cc_flag_unused_command_line_argument=no
8242 fi
8243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8244 fi
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8246 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8247 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8248 CFLAGS="$xorg_testset_save_CFLAGS"
8249 fi
8250
8251 found="no"
8252
8253 if test $found = "no" ; then
8254 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8255 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8256 fi
8257
8258 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8259 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8260 fi
8261
8262 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8263
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8265 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8266 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8267 if eval \${$cacheid+:} false; then :
8268 $as_echo_n "(cached) " >&6
8269 else
8270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8271 /* end confdefs.h. */
8272 int i;
8273 int
8274 main ()
8275 {
8276
8277 ;
8278 return 0;
8279 }
8280 _ACEOF
8281 if ac_fn_c_try_link "$LINENO"; then :
8282 eval $cacheid=yes
8283 else
8284 eval $cacheid=no
8285 fi
8286 rm -f core conftest.err conftest.$ac_objext \
8287 conftest$ac_exeext conftest.$ac_ext
8288 fi
8289
8290
8291 CFLAGS="$xorg_testset_save_CFLAGS"
8292
8293 eval supported=\$$cacheid
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8295 $as_echo "$supported" >&6; }
8296 if test "$supported" = "yes" ; then
8297 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8298 found="yes"
8299 fi
8300 fi
8301
8302 if test $found = "no" ; then
8303 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8304 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8305 fi
8306
8307 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8309 fi
8310
8311 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8312
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8314 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8315 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8316 if eval \${$cacheid+:} false; then :
8317 $as_echo_n "(cached) " >&6
8318 else
8319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8320 /* end confdefs.h. */
8321 int i;
8322 int
8323 main ()
8324 {
8325
8326 ;
8327 return 0;
8328 }
8329 _ACEOF
8330 if ac_fn_c_try_link "$LINENO"; then :
8331 eval $cacheid=yes
8332 else
8333 eval $cacheid=no
8334 fi
8335 rm -f core conftest.err conftest.$ac_objext \
8336 conftest$ac_exeext conftest.$ac_ext
8337 fi
8338
8339
8340 CFLAGS="$xorg_testset_save_CFLAGS"
8341
8342 eval supported=\$$cacheid
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8344 $as_echo "$supported" >&6; }
8345 if test "$supported" = "yes" ; then
8346 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8347 found="yes"
8348 fi
8349 fi
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365 xorg_testset_save_CFLAGS="$CFLAGS"
8366
8367 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8368 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8370 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8371 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8372 $as_echo_n "(cached) " >&6
8373 else
8374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8375 /* end confdefs.h. */
8376 int i;
8377 _ACEOF
8378 if ac_fn_c_try_compile "$LINENO"; then :
8379 xorg_cv_cc_flag_unknown_warning_option=yes
8380 else
8381 xorg_cv_cc_flag_unknown_warning_option=no
8382 fi
8383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8384 fi
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8386 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8387 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8388 CFLAGS="$xorg_testset_save_CFLAGS"
8389 fi
8390
8391 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8393 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8394 fi
8395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8397 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8398 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8399 $as_echo_n "(cached) " >&6
8400 else
8401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8402 /* end confdefs.h. */
8403 int i;
8404 _ACEOF
8405 if ac_fn_c_try_compile "$LINENO"; then :
8406 xorg_cv_cc_flag_unused_command_line_argument=yes
8407 else
8408 xorg_cv_cc_flag_unused_command_line_argument=no
8409 fi
8410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8411 fi
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8413 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8414 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8415 CFLAGS="$xorg_testset_save_CFLAGS"
8416 fi
8417
8418 found="no"
8419
8420 if test $found = "no" ; then
8421 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8422 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8423 fi
8424
8425 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8427 fi
8428
8429 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8430
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8432 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8433 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8434 if eval \${$cacheid+:} false; then :
8435 $as_echo_n "(cached) " >&6
8436 else
8437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8438 /* end confdefs.h. */
8439 int i;
8440 int
8441 main ()
8442 {
8443
8444 ;
8445 return 0;
8446 }
8447 _ACEOF
8448 if ac_fn_c_try_link "$LINENO"; then :
8449 eval $cacheid=yes
8450 else
8451 eval $cacheid=no
8452 fi
8453 rm -f core conftest.err conftest.$ac_objext \
8454 conftest$ac_exeext conftest.$ac_ext
8455 fi
8456
8457
8458 CFLAGS="$xorg_testset_save_CFLAGS"
8459
8460 eval supported=\$$cacheid
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8462 $as_echo "$supported" >&6; }
8463 if test "$supported" = "yes" ; then
8464 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8465 found="yes"
8466 fi
8467 fi
8468
8469 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8470 else
8471 { $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
8472 $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;}
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486 xorg_testset_save_CFLAGS="$CFLAGS"
8487
8488 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8491 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8492 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8493 $as_echo_n "(cached) " >&6
8494 else
8495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8496 /* end confdefs.h. */
8497 int i;
8498 _ACEOF
8499 if ac_fn_c_try_compile "$LINENO"; then :
8500 xorg_cv_cc_flag_unknown_warning_option=yes
8501 else
8502 xorg_cv_cc_flag_unknown_warning_option=no
8503 fi
8504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8505 fi
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8507 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8508 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8509 CFLAGS="$xorg_testset_save_CFLAGS"
8510 fi
8511
8512 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8514 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8515 fi
8516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8518 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8519 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8520 $as_echo_n "(cached) " >&6
8521 else
8522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8523 /* end confdefs.h. */
8524 int i;
8525 _ACEOF
8526 if ac_fn_c_try_compile "$LINENO"; then :
8527 xorg_cv_cc_flag_unused_command_line_argument=yes
8528 else
8529 xorg_cv_cc_flag_unused_command_line_argument=no
8530 fi
8531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8532 fi
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8534 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8535 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8536 CFLAGS="$xorg_testset_save_CFLAGS"
8537 fi
8538
8539 found="no"
8540
8541 if test $found = "no" ; then
8542 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8543 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8544 fi
8545
8546 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8548 fi
8549
8550 CFLAGS="$CFLAGS -Wimplicit"
8551
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8553 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8554 cacheid=xorg_cv_cc_flag__Wimplicit
8555 if eval \${$cacheid+:} false; then :
8556 $as_echo_n "(cached) " >&6
8557 else
8558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8559 /* end confdefs.h. */
8560 int i;
8561 int
8562 main ()
8563 {
8564
8565 ;
8566 return 0;
8567 }
8568 _ACEOF
8569 if ac_fn_c_try_link "$LINENO"; then :
8570 eval $cacheid=yes
8571 else
8572 eval $cacheid=no
8573 fi
8574 rm -f core conftest.err conftest.$ac_objext \
8575 conftest$ac_exeext conftest.$ac_ext
8576 fi
8577
8578
8579 CFLAGS="$xorg_testset_save_CFLAGS"
8580
8581 eval supported=\$$cacheid
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8583 $as_echo "$supported" >&6; }
8584 if test "$supported" = "yes" ; then
8585 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8586 found="yes"
8587 fi
8588 fi
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604 xorg_testset_save_CFLAGS="$CFLAGS"
8605
8606 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8609 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8610 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8611 $as_echo_n "(cached) " >&6
8612 else
8613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8614 /* end confdefs.h. */
8615 int i;
8616 _ACEOF
8617 if ac_fn_c_try_compile "$LINENO"; then :
8618 xorg_cv_cc_flag_unknown_warning_option=yes
8619 else
8620 xorg_cv_cc_flag_unknown_warning_option=no
8621 fi
8622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8623 fi
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8625 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8626 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8627 CFLAGS="$xorg_testset_save_CFLAGS"
8628 fi
8629
8630 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8632 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8633 fi
8634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8636 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8637 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8638 $as_echo_n "(cached) " >&6
8639 else
8640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8641 /* end confdefs.h. */
8642 int i;
8643 _ACEOF
8644 if ac_fn_c_try_compile "$LINENO"; then :
8645 xorg_cv_cc_flag_unused_command_line_argument=yes
8646 else
8647 xorg_cv_cc_flag_unused_command_line_argument=no
8648 fi
8649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8650 fi
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8652 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8653 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8654 CFLAGS="$xorg_testset_save_CFLAGS"
8655 fi
8656
8657 found="no"
8658
8659 if test $found = "no" ; then
8660 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8661 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8662 fi
8663
8664 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8666 fi
8667
8668 CFLAGS="$CFLAGS -Wnonnull"
8669
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8671 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8672 cacheid=xorg_cv_cc_flag__Wnonnull
8673 if eval \${$cacheid+:} false; then :
8674 $as_echo_n "(cached) " >&6
8675 else
8676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8677 /* end confdefs.h. */
8678 int i;
8679 int
8680 main ()
8681 {
8682
8683 ;
8684 return 0;
8685 }
8686 _ACEOF
8687 if ac_fn_c_try_link "$LINENO"; then :
8688 eval $cacheid=yes
8689 else
8690 eval $cacheid=no
8691 fi
8692 rm -f core conftest.err conftest.$ac_objext \
8693 conftest$ac_exeext conftest.$ac_ext
8694 fi
8695
8696
8697 CFLAGS="$xorg_testset_save_CFLAGS"
8698
8699 eval supported=\$$cacheid
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8701 $as_echo "$supported" >&6; }
8702 if test "$supported" = "yes" ; then
8703 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8704 found="yes"
8705 fi
8706 fi
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722 xorg_testset_save_CFLAGS="$CFLAGS"
8723
8724 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8727 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8728 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8729 $as_echo_n "(cached) " >&6
8730 else
8731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8732 /* end confdefs.h. */
8733 int i;
8734 _ACEOF
8735 if ac_fn_c_try_compile "$LINENO"; then :
8736 xorg_cv_cc_flag_unknown_warning_option=yes
8737 else
8738 xorg_cv_cc_flag_unknown_warning_option=no
8739 fi
8740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8741 fi
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8743 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8744 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8745 CFLAGS="$xorg_testset_save_CFLAGS"
8746 fi
8747
8748 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8749 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8750 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8751 fi
8752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8754 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8755 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8756 $as_echo_n "(cached) " >&6
8757 else
8758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8759 /* end confdefs.h. */
8760 int i;
8761 _ACEOF
8762 if ac_fn_c_try_compile "$LINENO"; then :
8763 xorg_cv_cc_flag_unused_command_line_argument=yes
8764 else
8765 xorg_cv_cc_flag_unused_command_line_argument=no
8766 fi
8767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8768 fi
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8770 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8771 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8772 CFLAGS="$xorg_testset_save_CFLAGS"
8773 fi
8774
8775 found="no"
8776
8777 if test $found = "no" ; then
8778 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8779 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8780 fi
8781
8782 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8784 fi
8785
8786 CFLAGS="$CFLAGS -Winit-self"
8787
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8789 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8790 cacheid=xorg_cv_cc_flag__Winit_self
8791 if eval \${$cacheid+:} false; then :
8792 $as_echo_n "(cached) " >&6
8793 else
8794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8795 /* end confdefs.h. */
8796 int i;
8797 int
8798 main ()
8799 {
8800
8801 ;
8802 return 0;
8803 }
8804 _ACEOF
8805 if ac_fn_c_try_link "$LINENO"; then :
8806 eval $cacheid=yes
8807 else
8808 eval $cacheid=no
8809 fi
8810 rm -f core conftest.err conftest.$ac_objext \
8811 conftest$ac_exeext conftest.$ac_ext
8812 fi
8813
8814
8815 CFLAGS="$xorg_testset_save_CFLAGS"
8816
8817 eval supported=\$$cacheid
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8819 $as_echo "$supported" >&6; }
8820 if test "$supported" = "yes" ; then
8821 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8822 found="yes"
8823 fi
8824 fi
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840 xorg_testset_save_CFLAGS="$CFLAGS"
8841
8842 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8843 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8845 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8846 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8847 $as_echo_n "(cached) " >&6
8848 else
8849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8850 /* end confdefs.h. */
8851 int i;
8852 _ACEOF
8853 if ac_fn_c_try_compile "$LINENO"; then :
8854 xorg_cv_cc_flag_unknown_warning_option=yes
8855 else
8856 xorg_cv_cc_flag_unknown_warning_option=no
8857 fi
8858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8859 fi
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8861 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8862 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8863 CFLAGS="$xorg_testset_save_CFLAGS"
8864 fi
8865
8866 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8867 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8868 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8869 fi
8870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8872 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8873 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8874 $as_echo_n "(cached) " >&6
8875 else
8876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8877 /* end confdefs.h. */
8878 int i;
8879 _ACEOF
8880 if ac_fn_c_try_compile "$LINENO"; then :
8881 xorg_cv_cc_flag_unused_command_line_argument=yes
8882 else
8883 xorg_cv_cc_flag_unused_command_line_argument=no
8884 fi
8885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8886 fi
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8888 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8889 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8890 CFLAGS="$xorg_testset_save_CFLAGS"
8891 fi
8892
8893 found="no"
8894
8895 if test $found = "no" ; then
8896 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8897 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8898 fi
8899
8900 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8902 fi
8903
8904 CFLAGS="$CFLAGS -Wmain"
8905
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8907 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8908 cacheid=xorg_cv_cc_flag__Wmain
8909 if eval \${$cacheid+:} false; then :
8910 $as_echo_n "(cached) " >&6
8911 else
8912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8913 /* end confdefs.h. */
8914 int i;
8915 int
8916 main ()
8917 {
8918
8919 ;
8920 return 0;
8921 }
8922 _ACEOF
8923 if ac_fn_c_try_link "$LINENO"; then :
8924 eval $cacheid=yes
8925 else
8926 eval $cacheid=no
8927 fi
8928 rm -f core conftest.err conftest.$ac_objext \
8929 conftest$ac_exeext conftest.$ac_ext
8930 fi
8931
8932
8933 CFLAGS="$xorg_testset_save_CFLAGS"
8934
8935 eval supported=\$$cacheid
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8937 $as_echo "$supported" >&6; }
8938 if test "$supported" = "yes" ; then
8939 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8940 found="yes"
8941 fi
8942 fi
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958 xorg_testset_save_CFLAGS="$CFLAGS"
8959
8960 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8961 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8963 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8964 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8965 $as_echo_n "(cached) " >&6
8966 else
8967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8968 /* end confdefs.h. */
8969 int i;
8970 _ACEOF
8971 if ac_fn_c_try_compile "$LINENO"; then :
8972 xorg_cv_cc_flag_unknown_warning_option=yes
8973 else
8974 xorg_cv_cc_flag_unknown_warning_option=no
8975 fi
8976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8977 fi
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8979 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8980 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8981 CFLAGS="$xorg_testset_save_CFLAGS"
8982 fi
8983
8984 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8986 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8987 fi
8988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8990 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8991 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8992 $as_echo_n "(cached) " >&6
8993 else
8994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8995 /* end confdefs.h. */
8996 int i;
8997 _ACEOF
8998 if ac_fn_c_try_compile "$LINENO"; then :
8999 xorg_cv_cc_flag_unused_command_line_argument=yes
9000 else
9001 xorg_cv_cc_flag_unused_command_line_argument=no
9002 fi
9003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9004 fi
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9006 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9007 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9008 CFLAGS="$xorg_testset_save_CFLAGS"
9009 fi
9010
9011 found="no"
9012
9013 if test $found = "no" ; then
9014 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9016 fi
9017
9018 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9020 fi
9021
9022 CFLAGS="$CFLAGS -Wmissing-braces"
9023
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9025 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9026 cacheid=xorg_cv_cc_flag__Wmissing_braces
9027 if eval \${$cacheid+:} false; then :
9028 $as_echo_n "(cached) " >&6
9029 else
9030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9031 /* end confdefs.h. */
9032 int i;
9033 int
9034 main ()
9035 {
9036
9037 ;
9038 return 0;
9039 }
9040 _ACEOF
9041 if ac_fn_c_try_link "$LINENO"; then :
9042 eval $cacheid=yes
9043 else
9044 eval $cacheid=no
9045 fi
9046 rm -f core conftest.err conftest.$ac_objext \
9047 conftest$ac_exeext conftest.$ac_ext
9048 fi
9049
9050
9051 CFLAGS="$xorg_testset_save_CFLAGS"
9052
9053 eval supported=\$$cacheid
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9055 $as_echo "$supported" >&6; }
9056 if test "$supported" = "yes" ; then
9057 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9058 found="yes"
9059 fi
9060 fi
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076 xorg_testset_save_CFLAGS="$CFLAGS"
9077
9078 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9081 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9082 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9083 $as_echo_n "(cached) " >&6
9084 else
9085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9086 /* end confdefs.h. */
9087 int i;
9088 _ACEOF
9089 if ac_fn_c_try_compile "$LINENO"; then :
9090 xorg_cv_cc_flag_unknown_warning_option=yes
9091 else
9092 xorg_cv_cc_flag_unknown_warning_option=no
9093 fi
9094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9095 fi
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9097 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9098 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9099 CFLAGS="$xorg_testset_save_CFLAGS"
9100 fi
9101
9102 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9105 fi
9106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9108 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9109 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9110 $as_echo_n "(cached) " >&6
9111 else
9112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9113 /* end confdefs.h. */
9114 int i;
9115 _ACEOF
9116 if ac_fn_c_try_compile "$LINENO"; then :
9117 xorg_cv_cc_flag_unused_command_line_argument=yes
9118 else
9119 xorg_cv_cc_flag_unused_command_line_argument=no
9120 fi
9121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9122 fi
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9124 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9125 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9126 CFLAGS="$xorg_testset_save_CFLAGS"
9127 fi
9128
9129 found="no"
9130
9131 if test $found = "no" ; then
9132 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9133 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9134 fi
9135
9136 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9138 fi
9139
9140 CFLAGS="$CFLAGS -Wsequence-point"
9141
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9143 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9144 cacheid=xorg_cv_cc_flag__Wsequence_point
9145 if eval \${$cacheid+:} false; then :
9146 $as_echo_n "(cached) " >&6
9147 else
9148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9149 /* end confdefs.h. */
9150 int i;
9151 int
9152 main ()
9153 {
9154
9155 ;
9156 return 0;
9157 }
9158 _ACEOF
9159 if ac_fn_c_try_link "$LINENO"; then :
9160 eval $cacheid=yes
9161 else
9162 eval $cacheid=no
9163 fi
9164 rm -f core conftest.err conftest.$ac_objext \
9165 conftest$ac_exeext conftest.$ac_ext
9166 fi
9167
9168
9169 CFLAGS="$xorg_testset_save_CFLAGS"
9170
9171 eval supported=\$$cacheid
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9173 $as_echo "$supported" >&6; }
9174 if test "$supported" = "yes" ; then
9175 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9176 found="yes"
9177 fi
9178 fi
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194 xorg_testset_save_CFLAGS="$CFLAGS"
9195
9196 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9199 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9200 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9201 $as_echo_n "(cached) " >&6
9202 else
9203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9204 /* end confdefs.h. */
9205 int i;
9206 _ACEOF
9207 if ac_fn_c_try_compile "$LINENO"; then :
9208 xorg_cv_cc_flag_unknown_warning_option=yes
9209 else
9210 xorg_cv_cc_flag_unknown_warning_option=no
9211 fi
9212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9213 fi
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9215 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9216 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9217 CFLAGS="$xorg_testset_save_CFLAGS"
9218 fi
9219
9220 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9222 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9223 fi
9224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9226 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9227 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9228 $as_echo_n "(cached) " >&6
9229 else
9230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9231 /* end confdefs.h. */
9232 int i;
9233 _ACEOF
9234 if ac_fn_c_try_compile "$LINENO"; then :
9235 xorg_cv_cc_flag_unused_command_line_argument=yes
9236 else
9237 xorg_cv_cc_flag_unused_command_line_argument=no
9238 fi
9239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9240 fi
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9242 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9243 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9244 CFLAGS="$xorg_testset_save_CFLAGS"
9245 fi
9246
9247 found="no"
9248
9249 if test $found = "no" ; then
9250 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9251 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9252 fi
9253
9254 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9255 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9256 fi
9257
9258 CFLAGS="$CFLAGS -Wreturn-type"
9259
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9261 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9262 cacheid=xorg_cv_cc_flag__Wreturn_type
9263 if eval \${$cacheid+:} false; then :
9264 $as_echo_n "(cached) " >&6
9265 else
9266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9267 /* end confdefs.h. */
9268 int i;
9269 int
9270 main ()
9271 {
9272
9273 ;
9274 return 0;
9275 }
9276 _ACEOF
9277 if ac_fn_c_try_link "$LINENO"; then :
9278 eval $cacheid=yes
9279 else
9280 eval $cacheid=no
9281 fi
9282 rm -f core conftest.err conftest.$ac_objext \
9283 conftest$ac_exeext conftest.$ac_ext
9284 fi
9285
9286
9287 CFLAGS="$xorg_testset_save_CFLAGS"
9288
9289 eval supported=\$$cacheid
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9291 $as_echo "$supported" >&6; }
9292 if test "$supported" = "yes" ; then
9293 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9294 found="yes"
9295 fi
9296 fi
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312 xorg_testset_save_CFLAGS="$CFLAGS"
9313
9314 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9315 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9317 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9318 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9319 $as_echo_n "(cached) " >&6
9320 else
9321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9322 /* end confdefs.h. */
9323 int i;
9324 _ACEOF
9325 if ac_fn_c_try_compile "$LINENO"; then :
9326 xorg_cv_cc_flag_unknown_warning_option=yes
9327 else
9328 xorg_cv_cc_flag_unknown_warning_option=no
9329 fi
9330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9331 fi
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9333 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9334 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9335 CFLAGS="$xorg_testset_save_CFLAGS"
9336 fi
9337
9338 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9339 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9340 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9341 fi
9342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9344 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9345 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9346 $as_echo_n "(cached) " >&6
9347 else
9348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9349 /* end confdefs.h. */
9350 int i;
9351 _ACEOF
9352 if ac_fn_c_try_compile "$LINENO"; then :
9353 xorg_cv_cc_flag_unused_command_line_argument=yes
9354 else
9355 xorg_cv_cc_flag_unused_command_line_argument=no
9356 fi
9357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9358 fi
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9360 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9361 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9362 CFLAGS="$xorg_testset_save_CFLAGS"
9363 fi
9364
9365 found="no"
9366
9367 if test $found = "no" ; then
9368 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9369 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9370 fi
9371
9372 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9374 fi
9375
9376 CFLAGS="$CFLAGS -Wtrigraphs"
9377
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9379 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9380 cacheid=xorg_cv_cc_flag__Wtrigraphs
9381 if eval \${$cacheid+:} false; then :
9382 $as_echo_n "(cached) " >&6
9383 else
9384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9385 /* end confdefs.h. */
9386 int i;
9387 int
9388 main ()
9389 {
9390
9391 ;
9392 return 0;
9393 }
9394 _ACEOF
9395 if ac_fn_c_try_link "$LINENO"; then :
9396 eval $cacheid=yes
9397 else
9398 eval $cacheid=no
9399 fi
9400 rm -f core conftest.err conftest.$ac_objext \
9401 conftest$ac_exeext conftest.$ac_ext
9402 fi
9403
9404
9405 CFLAGS="$xorg_testset_save_CFLAGS"
9406
9407 eval supported=\$$cacheid
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9409 $as_echo "$supported" >&6; }
9410 if test "$supported" = "yes" ; then
9411 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9412 found="yes"
9413 fi
9414 fi
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430 xorg_testset_save_CFLAGS="$CFLAGS"
9431
9432 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9433 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9435 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9436 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9437 $as_echo_n "(cached) " >&6
9438 else
9439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9440 /* end confdefs.h. */
9441 int i;
9442 _ACEOF
9443 if ac_fn_c_try_compile "$LINENO"; then :
9444 xorg_cv_cc_flag_unknown_warning_option=yes
9445 else
9446 xorg_cv_cc_flag_unknown_warning_option=no
9447 fi
9448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9449 fi
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9451 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9452 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9453 CFLAGS="$xorg_testset_save_CFLAGS"
9454 fi
9455
9456 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9458 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9459 fi
9460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9462 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9463 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9464 $as_echo_n "(cached) " >&6
9465 else
9466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9467 /* end confdefs.h. */
9468 int i;
9469 _ACEOF
9470 if ac_fn_c_try_compile "$LINENO"; then :
9471 xorg_cv_cc_flag_unused_command_line_argument=yes
9472 else
9473 xorg_cv_cc_flag_unused_command_line_argument=no
9474 fi
9475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9476 fi
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9478 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9479 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9480 CFLAGS="$xorg_testset_save_CFLAGS"
9481 fi
9482
9483 found="no"
9484
9485 if test $found = "no" ; then
9486 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9487 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9488 fi
9489
9490 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9492 fi
9493
9494 CFLAGS="$CFLAGS -Warray-bounds"
9495
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9497 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9498 cacheid=xorg_cv_cc_flag__Warray_bounds
9499 if eval \${$cacheid+:} false; then :
9500 $as_echo_n "(cached) " >&6
9501 else
9502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9503 /* end confdefs.h. */
9504 int i;
9505 int
9506 main ()
9507 {
9508
9509 ;
9510 return 0;
9511 }
9512 _ACEOF
9513 if ac_fn_c_try_link "$LINENO"; then :
9514 eval $cacheid=yes
9515 else
9516 eval $cacheid=no
9517 fi
9518 rm -f core conftest.err conftest.$ac_objext \
9519 conftest$ac_exeext conftest.$ac_ext
9520 fi
9521
9522
9523 CFLAGS="$xorg_testset_save_CFLAGS"
9524
9525 eval supported=\$$cacheid
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9527 $as_echo "$supported" >&6; }
9528 if test "$supported" = "yes" ; then
9529 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9530 found="yes"
9531 fi
9532 fi
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548 xorg_testset_save_CFLAGS="$CFLAGS"
9549
9550 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9551 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9553 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9554 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9555 $as_echo_n "(cached) " >&6
9556 else
9557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9558 /* end confdefs.h. */
9559 int i;
9560 _ACEOF
9561 if ac_fn_c_try_compile "$LINENO"; then :
9562 xorg_cv_cc_flag_unknown_warning_option=yes
9563 else
9564 xorg_cv_cc_flag_unknown_warning_option=no
9565 fi
9566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9567 fi
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9569 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9570 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9571 CFLAGS="$xorg_testset_save_CFLAGS"
9572 fi
9573
9574 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9575 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9576 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9577 fi
9578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9580 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9581 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9582 $as_echo_n "(cached) " >&6
9583 else
9584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9585 /* end confdefs.h. */
9586 int i;
9587 _ACEOF
9588 if ac_fn_c_try_compile "$LINENO"; then :
9589 xorg_cv_cc_flag_unused_command_line_argument=yes
9590 else
9591 xorg_cv_cc_flag_unused_command_line_argument=no
9592 fi
9593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9594 fi
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9596 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9597 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9598 CFLAGS="$xorg_testset_save_CFLAGS"
9599 fi
9600
9601 found="no"
9602
9603 if test $found = "no" ; then
9604 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9606 fi
9607
9608 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9610 fi
9611
9612 CFLAGS="$CFLAGS -Wwrite-strings"
9613
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9615 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9616 cacheid=xorg_cv_cc_flag__Wwrite_strings
9617 if eval \${$cacheid+:} false; then :
9618 $as_echo_n "(cached) " >&6
9619 else
9620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9621 /* end confdefs.h. */
9622 int i;
9623 int
9624 main ()
9625 {
9626
9627 ;
9628 return 0;
9629 }
9630 _ACEOF
9631 if ac_fn_c_try_link "$LINENO"; then :
9632 eval $cacheid=yes
9633 else
9634 eval $cacheid=no
9635 fi
9636 rm -f core conftest.err conftest.$ac_objext \
9637 conftest$ac_exeext conftest.$ac_ext
9638 fi
9639
9640
9641 CFLAGS="$xorg_testset_save_CFLAGS"
9642
9643 eval supported=\$$cacheid
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9645 $as_echo "$supported" >&6; }
9646 if test "$supported" = "yes" ; then
9647 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9648 found="yes"
9649 fi
9650 fi
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666 xorg_testset_save_CFLAGS="$CFLAGS"
9667
9668 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9669 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9671 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9672 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9673 $as_echo_n "(cached) " >&6
9674 else
9675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9676 /* end confdefs.h. */
9677 int i;
9678 _ACEOF
9679 if ac_fn_c_try_compile "$LINENO"; then :
9680 xorg_cv_cc_flag_unknown_warning_option=yes
9681 else
9682 xorg_cv_cc_flag_unknown_warning_option=no
9683 fi
9684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9685 fi
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9687 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9688 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9689 CFLAGS="$xorg_testset_save_CFLAGS"
9690 fi
9691
9692 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9694 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9695 fi
9696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9698 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9699 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9700 $as_echo_n "(cached) " >&6
9701 else
9702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9703 /* end confdefs.h. */
9704 int i;
9705 _ACEOF
9706 if ac_fn_c_try_compile "$LINENO"; then :
9707 xorg_cv_cc_flag_unused_command_line_argument=yes
9708 else
9709 xorg_cv_cc_flag_unused_command_line_argument=no
9710 fi
9711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9712 fi
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9714 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9715 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9716 CFLAGS="$xorg_testset_save_CFLAGS"
9717 fi
9718
9719 found="no"
9720
9721 if test $found = "no" ; then
9722 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9724 fi
9725
9726 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9728 fi
9729
9730 CFLAGS="$CFLAGS -Waddress"
9731
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9733 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9734 cacheid=xorg_cv_cc_flag__Waddress
9735 if eval \${$cacheid+:} false; then :
9736 $as_echo_n "(cached) " >&6
9737 else
9738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9739 /* end confdefs.h. */
9740 int i;
9741 int
9742 main ()
9743 {
9744
9745 ;
9746 return 0;
9747 }
9748 _ACEOF
9749 if ac_fn_c_try_link "$LINENO"; then :
9750 eval $cacheid=yes
9751 else
9752 eval $cacheid=no
9753 fi
9754 rm -f core conftest.err conftest.$ac_objext \
9755 conftest$ac_exeext conftest.$ac_ext
9756 fi
9757
9758
9759 CFLAGS="$xorg_testset_save_CFLAGS"
9760
9761 eval supported=\$$cacheid
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9763 $as_echo "$supported" >&6; }
9764 if test "$supported" = "yes" ; then
9765 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9766 found="yes"
9767 fi
9768 fi
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784 xorg_testset_save_CFLAGS="$CFLAGS"
9785
9786 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9787 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9789 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9790 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9791 $as_echo_n "(cached) " >&6
9792 else
9793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9794 /* end confdefs.h. */
9795 int i;
9796 _ACEOF
9797 if ac_fn_c_try_compile "$LINENO"; then :
9798 xorg_cv_cc_flag_unknown_warning_option=yes
9799 else
9800 xorg_cv_cc_flag_unknown_warning_option=no
9801 fi
9802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9803 fi
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9805 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9806 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9807 CFLAGS="$xorg_testset_save_CFLAGS"
9808 fi
9809
9810 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9811 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9812 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9813 fi
9814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9816 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9817 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9818 $as_echo_n "(cached) " >&6
9819 else
9820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9821 /* end confdefs.h. */
9822 int i;
9823 _ACEOF
9824 if ac_fn_c_try_compile "$LINENO"; then :
9825 xorg_cv_cc_flag_unused_command_line_argument=yes
9826 else
9827 xorg_cv_cc_flag_unused_command_line_argument=no
9828 fi
9829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9830 fi
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9832 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9833 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9834 CFLAGS="$xorg_testset_save_CFLAGS"
9835 fi
9836
9837 found="no"
9838
9839 if test $found = "no" ; then
9840 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9841 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9842 fi
9843
9844 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9846 fi
9847
9848 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9849
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9851 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9852 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9853 if eval \${$cacheid+:} false; then :
9854 $as_echo_n "(cached) " >&6
9855 else
9856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9857 /* end confdefs.h. */
9858 int i;
9859 int
9860 main ()
9861 {
9862
9863 ;
9864 return 0;
9865 }
9866 _ACEOF
9867 if ac_fn_c_try_link "$LINENO"; then :
9868 eval $cacheid=yes
9869 else
9870 eval $cacheid=no
9871 fi
9872 rm -f core conftest.err conftest.$ac_objext \
9873 conftest$ac_exeext conftest.$ac_ext
9874 fi
9875
9876
9877 CFLAGS="$xorg_testset_save_CFLAGS"
9878
9879 eval supported=\$$cacheid
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9881 $as_echo "$supported" >&6; }
9882 if test "$supported" = "yes" ; then
9883 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9884 found="yes"
9885 fi
9886 fi
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902 xorg_testset_save_CFLAGS="$CFLAGS"
9903
9904 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9905 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9907 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9908 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9909 $as_echo_n "(cached) " >&6
9910 else
9911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9912 /* end confdefs.h. */
9913 int i;
9914 _ACEOF
9915 if ac_fn_c_try_compile "$LINENO"; then :
9916 xorg_cv_cc_flag_unknown_warning_option=yes
9917 else
9918 xorg_cv_cc_flag_unknown_warning_option=no
9919 fi
9920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9921 fi
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9923 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9924 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9925 CFLAGS="$xorg_testset_save_CFLAGS"
9926 fi
9927
9928 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9929 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9930 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9931 fi
9932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9934 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9935 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9936 $as_echo_n "(cached) " >&6
9937 else
9938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9939 /* end confdefs.h. */
9940 int i;
9941 _ACEOF
9942 if ac_fn_c_try_compile "$LINENO"; then :
9943 xorg_cv_cc_flag_unused_command_line_argument=yes
9944 else
9945 xorg_cv_cc_flag_unused_command_line_argument=no
9946 fi
9947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9948 fi
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9950 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9951 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9952 CFLAGS="$xorg_testset_save_CFLAGS"
9953 fi
9954
9955 found="no"
9956
9957 if test $found = "no" ; then
9958 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9960 fi
9961
9962 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9964 fi
9965
9966 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9967
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9969 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9970 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9971 if eval \${$cacheid+:} false; then :
9972 $as_echo_n "(cached) " >&6
9973 else
9974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9975 /* end confdefs.h. */
9976 int i;
9977 int
9978 main ()
9979 {
9980
9981 ;
9982 return 0;
9983 }
9984 _ACEOF
9985 if ac_fn_c_try_link "$LINENO"; then :
9986 eval $cacheid=yes
9987 else
9988 eval $cacheid=no
9989 fi
9990 rm -f core conftest.err conftest.$ac_objext \
9991 conftest$ac_exeext conftest.$ac_ext
9992 fi
9993
9994
9995 CFLAGS="$xorg_testset_save_CFLAGS"
9996
9997 eval supported=\$$cacheid
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9999 $as_echo "$supported" >&6; }
10000 if test "$supported" = "yes" ; then
10001 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10002 found="yes"
10003 fi
10004 fi
10005
10006
10007 fi
10008
10009
10010
10011
10012
10013
10014
10015 CWARNFLAGS="$BASE_CFLAGS"
10016 if test "x$GCC" = xyes ; then
10017 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10018 fi
10019
10020
10021
10022
10023
10024
10025
10026
10027 # Check whether --enable-strict-compilation was given.
10028 if test "${enable_strict_compilation+set}" = set; then :
10029 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10030 else
10031 STRICT_COMPILE=no
10032 fi
10033
10034
10035
10036
10037
10038
10039 STRICT_CFLAGS=""
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053 xorg_testset_save_CFLAGS="$CFLAGS"
10054
10055 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10058 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10059 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10060 $as_echo_n "(cached) " >&6
10061 else
10062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10063 /* end confdefs.h. */
10064 int i;
10065 _ACEOF
10066 if ac_fn_c_try_compile "$LINENO"; then :
10067 xorg_cv_cc_flag_unknown_warning_option=yes
10068 else
10069 xorg_cv_cc_flag_unknown_warning_option=no
10070 fi
10071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10072 fi
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10074 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10075 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10076 CFLAGS="$xorg_testset_save_CFLAGS"
10077 fi
10078
10079 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10082 fi
10083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10085 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10086 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10087 $as_echo_n "(cached) " >&6
10088 else
10089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10090 /* end confdefs.h. */
10091 int i;
10092 _ACEOF
10093 if ac_fn_c_try_compile "$LINENO"; then :
10094 xorg_cv_cc_flag_unused_command_line_argument=yes
10095 else
10096 xorg_cv_cc_flag_unused_command_line_argument=no
10097 fi
10098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10099 fi
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10101 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10102 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10103 CFLAGS="$xorg_testset_save_CFLAGS"
10104 fi
10105
10106 found="no"
10107
10108 if test $found = "no" ; then
10109 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10110 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10111 fi
10112
10113 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10115 fi
10116
10117 CFLAGS="$CFLAGS -pedantic"
10118
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10120 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10121 cacheid=xorg_cv_cc_flag__pedantic
10122 if eval \${$cacheid+:} false; then :
10123 $as_echo_n "(cached) " >&6
10124 else
10125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10126 /* end confdefs.h. */
10127 int i;
10128 int
10129 main ()
10130 {
10131
10132 ;
10133 return 0;
10134 }
10135 _ACEOF
10136 if ac_fn_c_try_link "$LINENO"; then :
10137 eval $cacheid=yes
10138 else
10139 eval $cacheid=no
10140 fi
10141 rm -f core conftest.err conftest.$ac_objext \
10142 conftest$ac_exeext conftest.$ac_ext
10143 fi
10144
10145
10146 CFLAGS="$xorg_testset_save_CFLAGS"
10147
10148 eval supported=\$$cacheid
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10150 $as_echo "$supported" >&6; }
10151 if test "$supported" = "yes" ; then
10152 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10153 found="yes"
10154 fi
10155 fi
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171 xorg_testset_save_CFLAGS="$CFLAGS"
10172
10173 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10174 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10176 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10177 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10178 $as_echo_n "(cached) " >&6
10179 else
10180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10181 /* end confdefs.h. */
10182 int i;
10183 _ACEOF
10184 if ac_fn_c_try_compile "$LINENO"; then :
10185 xorg_cv_cc_flag_unknown_warning_option=yes
10186 else
10187 xorg_cv_cc_flag_unknown_warning_option=no
10188 fi
10189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10190 fi
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10192 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10193 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10194 CFLAGS="$xorg_testset_save_CFLAGS"
10195 fi
10196
10197 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10198 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10199 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10200 fi
10201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10203 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10204 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10205 $as_echo_n "(cached) " >&6
10206 else
10207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10208 /* end confdefs.h. */
10209 int i;
10210 _ACEOF
10211 if ac_fn_c_try_compile "$LINENO"; then :
10212 xorg_cv_cc_flag_unused_command_line_argument=yes
10213 else
10214 xorg_cv_cc_flag_unused_command_line_argument=no
10215 fi
10216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10217 fi
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10219 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10220 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10221 CFLAGS="$xorg_testset_save_CFLAGS"
10222 fi
10223
10224 found="no"
10225
10226 if test $found = "no" ; then
10227 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10228 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10229 fi
10230
10231 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10233 fi
10234
10235 CFLAGS="$CFLAGS -Werror"
10236
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10238 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10239 cacheid=xorg_cv_cc_flag__Werror
10240 if eval \${$cacheid+:} false; then :
10241 $as_echo_n "(cached) " >&6
10242 else
10243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10244 /* end confdefs.h. */
10245 int i;
10246 int
10247 main ()
10248 {
10249
10250 ;
10251 return 0;
10252 }
10253 _ACEOF
10254 if ac_fn_c_try_link "$LINENO"; then :
10255 eval $cacheid=yes
10256 else
10257 eval $cacheid=no
10258 fi
10259 rm -f core conftest.err conftest.$ac_objext \
10260 conftest$ac_exeext conftest.$ac_ext
10261 fi
10262
10263
10264 CFLAGS="$xorg_testset_save_CFLAGS"
10265
10266 eval supported=\$$cacheid
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10268 $as_echo "$supported" >&6; }
10269 if test "$supported" = "yes" ; then
10270 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10271 found="yes"
10272 fi
10273 fi
10274
10275 if test $found = "no" ; then
10276 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10277 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10278 fi
10279
10280 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10282 fi
10283
10284 CFLAGS="$CFLAGS -errwarn"
10285
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10287 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10288 cacheid=xorg_cv_cc_flag__errwarn
10289 if eval \${$cacheid+:} false; then :
10290 $as_echo_n "(cached) " >&6
10291 else
10292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10293 /* end confdefs.h. */
10294 int i;
10295 int
10296 main ()
10297 {
10298
10299 ;
10300 return 0;
10301 }
10302 _ACEOF
10303 if ac_fn_c_try_link "$LINENO"; then :
10304 eval $cacheid=yes
10305 else
10306 eval $cacheid=no
10307 fi
10308 rm -f core conftest.err conftest.$ac_objext \
10309 conftest$ac_exeext conftest.$ac_ext
10310 fi
10311
10312
10313 CFLAGS="$xorg_testset_save_CFLAGS"
10314
10315 eval supported=\$$cacheid
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10317 $as_echo "$supported" >&6; }
10318 if test "$supported" = "yes" ; then
10319 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10320 found="yes"
10321 fi
10322 fi
10323
10324
10325
10326 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10327 # activate it with -Werror, so we add it here explicitly.
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341 xorg_testset_save_CFLAGS="$CFLAGS"
10342
10343 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10344 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10346 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10347 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10348 $as_echo_n "(cached) " >&6
10349 else
10350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10351 /* end confdefs.h. */
10352 int i;
10353 _ACEOF
10354 if ac_fn_c_try_compile "$LINENO"; then :
10355 xorg_cv_cc_flag_unknown_warning_option=yes
10356 else
10357 xorg_cv_cc_flag_unknown_warning_option=no
10358 fi
10359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10360 fi
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10362 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10363 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10364 CFLAGS="$xorg_testset_save_CFLAGS"
10365 fi
10366
10367 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10368 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10369 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10370 fi
10371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10373 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10374 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10375 $as_echo_n "(cached) " >&6
10376 else
10377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10378 /* end confdefs.h. */
10379 int i;
10380 _ACEOF
10381 if ac_fn_c_try_compile "$LINENO"; then :
10382 xorg_cv_cc_flag_unused_command_line_argument=yes
10383 else
10384 xorg_cv_cc_flag_unused_command_line_argument=no
10385 fi
10386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10387 fi
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10389 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10390 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10391 CFLAGS="$xorg_testset_save_CFLAGS"
10392 fi
10393
10394 found="no"
10395
10396 if test $found = "no" ; then
10397 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10398 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10399 fi
10400
10401 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10403 fi
10404
10405 CFLAGS="$CFLAGS -Werror=attributes"
10406
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10408 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10409 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10410 if eval \${$cacheid+:} false; then :
10411 $as_echo_n "(cached) " >&6
10412 else
10413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10414 /* end confdefs.h. */
10415 int i;
10416 int
10417 main ()
10418 {
10419
10420 ;
10421 return 0;
10422 }
10423 _ACEOF
10424 if ac_fn_c_try_link "$LINENO"; then :
10425 eval $cacheid=yes
10426 else
10427 eval $cacheid=no
10428 fi
10429 rm -f core conftest.err conftest.$ac_objext \
10430 conftest$ac_exeext conftest.$ac_ext
10431 fi
10432
10433
10434 CFLAGS="$xorg_testset_save_CFLAGS"
10435
10436 eval supported=\$$cacheid
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10438 $as_echo "$supported" >&6; }
10439 if test "$supported" = "yes" ; then
10440 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10441 found="yes"
10442 fi
10443 fi
10444
10445
10446
10447 if test "x$STRICT_COMPILE" = "xyes"; then
10448 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10449 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10450 fi
10451
10452
10453
10454
10455
10456
10457 cat >>confdefs.h <<_ACEOF
10458 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10459 _ACEOF
10460
10461 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10462 if test "x$PVM" = "x"; then
10463 PVM="0"
10464 fi
10465
10466 cat >>confdefs.h <<_ACEOF
10467 #define PACKAGE_VERSION_MINOR $PVM
10468 _ACEOF
10469
10470 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10471 if test "x$PVP" = "x"; then
10472 PVP="0"
10473 fi
10474
10475 cat >>confdefs.h <<_ACEOF
10476 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10477 _ACEOF
10478
10479
10480
10481 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10482 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10483 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10484 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10485
10486
10487
10488
10489 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10490 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10491 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10492 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10493 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10494
10495
10496
10497
10498
10499
10500 if test x$APP_MAN_SUFFIX = x ; then
10501 APP_MAN_SUFFIX=1
10502 fi
10503 if test x$APP_MAN_DIR = x ; then
10504 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10505 fi
10506
10507 if test x$LIB_MAN_SUFFIX = x ; then
10508 LIB_MAN_SUFFIX=3
10509 fi
10510 if test x$LIB_MAN_DIR = x ; then
10511 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10512 fi
10513
10514 if test x$FILE_MAN_SUFFIX = x ; then
10515 case $host_os in
10516 solaris*) FILE_MAN_SUFFIX=4 ;;
10517 *) FILE_MAN_SUFFIX=5 ;;
10518 esac
10519 fi
10520 if test x$FILE_MAN_DIR = x ; then
10521 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10522 fi
10523
10524 if test x$MISC_MAN_SUFFIX = x ; then
10525 case $host_os in
10526 solaris*) MISC_MAN_SUFFIX=5 ;;
10527 *) MISC_MAN_SUFFIX=7 ;;
10528 esac
10529 fi
10530 if test x$MISC_MAN_DIR = x ; then
10531 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10532 fi
10533
10534 if test x$DRIVER_MAN_SUFFIX = x ; then
10535 case $host_os in
10536 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10537 *) DRIVER_MAN_SUFFIX=4 ;;
10538 esac
10539 fi
10540 if test x$DRIVER_MAN_DIR = x ; then
10541 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10542 fi
10543
10544 if test x$ADMIN_MAN_SUFFIX = x ; then
10545 case $host_os in
10546 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10547 *) ADMIN_MAN_SUFFIX=8 ;;
10548 esac
10549 fi
10550 if test x$ADMIN_MAN_DIR = x ; then
10551 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10552 fi
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568 XORG_MAN_PAGE="X Version 11"
10569
10570 MAN_SUBSTS="\
10571 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10572 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10573 -e 's|__xservername__|Xorg|g' \
10574 -e 's|__xconfigfile__|xorg.conf|g' \
10575 -e 's|__projectroot__|\$(prefix)|g' \
10576 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10577 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10578 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10579 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10580 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10581 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10582 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10583
10584
10585
10586 # Check whether --enable-silent-rules was given.
10587 if test "${enable_silent_rules+set}" = set; then :
10588 enableval=$enable_silent_rules;
10589 fi
10590
10591 case $enable_silent_rules in
10592 yes) AM_DEFAULT_VERBOSITY=0;;
10593 no) AM_DEFAULT_VERBOSITY=1;;
10594 *) AM_DEFAULT_VERBOSITY=0;;
10595 esac
10596 am_make=${MAKE-make}
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10598 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10599 if ${am_cv_make_support_nested_variables+:} false; then :
10600 $as_echo_n "(cached) " >&6
10601 else
10602 if $as_echo 'TRUE=$(BAR$(V))
10603 BAR0=false
10604 BAR1=true
10605 V=1
10606 am__doit:
10607 @$(TRUE)
10608 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10609 am_cv_make_support_nested_variables=yes
10610 else
10611 am_cv_make_support_nested_variables=no
10612 fi
10613 fi
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10615 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10616 if test $am_cv_make_support_nested_variables = yes; then
10617 AM_V='$(V)'
10618 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10619 else
10620 AM_V=$AM_DEFAULT_VERBOSITY
10621 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10622 fi
10623 AM_BACKSLASH='\'
10624
10625
10626
10627 # Initialize libtool
10628 # Check whether --enable-static was given.
10629 if test "${enable_static+set}" = set; then :
10630 enableval=$enable_static; p=${PACKAGE-default}
10631 case $enableval in
10632 yes) enable_static=yes ;;
10633 no) enable_static=no ;;
10634 *)
10635 enable_static=no
10636 # Look at the argument we got. We use all the common list separators.
10637 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10638 for pkg in $enableval; do
10639 IFS="$lt_save_ifs"
10640 if test "X$pkg" = "X$p"; then
10641 enable_static=yes
10642 fi
10643 done
10644 IFS="$lt_save_ifs"
10645 ;;
10646 esac
10647 else
10648 enable_static=no
10649 fi
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659 case `pwd` in
10660 *\ * | *\ *)
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10662 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10663 esac
10664
10665
10666
10667 macro_version='2.4.2'
10668 macro_revision='1.3337'
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682 ltmain="$ac_aux_dir/ltmain.sh"
10683
10684 # Backslashify metacharacters that are still active within
10685 # double-quoted strings.
10686 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10687
10688 # Same as above, but do not quote variable references.
10689 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10690
10691 # Sed substitution to delay expansion of an escaped shell variable in a
10692 # double_quote_subst'ed string.
10693 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10694
10695 # Sed substitution to delay expansion of an escaped single quote.
10696 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10697
10698 # Sed substitution to avoid accidental globbing in evaled expressions
10699 no_glob_subst='s/\*/\\\*/g'
10700
10701 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10702 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10703 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10704
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10706 $as_echo_n "checking how to print strings... " >&6; }
10707 # Test print first, because it will be a builtin if present.
10708 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10709 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10710 ECHO='print -r --'
10711 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10712 ECHO='printf %s\n'
10713 else
10714 # Use this function as a fallback that always works.
10715 func_fallback_echo ()
10716 {
10717 eval 'cat <<_LTECHO_EOF
10718 $1
10719 _LTECHO_EOF'
10720 }
10721 ECHO='func_fallback_echo'
10722 fi
10723
10724 # func_echo_all arg...
10725 # Invoke $ECHO with all args, space-separated.
10726 func_echo_all ()
10727 {
10728 $ECHO ""
10729 }
10730
10731 case "$ECHO" in
10732 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10733 $as_echo "printf" >&6; } ;;
10734 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10735 $as_echo "print -r" >&6; } ;;
10736 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10737 $as_echo "cat" >&6; } ;;
10738 esac
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10754 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
10755 if ${ac_cv_path_SED+:} false; then :
10756 $as_echo_n "(cached) " >&6
10757 else
10758 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10759 for ac_i in 1 2 3 4 5 6 7; do
10760 ac_script="$ac_script$as_nl$ac_script"
10761 done
10762 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10763 { ac_script=; unset ac_script;}
10764 if test -z "$SED"; then
10765 ac_path_SED_found=false
10766 # Loop through the user's path and test for each of PROGNAME-LIST
10767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10768 for as_dir in $PATH
10769 do
10770 IFS=$as_save_IFS
10771 test -z "$as_dir" && as_dir=.
10772 for ac_prog in sed gsed; do
10773 for ac_exec_ext in '' $ac_executable_extensions; do
10774 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10775 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
10776 # Check for GNU ac_path_SED and select it if it is found.
10777 # Check for GNU $ac_path_SED
10778 case `"$ac_path_SED" --version 2>&1` in
10779 *GNU*)
10780 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10781 *)
10782 ac_count=0
10783 $as_echo_n 0123456789 >"conftest.in"
10784 while :
10785 do
10786 cat "conftest.in" "conftest.in" >"conftest.tmp"
10787 mv "conftest.tmp" "conftest.in"
10788 cp "conftest.in" "conftest.nl"
10789 $as_echo '' >> "conftest.nl"
10790 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10791 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10792 as_fn_arith $ac_count + 1 && ac_count=$as_val
10793 if test $ac_count -gt ${ac_path_SED_max-0}; then
10794 # Best one so far, save it but keep looking for a better one
10795 ac_cv_path_SED="$ac_path_SED"
10796 ac_path_SED_max=$ac_count
10797 fi
10798 # 10*(2^10) chars as input seems more than enough
10799 test $ac_count -gt 10 && break
10800 done
10801 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10802 esac
10803
10804 $ac_path_SED_found && break 3
10805 done
10806 done
10807 done
10808 IFS=$as_save_IFS
10809 if test -z "$ac_cv_path_SED"; then
10810 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10811 fi
10812 else
10813 ac_cv_path_SED=$SED
10814 fi
10815
10816 fi
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10818 $as_echo "$ac_cv_path_SED" >&6; }
10819 SED="$ac_cv_path_SED"
10820 rm -f conftest.sed
10821
10822 test -z "$SED" && SED=sed
10823 Xsed="$SED -e 1s/^X//"
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10836 $as_echo_n "checking for fgrep... " >&6; }
10837 if ${ac_cv_path_FGREP+:} false; then :
10838 $as_echo_n "(cached) " >&6
10839 else
10840 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10841 then ac_cv_path_FGREP="$GREP -F"
10842 else
10843 if test -z "$FGREP"; then
10844 ac_path_FGREP_found=false
10845 # Loop through the user's path and test for each of PROGNAME-LIST
10846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10847 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10848 do
10849 IFS=$as_save_IFS
10850 test -z "$as_dir" && as_dir=.
10851 for ac_prog in fgrep; do
10852 for ac_exec_ext in '' $ac_executable_extensions; do
10853 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10854 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
10855 # Check for GNU ac_path_FGREP and select it if it is found.
10856 # Check for GNU $ac_path_FGREP
10857 case `"$ac_path_FGREP" --version 2>&1` in
10858 *GNU*)
10859 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10860 *)
10861 ac_count=0
10862 $as_echo_n 0123456789 >"conftest.in"
10863 while :
10864 do
10865 cat "conftest.in" "conftest.in" >"conftest.tmp"
10866 mv "conftest.tmp" "conftest.in"
10867 cp "conftest.in" "conftest.nl"
10868 $as_echo 'FGREP' >> "conftest.nl"
10869 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10870 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10871 as_fn_arith $ac_count + 1 && ac_count=$as_val
10872 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10873 # Best one so far, save it but keep looking for a better one
10874 ac_cv_path_FGREP="$ac_path_FGREP"
10875 ac_path_FGREP_max=$ac_count
10876 fi
10877 # 10*(2^10) chars as input seems more than enough
10878 test $ac_count -gt 10 && break
10879 done
10880 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10881 esac
10882
10883 $ac_path_FGREP_found && break 3
10884 done
10885 done
10886 done
10887 IFS=$as_save_IFS
10888 if test -z "$ac_cv_path_FGREP"; then
10889 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10890 fi
10891 else
10892 ac_cv_path_FGREP=$FGREP
10893 fi
10894
10895 fi
10896 fi
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
10898 $as_echo "$ac_cv_path_FGREP" >&6; }
10899 FGREP="$ac_cv_path_FGREP"
10900
10901
10902 test -z "$GREP" && GREP=grep
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922 # Check whether --with-gnu-ld was given.
10923 if test "${with_gnu_ld+set}" = set; then :
10924 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10925 else
10926 with_gnu_ld=no
10927 fi
10928
10929 ac_prog=ld
10930 if test "$GCC" = yes; then
10931 # Check if gcc -print-prog-name=ld gives a path.
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10933 $as_echo_n "checking for ld used by $CC... " >&6; }
10934 case $host in
10935 *-*-mingw*)
10936 # gcc leaves a trailing carriage return which upsets mingw
10937 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10938 *)
10939 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10940 esac
10941 case $ac_prog in
10942 # Accept absolute paths.
10943 [\\/]* | ?:[\\/]*)
10944 re_direlt='/[^/][^/]*/\.\./'
10945 # Canonicalize the pathname of ld
10946 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10947 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10948 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10949 done
10950 test -z "$LD" && LD="$ac_prog"
10951 ;;
10952 "")
10953 # If it fails, then pretend we aren't using GCC.
10954 ac_prog=ld
10955 ;;
10956 *)
10957 # If it is relative, then search for the first ld in PATH.
10958 with_gnu_ld=unknown
10959 ;;
10960 esac
10961 elif test "$with_gnu_ld" = yes; then
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10963 $as_echo_n "checking for GNU ld... " >&6; }
10964 else
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10966 $as_echo_n "checking for non-GNU ld... " >&6; }
10967 fi
10968 if ${lt_cv_path_LD+:} false; then :
10969 $as_echo_n "(cached) " >&6
10970 else
10971 if test -z "$LD"; then
10972 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10973 for ac_dir in $PATH; do
10974 IFS="$lt_save_ifs"
10975 test -z "$ac_dir" && ac_dir=.
10976 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10977 lt_cv_path_LD="$ac_dir/$ac_prog"
10978 # Check to see if the program is GNU ld. I'd rather use --version,
10979 # but apparently some variants of GNU ld only accept -v.
10980 # Break only if it was the GNU/non-GNU ld that we prefer.
10981 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10982 *GNU* | *'with BFD'*)
10983 test "$with_gnu_ld" != no && break
10984 ;;
10985 *)
10986 test "$with_gnu_ld" != yes && break
10987 ;;
10988 esac
10989 fi
10990 done
10991 IFS="$lt_save_ifs"
10992 else
10993 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10994 fi
10995 fi
10996
10997 LD="$lt_cv_path_LD"
10998 if test -n "$LD"; then
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11000 $as_echo "$LD" >&6; }
11001 else
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11003 $as_echo "no" >&6; }
11004 fi
11005 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11007 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11008 if ${lt_cv_prog_gnu_ld+:} false; then :
11009 $as_echo_n "(cached) " >&6
11010 else
11011 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11012 case `$LD -v 2>&1 </dev/null` in
11013 *GNU* | *'with BFD'*)
11014 lt_cv_prog_gnu_ld=yes
11015 ;;
11016 *)
11017 lt_cv_prog_gnu_ld=no
11018 ;;
11019 esac
11020 fi
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11022 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11023 with_gnu_ld=$lt_cv_prog_gnu_ld
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11034 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11035 if ${lt_cv_path_NM+:} false; then :
11036 $as_echo_n "(cached) " >&6
11037 else
11038 if test -n "$NM"; then
11039 # Let the user override the test.
11040 lt_cv_path_NM="$NM"
11041 else
11042 lt_nm_to_check="${ac_tool_prefix}nm"
11043 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11044 lt_nm_to_check="$lt_nm_to_check nm"
11045 fi
11046 for lt_tmp_nm in $lt_nm_to_check; do
11047 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11048 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11049 IFS="$lt_save_ifs"
11050 test -z "$ac_dir" && ac_dir=.
11051 tmp_nm="$ac_dir/$lt_tmp_nm"
11052 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11053 # Check to see if the nm accepts a BSD-compat flag.
11054 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11055 # nm: unknown option "B" ignored
11056 # Tru64's nm complains that /dev/null is an invalid object file
11057 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11058 */dev/null* | *'Invalid file or object type'*)
11059 lt_cv_path_NM="$tmp_nm -B"
11060 break
11061 ;;
11062 *)
11063 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11064 */dev/null*)
11065 lt_cv_path_NM="$tmp_nm -p"
11066 break
11067 ;;
11068 *)
11069 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11070 continue # so that we can try to find one that supports BSD flags
11071 ;;
11072 esac
11073 ;;
11074 esac
11075 fi
11076 done
11077 IFS="$lt_save_ifs"
11078 done
11079 : ${lt_cv_path_NM=no}
11080 fi
11081 fi
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11083 $as_echo "$lt_cv_path_NM" >&6; }
11084 if test "$lt_cv_path_NM" != "no"; then
11085 NM="$lt_cv_path_NM"
11086 else
11087 # Didn't find any BSD compatible name lister, look for dumpbin.
11088 if test -n "$DUMPBIN"; then :
11089 # Let the user override the test.
11090 else
11091 if test -n "$ac_tool_prefix"; then
11092 for ac_prog in dumpbin "link -dump"
11093 do
11094 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11095 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11097 $as_echo_n "checking for $ac_word... " >&6; }
11098 if ${ac_cv_prog_DUMPBIN+:} false; then :
11099 $as_echo_n "(cached) " >&6
11100 else
11101 if test -n "$DUMPBIN"; then
11102 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11103 else
11104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11105 for as_dir in $PATH
11106 do
11107 IFS=$as_save_IFS
11108 test -z "$as_dir" && as_dir=.
11109 for ac_exec_ext in '' $ac_executable_extensions; do
11110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11111 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11113 break 2
11114 fi
11115 done
11116 done
11117 IFS=$as_save_IFS
11118
11119 fi
11120 fi
11121 DUMPBIN=$ac_cv_prog_DUMPBIN
11122 if test -n "$DUMPBIN"; then
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11124 $as_echo "$DUMPBIN" >&6; }
11125 else
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11127 $as_echo "no" >&6; }
11128 fi
11129
11130
11131 test -n "$DUMPBIN" && break
11132 done
11133 fi
11134 if test -z "$DUMPBIN"; then
11135 ac_ct_DUMPBIN=$DUMPBIN
11136 for ac_prog in dumpbin "link -dump"
11137 do
11138 # Extract the first word of "$ac_prog", so it can be a program name with args.
11139 set dummy $ac_prog; ac_word=$2
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11141 $as_echo_n "checking for $ac_word... " >&6; }
11142 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11143 $as_echo_n "(cached) " >&6
11144 else
11145 if test -n "$ac_ct_DUMPBIN"; then
11146 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11147 else
11148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11149 for as_dir in $PATH
11150 do
11151 IFS=$as_save_IFS
11152 test -z "$as_dir" && as_dir=.
11153 for ac_exec_ext in '' $ac_executable_extensions; do
11154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11155 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11157 break 2
11158 fi
11159 done
11160 done
11161 IFS=$as_save_IFS
11162
11163 fi
11164 fi
11165 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11166 if test -n "$ac_ct_DUMPBIN"; then
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11168 $as_echo "$ac_ct_DUMPBIN" >&6; }
11169 else
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11171 $as_echo "no" >&6; }
11172 fi
11173
11174
11175 test -n "$ac_ct_DUMPBIN" && break
11176 done
11177
11178 if test "x$ac_ct_DUMPBIN" = x; then
11179 DUMPBIN=":"
11180 else
11181 case $cross_compiling:$ac_tool_warned in
11182 yes:)
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11185 ac_tool_warned=yes ;;
11186 esac
11187 DUMPBIN=$ac_ct_DUMPBIN
11188 fi
11189 fi
11190
11191 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11192 *COFF*)
11193 DUMPBIN="$DUMPBIN -symbols"
11194 ;;
11195 *)
11196 DUMPBIN=:
11197 ;;
11198 esac
11199 fi
11200
11201 if test "$DUMPBIN" != ":"; then
11202 NM="$DUMPBIN"
11203 fi
11204 fi
11205 test -z "$NM" && NM=nm
11206
11207
11208
11209
11210
11211
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11213 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11214 if ${lt_cv_nm_interface+:} false; then :
11215 $as_echo_n "(cached) " >&6
11216 else
11217 lt_cv_nm_interface="BSD nm"
11218 echo "int some_variable = 0;" > conftest.$ac_ext
11219 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11220 (eval "$ac_compile" 2>conftest.err)
11221 cat conftest.err >&5
11222 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11223 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11224 cat conftest.err >&5
11225 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11226 cat conftest.out >&5
11227 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11228 lt_cv_nm_interface="MS dumpbin"
11229 fi
11230 rm -f conftest*
11231 fi
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11233 $as_echo "$lt_cv_nm_interface" >&6; }
11234
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11236 $as_echo_n "checking whether ln -s works... " >&6; }
11237 LN_S=$as_ln_s
11238 if test "$LN_S" = "ln -s"; then
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11240 $as_echo "yes" >&6; }
11241 else
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11243 $as_echo "no, using $LN_S" >&6; }
11244 fi
11245
11246 # find the maximum length of command line arguments
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11248 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11249 if ${lt_cv_sys_max_cmd_len+:} false; then :
11250 $as_echo_n "(cached) " >&6
11251 else
11252 i=0
11253 teststring="ABCD"
11254
11255 case $build_os in
11256 msdosdjgpp*)
11257 # On DJGPP, this test can blow up pretty badly due to problems in libc
11258 # (any single argument exceeding 2000 bytes causes a buffer overrun
11259 # during glob expansion). Even if it were fixed, the result of this
11260 # check would be larger than it should be.
11261 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11262 ;;
11263
11264 gnu*)
11265 # Under GNU Hurd, this test is not required because there is
11266 # no limit to the length of command line arguments.
11267 # Libtool will interpret -1 as no limit whatsoever
11268 lt_cv_sys_max_cmd_len=-1;
11269 ;;
11270
11271 cygwin* | mingw* | cegcc*)
11272 # On Win9x/ME, this test blows up -- it succeeds, but takes
11273 # about 5 minutes as the teststring grows exponentially.
11274 # Worse, since 9x/ME are not pre-emptively multitasking,
11275 # you end up with a "frozen" computer, even though with patience
11276 # the test eventually succeeds (with a max line length of 256k).
11277 # Instead, let's just punt: use the minimum linelength reported by
11278 # all of the supported platforms: 8192 (on NT/2K/XP).
11279 lt_cv_sys_max_cmd_len=8192;
11280 ;;
11281
11282 mint*)
11283 # On MiNT this can take a long time and run out of memory.
11284 lt_cv_sys_max_cmd_len=8192;
11285 ;;
11286
11287 amigaos*)
11288 # On AmigaOS with pdksh, this test takes hours, literally.
11289 # So we just punt and use a minimum line length of 8192.
11290 lt_cv_sys_max_cmd_len=8192;
11291 ;;
11292
11293 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11294 # This has been around since 386BSD, at least. Likely further.
11295 if test -x /sbin/sysctl; then
11296 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11297 elif test -x /usr/sbin/sysctl; then
11298 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11299 else
11300 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11301 fi
11302 # And add a safety zone
11303 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11304 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11305 ;;
11306
11307 interix*)
11308 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11309 lt_cv_sys_max_cmd_len=196608
11310 ;;
11311
11312 os2*)
11313 # The test takes a long time on OS/2.
11314 lt_cv_sys_max_cmd_len=8192
11315 ;;
11316
11317 osf*)
11318 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11319 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11320 # nice to cause kernel panics so lets avoid the loop below.
11321 # First set a reasonable default.
11322 lt_cv_sys_max_cmd_len=16384
11323 #
11324 if test -x /sbin/sysconfig; then
11325 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11326 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11327 esac
11328 fi
11329 ;;
11330 sco3.2v5*)
11331 lt_cv_sys_max_cmd_len=102400
11332 ;;
11333 sysv5* | sco5v6* | sysv4.2uw2*)
11334 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11335 if test -n "$kargmax"; then
11336 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11337 else
11338 lt_cv_sys_max_cmd_len=32768
11339 fi
11340 ;;
11341 *)
11342 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11343 if test -n "$lt_cv_sys_max_cmd_len"; then
11344 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11345 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11346 else
11347 # Make teststring a little bigger before we do anything with it.
11348 # a 1K string should be a reasonable start.
11349 for i in 1 2 3 4 5 6 7 8 ; do
11350 teststring=$teststring$teststring
11351 done
11352 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11353 # If test is not a shell built-in, we'll probably end up computing a
11354 # maximum length that is only half of the actual maximum length, but
11355 # we can't tell.
11356 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
11357 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11358 test $i != 17 # 1/2 MB should be enough
11359 do
11360 i=`expr $i + 1`
11361 teststring=$teststring$teststring
11362 done
11363 # Only check the string length outside the loop.
11364 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11365 teststring=
11366 # Add a significant safety factor because C++ compilers can tack on
11367 # massive amounts of additional arguments before passing them to the
11368 # linker. It appears as though 1/2 is a usable value.
11369 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11370 fi
11371 ;;
11372 esac
11373
11374 fi
11375
11376 if test -n $lt_cv_sys_max_cmd_len ; then
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11378 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11379 else
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11381 $as_echo "none" >&6; }
11382 fi
11383 max_cmd_len=$lt_cv_sys_max_cmd_len
11384
11385
11386
11387
11388
11389
11390 : ${CP="cp -f"}
11391 : ${MV="mv -f"}
11392 : ${RM="rm -f"}
11393
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11395 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11396 # Try some XSI features
11397 xsi_shell=no
11398 ( _lt_dummy="a/b/c"
11399 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11400 = c,a/b,b/c, \
11401 && eval 'test $(( 1 + 1 )) -eq 2 \
11402 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11403 && xsi_shell=yes
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11405 $as_echo "$xsi_shell" >&6; }
11406
11407
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11409 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11410 lt_shell_append=no
11411 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11412 >/dev/null 2>&1 \
11413 && lt_shell_append=yes
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11415 $as_echo "$lt_shell_append" >&6; }
11416
11417
11418 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11419 lt_unset=unset
11420 else
11421 lt_unset=false
11422 fi
11423
11424
11425
11426
11427
11428 # test EBCDIC or ASCII
11429 case `echo X|tr X '\101'` in
11430 A) # ASCII based system
11431 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11432 lt_SP2NL='tr \040 \012'
11433 lt_NL2SP='tr \015\012 \040\040'
11434 ;;
11435 *) # EBCDIC based system
11436 lt_SP2NL='tr \100 \n'
11437 lt_NL2SP='tr \r\n \100\100'
11438 ;;
11439 esac
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11450 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11451 if ${lt_cv_to_host_file_cmd+:} false; then :
11452 $as_echo_n "(cached) " >&6
11453 else
11454 case $host in
11455 *-*-mingw* )
11456 case $build in
11457 *-*-mingw* ) # actually msys
11458 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11459 ;;
11460 *-*-cygwin* )
11461 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11462 ;;
11463 * ) # otherwise, assume *nix
11464 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11465 ;;
11466 esac
11467 ;;
11468 *-*-cygwin* )
11469 case $build in
11470 *-*-mingw* ) # actually msys
11471 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11472 ;;
11473 *-*-cygwin* )
11474 lt_cv_to_host_file_cmd=func_convert_file_noop
11475 ;;
11476 * ) # otherwise, assume *nix
11477 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11478 ;;
11479 esac
11480 ;;
11481 * ) # unhandled hosts (and "normal" native builds)
11482 lt_cv_to_host_file_cmd=func_convert_file_noop
11483 ;;
11484 esac
11485
11486 fi
11487
11488 to_host_file_cmd=$lt_cv_to_host_file_cmd
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11490 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
11491
11492
11493
11494
11495
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11497 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11498 if ${lt_cv_to_tool_file_cmd+:} false; then :
11499 $as_echo_n "(cached) " >&6
11500 else
11501 #assume ordinary cross tools, or native build.
11502 lt_cv_to_tool_file_cmd=func_convert_file_noop
11503 case $host in
11504 *-*-mingw* )
11505 case $build in
11506 *-*-mingw* ) # actually msys
11507 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11508 ;;
11509 esac
11510 ;;
11511 esac
11512
11513 fi
11514
11515 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11517 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11518
11519
11520
11521
11522
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11524 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11525 if ${lt_cv_ld_reload_flag+:} false; then :
11526 $as_echo_n "(cached) " >&6
11527 else
11528 lt_cv_ld_reload_flag='-r'
11529 fi
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11531 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11532 reload_flag=$lt_cv_ld_reload_flag
11533 case $reload_flag in
11534 "" | " "*) ;;
11535 *) reload_flag=" $reload_flag" ;;
11536 esac
11537 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11538 case $host_os in
11539 cygwin* | mingw* | pw32* | cegcc*)
11540 if test "$GCC" != yes; then
11541 reload_cmds=false
11542 fi
11543 ;;
11544 darwin*)
11545 if test "$GCC" = yes; then
11546 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11547 else
11548 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11549 fi
11550 ;;
11551 esac
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561 if test -n "$ac_tool_prefix"; then
11562 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11563 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11565 $as_echo_n "checking for $ac_word... " >&6; }
11566 if ${ac_cv_prog_OBJDUMP+:} false; then :
11567 $as_echo_n "(cached) " >&6
11568 else
11569 if test -n "$OBJDUMP"; then
11570 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11571 else
11572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11573 for as_dir in $PATH
11574 do
11575 IFS=$as_save_IFS
11576 test -z "$as_dir" && as_dir=.
11577 for ac_exec_ext in '' $ac_executable_extensions; do
11578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11579 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11581 break 2
11582 fi
11583 done
11584 done
11585 IFS=$as_save_IFS
11586
11587 fi
11588 fi
11589 OBJDUMP=$ac_cv_prog_OBJDUMP
11590 if test -n "$OBJDUMP"; then
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11592 $as_echo "$OBJDUMP" >&6; }
11593 else
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11595 $as_echo "no" >&6; }
11596 fi
11597
11598
11599 fi
11600 if test -z "$ac_cv_prog_OBJDUMP"; then
11601 ac_ct_OBJDUMP=$OBJDUMP
11602 # Extract the first word of "objdump", so it can be a program name with args.
11603 set dummy objdump; ac_word=$2
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11605 $as_echo_n "checking for $ac_word... " >&6; }
11606 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11607 $as_echo_n "(cached) " >&6
11608 else
11609 if test -n "$ac_ct_OBJDUMP"; then
11610 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11611 else
11612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11613 for as_dir in $PATH
11614 do
11615 IFS=$as_save_IFS
11616 test -z "$as_dir" && as_dir=.
11617 for ac_exec_ext in '' $ac_executable_extensions; do
11618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11619 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11621 break 2
11622 fi
11623 done
11624 done
11625 IFS=$as_save_IFS
11626
11627 fi
11628 fi
11629 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11630 if test -n "$ac_ct_OBJDUMP"; then
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11632 $as_echo "$ac_ct_OBJDUMP" >&6; }
11633 else
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11635 $as_echo "no" >&6; }
11636 fi
11637
11638 if test "x$ac_ct_OBJDUMP" = x; then
11639 OBJDUMP="false"
11640 else
11641 case $cross_compiling:$ac_tool_warned in
11642 yes:)
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11645 ac_tool_warned=yes ;;
11646 esac
11647 OBJDUMP=$ac_ct_OBJDUMP
11648 fi
11649 else
11650 OBJDUMP="$ac_cv_prog_OBJDUMP"
11651 fi
11652
11653 test -z "$OBJDUMP" && OBJDUMP=objdump
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11664 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11665 if ${lt_cv_deplibs_check_method+:} false; then :
11666 $as_echo_n "(cached) " >&6
11667 else
11668 lt_cv_file_magic_cmd='$MAGIC_CMD'
11669 lt_cv_file_magic_test_file=
11670 lt_cv_deplibs_check_method='unknown'
11671 # Need to set the preceding variable on all platforms that support
11672 # interlibrary dependencies.
11673 # 'none' -- dependencies not supported.
11674 # `unknown' -- same as none, but documents that we really don't know.
11675 # 'pass_all' -- all dependencies passed with no checks.
11676 # 'test_compile' -- check by making test program.
11677 # 'file_magic [[regex]]' -- check by looking for files in library path
11678 # which responds to the $file_magic_cmd with a given extended regex.
11679 # If you have `file' or equivalent on your system and you're not sure
11680 # whether `pass_all' will *always* work, you probably want this one.
11681
11682 case $host_os in
11683 aix[4-9]*)
11684 lt_cv_deplibs_check_method=pass_all
11685 ;;
11686
11687 beos*)
11688 lt_cv_deplibs_check_method=pass_all
11689 ;;
11690
11691 bsdi[45]*)
11692 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11693 lt_cv_file_magic_cmd='/usr/bin/file -L'
11694 lt_cv_file_magic_test_file=/shlib/libc.so
11695 ;;
11696
11697 cygwin*)
11698 # func_win32_libid is a shell function defined in ltmain.sh
11699 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11700 lt_cv_file_magic_cmd='func_win32_libid'
11701 ;;
11702
11703 mingw* | pw32*)
11704 # Base MSYS/MinGW do not provide the 'file' command needed by
11705 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11706 # unless we find 'file', for example because we are cross-compiling.
11707 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11708 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11709 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11710 lt_cv_file_magic_cmd='func_win32_libid'
11711 else
11712 # Keep this pattern in sync with the one in func_win32_libid.
11713 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11714 lt_cv_file_magic_cmd='$OBJDUMP -f'
11715 fi
11716 ;;
11717
11718 cegcc*)
11719 # use the weaker test based on 'objdump'. See mingw*.
11720 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11721 lt_cv_file_magic_cmd='$OBJDUMP -f'
11722 ;;
11723
11724 darwin* | rhapsody*)
11725 lt_cv_deplibs_check_method=pass_all
11726 ;;
11727
11728 freebsd* | dragonfly*)
11729 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11730 case $host_cpu in
11731 i*86 )
11732 # Not sure whether the presence of OpenBSD here was a mistake.
11733 # Let's accept both of them until this is cleared up.
11734 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11735 lt_cv_file_magic_cmd=/usr/bin/file
11736 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11737 ;;
11738 esac
11739 else
11740 lt_cv_deplibs_check_method=pass_all
11741 fi
11742 ;;
11743
11744 gnu*)
11745 lt_cv_deplibs_check_method=pass_all
11746 ;;
11747
11748 haiku*)
11749 lt_cv_deplibs_check_method=pass_all
11750 ;;
11751
11752 hpux10.20* | hpux11*)
11753 lt_cv_file_magic_cmd=/usr/bin/file
11754 case $host_cpu in
11755 ia64*)
11756 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11757 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11758 ;;
11759 hppa*64*)
11760 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]'
11761 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11762 ;;
11763 *)
11764 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11765 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11766 ;;
11767 esac
11768 ;;
11769
11770 interix[3-9]*)
11771 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11772 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11773 ;;
11774
11775 irix5* | irix6* | nonstopux*)
11776 case $LD in
11777 *-32|*"-32 ") libmagic=32-bit;;
11778 *-n32|*"-n32 ") libmagic=N32;;
11779 *-64|*"-64 ") libmagic=64-bit;;
11780 *) libmagic=never-match;;
11781 esac
11782 lt_cv_deplibs_check_method=pass_all
11783 ;;
11784
11785 # This must be glibc/ELF.
11786 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11787 lt_cv_deplibs_check_method=pass_all
11788 ;;
11789
11790 netbsd*)
11791 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11792 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11793 else
11794 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11795 fi
11796 ;;
11797
11798 newos6*)
11799 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11800 lt_cv_file_magic_cmd=/usr/bin/file
11801 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11802 ;;
11803
11804 *nto* | *qnx*)
11805 lt_cv_deplibs_check_method=pass_all
11806 ;;
11807
11808 openbsd*)
11809 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11810 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11811 else
11812 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11813 fi
11814 ;;
11815
11816 osf3* | osf4* | osf5*)
11817 lt_cv_deplibs_check_method=pass_all
11818 ;;
11819
11820 rdos*)
11821 lt_cv_deplibs_check_method=pass_all
11822 ;;
11823
11824 solaris*)
11825 lt_cv_deplibs_check_method=pass_all
11826 ;;
11827
11828 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11829 lt_cv_deplibs_check_method=pass_all
11830 ;;
11831
11832 sysv4 | sysv4.3*)
11833 case $host_vendor in
11834 motorola)
11835 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]'
11836 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11837 ;;
11838 ncr)
11839 lt_cv_deplibs_check_method=pass_all
11840 ;;
11841 sequent)
11842 lt_cv_file_magic_cmd='/bin/file'
11843 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11844 ;;
11845 sni)
11846 lt_cv_file_magic_cmd='/bin/file'
11847 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11848 lt_cv_file_magic_test_file=/lib/libc.so
11849 ;;
11850 siemens)
11851 lt_cv_deplibs_check_method=pass_all
11852 ;;
11853 pc)
11854 lt_cv_deplibs_check_method=pass_all
11855 ;;
11856 esac
11857 ;;
11858
11859 tpf*)
11860 lt_cv_deplibs_check_method=pass_all
11861 ;;
11862 esac
11863
11864 fi
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11866 $as_echo "$lt_cv_deplibs_check_method" >&6; }
11867
11868 file_magic_glob=
11869 want_nocaseglob=no
11870 if test "$build" = "$host"; then
11871 case $host_os in
11872 mingw* | pw32*)
11873 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11874 want_nocaseglob=yes
11875 else
11876 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11877 fi
11878 ;;
11879 esac
11880 fi
11881
11882 file_magic_cmd=$lt_cv_file_magic_cmd
11883 deplibs_check_method=$lt_cv_deplibs_check_method
11884 test -z "$deplibs_check_method" && deplibs_check_method=unknown
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907 if test -n "$ac_tool_prefix"; then
11908 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11909 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11911 $as_echo_n "checking for $ac_word... " >&6; }
11912 if ${ac_cv_prog_DLLTOOL+:} false; then :
11913 $as_echo_n "(cached) " >&6
11914 else
11915 if test -n "$DLLTOOL"; then
11916 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11917 else
11918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11919 for as_dir in $PATH
11920 do
11921 IFS=$as_save_IFS
11922 test -z "$as_dir" && as_dir=.
11923 for ac_exec_ext in '' $ac_executable_extensions; do
11924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11925 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11927 break 2
11928 fi
11929 done
11930 done
11931 IFS=$as_save_IFS
11932
11933 fi
11934 fi
11935 DLLTOOL=$ac_cv_prog_DLLTOOL
11936 if test -n "$DLLTOOL"; then
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11938 $as_echo "$DLLTOOL" >&6; }
11939 else
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11941 $as_echo "no" >&6; }
11942 fi
11943
11944
11945 fi
11946 if test -z "$ac_cv_prog_DLLTOOL"; then
11947 ac_ct_DLLTOOL=$DLLTOOL
11948 # Extract the first word of "dlltool", so it can be a program name with args.
11949 set dummy dlltool; ac_word=$2
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11951 $as_echo_n "checking for $ac_word... " >&6; }
11952 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11953 $as_echo_n "(cached) " >&6
11954 else
11955 if test -n "$ac_ct_DLLTOOL"; then
11956 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11957 else
11958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11959 for as_dir in $PATH
11960 do
11961 IFS=$as_save_IFS
11962 test -z "$as_dir" && as_dir=.
11963 for ac_exec_ext in '' $ac_executable_extensions; do
11964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11965 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11967 break 2
11968 fi
11969 done
11970 done
11971 IFS=$as_save_IFS
11972
11973 fi
11974 fi
11975 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11976 if test -n "$ac_ct_DLLTOOL"; then
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11978 $as_echo "$ac_ct_DLLTOOL" >&6; }
11979 else
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11981 $as_echo "no" >&6; }
11982 fi
11983
11984 if test "x$ac_ct_DLLTOOL" = x; then
11985 DLLTOOL="false"
11986 else
11987 case $cross_compiling:$ac_tool_warned in
11988 yes:)
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11990 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11991 ac_tool_warned=yes ;;
11992 esac
11993 DLLTOOL=$ac_ct_DLLTOOL
11994 fi
11995 else
11996 DLLTOOL="$ac_cv_prog_DLLTOOL"
11997 fi
11998
11999 test -z "$DLLTOOL" && DLLTOOL=dlltool
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12011 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12012 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12013 $as_echo_n "(cached) " >&6
12014 else
12015 lt_cv_sharedlib_from_linklib_cmd='unknown'
12016
12017 case $host_os in
12018 cygwin* | mingw* | pw32* | cegcc*)
12019 # two different shell functions defined in ltmain.sh
12020 # decide which to use based on capabilities of $DLLTOOL
12021 case `$DLLTOOL --help 2>&1` in
12022 *--identify-strict*)
12023 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12024 ;;
12025 *)
12026 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12027 ;;
12028 esac
12029 ;;
12030 *)
12031 # fallback: assume linklib IS sharedlib
12032 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12033 ;;
12034 esac
12035
12036 fi
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12038 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12039 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12040 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12041
12042
12043
12044
12045
12046
12047
12048 if test -n "$ac_tool_prefix"; then
12049 for ac_prog in ar
12050 do
12051 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12052 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12054 $as_echo_n "checking for $ac_word... " >&6; }
12055 if ${ac_cv_prog_AR+:} false; then :
12056 $as_echo_n "(cached) " >&6
12057 else
12058 if test -n "$AR"; then
12059 ac_cv_prog_AR="$AR" # Let the user override the test.
12060 else
12061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12062 for as_dir in $PATH
12063 do
12064 IFS=$as_save_IFS
12065 test -z "$as_dir" && as_dir=.
12066 for ac_exec_ext in '' $ac_executable_extensions; do
12067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12068 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12070 break 2
12071 fi
12072 done
12073 done
12074 IFS=$as_save_IFS
12075
12076 fi
12077 fi
12078 AR=$ac_cv_prog_AR
12079 if test -n "$AR"; then
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12081 $as_echo "$AR" >&6; }
12082 else
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12084 $as_echo "no" >&6; }
12085 fi
12086
12087
12088 test -n "$AR" && break
12089 done
12090 fi
12091 if test -z "$AR"; then
12092 ac_ct_AR=$AR
12093 for ac_prog in ar
12094 do
12095 # Extract the first word of "$ac_prog", so it can be a program name with args.
12096 set dummy $ac_prog; ac_word=$2
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12098 $as_echo_n "checking for $ac_word... " >&6; }
12099 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12100 $as_echo_n "(cached) " >&6
12101 else
12102 if test -n "$ac_ct_AR"; then
12103 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12104 else
12105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12106 for as_dir in $PATH
12107 do
12108 IFS=$as_save_IFS
12109 test -z "$as_dir" && as_dir=.
12110 for ac_exec_ext in '' $ac_executable_extensions; do
12111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12112 ac_cv_prog_ac_ct_AR="$ac_prog"
12113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12114 break 2
12115 fi
12116 done
12117 done
12118 IFS=$as_save_IFS
12119
12120 fi
12121 fi
12122 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12123 if test -n "$ac_ct_AR"; then
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12125 $as_echo "$ac_ct_AR" >&6; }
12126 else
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12128 $as_echo "no" >&6; }
12129 fi
12130
12131
12132 test -n "$ac_ct_AR" && break
12133 done
12134
12135 if test "x$ac_ct_AR" = x; then
12136 AR="false"
12137 else
12138 case $cross_compiling:$ac_tool_warned in
12139 yes:)
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12141 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12142 ac_tool_warned=yes ;;
12143 esac
12144 AR=$ac_ct_AR
12145 fi
12146 fi
12147
12148 : ${AR=ar}
12149 : ${AR_FLAGS=cru}
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12162 $as_echo_n "checking for archiver @FILE support... " >&6; }
12163 if ${lt_cv_ar_at_file+:} false; then :
12164 $as_echo_n "(cached) " >&6
12165 else
12166 lt_cv_ar_at_file=no
12167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12168 /* end confdefs.h. */
12169
12170 int
12171 main ()
12172 {
12173
12174 ;
12175 return 0;
12176 }
12177 _ACEOF
12178 if ac_fn_c_try_compile "$LINENO"; then :
12179 echo conftest.$ac_objext > conftest.lst
12180 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12181 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12182 (eval $lt_ar_try) 2>&5
12183 ac_status=$?
12184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12185 test $ac_status = 0; }
12186 if test "$ac_status" -eq 0; then
12187 # Ensure the archiver fails upon bogus file names.
12188 rm -f conftest.$ac_objext libconftest.a
12189 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12190 (eval $lt_ar_try) 2>&5
12191 ac_status=$?
12192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12193 test $ac_status = 0; }
12194 if test "$ac_status" -ne 0; then
12195 lt_cv_ar_at_file=@
12196 fi
12197 fi
12198 rm -f conftest.* libconftest.a
12199
12200 fi
12201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12202
12203 fi
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12205 $as_echo "$lt_cv_ar_at_file" >&6; }
12206
12207 if test "x$lt_cv_ar_at_file" = xno; then
12208 archiver_list_spec=
12209 else
12210 archiver_list_spec=$lt_cv_ar_at_file
12211 fi
12212
12213
12214
12215
12216
12217
12218
12219 if test -n "$ac_tool_prefix"; then
12220 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12221 set dummy ${ac_tool_prefix}strip; ac_word=$2
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12223 $as_echo_n "checking for $ac_word... " >&6; }
12224 if ${ac_cv_prog_STRIP+:} false; then :
12225 $as_echo_n "(cached) " >&6
12226 else
12227 if test -n "$STRIP"; then
12228 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12229 else
12230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12231 for as_dir in $PATH
12232 do
12233 IFS=$as_save_IFS
12234 test -z "$as_dir" && as_dir=.
12235 for ac_exec_ext in '' $ac_executable_extensions; do
12236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12237 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12239 break 2
12240 fi
12241 done
12242 done
12243 IFS=$as_save_IFS
12244
12245 fi
12246 fi
12247 STRIP=$ac_cv_prog_STRIP
12248 if test -n "$STRIP"; then
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12250 $as_echo "$STRIP" >&6; }
12251 else
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12253 $as_echo "no" >&6; }
12254 fi
12255
12256
12257 fi
12258 if test -z "$ac_cv_prog_STRIP"; then
12259 ac_ct_STRIP=$STRIP
12260 # Extract the first word of "strip", so it can be a program name with args.
12261 set dummy strip; ac_word=$2
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12263 $as_echo_n "checking for $ac_word... " >&6; }
12264 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12265 $as_echo_n "(cached) " >&6
12266 else
12267 if test -n "$ac_ct_STRIP"; then
12268 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12269 else
12270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12271 for as_dir in $PATH
12272 do
12273 IFS=$as_save_IFS
12274 test -z "$as_dir" && as_dir=.
12275 for ac_exec_ext in '' $ac_executable_extensions; do
12276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12277 ac_cv_prog_ac_ct_STRIP="strip"
12278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12279 break 2
12280 fi
12281 done
12282 done
12283 IFS=$as_save_IFS
12284
12285 fi
12286 fi
12287 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12288 if test -n "$ac_ct_STRIP"; then
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12290 $as_echo "$ac_ct_STRIP" >&6; }
12291 else
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12293 $as_echo "no" >&6; }
12294 fi
12295
12296 if test "x$ac_ct_STRIP" = x; then
12297 STRIP=":"
12298 else
12299 case $cross_compiling:$ac_tool_warned in
12300 yes:)
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12302 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12303 ac_tool_warned=yes ;;
12304 esac
12305 STRIP=$ac_ct_STRIP
12306 fi
12307 else
12308 STRIP="$ac_cv_prog_STRIP"
12309 fi
12310
12311 test -z "$STRIP" && STRIP=:
12312
12313
12314
12315
12316
12317
12318 if test -n "$ac_tool_prefix"; then
12319 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12320 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12322 $as_echo_n "checking for $ac_word... " >&6; }
12323 if ${ac_cv_prog_RANLIB+:} false; then :
12324 $as_echo_n "(cached) " >&6
12325 else
12326 if test -n "$RANLIB"; then
12327 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12328 else
12329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12330 for as_dir in $PATH
12331 do
12332 IFS=$as_save_IFS
12333 test -z "$as_dir" && as_dir=.
12334 for ac_exec_ext in '' $ac_executable_extensions; do
12335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12336 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12338 break 2
12339 fi
12340 done
12341 done
12342 IFS=$as_save_IFS
12343
12344 fi
12345 fi
12346 RANLIB=$ac_cv_prog_RANLIB
12347 if test -n "$RANLIB"; then
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12349 $as_echo "$RANLIB" >&6; }
12350 else
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12352 $as_echo "no" >&6; }
12353 fi
12354
12355
12356 fi
12357 if test -z "$ac_cv_prog_RANLIB"; then
12358 ac_ct_RANLIB=$RANLIB
12359 # Extract the first word of "ranlib", so it can be a program name with args.
12360 set dummy ranlib; ac_word=$2
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12362 $as_echo_n "checking for $ac_word... " >&6; }
12363 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12364 $as_echo_n "(cached) " >&6
12365 else
12366 if test -n "$ac_ct_RANLIB"; then
12367 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12368 else
12369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12370 for as_dir in $PATH
12371 do
12372 IFS=$as_save_IFS
12373 test -z "$as_dir" && as_dir=.
12374 for ac_exec_ext in '' $ac_executable_extensions; do
12375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12376 ac_cv_prog_ac_ct_RANLIB="ranlib"
12377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12378 break 2
12379 fi
12380 done
12381 done
12382 IFS=$as_save_IFS
12383
12384 fi
12385 fi
12386 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12387 if test -n "$ac_ct_RANLIB"; then
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12389 $as_echo "$ac_ct_RANLIB" >&6; }
12390 else
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12392 $as_echo "no" >&6; }
12393 fi
12394
12395 if test "x$ac_ct_RANLIB" = x; then
12396 RANLIB=":"
12397 else
12398 case $cross_compiling:$ac_tool_warned in
12399 yes:)
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12401 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12402 ac_tool_warned=yes ;;
12403 esac
12404 RANLIB=$ac_ct_RANLIB
12405 fi
12406 else
12407 RANLIB="$ac_cv_prog_RANLIB"
12408 fi
12409
12410 test -z "$RANLIB" && RANLIB=:
12411
12412
12413
12414
12415
12416
12417 # Determine commands to create old-style static archives.
12418 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12419 old_postinstall_cmds='chmod 644 $oldlib'
12420 old_postuninstall_cmds=
12421
12422 if test -n "$RANLIB"; then
12423 case $host_os in
12424 openbsd*)
12425 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12426 ;;
12427 *)
12428 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12429 ;;
12430 esac
12431 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12432 fi
12433
12434 case $host_os in
12435 darwin*)
12436 lock_old_archive_extraction=yes ;;
12437 *)
12438 lock_old_archive_extraction=no ;;
12439 esac
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479 # If no C compiler was specified, use CC.
12480 LTCC=${LTCC-"$CC"}
12481
12482 # If no C compiler flags were specified, use CFLAGS.
12483 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12484
12485 # Allow CC to be a program name with arguments.
12486 compiler=$CC
12487
12488
12489 # Check for command to grab the raw symbol name followed by C symbol from nm.
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12491 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12492 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12493 $as_echo_n "(cached) " >&6
12494 else
12495
12496 # These are sane defaults that work on at least a few old systems.
12497 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12498
12499 # Character class describing NM global symbol codes.
12500 symcode='[BCDEGRST]'
12501
12502 # Regexp to match symbols that can be accessed directly from C.
12503 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12504
12505 # Define system-specific variables.
12506 case $host_os in
12507 aix*)
12508 symcode='[BCDT]'
12509 ;;
12510 cygwin* | mingw* | pw32* | cegcc*)
12511 symcode='[ABCDGISTW]'
12512 ;;
12513 hpux*)
12514 if test "$host_cpu" = ia64; then
12515 symcode='[ABCDEGRST]'
12516 fi
12517 ;;
12518 irix* | nonstopux*)
12519 symcode='[BCDEGRST]'
12520 ;;
12521 osf*)
12522 symcode='[BCDEGQRST]'
12523 ;;
12524 solaris*)
12525 symcode='[BDRT]'
12526 ;;
12527 sco3.2v5*)
12528 symcode='[DT]'
12529 ;;
12530 sysv4.2uw2*)
12531 symcode='[DT]'
12532 ;;
12533 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12534 symcode='[ABDT]'
12535 ;;
12536 sysv4)
12537 symcode='[DFNSTU]'
12538 ;;
12539 esac
12540
12541 # If we're using GNU nm, then use its standard symbol codes.
12542 case `$NM -V 2>&1` in
12543 *GNU* | *'with BFD'*)
12544 symcode='[ABCDGIRSTW]' ;;
12545 esac
12546
12547 # Transform an extracted symbol line into a proper C declaration.
12548 # Some systems (esp. on ia64) link data and code symbols differently,
12549 # so use this general approach.
12550 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12551
12552 # Transform an extracted symbol line into symbol name and symbol address
12553 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12554 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'"
12555
12556 # Handle CRLF in mingw tool chain
12557 opt_cr=
12558 case $build_os in
12559 mingw*)
12560 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12561 ;;
12562 esac
12563
12564 # Try without a prefix underscore, then with it.
12565 for ac_symprfx in "" "_"; do
12566
12567 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12568 symxfrm="\\1 $ac_symprfx\\2 \\2"
12569
12570 # Write the raw and C identifiers.
12571 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12572 # Fake it for dumpbin and say T for any non-static function
12573 # and D for any global variable.
12574 # Also find C++ and __fastcall symbols from MSVC++,
12575 # which start with @ or ?.
12576 lt_cv_sys_global_symbol_pipe="$AWK '"\
12577 " {last_section=section; section=\$ 3};"\
12578 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12579 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12580 " \$ 0!~/External *\|/{next};"\
12581 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12582 " {if(hide[section]) next};"\
12583 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12584 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12585 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12586 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12587 " ' prfx=^$ac_symprfx"
12588 else
12589 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12590 fi
12591 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12592
12593 # Check to see that the pipe works correctly.
12594 pipe_works=no
12595
12596 rm -f conftest*
12597 cat > conftest.$ac_ext <<_LT_EOF
12598 #ifdef __cplusplus
12599 extern "C" {
12600 #endif
12601 char nm_test_var;
12602 void nm_test_func(void);
12603 void nm_test_func(void){}
12604 #ifdef __cplusplus
12605 }
12606 #endif
12607 int main(){nm_test_var='a';nm_test_func();return(0);}
12608 _LT_EOF
12609
12610 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12611 (eval $ac_compile) 2>&5
12612 ac_status=$?
12613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12614 test $ac_status = 0; }; then
12615 # Now try to grab the symbols.
12616 nlist=conftest.nm
12617 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12618 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12619 ac_status=$?
12620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12621 test $ac_status = 0; } && test -s "$nlist"; then
12622 # Try sorting and uniquifying the output.
12623 if sort "$nlist" | uniq > "$nlist"T; then
12624 mv -f "$nlist"T "$nlist"
12625 else
12626 rm -f "$nlist"T
12627 fi
12628
12629 # Make sure that we snagged all the symbols we need.
12630 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12631 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12632 cat <<_LT_EOF > conftest.$ac_ext
12633 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12634 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12635 /* DATA imports from DLLs on WIN32 con't be const, because runtime
12636 relocations are performed -- see ld's documentation on pseudo-relocs. */
12637 # define LT_DLSYM_CONST
12638 #elif defined(__osf__)
12639 /* This system does not cope well with relocations in const data. */
12640 # define LT_DLSYM_CONST
12641 #else
12642 # define LT_DLSYM_CONST const
12643 #endif
12644
12645 #ifdef __cplusplus
12646 extern "C" {
12647 #endif
12648
12649 _LT_EOF
12650 # Now generate the symbol file.
12651 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12652
12653 cat <<_LT_EOF >> conftest.$ac_ext
12654
12655 /* The mapping between symbol names and symbols. */
12656 LT_DLSYM_CONST struct {
12657 const char *name;
12658 void *address;
12659 }
12660 lt__PROGRAM__LTX_preloaded_symbols[] =
12661 {
12662 { "@PROGRAM@", (void *) 0 },
12663 _LT_EOF
12664 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12665 cat <<\_LT_EOF >> conftest.$ac_ext
12666 {0, (void *) 0}
12667 };
12668
12669 /* This works around a problem in FreeBSD linker */
12670 #ifdef FREEBSD_WORKAROUND
12671 static const void *lt_preloaded_setup() {
12672 return lt__PROGRAM__LTX_preloaded_symbols;
12673 }
12674 #endif
12675
12676 #ifdef __cplusplus
12677 }
12678 #endif
12679 _LT_EOF
12680 # Now try linking the two files.
12681 mv conftest.$ac_objext conftstm.$ac_objext
12682 lt_globsym_save_LIBS=$LIBS
12683 lt_globsym_save_CFLAGS=$CFLAGS
12684 LIBS="conftstm.$ac_objext"
12685 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12686 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12687 (eval $ac_link) 2>&5
12688 ac_status=$?
12689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12690 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12691 pipe_works=yes
12692 fi
12693 LIBS=$lt_globsym_save_LIBS
12694 CFLAGS=$lt_globsym_save_CFLAGS
12695 else
12696 echo "cannot find nm_test_func in $nlist" >&5
12697 fi
12698 else
12699 echo "cannot find nm_test_var in $nlist" >&5
12700 fi
12701 else
12702 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12703 fi
12704 else
12705 echo "$progname: failed program was:" >&5
12706 cat conftest.$ac_ext >&5
12707 fi
12708 rm -rf conftest* conftst*
12709
12710 # Do not use the global_symbol_pipe unless it works.
12711 if test "$pipe_works" = yes; then
12712 break
12713 else
12714 lt_cv_sys_global_symbol_pipe=
12715 fi
12716 done
12717
12718 fi
12719
12720 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12721 lt_cv_sys_global_symbol_to_cdecl=
12722 fi
12723 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12725 $as_echo "failed" >&6; }
12726 else
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12728 $as_echo "ok" >&6; }
12729 fi
12730
12731 # Response file support.
12732 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12733 nm_file_list_spec='@'
12734 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12735 nm_file_list_spec='@'
12736 fi
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12765 $as_echo_n "checking for sysroot... " >&6; }
12766
12767 # Check whether --with-sysroot was given.
12768 if test "${with_sysroot+set}" = set; then :
12769 withval=$with_sysroot;
12770 else
12771 with_sysroot=no
12772 fi
12773
12774
12775 lt_sysroot=
12776 case ${with_sysroot} in #(
12777 yes)
12778 if test "$GCC" = yes; then
12779 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12780 fi
12781 ;; #(
12782 /*)
12783 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12784 ;; #(
12785 no|'')
12786 ;; #(
12787 *)
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12789 $as_echo "${with_sysroot}" >&6; }
12790 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12791 ;;
12792 esac
12793
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12795 $as_echo "${lt_sysroot:-no}" >&6; }
12796
12797
12798
12799
12800
12801 # Check whether --enable-libtool-lock was given.
12802 if test "${enable_libtool_lock+set}" = set; then :
12803 enableval=$enable_libtool_lock;
12804 fi
12805
12806 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12807
12808 # Some flags need to be propagated to the compiler or linker for good
12809 # libtool support.
12810 case $host in
12811 ia64-*-hpux*)
12812 # Find out which ABI we are using.
12813 echo 'int i;' > conftest.$ac_ext
12814 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12815 (eval $ac_compile) 2>&5
12816 ac_status=$?
12817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12818 test $ac_status = 0; }; then
12819 case `/usr/bin/file conftest.$ac_objext` in
12820 *ELF-32*)
12821 HPUX_IA64_MODE="32"
12822 ;;
12823 *ELF-64*)
12824 HPUX_IA64_MODE="64"
12825 ;;
12826 esac
12827 fi
12828 rm -rf conftest*
12829 ;;
12830 *-*-irix6*)
12831 # Find out which ABI we are using.
12832 echo '#line '$LINENO' "configure"' > 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 if test "$lt_cv_prog_gnu_ld" = yes; then
12839 case `/usr/bin/file conftest.$ac_objext` in
12840 *32-bit*)
12841 LD="${LD-ld} -melf32bsmip"
12842 ;;
12843 *N32*)
12844 LD="${LD-ld} -melf32bmipn32"
12845 ;;
12846 *64-bit*)
12847 LD="${LD-ld} -melf64bmip"
12848 ;;
12849 esac
12850 else
12851 case `/usr/bin/file conftest.$ac_objext` in
12852 *32-bit*)
12853 LD="${LD-ld} -32"
12854 ;;
12855 *N32*)
12856 LD="${LD-ld} -n32"
12857 ;;
12858 *64-bit*)
12859 LD="${LD-ld} -64"
12860 ;;
12861 esac
12862 fi
12863 fi
12864 rm -rf conftest*
12865 ;;
12866
12867 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12868 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12869 # Find out which ABI we are using.
12870 echo 'int i;' > conftest.$ac_ext
12871 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12872 (eval $ac_compile) 2>&5
12873 ac_status=$?
12874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12875 test $ac_status = 0; }; then
12876 case `/usr/bin/file conftest.o` in
12877 *32-bit*)
12878 case $host in
12879 x86_64-*kfreebsd*-gnu)
12880 LD="${LD-ld} -m elf_i386_fbsd"
12881 ;;
12882 x86_64-*linux*)
12883 LD="${LD-ld} -m elf_i386"
12884 ;;
12885 ppc64-*linux*|powerpc64-*linux*)
12886 LD="${LD-ld} -m elf32ppclinux"
12887 ;;
12888 s390x-*linux*)
12889 LD="${LD-ld} -m elf_s390"
12890 ;;
12891 sparc64-*linux*)
12892 LD="${LD-ld} -m elf32_sparc"
12893 ;;
12894 esac
12895 ;;
12896 *64-bit*)
12897 case $host in
12898 x86_64-*kfreebsd*-gnu)
12899 LD="${LD-ld} -m elf_x86_64_fbsd"
12900 ;;
12901 x86_64-*linux*)
12902 LD="${LD-ld} -m elf_x86_64"
12903 ;;
12904 ppc*-*linux*|powerpc*-*linux*)
12905 LD="${LD-ld} -m elf64ppc"
12906 ;;
12907 s390*-*linux*|s390*-*tpf*)
12908 LD="${LD-ld} -m elf64_s390"
12909 ;;
12910 sparc*-*linux*)
12911 LD="${LD-ld} -m elf64_sparc"
12912 ;;
12913 esac
12914 ;;
12915 esac
12916 fi
12917 rm -rf conftest*
12918 ;;
12919
12920 *-*-sco3.2v5*)
12921 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12922 SAVE_CFLAGS="$CFLAGS"
12923 CFLAGS="$CFLAGS -belf"
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12925 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12926 if ${lt_cv_cc_needs_belf+:} false; then :
12927 $as_echo_n "(cached) " >&6
12928 else
12929 ac_ext=c
12930 ac_cpp='$CPP $CPPFLAGS'
12931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12934
12935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12936 /* end confdefs.h. */
12937
12938 int
12939 main ()
12940 {
12941
12942 ;
12943 return 0;
12944 }
12945 _ACEOF
12946 if ac_fn_c_try_link "$LINENO"; then :
12947 lt_cv_cc_needs_belf=yes
12948 else
12949 lt_cv_cc_needs_belf=no
12950 fi
12951 rm -f core conftest.err conftest.$ac_objext \
12952 conftest$ac_exeext conftest.$ac_ext
12953 ac_ext=c
12954 ac_cpp='$CPP $CPPFLAGS'
12955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12958
12959 fi
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12961 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12962 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12963 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12964 CFLAGS="$SAVE_CFLAGS"
12965 fi
12966 ;;
12967 *-*solaris*)
12968 # Find out which ABI we are using.
12969 echo 'int i;' > conftest.$ac_ext
12970 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12971 (eval $ac_compile) 2>&5
12972 ac_status=$?
12973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12974 test $ac_status = 0; }; then
12975 case `/usr/bin/file conftest.o` in
12976 *64-bit*)
12977 case $lt_cv_prog_gnu_ld in
12978 yes*)
12979 case $host in
12980 i?86-*-solaris*)
12981 LD="${LD-ld} -m elf_x86_64"
12982 ;;
12983 sparc*-*-solaris*)
12984 LD="${LD-ld} -m elf64_sparc"
12985 ;;
12986 esac
12987 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12988 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12989 LD="${LD-ld}_sol2"
12990 fi
12991 ;;
12992 *)
12993 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12994 LD="${LD-ld} -64"
12995 fi
12996 ;;
12997 esac
12998 ;;
12999 esac
13000 fi
13001 rm -rf conftest*
13002 ;;
13003 esac
13004
13005 need_locks="$enable_libtool_lock"
13006
13007 if test -n "$ac_tool_prefix"; then
13008 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13009 set dummy ${ac_tool_prefix}mt; ac_word=$2
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13011 $as_echo_n "checking for $ac_word... " >&6; }
13012 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13013 $as_echo_n "(cached) " >&6
13014 else
13015 if test -n "$MANIFEST_TOOL"; then
13016 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13017 else
13018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13019 for as_dir in $PATH
13020 do
13021 IFS=$as_save_IFS
13022 test -z "$as_dir" && as_dir=.
13023 for ac_exec_ext in '' $ac_executable_extensions; do
13024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13025 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13027 break 2
13028 fi
13029 done
13030 done
13031 IFS=$as_save_IFS
13032
13033 fi
13034 fi
13035 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13036 if test -n "$MANIFEST_TOOL"; then
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13038 $as_echo "$MANIFEST_TOOL" >&6; }
13039 else
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13041 $as_echo "no" >&6; }
13042 fi
13043
13044
13045 fi
13046 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13047 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13048 # Extract the first word of "mt", so it can be a program name with args.
13049 set dummy mt; ac_word=$2
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13051 $as_echo_n "checking for $ac_word... " >&6; }
13052 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13053 $as_echo_n "(cached) " >&6
13054 else
13055 if test -n "$ac_ct_MANIFEST_TOOL"; then
13056 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13057 else
13058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13059 for as_dir in $PATH
13060 do
13061 IFS=$as_save_IFS
13062 test -z "$as_dir" && as_dir=.
13063 for ac_exec_ext in '' $ac_executable_extensions; do
13064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13065 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13067 break 2
13068 fi
13069 done
13070 done
13071 IFS=$as_save_IFS
13072
13073 fi
13074 fi
13075 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13076 if test -n "$ac_ct_MANIFEST_TOOL"; then
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13078 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13079 else
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13081 $as_echo "no" >&6; }
13082 fi
13083
13084 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13085 MANIFEST_TOOL=":"
13086 else
13087 case $cross_compiling:$ac_tool_warned in
13088 yes:)
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13091 ac_tool_warned=yes ;;
13092 esac
13093 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13094 fi
13095 else
13096 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13097 fi
13098
13099 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13101 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13102 if ${lt_cv_path_mainfest_tool+:} false; then :
13103 $as_echo_n "(cached) " >&6
13104 else
13105 lt_cv_path_mainfest_tool=no
13106 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13107 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13108 cat conftest.err >&5
13109 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13110 lt_cv_path_mainfest_tool=yes
13111 fi
13112 rm -f conftest*
13113 fi
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13115 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
13116 if test "x$lt_cv_path_mainfest_tool" != xyes; then
13117 MANIFEST_TOOL=:
13118 fi
13119
13120
13121
13122
13123
13124
13125 case $host_os in
13126 rhapsody* | darwin*)
13127 if test -n "$ac_tool_prefix"; then
13128 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13129 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13131 $as_echo_n "checking for $ac_word... " >&6; }
13132 if ${ac_cv_prog_DSYMUTIL+:} false; then :
13133 $as_echo_n "(cached) " >&6
13134 else
13135 if test -n "$DSYMUTIL"; then
13136 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13137 else
13138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13139 for as_dir in $PATH
13140 do
13141 IFS=$as_save_IFS
13142 test -z "$as_dir" && as_dir=.
13143 for ac_exec_ext in '' $ac_executable_extensions; do
13144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13145 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13147 break 2
13148 fi
13149 done
13150 done
13151 IFS=$as_save_IFS
13152
13153 fi
13154 fi
13155 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13156 if test -n "$DSYMUTIL"; then
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13158 $as_echo "$DSYMUTIL" >&6; }
13159 else
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13161 $as_echo "no" >&6; }
13162 fi
13163
13164
13165 fi
13166 if test -z "$ac_cv_prog_DSYMUTIL"; then
13167 ac_ct_DSYMUTIL=$DSYMUTIL
13168 # Extract the first word of "dsymutil", so it can be a program name with args.
13169 set dummy dsymutil; ac_word=$2
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13171 $as_echo_n "checking for $ac_word... " >&6; }
13172 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13173 $as_echo_n "(cached) " >&6
13174 else
13175 if test -n "$ac_ct_DSYMUTIL"; then
13176 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13177 else
13178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13179 for as_dir in $PATH
13180 do
13181 IFS=$as_save_IFS
13182 test -z "$as_dir" && as_dir=.
13183 for ac_exec_ext in '' $ac_executable_extensions; do
13184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13185 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13187 break 2
13188 fi
13189 done
13190 done
13191 IFS=$as_save_IFS
13192
13193 fi
13194 fi
13195 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13196 if test -n "$ac_ct_DSYMUTIL"; then
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13198 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13199 else
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13201 $as_echo "no" >&6; }
13202 fi
13203
13204 if test "x$ac_ct_DSYMUTIL" = x; then
13205 DSYMUTIL=":"
13206 else
13207 case $cross_compiling:$ac_tool_warned in
13208 yes:)
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13211 ac_tool_warned=yes ;;
13212 esac
13213 DSYMUTIL=$ac_ct_DSYMUTIL
13214 fi
13215 else
13216 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13217 fi
13218
13219 if test -n "$ac_tool_prefix"; then
13220 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13221 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13223 $as_echo_n "checking for $ac_word... " >&6; }
13224 if ${ac_cv_prog_NMEDIT+:} false; then :
13225 $as_echo_n "(cached) " >&6
13226 else
13227 if test -n "$NMEDIT"; then
13228 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13229 else
13230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13231 for as_dir in $PATH
13232 do
13233 IFS=$as_save_IFS
13234 test -z "$as_dir" && as_dir=.
13235 for ac_exec_ext in '' $ac_executable_extensions; do
13236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13237 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13239 break 2
13240 fi
13241 done
13242 done
13243 IFS=$as_save_IFS
13244
13245 fi
13246 fi
13247 NMEDIT=$ac_cv_prog_NMEDIT
13248 if test -n "$NMEDIT"; then
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13250 $as_echo "$NMEDIT" >&6; }
13251 else
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13253 $as_echo "no" >&6; }
13254 fi
13255
13256
13257 fi
13258 if test -z "$ac_cv_prog_NMEDIT"; then
13259 ac_ct_NMEDIT=$NMEDIT
13260 # Extract the first word of "nmedit", so it can be a program name with args.
13261 set dummy nmedit; ac_word=$2
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13263 $as_echo_n "checking for $ac_word... " >&6; }
13264 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13265 $as_echo_n "(cached) " >&6
13266 else
13267 if test -n "$ac_ct_NMEDIT"; then
13268 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13269 else
13270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13271 for as_dir in $PATH
13272 do
13273 IFS=$as_save_IFS
13274 test -z "$as_dir" && as_dir=.
13275 for ac_exec_ext in '' $ac_executable_extensions; do
13276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13277 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13279 break 2
13280 fi
13281 done
13282 done
13283 IFS=$as_save_IFS
13284
13285 fi
13286 fi
13287 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13288 if test -n "$ac_ct_NMEDIT"; then
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13290 $as_echo "$ac_ct_NMEDIT" >&6; }
13291 else
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13293 $as_echo "no" >&6; }
13294 fi
13295
13296 if test "x$ac_ct_NMEDIT" = x; then
13297 NMEDIT=":"
13298 else
13299 case $cross_compiling:$ac_tool_warned in
13300 yes:)
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13302 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13303 ac_tool_warned=yes ;;
13304 esac
13305 NMEDIT=$ac_ct_NMEDIT
13306 fi
13307 else
13308 NMEDIT="$ac_cv_prog_NMEDIT"
13309 fi
13310
13311 if test -n "$ac_tool_prefix"; then
13312 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13313 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13315 $as_echo_n "checking for $ac_word... " >&6; }
13316 if ${ac_cv_prog_LIPO+:} false; then :
13317 $as_echo_n "(cached) " >&6
13318 else
13319 if test -n "$LIPO"; then
13320 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13321 else
13322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13323 for as_dir in $PATH
13324 do
13325 IFS=$as_save_IFS
13326 test -z "$as_dir" && as_dir=.
13327 for ac_exec_ext in '' $ac_executable_extensions; do
13328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13329 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13331 break 2
13332 fi
13333 done
13334 done
13335 IFS=$as_save_IFS
13336
13337 fi
13338 fi
13339 LIPO=$ac_cv_prog_LIPO
13340 if test -n "$LIPO"; then
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13342 $as_echo "$LIPO" >&6; }
13343 else
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13345 $as_echo "no" >&6; }
13346 fi
13347
13348
13349 fi
13350 if test -z "$ac_cv_prog_LIPO"; then
13351 ac_ct_LIPO=$LIPO
13352 # Extract the first word of "lipo", so it can be a program name with args.
13353 set dummy lipo; ac_word=$2
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13355 $as_echo_n "checking for $ac_word... " >&6; }
13356 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13357 $as_echo_n "(cached) " >&6
13358 else
13359 if test -n "$ac_ct_LIPO"; then
13360 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13361 else
13362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13363 for as_dir in $PATH
13364 do
13365 IFS=$as_save_IFS
13366 test -z "$as_dir" && as_dir=.
13367 for ac_exec_ext in '' $ac_executable_extensions; do
13368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13369 ac_cv_prog_ac_ct_LIPO="lipo"
13370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13371 break 2
13372 fi
13373 done
13374 done
13375 IFS=$as_save_IFS
13376
13377 fi
13378 fi
13379 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13380 if test -n "$ac_ct_LIPO"; then
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13382 $as_echo "$ac_ct_LIPO" >&6; }
13383 else
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13385 $as_echo "no" >&6; }
13386 fi
13387
13388 if test "x$ac_ct_LIPO" = x; then
13389 LIPO=":"
13390 else
13391 case $cross_compiling:$ac_tool_warned in
13392 yes:)
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13394 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13395 ac_tool_warned=yes ;;
13396 esac
13397 LIPO=$ac_ct_LIPO
13398 fi
13399 else
13400 LIPO="$ac_cv_prog_LIPO"
13401 fi
13402
13403 if test -n "$ac_tool_prefix"; then
13404 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13405 set dummy ${ac_tool_prefix}otool; ac_word=$2
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13407 $as_echo_n "checking for $ac_word... " >&6; }
13408 if ${ac_cv_prog_OTOOL+:} false; then :
13409 $as_echo_n "(cached) " >&6
13410 else
13411 if test -n "$OTOOL"; then
13412 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13413 else
13414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13415 for as_dir in $PATH
13416 do
13417 IFS=$as_save_IFS
13418 test -z "$as_dir" && as_dir=.
13419 for ac_exec_ext in '' $ac_executable_extensions; do
13420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13421 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13423 break 2
13424 fi
13425 done
13426 done
13427 IFS=$as_save_IFS
13428
13429 fi
13430 fi
13431 OTOOL=$ac_cv_prog_OTOOL
13432 if test -n "$OTOOL"; then
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13434 $as_echo "$OTOOL" >&6; }
13435 else
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13437 $as_echo "no" >&6; }
13438 fi
13439
13440
13441 fi
13442 if test -z "$ac_cv_prog_OTOOL"; then
13443 ac_ct_OTOOL=$OTOOL
13444 # Extract the first word of "otool", so it can be a program name with args.
13445 set dummy otool; ac_word=$2
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13447 $as_echo_n "checking for $ac_word... " >&6; }
13448 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13449 $as_echo_n "(cached) " >&6
13450 else
13451 if test -n "$ac_ct_OTOOL"; then
13452 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13453 else
13454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13455 for as_dir in $PATH
13456 do
13457 IFS=$as_save_IFS
13458 test -z "$as_dir" && as_dir=.
13459 for ac_exec_ext in '' $ac_executable_extensions; do
13460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13461 ac_cv_prog_ac_ct_OTOOL="otool"
13462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13463 break 2
13464 fi
13465 done
13466 done
13467 IFS=$as_save_IFS
13468
13469 fi
13470 fi
13471 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13472 if test -n "$ac_ct_OTOOL"; then
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13474 $as_echo "$ac_ct_OTOOL" >&6; }
13475 else
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13477 $as_echo "no" >&6; }
13478 fi
13479
13480 if test "x$ac_ct_OTOOL" = x; then
13481 OTOOL=":"
13482 else
13483 case $cross_compiling:$ac_tool_warned in
13484 yes:)
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13487 ac_tool_warned=yes ;;
13488 esac
13489 OTOOL=$ac_ct_OTOOL
13490 fi
13491 else
13492 OTOOL="$ac_cv_prog_OTOOL"
13493 fi
13494
13495 if test -n "$ac_tool_prefix"; then
13496 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13497 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13499 $as_echo_n "checking for $ac_word... " >&6; }
13500 if ${ac_cv_prog_OTOOL64+:} false; then :
13501 $as_echo_n "(cached) " >&6
13502 else
13503 if test -n "$OTOOL64"; then
13504 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13505 else
13506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13507 for as_dir in $PATH
13508 do
13509 IFS=$as_save_IFS
13510 test -z "$as_dir" && as_dir=.
13511 for ac_exec_ext in '' $ac_executable_extensions; do
13512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13513 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13515 break 2
13516 fi
13517 done
13518 done
13519 IFS=$as_save_IFS
13520
13521 fi
13522 fi
13523 OTOOL64=$ac_cv_prog_OTOOL64
13524 if test -n "$OTOOL64"; then
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13526 $as_echo "$OTOOL64" >&6; }
13527 else
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13529 $as_echo "no" >&6; }
13530 fi
13531
13532
13533 fi
13534 if test -z "$ac_cv_prog_OTOOL64"; then
13535 ac_ct_OTOOL64=$OTOOL64
13536 # Extract the first word of "otool64", so it can be a program name with args.
13537 set dummy otool64; ac_word=$2
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13539 $as_echo_n "checking for $ac_word... " >&6; }
13540 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13541 $as_echo_n "(cached) " >&6
13542 else
13543 if test -n "$ac_ct_OTOOL64"; then
13544 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13545 else
13546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13547 for as_dir in $PATH
13548 do
13549 IFS=$as_save_IFS
13550 test -z "$as_dir" && as_dir=.
13551 for ac_exec_ext in '' $ac_executable_extensions; do
13552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13553 ac_cv_prog_ac_ct_OTOOL64="otool64"
13554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13555 break 2
13556 fi
13557 done
13558 done
13559 IFS=$as_save_IFS
13560
13561 fi
13562 fi
13563 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13564 if test -n "$ac_ct_OTOOL64"; then
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13566 $as_echo "$ac_ct_OTOOL64" >&6; }
13567 else
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13569 $as_echo "no" >&6; }
13570 fi
13571
13572 if test "x$ac_ct_OTOOL64" = x; then
13573 OTOOL64=":"
13574 else
13575 case $cross_compiling:$ac_tool_warned in
13576 yes:)
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13578 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13579 ac_tool_warned=yes ;;
13580 esac
13581 OTOOL64=$ac_ct_OTOOL64
13582 fi
13583 else
13584 OTOOL64="$ac_cv_prog_OTOOL64"
13585 fi
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13614 $as_echo_n "checking for -single_module linker flag... " >&6; }
13615 if ${lt_cv_apple_cc_single_mod+:} false; then :
13616 $as_echo_n "(cached) " >&6
13617 else
13618 lt_cv_apple_cc_single_mod=no
13619 if test -z "${LT_MULTI_MODULE}"; then
13620 # By default we will add the -single_module flag. You can override
13621 # by either setting the environment variable LT_MULTI_MODULE
13622 # non-empty at configure time, or by adding -multi_module to the
13623 # link flags.
13624 rm -rf libconftest.dylib*
13625 echo "int foo(void){return 1;}" > conftest.c
13626 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13627 -dynamiclib -Wl,-single_module conftest.c" >&5
13628 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13629 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13630 _lt_result=$?
13631 # If there is a non-empty error log, and "single_module"
13632 # appears in it, assume the flag caused a linker warning
13633 if test -s conftest.err && $GREP single_module conftest.err; then
13634 cat conftest.err >&5
13635 # Otherwise, if the output was created with a 0 exit code from
13636 # the compiler, it worked.
13637 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13638 lt_cv_apple_cc_single_mod=yes
13639 else
13640 cat conftest.err >&5
13641 fi
13642 rm -rf libconftest.dylib*
13643 rm -f conftest.*
13644 fi
13645 fi
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13647 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13648
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13650 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13651 if ${lt_cv_ld_exported_symbols_list+:} false; then :
13652 $as_echo_n "(cached) " >&6
13653 else
13654 lt_cv_ld_exported_symbols_list=no
13655 save_LDFLAGS=$LDFLAGS
13656 echo "_main" > conftest.sym
13657 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13659 /* end confdefs.h. */
13660
13661 int
13662 main ()
13663 {
13664
13665 ;
13666 return 0;
13667 }
13668 _ACEOF
13669 if ac_fn_c_try_link "$LINENO"; then :
13670 lt_cv_ld_exported_symbols_list=yes
13671 else
13672 lt_cv_ld_exported_symbols_list=no
13673 fi
13674 rm -f core conftest.err conftest.$ac_objext \
13675 conftest$ac_exeext conftest.$ac_ext
13676 LDFLAGS="$save_LDFLAGS"
13677
13678 fi
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13680 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13681
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13683 $as_echo_n "checking for -force_load linker flag... " >&6; }
13684 if ${lt_cv_ld_force_load+:} false; then :
13685 $as_echo_n "(cached) " >&6
13686 else
13687 lt_cv_ld_force_load=no
13688 cat > conftest.c << _LT_EOF
13689 int forced_loaded() { return 2;}
13690 _LT_EOF
13691 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13692 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13693 echo "$AR cru libconftest.a conftest.o" >&5
13694 $AR cru libconftest.a conftest.o 2>&5
13695 echo "$RANLIB libconftest.a" >&5
13696 $RANLIB libconftest.a 2>&5
13697 cat > conftest.c << _LT_EOF
13698 int main() { return 0;}
13699 _LT_EOF
13700 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13701 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13702 _lt_result=$?
13703 if test -s conftest.err && $GREP force_load conftest.err; then
13704 cat conftest.err >&5
13705 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13706 lt_cv_ld_force_load=yes
13707 else
13708 cat conftest.err >&5
13709 fi
13710 rm -f conftest.err libconftest.a conftest conftest.c
13711 rm -rf conftest.dSYM
13712
13713 fi
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13715 $as_echo "$lt_cv_ld_force_load" >&6; }
13716 case $host_os in
13717 rhapsody* | darwin1.[012])
13718 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13719 darwin1.*)
13720 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13721 darwin*) # darwin 5.x on
13722 # if running on 10.5 or later, the deployment target defaults
13723 # to the OS version, if on x86, and 10.4, the deployment
13724 # target defaults to 10.4. Don't you love it?
13725 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13726 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13727 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13728 10.[012]*)
13729 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13730 10.*)
13731 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13732 esac
13733 ;;
13734 esac
13735 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13736 _lt_dar_single_mod='$single_module'
13737 fi
13738 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13739 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13740 else
13741 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13742 fi
13743 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13744 _lt_dsymutil='~$DSYMUTIL $lib || :'
13745 else
13746 _lt_dsymutil=
13747 fi
13748 ;;
13749 esac
13750
13751 for ac_header in dlfcn.h
13752 do :
13753 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13754 "
13755 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13756 cat >>confdefs.h <<_ACEOF
13757 #define HAVE_DLFCN_H 1
13758 _ACEOF
13759
13760 fi
13761
13762 done
13763
13764
13765
13766
13767
13768 # Set options
13769
13770
13771
13772 enable_dlopen=no
13773
13774
13775 enable_win32_dll=no
13776
13777
13778 # Check whether --enable-shared was given.
13779 if test "${enable_shared+set}" = set; then :
13780 enableval=$enable_shared; p=${PACKAGE-default}
13781 case $enableval in
13782 yes) enable_shared=yes ;;
13783 no) enable_shared=no ;;
13784 *)
13785 enable_shared=no
13786 # Look at the argument we got. We use all the common list separators.
13787 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13788 for pkg in $enableval; do
13789 IFS="$lt_save_ifs"
13790 if test "X$pkg" = "X$p"; then
13791 enable_shared=yes
13792 fi
13793 done
13794 IFS="$lt_save_ifs"
13795 ;;
13796 esac
13797 else
13798 enable_shared=yes
13799 fi
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811 # Check whether --with-pic was given.
13812 if test "${with_pic+set}" = set; then :
13813 withval=$with_pic; lt_p=${PACKAGE-default}
13814 case $withval in
13815 yes|no) pic_mode=$withval ;;
13816 *)
13817 pic_mode=default
13818 # Look at the argument we got. We use all the common list separators.
13819 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13820 for lt_pkg in $withval; do
13821 IFS="$lt_save_ifs"
13822 if test "X$lt_pkg" = "X$lt_p"; then
13823 pic_mode=yes
13824 fi
13825 done
13826 IFS="$lt_save_ifs"
13827 ;;
13828 esac
13829 else
13830 pic_mode=default
13831 fi
13832
13833
13834 test -z "$pic_mode" && pic_mode=default
13835
13836
13837
13838
13839
13840
13841
13842 # Check whether --enable-fast-install was given.
13843 if test "${enable_fast_install+set}" = set; then :
13844 enableval=$enable_fast_install; p=${PACKAGE-default}
13845 case $enableval in
13846 yes) enable_fast_install=yes ;;
13847 no) enable_fast_install=no ;;
13848 *)
13849 enable_fast_install=no
13850 # Look at the argument we got. We use all the common list separators.
13851 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13852 for pkg in $enableval; do
13853 IFS="$lt_save_ifs"
13854 if test "X$pkg" = "X$p"; then
13855 enable_fast_install=yes
13856 fi
13857 done
13858 IFS="$lt_save_ifs"
13859 ;;
13860 esac
13861 else
13862 enable_fast_install=yes
13863 fi
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875 # This can be used to rebuild libtool when needed
13876 LIBTOOL_DEPS="$ltmain"
13877
13878 # Always use our own libtool.
13879 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910 test -z "$LN_S" && LN_S="ln -s"
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925 if test -n "${ZSH_VERSION+set}" ; then
13926 setopt NO_GLOB_SUBST
13927 fi
13928
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13930 $as_echo_n "checking for objdir... " >&6; }
13931 if ${lt_cv_objdir+:} false; then :
13932 $as_echo_n "(cached) " >&6
13933 else
13934 rm -f .libs 2>/dev/null
13935 mkdir .libs 2>/dev/null
13936 if test -d .libs; then
13937 lt_cv_objdir=.libs
13938 else
13939 # MS-DOS does not allow filenames that begin with a dot.
13940 lt_cv_objdir=_libs
13941 fi
13942 rmdir .libs 2>/dev/null
13943 fi
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13945 $as_echo "$lt_cv_objdir" >&6; }
13946 objdir=$lt_cv_objdir
13947
13948
13949
13950
13951
13952 cat >>confdefs.h <<_ACEOF
13953 #define LT_OBJDIR "$lt_cv_objdir/"
13954 _ACEOF
13955
13956
13957
13958
13959 case $host_os in
13960 aix3*)
13961 # AIX sometimes has problems with the GCC collect2 program. For some
13962 # reason, if we set the COLLECT_NAMES environment variable, the problems
13963 # vanish in a puff of smoke.
13964 if test "X${COLLECT_NAMES+set}" != Xset; then
13965 COLLECT_NAMES=
13966 export COLLECT_NAMES
13967 fi
13968 ;;
13969 esac
13970
13971 # Global variables:
13972 ofile=libtool
13973 can_build_shared=yes
13974
13975 # All known linkers require a `.a' archive for static linking (except MSVC,
13976 # which needs '.lib').
13977 libext=a
13978
13979 with_gnu_ld="$lt_cv_prog_gnu_ld"
13980
13981 old_CC="$CC"
13982 old_CFLAGS="$CFLAGS"
13983
13984 # Set sane defaults for various variables
13985 test -z "$CC" && CC=cc
13986 test -z "$LTCC" && LTCC=$CC
13987 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13988 test -z "$LD" && LD=ld
13989 test -z "$ac_objext" && ac_objext=o
13990
13991 for cc_temp in $compiler""; do
13992 case $cc_temp in
13993 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13994 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13995 \-*) ;;
13996 *) break;;
13997 esac
13998 done
13999 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14000
14001
14002 # Only perform the check for file, if the check method requires it
14003 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14004 case $deplibs_check_method in
14005 file_magic*)
14006 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14008 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14009 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14010 $as_echo_n "(cached) " >&6
14011 else
14012 case $MAGIC_CMD in
14013 [\\/*] | ?:[\\/]*)
14014 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14015 ;;
14016 *)
14017 lt_save_MAGIC_CMD="$MAGIC_CMD"
14018 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14019 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14020 for ac_dir in $ac_dummy; do
14021 IFS="$lt_save_ifs"
14022 test -z "$ac_dir" && ac_dir=.
14023 if test -f $ac_dir/${ac_tool_prefix}file; then
14024 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14025 if test -n "$file_magic_test_file"; then
14026 case $deplibs_check_method in
14027 "file_magic "*)
14028 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14029 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14030 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14031 $EGREP "$file_magic_regex" > /dev/null; then
14032 :
14033 else
14034 cat <<_LT_EOF 1>&2
14035
14036 *** Warning: the command libtool uses to detect shared libraries,
14037 *** $file_magic_cmd, produces output that libtool cannot recognize.
14038 *** The result is that libtool may fail to recognize shared libraries
14039 *** as such. This will affect the creation of libtool libraries that
14040 *** depend on shared libraries, but programs linked with such libtool
14041 *** libraries will work regardless of this problem. Nevertheless, you
14042 *** may want to report the problem to your system manager and/or to
14043 *** bug-libtool@gnu.org
14044
14045 _LT_EOF
14046 fi ;;
14047 esac
14048 fi
14049 break
14050 fi
14051 done
14052 IFS="$lt_save_ifs"
14053 MAGIC_CMD="$lt_save_MAGIC_CMD"
14054 ;;
14055 esac
14056 fi
14057
14058 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14059 if test -n "$MAGIC_CMD"; then
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14061 $as_echo "$MAGIC_CMD" >&6; }
14062 else
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14064 $as_echo "no" >&6; }
14065 fi
14066
14067
14068
14069
14070
14071 if test -z "$lt_cv_path_MAGIC_CMD"; then
14072 if test -n "$ac_tool_prefix"; then
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14074 $as_echo_n "checking for file... " >&6; }
14075 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14076 $as_echo_n "(cached) " >&6
14077 else
14078 case $MAGIC_CMD in
14079 [\\/*] | ?:[\\/]*)
14080 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14081 ;;
14082 *)
14083 lt_save_MAGIC_CMD="$MAGIC_CMD"
14084 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14085 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14086 for ac_dir in $ac_dummy; do
14087 IFS="$lt_save_ifs"
14088 test -z "$ac_dir" && ac_dir=.
14089 if test -f $ac_dir/file; then
14090 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14091 if test -n "$file_magic_test_file"; then
14092 case $deplibs_check_method in
14093 "file_magic "*)
14094 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14095 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14096 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14097 $EGREP "$file_magic_regex" > /dev/null; then
14098 :
14099 else
14100 cat <<_LT_EOF 1>&2
14101
14102 *** Warning: the command libtool uses to detect shared libraries,
14103 *** $file_magic_cmd, produces output that libtool cannot recognize.
14104 *** The result is that libtool may fail to recognize shared libraries
14105 *** as such. This will affect the creation of libtool libraries that
14106 *** depend on shared libraries, but programs linked with such libtool
14107 *** libraries will work regardless of this problem. Nevertheless, you
14108 *** may want to report the problem to your system manager and/or to
14109 *** bug-libtool@gnu.org
14110
14111 _LT_EOF
14112 fi ;;
14113 esac
14114 fi
14115 break
14116 fi
14117 done
14118 IFS="$lt_save_ifs"
14119 MAGIC_CMD="$lt_save_MAGIC_CMD"
14120 ;;
14121 esac
14122 fi
14123
14124 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14125 if test -n "$MAGIC_CMD"; then
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14127 $as_echo "$MAGIC_CMD" >&6; }
14128 else
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14130 $as_echo "no" >&6; }
14131 fi
14132
14133
14134 else
14135 MAGIC_CMD=:
14136 fi
14137 fi
14138
14139 fi
14140 ;;
14141 esac
14142
14143 # Use C for the default configuration in the libtool script
14144
14145 lt_save_CC="$CC"
14146 ac_ext=c
14147 ac_cpp='$CPP $CPPFLAGS'
14148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14151
14152
14153 # Source file extension for C test sources.
14154 ac_ext=c
14155
14156 # Object file extension for compiled C test sources.
14157 objext=o
14158 objext=$objext
14159
14160 # Code to be used in simple compile tests
14161 lt_simple_compile_test_code="int some_variable = 0;"
14162
14163 # Code to be used in simple link tests
14164 lt_simple_link_test_code='int main(){return(0);}'
14165
14166
14167
14168
14169
14170
14171
14172 # If no C compiler was specified, use CC.
14173 LTCC=${LTCC-"$CC"}
14174
14175 # If no C compiler flags were specified, use CFLAGS.
14176 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14177
14178 # Allow CC to be a program name with arguments.
14179 compiler=$CC
14180
14181 # Save the default compiler, since it gets overwritten when the other
14182 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14183 compiler_DEFAULT=$CC
14184
14185 # save warnings/boilerplate of simple test code
14186 ac_outfile=conftest.$ac_objext
14187 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14188 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14189 _lt_compiler_boilerplate=`cat conftest.err`
14190 $RM conftest*
14191
14192 ac_outfile=conftest.$ac_objext
14193 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14194 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14195 _lt_linker_boilerplate=`cat conftest.err`
14196 $RM -r conftest*
14197
14198
14199 if test -n "$compiler"; then
14200
14201 lt_prog_compiler_no_builtin_flag=
14202
14203 if test "$GCC" = yes; then
14204 case $cc_basename in
14205 nvcc*)
14206 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14207 *)
14208 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14209 esac
14210
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14212 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14213 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14214 $as_echo_n "(cached) " >&6
14215 else
14216 lt_cv_prog_compiler_rtti_exceptions=no
14217 ac_outfile=conftest.$ac_objext
14218 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14219 lt_compiler_flag="-fno-rtti -fno-exceptions"
14220 # Insert the option either (1) after the last *FLAGS variable, or
14221 # (2) before a word containing "conftest.", or (3) at the end.
14222 # Note that $ac_compile itself does not contain backslashes and begins
14223 # with a dollar sign (not a hyphen), so the echo should work correctly.
14224 # The option is referenced via a variable to avoid confusing sed.
14225 lt_compile=`echo "$ac_compile" | $SED \
14226 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14227 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14228 -e 's:$: $lt_compiler_flag:'`
14229 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14230 (eval "$lt_compile" 2>conftest.err)
14231 ac_status=$?
14232 cat conftest.err >&5
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 if (exit $ac_status) && test -s "$ac_outfile"; then
14235 # The compiler can only warn and ignore the option if not recognized
14236 # So say no if there are warnings other than the usual output.
14237 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14238 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14239 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14240 lt_cv_prog_compiler_rtti_exceptions=yes
14241 fi
14242 fi
14243 $RM conftest*
14244
14245 fi
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14247 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14248
14249 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14250 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14251 else
14252 :
14253 fi
14254
14255 fi
14256
14257
14258
14259
14260
14261
14262 lt_prog_compiler_wl=
14263 lt_prog_compiler_pic=
14264 lt_prog_compiler_static=
14265
14266
14267 if test "$GCC" = yes; then
14268 lt_prog_compiler_wl='-Wl,'
14269 lt_prog_compiler_static='-static'
14270
14271 case $host_os in
14272 aix*)
14273 # All AIX code is PIC.
14274 if test "$host_cpu" = ia64; then
14275 # AIX 5 now supports IA64 processor
14276 lt_prog_compiler_static='-Bstatic'
14277 fi
14278 ;;
14279
14280 amigaos*)
14281 case $host_cpu in
14282 powerpc)
14283 # see comment about AmigaOS4 .so support
14284 lt_prog_compiler_pic='-fPIC'
14285 ;;
14286 m68k)
14287 # FIXME: we need at least 68020 code to build shared libraries, but
14288 # adding the `-m68020' flag to GCC prevents building anything better,
14289 # like `-m68040'.
14290 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14291 ;;
14292 esac
14293 ;;
14294
14295 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14296 # PIC is the default for these OSes.
14297 ;;
14298
14299 mingw* | cygwin* | pw32* | os2* | cegcc*)
14300 # This hack is so that the source file can tell whether it is being
14301 # built for inclusion in a dll (and should export symbols for example).
14302 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14303 # (--disable-auto-import) libraries
14304 lt_prog_compiler_pic='-DDLL_EXPORT'
14305 ;;
14306
14307 darwin* | rhapsody*)
14308 # PIC is the default on this platform
14309 # Common symbols not allowed in MH_DYLIB files
14310 lt_prog_compiler_pic='-fno-common'
14311 ;;
14312
14313 haiku*)
14314 # PIC is the default for Haiku.
14315 # The "-static" flag exists, but is broken.
14316 lt_prog_compiler_static=
14317 ;;
14318
14319 hpux*)
14320 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14321 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14322 # sets the default TLS model and affects inlining.
14323 case $host_cpu in
14324 hppa*64*)
14325 # +Z the default
14326 ;;
14327 *)
14328 lt_prog_compiler_pic='-fPIC'
14329 ;;
14330 esac
14331 ;;
14332
14333 interix[3-9]*)
14334 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14335 # Instead, we relocate shared libraries at runtime.
14336 ;;
14337
14338 msdosdjgpp*)
14339 # Just because we use GCC doesn't mean we suddenly get shared libraries
14340 # on systems that don't support them.
14341 lt_prog_compiler_can_build_shared=no
14342 enable_shared=no
14343 ;;
14344
14345 *nto* | *qnx*)
14346 # QNX uses GNU C++, but need to define -shared option too, otherwise
14347 # it will coredump.
14348 lt_prog_compiler_pic='-fPIC -shared'
14349 ;;
14350
14351 sysv4*MP*)
14352 if test -d /usr/nec; then
14353 lt_prog_compiler_pic=-Kconform_pic
14354 fi
14355 ;;
14356
14357 *)
14358 lt_prog_compiler_pic='-fPIC'
14359 ;;
14360 esac
14361
14362 case $cc_basename in
14363 nvcc*) # Cuda Compiler Driver 2.2
14364 lt_prog_compiler_wl='-Xlinker '
14365 if test -n "$lt_prog_compiler_pic"; then
14366 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14367 fi
14368 ;;
14369 esac
14370 else
14371 # PORTME Check for flag to pass linker flags through the system compiler.
14372 case $host_os in
14373 aix*)
14374 lt_prog_compiler_wl='-Wl,'
14375 if test "$host_cpu" = ia64; then
14376 # AIX 5 now supports IA64 processor
14377 lt_prog_compiler_static='-Bstatic'
14378 else
14379 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14380 fi
14381 ;;
14382
14383 mingw* | cygwin* | pw32* | os2* | cegcc*)
14384 # This hack is so that the source file can tell whether it is being
14385 # built for inclusion in a dll (and should export symbols for example).
14386 lt_prog_compiler_pic='-DDLL_EXPORT'
14387 ;;
14388
14389 hpux9* | hpux10* | hpux11*)
14390 lt_prog_compiler_wl='-Wl,'
14391 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14392 # not for PA HP-UX.
14393 case $host_cpu in
14394 hppa*64*|ia64*)
14395 # +Z the default
14396 ;;
14397 *)
14398 lt_prog_compiler_pic='+Z'
14399 ;;
14400 esac
14401 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14402 lt_prog_compiler_static='${wl}-a ${wl}archive'
14403 ;;
14404
14405 irix5* | irix6* | nonstopux*)
14406 lt_prog_compiler_wl='-Wl,'
14407 # PIC (with -KPIC) is the default.
14408 lt_prog_compiler_static='-non_shared'
14409 ;;
14410
14411 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14412 case $cc_basename in
14413 # old Intel for x86_64 which still supported -KPIC.
14414 ecc*)
14415 lt_prog_compiler_wl='-Wl,'
14416 lt_prog_compiler_pic='-KPIC'
14417 lt_prog_compiler_static='-static'
14418 ;;
14419 # icc used to be incompatible with GCC.
14420 # ICC 10 doesn't accept -KPIC any more.
14421 icc* | ifort*)
14422 lt_prog_compiler_wl='-Wl,'
14423 lt_prog_compiler_pic='-fPIC'
14424 lt_prog_compiler_static='-static'
14425 ;;
14426 # Lahey Fortran 8.1.
14427 lf95*)
14428 lt_prog_compiler_wl='-Wl,'
14429 lt_prog_compiler_pic='--shared'
14430 lt_prog_compiler_static='--static'
14431 ;;
14432 nagfor*)
14433 # NAG Fortran compiler
14434 lt_prog_compiler_wl='-Wl,-Wl,,'
14435 lt_prog_compiler_pic='-PIC'
14436 lt_prog_compiler_static='-Bstatic'
14437 ;;
14438 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14439 # Portland Group compilers (*not* the Pentium gcc compiler,
14440 # which looks to be a dead project)
14441 lt_prog_compiler_wl='-Wl,'
14442 lt_prog_compiler_pic='-fpic'
14443 lt_prog_compiler_static='-Bstatic'
14444 ;;
14445 ccc*)
14446 lt_prog_compiler_wl='-Wl,'
14447 # All Alpha code is PIC.
14448 lt_prog_compiler_static='-non_shared'
14449 ;;
14450 xl* | bgxl* | bgf* | mpixl*)
14451 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14452 lt_prog_compiler_wl='-Wl,'
14453 lt_prog_compiler_pic='-qpic'
14454 lt_prog_compiler_static='-qstaticlink'
14455 ;;
14456 *)
14457 case `$CC -V 2>&1 | sed 5q` in
14458 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14459 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14460 lt_prog_compiler_pic='-KPIC'
14461 lt_prog_compiler_static='-Bstatic'
14462 lt_prog_compiler_wl=''
14463 ;;
14464 *Sun\ F* | *Sun*Fortran*)
14465 lt_prog_compiler_pic='-KPIC'
14466 lt_prog_compiler_static='-Bstatic'
14467 lt_prog_compiler_wl='-Qoption ld '
14468 ;;
14469 *Sun\ C*)
14470 # Sun C 5.9
14471 lt_prog_compiler_pic='-KPIC'
14472 lt_prog_compiler_static='-Bstatic'
14473 lt_prog_compiler_wl='-Wl,'
14474 ;;
14475 *Intel*\ [CF]*Compiler*)
14476 lt_prog_compiler_wl='-Wl,'
14477 lt_prog_compiler_pic='-fPIC'
14478 lt_prog_compiler_static='-static'
14479 ;;
14480 *Portland\ Group*)
14481 lt_prog_compiler_wl='-Wl,'
14482 lt_prog_compiler_pic='-fpic'
14483 lt_prog_compiler_static='-Bstatic'
14484 ;;
14485 esac
14486 ;;
14487 esac
14488 ;;
14489
14490 newsos6)
14491 lt_prog_compiler_pic='-KPIC'
14492 lt_prog_compiler_static='-Bstatic'
14493 ;;
14494
14495 *nto* | *qnx*)
14496 # QNX uses GNU C++, but need to define -shared option too, otherwise
14497 # it will coredump.
14498 lt_prog_compiler_pic='-fPIC -shared'
14499 ;;
14500
14501 osf3* | osf4* | osf5*)
14502 lt_prog_compiler_wl='-Wl,'
14503 # All OSF/1 code is PIC.
14504 lt_prog_compiler_static='-non_shared'
14505 ;;
14506
14507 rdos*)
14508 lt_prog_compiler_static='-non_shared'
14509 ;;
14510
14511 solaris*)
14512 lt_prog_compiler_pic='-KPIC'
14513 lt_prog_compiler_static='-Bstatic'
14514 case $cc_basename in
14515 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14516 lt_prog_compiler_wl='-Qoption ld ';;
14517 *)
14518 lt_prog_compiler_wl='-Wl,';;
14519 esac
14520 ;;
14521
14522 sunos4*)
14523 lt_prog_compiler_wl='-Qoption ld '
14524 lt_prog_compiler_pic='-PIC'
14525 lt_prog_compiler_static='-Bstatic'
14526 ;;
14527
14528 sysv4 | sysv4.2uw2* | sysv4.3*)
14529 lt_prog_compiler_wl='-Wl,'
14530 lt_prog_compiler_pic='-KPIC'
14531 lt_prog_compiler_static='-Bstatic'
14532 ;;
14533
14534 sysv4*MP*)
14535 if test -d /usr/nec ;then
14536 lt_prog_compiler_pic='-Kconform_pic'
14537 lt_prog_compiler_static='-Bstatic'
14538 fi
14539 ;;
14540
14541 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14542 lt_prog_compiler_wl='-Wl,'
14543 lt_prog_compiler_pic='-KPIC'
14544 lt_prog_compiler_static='-Bstatic'
14545 ;;
14546
14547 unicos*)
14548 lt_prog_compiler_wl='-Wl,'
14549 lt_prog_compiler_can_build_shared=no
14550 ;;
14551
14552 uts4*)
14553 lt_prog_compiler_pic='-pic'
14554 lt_prog_compiler_static='-Bstatic'
14555 ;;
14556
14557 *)
14558 lt_prog_compiler_can_build_shared=no
14559 ;;
14560 esac
14561 fi
14562
14563 case $host_os in
14564 # For platforms which do not support PIC, -DPIC is meaningless:
14565 *djgpp*)
14566 lt_prog_compiler_pic=
14567 ;;
14568 *)
14569 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14570 ;;
14571 esac
14572
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14574 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14575 if ${lt_cv_prog_compiler_pic+:} false; then :
14576 $as_echo_n "(cached) " >&6
14577 else
14578 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14579 fi
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14581 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
14582 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14583
14584 #
14585 # Check to make sure the PIC flag actually works.
14586 #
14587 if test -n "$lt_prog_compiler_pic"; then
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14589 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14590 if ${lt_cv_prog_compiler_pic_works+:} false; then :
14591 $as_echo_n "(cached) " >&6
14592 else
14593 lt_cv_prog_compiler_pic_works=no
14594 ac_outfile=conftest.$ac_objext
14595 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14596 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14597 # Insert the option either (1) after the last *FLAGS variable, or
14598 # (2) before a word containing "conftest.", or (3) at the end.
14599 # Note that $ac_compile itself does not contain backslashes and begins
14600 # with a dollar sign (not a hyphen), so the echo should work correctly.
14601 # The option is referenced via a variable to avoid confusing sed.
14602 lt_compile=`echo "$ac_compile" | $SED \
14603 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14604 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14605 -e 's:$: $lt_compiler_flag:'`
14606 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14607 (eval "$lt_compile" 2>conftest.err)
14608 ac_status=$?
14609 cat conftest.err >&5
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 if (exit $ac_status) && test -s "$ac_outfile"; then
14612 # The compiler can only warn and ignore the option if not recognized
14613 # So say no if there are warnings other than the usual output.
14614 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14615 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14616 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14617 lt_cv_prog_compiler_pic_works=yes
14618 fi
14619 fi
14620 $RM conftest*
14621
14622 fi
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14624 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14625
14626 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14627 case $lt_prog_compiler_pic in
14628 "" | " "*) ;;
14629 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14630 esac
14631 else
14632 lt_prog_compiler_pic=
14633 lt_prog_compiler_can_build_shared=no
14634 fi
14635
14636 fi
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648 #
14649 # Check to make sure the static flag actually works.
14650 #
14651 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14653 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14654 if ${lt_cv_prog_compiler_static_works+:} false; then :
14655 $as_echo_n "(cached) " >&6
14656 else
14657 lt_cv_prog_compiler_static_works=no
14658 save_LDFLAGS="$LDFLAGS"
14659 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14660 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14661 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14662 # The linker can only warn and ignore the option if not recognized
14663 # So say no if there are warnings
14664 if test -s conftest.err; then
14665 # Append any errors to the config.log.
14666 cat conftest.err 1>&5
14667 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14668 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14669 if diff conftest.exp conftest.er2 >/dev/null; then
14670 lt_cv_prog_compiler_static_works=yes
14671 fi
14672 else
14673 lt_cv_prog_compiler_static_works=yes
14674 fi
14675 fi
14676 $RM -r conftest*
14677 LDFLAGS="$save_LDFLAGS"
14678
14679 fi
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14681 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14682
14683 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14684 :
14685 else
14686 lt_prog_compiler_static=
14687 fi
14688
14689
14690
14691
14692
14693
14694
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14696 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14697 if ${lt_cv_prog_compiler_c_o+:} false; then :
14698 $as_echo_n "(cached) " >&6
14699 else
14700 lt_cv_prog_compiler_c_o=no
14701 $RM -r conftest 2>/dev/null
14702 mkdir conftest
14703 cd conftest
14704 mkdir out
14705 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14706
14707 lt_compiler_flag="-o out/conftest2.$ac_objext"
14708 # Insert the option either (1) after the last *FLAGS variable, or
14709 # (2) before a word containing "conftest.", or (3) at the end.
14710 # Note that $ac_compile itself does not contain backslashes and begins
14711 # with a dollar sign (not a hyphen), so the echo should work correctly.
14712 lt_compile=`echo "$ac_compile" | $SED \
14713 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14714 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14715 -e 's:$: $lt_compiler_flag:'`
14716 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14717 (eval "$lt_compile" 2>out/conftest.err)
14718 ac_status=$?
14719 cat out/conftest.err >&5
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14722 then
14723 # The compiler can only warn and ignore the option if not recognized
14724 # So say no if there are warnings
14725 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14726 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14727 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14728 lt_cv_prog_compiler_c_o=yes
14729 fi
14730 fi
14731 chmod u+w . 2>&5
14732 $RM conftest*
14733 # SGI C++ compiler will create directory out/ii_files/ for
14734 # template instantiation
14735 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14736 $RM out/* && rmdir out
14737 cd ..
14738 $RM -r conftest
14739 $RM conftest*
14740
14741 fi
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14743 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14744
14745
14746
14747
14748
14749
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14751 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14752 if ${lt_cv_prog_compiler_c_o+:} false; then :
14753 $as_echo_n "(cached) " >&6
14754 else
14755 lt_cv_prog_compiler_c_o=no
14756 $RM -r conftest 2>/dev/null
14757 mkdir conftest
14758 cd conftest
14759 mkdir out
14760 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14761
14762 lt_compiler_flag="-o out/conftest2.$ac_objext"
14763 # Insert the option either (1) after the last *FLAGS variable, or
14764 # (2) before a word containing "conftest.", or (3) at the end.
14765 # Note that $ac_compile itself does not contain backslashes and begins
14766 # with a dollar sign (not a hyphen), so the echo should work correctly.
14767 lt_compile=`echo "$ac_compile" | $SED \
14768 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14769 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14770 -e 's:$: $lt_compiler_flag:'`
14771 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14772 (eval "$lt_compile" 2>out/conftest.err)
14773 ac_status=$?
14774 cat out/conftest.err >&5
14775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14777 then
14778 # The compiler can only warn and ignore the option if not recognized
14779 # So say no if there are warnings
14780 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14781 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14782 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14783 lt_cv_prog_compiler_c_o=yes
14784 fi
14785 fi
14786 chmod u+w . 2>&5
14787 $RM conftest*
14788 # SGI C++ compiler will create directory out/ii_files/ for
14789 # template instantiation
14790 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14791 $RM out/* && rmdir out
14792 cd ..
14793 $RM -r conftest
14794 $RM conftest*
14795
14796 fi
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14798 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14799
14800
14801
14802
14803 hard_links="nottested"
14804 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14805 # do not overwrite the value of need_locks provided by the user
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14807 $as_echo_n "checking if we can lock with hard links... " >&6; }
14808 hard_links=yes
14809 $RM conftest*
14810 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14811 touch conftest.a
14812 ln conftest.a conftest.b 2>&5 || hard_links=no
14813 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14815 $as_echo "$hard_links" >&6; }
14816 if test "$hard_links" = no; then
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14818 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14819 need_locks=warn
14820 fi
14821 else
14822 need_locks=no
14823 fi
14824
14825
14826
14827
14828
14829
14830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14831 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14832
14833 runpath_var=
14834 allow_undefined_flag=
14835 always_export_symbols=no
14836 archive_cmds=
14837 archive_expsym_cmds=
14838 compiler_needs_object=no
14839 enable_shared_with_static_runtimes=no
14840 export_dynamic_flag_spec=
14841 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14842 hardcode_automatic=no
14843 hardcode_direct=no
14844 hardcode_direct_absolute=no
14845 hardcode_libdir_flag_spec=
14846 hardcode_libdir_separator=
14847 hardcode_minus_L=no
14848 hardcode_shlibpath_var=unsupported
14849 inherit_rpath=no
14850 link_all_deplibs=unknown
14851 module_cmds=
14852 module_expsym_cmds=
14853 old_archive_from_new_cmds=
14854 old_archive_from_expsyms_cmds=
14855 thread_safe_flag_spec=
14856 whole_archive_flag_spec=
14857 # include_expsyms should be a list of space-separated symbols to be *always*
14858 # included in the symbol list
14859 include_expsyms=
14860 # exclude_expsyms can be an extended regexp of symbols to exclude
14861 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14862 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14863 # as well as any symbol that contains `d'.
14864 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14865 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14866 # platforms (ab)use it in PIC code, but their linkers get confused if
14867 # the symbol is explicitly referenced. Since portable code cannot
14868 # rely on this symbol name, it's probably fine to never include it in
14869 # preloaded symbol tables.
14870 # Exclude shared library initialization/finalization symbols.
14871 extract_expsyms_cmds=
14872
14873 case $host_os in
14874 cygwin* | mingw* | pw32* | cegcc*)
14875 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14876 # When not using gcc, we currently assume that we are using
14877 # Microsoft Visual C++.
14878 if test "$GCC" != yes; then
14879 with_gnu_ld=no
14880 fi
14881 ;;
14882 interix*)
14883 # we just hope/assume this is gcc and not c89 (= MSVC++)
14884 with_gnu_ld=yes
14885 ;;
14886 openbsd*)
14887 with_gnu_ld=no
14888 ;;
14889 esac
14890
14891 ld_shlibs=yes
14892
14893 # On some targets, GNU ld is compatible enough with the native linker
14894 # that we're better off using the native interface for both.
14895 lt_use_gnu_ld_interface=no
14896 if test "$with_gnu_ld" = yes; then
14897 case $host_os in
14898 aix*)
14899 # The AIX port of GNU ld has always aspired to compatibility
14900 # with the native linker. However, as the warning in the GNU ld
14901 # block says, versions before 2.19.5* couldn't really create working
14902 # shared libraries, regardless of the interface used.
14903 case `$LD -v 2>&1` in
14904 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14905 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14906 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14907 *)
14908 lt_use_gnu_ld_interface=yes
14909 ;;
14910 esac
14911 ;;
14912 *)
14913 lt_use_gnu_ld_interface=yes
14914 ;;
14915 esac
14916 fi
14917
14918 if test "$lt_use_gnu_ld_interface" = yes; then
14919 # If archive_cmds runs LD, not CC, wlarc should be empty
14920 wlarc='${wl}'
14921
14922 # Set some defaults for GNU ld with shared library support. These
14923 # are reset later if shared libraries are not supported. Putting them
14924 # here allows them to be overridden if necessary.
14925 runpath_var=LD_RUN_PATH
14926 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14927 export_dynamic_flag_spec='${wl}--export-dynamic'
14928 # ancient GNU ld didn't support --whole-archive et. al.
14929 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14930 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14931 else
14932 whole_archive_flag_spec=
14933 fi
14934 supports_anon_versioning=no
14935 case `$LD -v 2>&1` in
14936 *GNU\ gold*) supports_anon_versioning=yes ;;
14937 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14938 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14939 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14940 *\ 2.11.*) ;; # other 2.11 versions
14941 *) supports_anon_versioning=yes ;;
14942 esac
14943
14944 # See if GNU ld supports shared libraries.
14945 case $host_os in
14946 aix[3-9]*)
14947 # On AIX/PPC, the GNU linker is very broken
14948 if test "$host_cpu" != ia64; then
14949 ld_shlibs=no
14950 cat <<_LT_EOF 1>&2
14951
14952 *** Warning: the GNU linker, at least up to release 2.19, is reported
14953 *** to be unable to reliably create shared libraries on AIX.
14954 *** Therefore, libtool is disabling shared libraries support. If you
14955 *** really care for shared libraries, you may want to install binutils
14956 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14957 *** You will then need to restart the configuration process.
14958
14959 _LT_EOF
14960 fi
14961 ;;
14962
14963 amigaos*)
14964 case $host_cpu in
14965 powerpc)
14966 # see comment about AmigaOS4 .so support
14967 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14968 archive_expsym_cmds=''
14969 ;;
14970 m68k)
14971 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)'
14972 hardcode_libdir_flag_spec='-L$libdir'
14973 hardcode_minus_L=yes
14974 ;;
14975 esac
14976 ;;
14977
14978 beos*)
14979 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14980 allow_undefined_flag=unsupported
14981 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
14982 # support --undefined. This deserves some investigation. FIXME
14983 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14984 else
14985 ld_shlibs=no
14986 fi
14987 ;;
14988
14989 cygwin* | mingw* | pw32* | cegcc*)
14990 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14991 # as there is no search path for DLLs.
14992 hardcode_libdir_flag_spec='-L$libdir'
14993 export_dynamic_flag_spec='${wl}--export-all-symbols'
14994 allow_undefined_flag=unsupported
14995 always_export_symbols=no
14996 enable_shared_with_static_runtimes=yes
14997 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'
14998 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14999
15000 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15001 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15002 # If the export-symbols file already is a .def file (1st line
15003 # is EXPORTS), use it as is; otherwise, prepend...
15004 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15005 cp $export_symbols $output_objdir/$soname.def;
15006 else
15007 echo EXPORTS > $output_objdir/$soname.def;
15008 cat $export_symbols >> $output_objdir/$soname.def;
15009 fi~
15010 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15011 else
15012 ld_shlibs=no
15013 fi
15014 ;;
15015
15016 haiku*)
15017 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15018 link_all_deplibs=yes
15019 ;;
15020
15021 interix[3-9]*)
15022 hardcode_direct=no
15023 hardcode_shlibpath_var=no
15024 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15025 export_dynamic_flag_spec='${wl}-E'
15026 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15027 # Instead, shared libraries are loaded at an image base (0x10000000 by
15028 # default) and relocated if they conflict, which is a slow very memory
15029 # consuming and fragmenting process. To avoid this, we pick a random,
15030 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15031 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15032 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15033 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'
15034 ;;
15035
15036 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15037 tmp_diet=no
15038 if test "$host_os" = linux-dietlibc; then
15039 case $cc_basename in
15040 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15041 esac
15042 fi
15043 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15044 && test "$tmp_diet" = no
15045 then
15046 tmp_addflag=' $pic_flag'
15047 tmp_sharedflag='-shared'
15048 case $cc_basename,$host_cpu in
15049 pgcc*) # Portland Group C compiler
15050 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'
15051 tmp_addflag=' $pic_flag'
15052 ;;
15053 pgf77* | pgf90* | pgf95* | pgfortran*)
15054 # Portland Group f77 and f90 compilers
15055 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'
15056 tmp_addflag=' $pic_flag -Mnomain' ;;
15057 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15058 tmp_addflag=' -i_dynamic' ;;
15059 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15060 tmp_addflag=' -i_dynamic -nofor_main' ;;
15061 ifc* | ifort*) # Intel Fortran compiler
15062 tmp_addflag=' -nofor_main' ;;
15063 lf95*) # Lahey Fortran 8.1
15064 whole_archive_flag_spec=
15065 tmp_sharedflag='--shared' ;;
15066 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15067 tmp_sharedflag='-qmkshrobj'
15068 tmp_addflag= ;;
15069 nvcc*) # Cuda Compiler Driver 2.2
15070 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'
15071 compiler_needs_object=yes
15072 ;;
15073 esac
15074 case `$CC -V 2>&1 | sed 5q` in
15075 *Sun\ C*) # Sun C 5.9
15076 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'
15077 compiler_needs_object=yes
15078 tmp_sharedflag='-G' ;;
15079 *Sun\ F*) # Sun Fortran 8.3
15080 tmp_sharedflag='-G' ;;
15081 esac
15082 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15083
15084 if test "x$supports_anon_versioning" = xyes; then
15085 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15086 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15087 echo "local: *; };" >> $output_objdir/$libname.ver~
15088 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15089 fi
15090
15091 case $cc_basename in
15092 xlf* | bgf* | bgxlf* | mpixlf*)
15093 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15094 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15095 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15096 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15097 if test "x$supports_anon_versioning" = xyes; then
15098 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15099 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15100 echo "local: *; };" >> $output_objdir/$libname.ver~
15101 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15102 fi
15103 ;;
15104 esac
15105 else
15106 ld_shlibs=no
15107 fi
15108 ;;
15109
15110 netbsd*)
15111 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15112 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15113 wlarc=
15114 else
15115 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15116 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15117 fi
15118 ;;
15119
15120 solaris*)
15121 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15122 ld_shlibs=no
15123 cat <<_LT_EOF 1>&2
15124
15125 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15126 *** create shared libraries on Solaris systems. Therefore, libtool
15127 *** is disabling shared libraries support. We urge you to upgrade GNU
15128 *** binutils to release 2.9.1 or newer. Another option is to modify
15129 *** your PATH or compiler configuration so that the native linker is
15130 *** used, and then restart.
15131
15132 _LT_EOF
15133 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15134 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15135 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15136 else
15137 ld_shlibs=no
15138 fi
15139 ;;
15140
15141 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15142 case `$LD -v 2>&1` in
15143 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15144 ld_shlibs=no
15145 cat <<_LT_EOF 1>&2
15146
15147 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15148 *** reliably create shared libraries on SCO systems. Therefore, libtool
15149 *** is disabling shared libraries support. We urge you to upgrade GNU
15150 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15151 *** your PATH or compiler configuration so that the native linker is
15152 *** used, and then restart.
15153
15154 _LT_EOF
15155 ;;
15156 *)
15157 # For security reasons, it is highly recommended that you always
15158 # use absolute paths for naming shared libraries, and exclude the
15159 # DT_RUNPATH tag from executables and libraries. But doing so
15160 # requires that you compile everything twice, which is a pain.
15161 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15162 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15163 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15164 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15165 else
15166 ld_shlibs=no
15167 fi
15168 ;;
15169 esac
15170 ;;
15171
15172 sunos4*)
15173 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15174 wlarc=
15175 hardcode_direct=yes
15176 hardcode_shlibpath_var=no
15177 ;;
15178
15179 *)
15180 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15181 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15182 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15183 else
15184 ld_shlibs=no
15185 fi
15186 ;;
15187 esac
15188
15189 if test "$ld_shlibs" = no; then
15190 runpath_var=
15191 hardcode_libdir_flag_spec=
15192 export_dynamic_flag_spec=
15193 whole_archive_flag_spec=
15194 fi
15195 else
15196 # PORTME fill in a description of your system's linker (not GNU ld)
15197 case $host_os in
15198 aix3*)
15199 allow_undefined_flag=unsupported
15200 always_export_symbols=yes
15201 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'
15202 # Note: this linker hardcodes the directories in LIBPATH if there
15203 # are no directories specified by -L.
15204 hardcode_minus_L=yes
15205 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15206 # Neither direct hardcoding nor static linking is supported with a
15207 # broken collect2.
15208 hardcode_direct=unsupported
15209 fi
15210 ;;
15211
15212 aix[4-9]*)
15213 if test "$host_cpu" = ia64; then
15214 # On IA64, the linker does run time linking by default, so we don't
15215 # have to do anything special.
15216 aix_use_runtimelinking=no
15217 exp_sym_flag='-Bexport'
15218 no_entry_flag=""
15219 else
15220 # If we're using GNU nm, then we don't want the "-C" option.
15221 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15222 # Also, AIX nm treats weak defined symbols like other global
15223 # defined symbols, whereas GNU nm marks them as "W".
15224 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15225 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'
15226 else
15227 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'
15228 fi
15229 aix_use_runtimelinking=no
15230
15231 # Test if we are trying to use run time linking or normal
15232 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15233 # need to do runtime linking.
15234 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15235 for ld_flag in $LDFLAGS; do
15236 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15237 aix_use_runtimelinking=yes
15238 break
15239 fi
15240 done
15241 ;;
15242 esac
15243
15244 exp_sym_flag='-bexport'
15245 no_entry_flag='-bnoentry'
15246 fi
15247
15248 # When large executables or shared objects are built, AIX ld can
15249 # have problems creating the table of contents. If linking a library
15250 # or program results in "error TOC overflow" add -mminimal-toc to
15251 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15252 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15253
15254 archive_cmds=''
15255 hardcode_direct=yes
15256 hardcode_direct_absolute=yes
15257 hardcode_libdir_separator=':'
15258 link_all_deplibs=yes
15259 file_list_spec='${wl}-f,'
15260
15261 if test "$GCC" = yes; then
15262 case $host_os in aix4.[012]|aix4.[012].*)
15263 # We only want to do this on AIX 4.2 and lower, the check
15264 # below for broken collect2 doesn't work under 4.3+
15265 collect2name=`${CC} -print-prog-name=collect2`
15266 if test -f "$collect2name" &&
15267 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15268 then
15269 # We have reworked collect2
15270 :
15271 else
15272 # We have old collect2
15273 hardcode_direct=unsupported
15274 # It fails to find uninstalled libraries when the uninstalled
15275 # path is not listed in the libpath. Setting hardcode_minus_L
15276 # to unsupported forces relinking
15277 hardcode_minus_L=yes
15278 hardcode_libdir_flag_spec='-L$libdir'
15279 hardcode_libdir_separator=
15280 fi
15281 ;;
15282 esac
15283 shared_flag='-shared'
15284 if test "$aix_use_runtimelinking" = yes; then
15285 shared_flag="$shared_flag "'${wl}-G'
15286 fi
15287 else
15288 # not using gcc
15289 if test "$host_cpu" = ia64; then
15290 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15291 # chokes on -Wl,-G. The following line is correct:
15292 shared_flag='-G'
15293 else
15294 if test "$aix_use_runtimelinking" = yes; then
15295 shared_flag='${wl}-G'
15296 else
15297 shared_flag='${wl}-bM:SRE'
15298 fi
15299 fi
15300 fi
15301
15302 export_dynamic_flag_spec='${wl}-bexpall'
15303 # It seems that -bexpall does not export symbols beginning with
15304 # underscore (_), so it is better to generate a list of symbols to export.
15305 always_export_symbols=yes
15306 if test "$aix_use_runtimelinking" = yes; then
15307 # Warning - without using the other runtime loading flags (-brtl),
15308 # -berok will link without error, but may produce a broken library.
15309 allow_undefined_flag='-berok'
15310 # Determine the default libpath from the value encoded in an
15311 # empty executable.
15312 if test "${lt_cv_aix_libpath+set}" = set; then
15313 aix_libpath=$lt_cv_aix_libpath
15314 else
15315 if ${lt_cv_aix_libpath_+:} false; then :
15316 $as_echo_n "(cached) " >&6
15317 else
15318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15319 /* end confdefs.h. */
15320
15321 int
15322 main ()
15323 {
15324
15325 ;
15326 return 0;
15327 }
15328 _ACEOF
15329 if ac_fn_c_try_link "$LINENO"; then :
15330
15331 lt_aix_libpath_sed='
15332 /Import File Strings/,/^$/ {
15333 /^0/ {
15334 s/^0 *\([^ ]*\) *$/\1/
15335 p
15336 }
15337 }'
15338 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15339 # Check for a 64-bit object if we didn't find anything.
15340 if test -z "$lt_cv_aix_libpath_"; then
15341 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15342 fi
15343 fi
15344 rm -f core conftest.err conftest.$ac_objext \
15345 conftest$ac_exeext conftest.$ac_ext
15346 if test -z "$lt_cv_aix_libpath_"; then
15347 lt_cv_aix_libpath_="/usr/lib:/lib"
15348 fi
15349
15350 fi
15351
15352 aix_libpath=$lt_cv_aix_libpath_
15353 fi
15354
15355 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15356 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"
15357 else
15358 if test "$host_cpu" = ia64; then
15359 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15360 allow_undefined_flag="-z nodefs"
15361 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"
15362 else
15363 # Determine the default libpath from the value encoded in an
15364 # empty executable.
15365 if test "${lt_cv_aix_libpath+set}" = set; then
15366 aix_libpath=$lt_cv_aix_libpath
15367 else
15368 if ${lt_cv_aix_libpath_+:} false; then :
15369 $as_echo_n "(cached) " >&6
15370 else
15371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15372 /* end confdefs.h. */
15373
15374 int
15375 main ()
15376 {
15377
15378 ;
15379 return 0;
15380 }
15381 _ACEOF
15382 if ac_fn_c_try_link "$LINENO"; then :
15383
15384 lt_aix_libpath_sed='
15385 /Import File Strings/,/^$/ {
15386 /^0/ {
15387 s/^0 *\([^ ]*\) *$/\1/
15388 p
15389 }
15390 }'
15391 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15392 # Check for a 64-bit object if we didn't find anything.
15393 if test -z "$lt_cv_aix_libpath_"; then
15394 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15395 fi
15396 fi
15397 rm -f core conftest.err conftest.$ac_objext \
15398 conftest$ac_exeext conftest.$ac_ext
15399 if test -z "$lt_cv_aix_libpath_"; then
15400 lt_cv_aix_libpath_="/usr/lib:/lib"
15401 fi
15402
15403 fi
15404
15405 aix_libpath=$lt_cv_aix_libpath_
15406 fi
15407
15408 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15409 # Warning - without using the other run time loading flags,
15410 # -berok will link without error, but may produce a broken library.
15411 no_undefined_flag=' ${wl}-bernotok'
15412 allow_undefined_flag=' ${wl}-berok'
15413 if test "$with_gnu_ld" = yes; then
15414 # We only use this code for GNU lds that support --whole-archive.
15415 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15416 else
15417 # Exported symbols can be pulled into shared objects from archives
15418 whole_archive_flag_spec='$convenience'
15419 fi
15420 archive_cmds_need_lc=yes
15421 # This is similar to how AIX traditionally builds its shared libraries.
15422 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'
15423 fi
15424 fi
15425 ;;
15426
15427 amigaos*)
15428 case $host_cpu in
15429 powerpc)
15430 # see comment about AmigaOS4 .so support
15431 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15432 archive_expsym_cmds=''
15433 ;;
15434 m68k)
15435 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)'
15436 hardcode_libdir_flag_spec='-L$libdir'
15437 hardcode_minus_L=yes
15438 ;;
15439 esac
15440 ;;
15441
15442 bsdi[45]*)
15443 export_dynamic_flag_spec=-rdynamic
15444 ;;
15445
15446 cygwin* | mingw* | pw32* | cegcc*)
15447 # When not using gcc, we currently assume that we are using
15448 # Microsoft Visual C++.
15449 # hardcode_libdir_flag_spec is actually meaningless, as there is
15450 # no search path for DLLs.
15451 case $cc_basename in
15452 cl*)
15453 # Native MSVC
15454 hardcode_libdir_flag_spec=' '
15455 allow_undefined_flag=unsupported
15456 always_export_symbols=yes
15457 file_list_spec='@'
15458 # Tell ltmain to make .lib files, not .a files.
15459 libext=lib
15460 # Tell ltmain to make .dll files, not .so files.
15461 shrext_cmds=".dll"
15462 # FIXME: Setting linknames here is a bad hack.
15463 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15464 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15465 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15466 else
15467 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15468 fi~
15469 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15470 linknames='
15471 # The linker will not automatically build a static lib if we build a DLL.
15472 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15473 enable_shared_with_static_runtimes=yes
15474 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15475 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15476 # Don't use ranlib
15477 old_postinstall_cmds='chmod 644 $oldlib'
15478 postlink_cmds='lt_outputfile="@OUTPUT@"~
15479 lt_tool_outputfile="@TOOL_OUTPUT@"~
15480 case $lt_outputfile in
15481 *.exe|*.EXE) ;;
15482 *)
15483 lt_outputfile="$lt_outputfile.exe"
15484 lt_tool_outputfile="$lt_tool_outputfile.exe"
15485 ;;
15486 esac~
15487 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15488 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15489 $RM "$lt_outputfile.manifest";
15490 fi'
15491 ;;
15492 *)
15493 # Assume MSVC wrapper
15494 hardcode_libdir_flag_spec=' '
15495 allow_undefined_flag=unsupported
15496 # Tell ltmain to make .lib files, not .a files.
15497 libext=lib
15498 # Tell ltmain to make .dll files, not .so files.
15499 shrext_cmds=".dll"
15500 # FIXME: Setting linknames here is a bad hack.
15501 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15502 # The linker will automatically build a .lib file if we build a DLL.
15503 old_archive_from_new_cmds='true'
15504 # FIXME: Should let the user specify the lib program.
15505 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15506 enable_shared_with_static_runtimes=yes
15507 ;;
15508 esac
15509 ;;
15510
15511 darwin* | rhapsody*)
15512
15513
15514 archive_cmds_need_lc=no
15515 hardcode_direct=no
15516 hardcode_automatic=yes
15517 hardcode_shlibpath_var=unsupported
15518 if test "$lt_cv_ld_force_load" = "yes"; then
15519 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\"`'
15520
15521 else
15522 whole_archive_flag_spec=''
15523 fi
15524 link_all_deplibs=yes
15525 allow_undefined_flag="$_lt_dar_allow_undefined"
15526 case $cc_basename in
15527 ifort*) _lt_dar_can_shared=yes ;;
15528 *) _lt_dar_can_shared=$GCC ;;
15529 esac
15530 if test "$_lt_dar_can_shared" = "yes"; then
15531 output_verbose_link_cmd=func_echo_all
15532 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15533 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15534 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}"
15535 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}"
15536
15537 else
15538 ld_shlibs=no
15539 fi
15540
15541 ;;
15542
15543 dgux*)
15544 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15545 hardcode_libdir_flag_spec='-L$libdir'
15546 hardcode_shlibpath_var=no
15547 ;;
15548
15549 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15550 # support. Future versions do this automatically, but an explicit c++rt0.o
15551 # does not break anything, and helps significantly (at the cost of a little
15552 # extra space).
15553 freebsd2.2*)
15554 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15555 hardcode_libdir_flag_spec='-R$libdir'
15556 hardcode_direct=yes
15557 hardcode_shlibpath_var=no
15558 ;;
15559
15560 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15561 freebsd2.*)
15562 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15563 hardcode_direct=yes
15564 hardcode_minus_L=yes
15565 hardcode_shlibpath_var=no
15566 ;;
15567
15568 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15569 freebsd* | dragonfly*)
15570 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15571 hardcode_libdir_flag_spec='-R$libdir'
15572 hardcode_direct=yes
15573 hardcode_shlibpath_var=no
15574 ;;
15575
15576 hpux9*)
15577 if test "$GCC" = yes; then
15578 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'
15579 else
15580 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'
15581 fi
15582 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15583 hardcode_libdir_separator=:
15584 hardcode_direct=yes
15585
15586 # hardcode_minus_L: Not really in the search PATH,
15587 # but as the default location of the library.
15588 hardcode_minus_L=yes
15589 export_dynamic_flag_spec='${wl}-E'
15590 ;;
15591
15592 hpux10*)
15593 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15594 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15595 else
15596 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15597 fi
15598 if test "$with_gnu_ld" = no; then
15599 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15600 hardcode_libdir_separator=:
15601 hardcode_direct=yes
15602 hardcode_direct_absolute=yes
15603 export_dynamic_flag_spec='${wl}-E'
15604 # hardcode_minus_L: Not really in the search PATH,
15605 # but as the default location of the library.
15606 hardcode_minus_L=yes
15607 fi
15608 ;;
15609
15610 hpux11*)
15611 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15612 case $host_cpu in
15613 hppa*64*)
15614 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15615 ;;
15616 ia64*)
15617 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15618 ;;
15619 *)
15620 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15621 ;;
15622 esac
15623 else
15624 case $host_cpu in
15625 hppa*64*)
15626 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15627 ;;
15628 ia64*)
15629 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15630 ;;
15631 *)
15632
15633 # Older versions of the 11.00 compiler do not understand -b yet
15634 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15636 $as_echo_n "checking if $CC understands -b... " >&6; }
15637 if ${lt_cv_prog_compiler__b+:} false; then :
15638 $as_echo_n "(cached) " >&6
15639 else
15640 lt_cv_prog_compiler__b=no
15641 save_LDFLAGS="$LDFLAGS"
15642 LDFLAGS="$LDFLAGS -b"
15643 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15644 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15645 # The linker can only warn and ignore the option if not recognized
15646 # So say no if there are warnings
15647 if test -s conftest.err; then
15648 # Append any errors to the config.log.
15649 cat conftest.err 1>&5
15650 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15651 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15652 if diff conftest.exp conftest.er2 >/dev/null; then
15653 lt_cv_prog_compiler__b=yes
15654 fi
15655 else
15656 lt_cv_prog_compiler__b=yes
15657 fi
15658 fi
15659 $RM -r conftest*
15660 LDFLAGS="$save_LDFLAGS"
15661
15662 fi
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15664 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15665
15666 if test x"$lt_cv_prog_compiler__b" = xyes; then
15667 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15668 else
15669 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15670 fi
15671
15672 ;;
15673 esac
15674 fi
15675 if test "$with_gnu_ld" = no; then
15676 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15677 hardcode_libdir_separator=:
15678
15679 case $host_cpu in
15680 hppa*64*|ia64*)
15681 hardcode_direct=no
15682 hardcode_shlibpath_var=no
15683 ;;
15684 *)
15685 hardcode_direct=yes
15686 hardcode_direct_absolute=yes
15687 export_dynamic_flag_spec='${wl}-E'
15688
15689 # hardcode_minus_L: Not really in the search PATH,
15690 # but as the default location of the library.
15691 hardcode_minus_L=yes
15692 ;;
15693 esac
15694 fi
15695 ;;
15696
15697 irix5* | irix6* | nonstopux*)
15698 if test "$GCC" = yes; then
15699 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'
15700 # Try to use the -exported_symbol ld option, if it does not
15701 # work, assume that -exports_file does not work either and
15702 # implicitly export all symbols.
15703 # This should be the same for all languages, so no per-tag cache variable.
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15705 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15706 if ${lt_cv_irix_exported_symbol+:} false; then :
15707 $as_echo_n "(cached) " >&6
15708 else
15709 save_LDFLAGS="$LDFLAGS"
15710 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15712 /* end confdefs.h. */
15713 int foo (void) { return 0; }
15714 _ACEOF
15715 if ac_fn_c_try_link "$LINENO"; then :
15716 lt_cv_irix_exported_symbol=yes
15717 else
15718 lt_cv_irix_exported_symbol=no
15719 fi
15720 rm -f core conftest.err conftest.$ac_objext \
15721 conftest$ac_exeext conftest.$ac_ext
15722 LDFLAGS="$save_LDFLAGS"
15723 fi
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15725 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
15726 if test "$lt_cv_irix_exported_symbol" = yes; then
15727 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'
15728 fi
15729 else
15730 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'
15731 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'
15732 fi
15733 archive_cmds_need_lc='no'
15734 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15735 hardcode_libdir_separator=:
15736 inherit_rpath=yes
15737 link_all_deplibs=yes
15738 ;;
15739
15740 netbsd*)
15741 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15742 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15743 else
15744 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15745 fi
15746 hardcode_libdir_flag_spec='-R$libdir'
15747 hardcode_direct=yes
15748 hardcode_shlibpath_var=no
15749 ;;
15750
15751 newsos6)
15752 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15753 hardcode_direct=yes
15754 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15755 hardcode_libdir_separator=:
15756 hardcode_shlibpath_var=no
15757 ;;
15758
15759 *nto* | *qnx*)
15760 ;;
15761
15762 openbsd*)
15763 if test -f /usr/libexec/ld.so; then
15764 hardcode_direct=yes
15765 hardcode_shlibpath_var=no
15766 hardcode_direct_absolute=yes
15767 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15768 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15769 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15770 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15771 export_dynamic_flag_spec='${wl}-E'
15772 else
15773 case $host_os in
15774 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15775 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15776 hardcode_libdir_flag_spec='-R$libdir'
15777 ;;
15778 *)
15779 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15780 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15781 ;;
15782 esac
15783 fi
15784 else
15785 ld_shlibs=no
15786 fi
15787 ;;
15788
15789 os2*)
15790 hardcode_libdir_flag_spec='-L$libdir'
15791 hardcode_minus_L=yes
15792 allow_undefined_flag=unsupported
15793 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'
15794 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15795 ;;
15796
15797 osf3*)
15798 if test "$GCC" = yes; then
15799 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15800 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'
15801 else
15802 allow_undefined_flag=' -expect_unresolved \*'
15803 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'
15804 fi
15805 archive_cmds_need_lc='no'
15806 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15807 hardcode_libdir_separator=:
15808 ;;
15809
15810 osf4* | osf5*) # as osf3* with the addition of -msym flag
15811 if test "$GCC" = yes; then
15812 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15813 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'
15814 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15815 else
15816 allow_undefined_flag=' -expect_unresolved \*'
15817 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'
15818 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~
15819 $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'
15820
15821 # Both c and cxx compiler support -rpath directly
15822 hardcode_libdir_flag_spec='-rpath $libdir'
15823 fi
15824 archive_cmds_need_lc='no'
15825 hardcode_libdir_separator=:
15826 ;;
15827
15828 solaris*)
15829 no_undefined_flag=' -z defs'
15830 if test "$GCC" = yes; then
15831 wlarc='${wl}'
15832 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15833 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15834 $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'
15835 else
15836 case `$CC -V 2>&1` in
15837 *"Compilers 5.0"*)
15838 wlarc=''
15839 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15840 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15841 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15842 ;;
15843 *)
15844 wlarc='${wl}'
15845 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15846 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15847 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15848 ;;
15849 esac
15850 fi
15851 hardcode_libdir_flag_spec='-R$libdir'
15852 hardcode_shlibpath_var=no
15853 case $host_os in
15854 solaris2.[0-5] | solaris2.[0-5].*) ;;
15855 *)
15856 # The compiler driver will combine and reorder linker options,
15857 # but understands `-z linker_flag'. GCC discards it without `$wl',
15858 # but is careful enough not to reorder.
15859 # Supported since Solaris 2.6 (maybe 2.5.1?)
15860 if test "$GCC" = yes; then
15861 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15862 else
15863 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15864 fi
15865 ;;
15866 esac
15867 link_all_deplibs=yes
15868 ;;
15869
15870 sunos4*)
15871 if test "x$host_vendor" = xsequent; then
15872 # Use $CC to link under sequent, because it throws in some extra .o
15873 # files that make .init and .fini sections work.
15874 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15875 else
15876 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15877 fi
15878 hardcode_libdir_flag_spec='-L$libdir'
15879 hardcode_direct=yes
15880 hardcode_minus_L=yes
15881 hardcode_shlibpath_var=no
15882 ;;
15883
15884 sysv4)
15885 case $host_vendor in
15886 sni)
15887 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15888 hardcode_direct=yes # is this really true???
15889 ;;
15890 siemens)
15891 ## LD is ld it makes a PLAMLIB
15892 ## CC just makes a GrossModule.
15893 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15894 reload_cmds='$CC -r -o $output$reload_objs'
15895 hardcode_direct=no
15896 ;;
15897 motorola)
15898 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15899 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15900 ;;
15901 esac
15902 runpath_var='LD_RUN_PATH'
15903 hardcode_shlibpath_var=no
15904 ;;
15905
15906 sysv4.3*)
15907 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15908 hardcode_shlibpath_var=no
15909 export_dynamic_flag_spec='-Bexport'
15910 ;;
15911
15912 sysv4*MP*)
15913 if test -d /usr/nec; then
15914 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15915 hardcode_shlibpath_var=no
15916 runpath_var=LD_RUN_PATH
15917 hardcode_runpath_var=yes
15918 ld_shlibs=yes
15919 fi
15920 ;;
15921
15922 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15923 no_undefined_flag='${wl}-z,text'
15924 archive_cmds_need_lc=no
15925 hardcode_shlibpath_var=no
15926 runpath_var='LD_RUN_PATH'
15927
15928 if test "$GCC" = yes; then
15929 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15930 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15931 else
15932 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15933 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15934 fi
15935 ;;
15936
15937 sysv5* | sco3.2v5* | sco5v6*)
15938 # Note: We can NOT use -z defs as we might desire, because we do not
15939 # link with -lc, and that would cause any symbols used from libc to
15940 # always be unresolved, which means just about no library would
15941 # ever link correctly. If we're not using GNU ld we use -z text
15942 # though, which does catch some bad symbols but isn't as heavy-handed
15943 # as -z defs.
15944 no_undefined_flag='${wl}-z,text'
15945 allow_undefined_flag='${wl}-z,nodefs'
15946 archive_cmds_need_lc=no
15947 hardcode_shlibpath_var=no
15948 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15949 hardcode_libdir_separator=':'
15950 link_all_deplibs=yes
15951 export_dynamic_flag_spec='${wl}-Bexport'
15952 runpath_var='LD_RUN_PATH'
15953
15954 if test "$GCC" = yes; then
15955 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15956 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15957 else
15958 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15959 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15960 fi
15961 ;;
15962
15963 uts4*)
15964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15965 hardcode_libdir_flag_spec='-L$libdir'
15966 hardcode_shlibpath_var=no
15967 ;;
15968
15969 *)
15970 ld_shlibs=no
15971 ;;
15972 esac
15973
15974 if test x$host_vendor = xsni; then
15975 case $host in
15976 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15977 export_dynamic_flag_spec='${wl}-Blargedynsym'
15978 ;;
15979 esac
15980 fi
15981 fi
15982
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15984 $as_echo "$ld_shlibs" >&6; }
15985 test "$ld_shlibs" = no && can_build_shared=no
15986
15987 with_gnu_ld=$with_gnu_ld
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003 #
16004 # Do we need to explicitly link libc?
16005 #
16006 case "x$archive_cmds_need_lc" in
16007 x|xyes)
16008 # Assume -lc should be added
16009 archive_cmds_need_lc=yes
16010
16011 if test "$enable_shared" = yes && test "$GCC" = yes; then
16012 case $archive_cmds in
16013 *'~'*)
16014 # FIXME: we may have to deal with multi-command sequences.
16015 ;;
16016 '$CC '*)
16017 # Test whether the compiler implicitly links with -lc since on some
16018 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16019 # to ld, don't add -lc before -lgcc.
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16021 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16022 if ${lt_cv_archive_cmds_need_lc+:} false; then :
16023 $as_echo_n "(cached) " >&6
16024 else
16025 $RM conftest*
16026 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16027
16028 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16029 (eval $ac_compile) 2>&5
16030 ac_status=$?
16031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16032 test $ac_status = 0; } 2>conftest.err; then
16033 soname=conftest
16034 lib=conftest
16035 libobjs=conftest.$ac_objext
16036 deplibs=
16037 wl=$lt_prog_compiler_wl
16038 pic_flag=$lt_prog_compiler_pic
16039 compiler_flags=-v
16040 linker_flags=-v
16041 verstring=
16042 output_objdir=.
16043 libname=conftest
16044 lt_save_allow_undefined_flag=$allow_undefined_flag
16045 allow_undefined_flag=
16046 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16047 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16048 ac_status=$?
16049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16050 test $ac_status = 0; }
16051 then
16052 lt_cv_archive_cmds_need_lc=no
16053 else
16054 lt_cv_archive_cmds_need_lc=yes
16055 fi
16056 allow_undefined_flag=$lt_save_allow_undefined_flag
16057 else
16058 cat conftest.err 1>&5
16059 fi
16060 $RM conftest*
16061
16062 fi
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16064 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16065 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16066 ;;
16067 esac
16068 fi
16069 ;;
16070 esac
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
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16224 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16225
16226 if test "$GCC" = yes; then
16227 case $host_os in
16228 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16229 *) lt_awk_arg="/^libraries:/" ;;
16230 esac
16231 case $host_os in
16232 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16233 *) lt_sed_strip_eq="s,=/,/,g" ;;
16234 esac
16235 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16236 case $lt_search_path_spec in
16237 *\;*)
16238 # if the path contains ";" then we assume it to be the separator
16239 # otherwise default to the standard path separator (i.e. ":") - it is
16240 # assumed that no part of a normal pathname contains ";" but that should
16241 # okay in the real world where ";" in dirpaths is itself problematic.
16242 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16243 ;;
16244 *)
16245 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16246 ;;
16247 esac
16248 # Ok, now we have the path, separated by spaces, we can step through it
16249 # and add multilib dir if necessary.
16250 lt_tmp_lt_search_path_spec=
16251 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16252 for lt_sys_path in $lt_search_path_spec; do
16253 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16254 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16255 else
16256 test -d "$lt_sys_path" && \
16257 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16258 fi
16259 done
16260 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16261 BEGIN {RS=" "; FS="/|\n";} {
16262 lt_foo="";
16263 lt_count=0;
16264 for (lt_i = NF; lt_i > 0; lt_i--) {
16265 if ($lt_i != "" && $lt_i != ".") {
16266 if ($lt_i == "..") {
16267 lt_count++;
16268 } else {
16269 if (lt_count == 0) {
16270 lt_foo="/" $lt_i lt_foo;
16271 } else {
16272 lt_count--;
16273 }
16274 }
16275 }
16276 }
16277 if (lt_foo != "") { lt_freq[lt_foo]++; }
16278 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16279 }'`
16280 # AWK program above erroneously prepends '/' to C:/dos/paths
16281 # for these hosts.
16282 case $host_os in
16283 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16284 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16285 esac
16286 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16287 else
16288 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16289 fi
16290 library_names_spec=
16291 libname_spec='lib$name'
16292 soname_spec=
16293 shrext_cmds=".so"
16294 postinstall_cmds=
16295 postuninstall_cmds=
16296 finish_cmds=
16297 finish_eval=
16298 shlibpath_var=
16299 shlibpath_overrides_runpath=unknown
16300 version_type=none
16301 dynamic_linker="$host_os ld.so"
16302 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16303 need_lib_prefix=unknown
16304 hardcode_into_libs=no
16305
16306 # when you set need_version to no, make sure it does not cause -set_version
16307 # flags to be left without arguments
16308 need_version=unknown
16309
16310 case $host_os in
16311 aix3*)
16312 version_type=linux # correct to gnu/linux during the next big refactor
16313 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16314 shlibpath_var=LIBPATH
16315
16316 # AIX 3 has no versioning support, so we append a major version to the name.
16317 soname_spec='${libname}${release}${shared_ext}$major'
16318 ;;
16319
16320 aix[4-9]*)
16321 version_type=linux # correct to gnu/linux during the next big refactor
16322 need_lib_prefix=no
16323 need_version=no
16324 hardcode_into_libs=yes
16325 if test "$host_cpu" = ia64; then
16326 # AIX 5 supports IA64
16327 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16328 shlibpath_var=LD_LIBRARY_PATH
16329 else
16330 # With GCC up to 2.95.x, collect2 would create an import file
16331 # for dependence libraries. The import file would start with
16332 # the line `#! .'. This would cause the generated library to
16333 # depend on `.', always an invalid library. This was fixed in
16334 # development snapshots of GCC prior to 3.0.
16335 case $host_os in
16336 aix4 | aix4.[01] | aix4.[01].*)
16337 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16338 echo ' yes '
16339 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16340 :
16341 else
16342 can_build_shared=no
16343 fi
16344 ;;
16345 esac
16346 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16347 # soname into executable. Probably we can add versioning support to
16348 # collect2, so additional links can be useful in future.
16349 if test "$aix_use_runtimelinking" = yes; then
16350 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16351 # instead of lib<name>.a to let people know that these are not
16352 # typical AIX shared libraries.
16353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16354 else
16355 # We preserve .a as extension for shared libraries through AIX4.2
16356 # and later when we are not doing run time linking.
16357 library_names_spec='${libname}${release}.a $libname.a'
16358 soname_spec='${libname}${release}${shared_ext}$major'
16359 fi
16360 shlibpath_var=LIBPATH
16361 fi
16362 ;;
16363
16364 amigaos*)
16365 case $host_cpu in
16366 powerpc)
16367 # Since July 2007 AmigaOS4 officially supports .so libraries.
16368 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16370 ;;
16371 m68k)
16372 library_names_spec='$libname.ixlibrary $libname.a'
16373 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16374 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'
16375 ;;
16376 esac
16377 ;;
16378
16379 beos*)
16380 library_names_spec='${libname}${shared_ext}'
16381 dynamic_linker="$host_os ld.so"
16382 shlibpath_var=LIBRARY_PATH
16383 ;;
16384
16385 bsdi[45]*)
16386 version_type=linux # correct to gnu/linux during the next big refactor
16387 need_version=no
16388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16389 soname_spec='${libname}${release}${shared_ext}$major'
16390 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16391 shlibpath_var=LD_LIBRARY_PATH
16392 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16393 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16394 # the default ld.so.conf also contains /usr/contrib/lib and
16395 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16396 # libtool to hard-code these into programs
16397 ;;
16398
16399 cygwin* | mingw* | pw32* | cegcc*)
16400 version_type=windows
16401 shrext_cmds=".dll"
16402 need_version=no
16403 need_lib_prefix=no
16404
16405 case $GCC,$cc_basename in
16406 yes,*)
16407 # gcc
16408 library_names_spec='$libname.dll.a'
16409 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16410 postinstall_cmds='base_file=`basename \${file}`~
16411 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16412 dldir=$destdir/`dirname \$dlpath`~
16413 test -d \$dldir || mkdir -p \$dldir~
16414 $install_prog $dir/$dlname \$dldir/$dlname~
16415 chmod a+x \$dldir/$dlname~
16416 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16417 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16418 fi'
16419 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16420 dlpath=$dir/\$dldll~
16421 $RM \$dlpath'
16422 shlibpath_overrides_runpath=yes
16423
16424 case $host_os in
16425 cygwin*)
16426 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16427 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16428
16429 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16430 ;;
16431 mingw* | cegcc*)
16432 # MinGW DLLs use traditional 'lib' prefix
16433 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16434 ;;
16435 pw32*)
16436 # pw32 DLLs use 'pw' prefix rather than 'lib'
16437 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16438 ;;
16439 esac
16440 dynamic_linker='Win32 ld.exe'
16441 ;;
16442
16443 *,cl*)
16444 # Native MSVC
16445 libname_spec='$name'
16446 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16447 library_names_spec='${libname}.dll.lib'
16448
16449 case $build_os in
16450 mingw*)
16451 sys_lib_search_path_spec=
16452 lt_save_ifs=$IFS
16453 IFS=';'
16454 for lt_path in $LIB
16455 do
16456 IFS=$lt_save_ifs
16457 # Let DOS variable expansion print the short 8.3 style file name.
16458 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16459 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16460 done
16461 IFS=$lt_save_ifs
16462 # Convert to MSYS style.
16463 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16464 ;;
16465 cygwin*)
16466 # Convert to unix form, then to dos form, then back to unix form
16467 # but this time dos style (no spaces!) so that the unix form looks
16468 # like /cygdrive/c/PROGRA~1:/cygdr...
16469 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16470 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16471 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16472 ;;
16473 *)
16474 sys_lib_search_path_spec="$LIB"
16475 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16476 # It is most probably a Windows format PATH.
16477 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16478 else
16479 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16480 fi
16481 # FIXME: find the short name or the path components, as spaces are
16482 # common. (e.g. "Program Files" -> "PROGRA~1")
16483 ;;
16484 esac
16485
16486 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16487 postinstall_cmds='base_file=`basename \${file}`~
16488 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16489 dldir=$destdir/`dirname \$dlpath`~
16490 test -d \$dldir || mkdir -p \$dldir~
16491 $install_prog $dir/$dlname \$dldir/$dlname'
16492 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16493 dlpath=$dir/\$dldll~
16494 $RM \$dlpath'
16495 shlibpath_overrides_runpath=yes
16496 dynamic_linker='Win32 link.exe'
16497 ;;
16498
16499 *)
16500 # Assume MSVC wrapper
16501 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16502 dynamic_linker='Win32 ld.exe'
16503 ;;
16504 esac
16505 # FIXME: first we should search . and the directory the executable is in
16506 shlibpath_var=PATH
16507 ;;
16508
16509 darwin* | rhapsody*)
16510 dynamic_linker="$host_os dyld"
16511 version_type=darwin
16512 need_lib_prefix=no
16513 need_version=no
16514 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16515 soname_spec='${libname}${release}${major}$shared_ext'
16516 shlibpath_overrides_runpath=yes
16517 shlibpath_var=DYLD_LIBRARY_PATH
16518 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16519
16520 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16521 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16522 ;;
16523
16524 dgux*)
16525 version_type=linux # correct to gnu/linux during the next big refactor
16526 need_lib_prefix=no
16527 need_version=no
16528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16529 soname_spec='${libname}${release}${shared_ext}$major'
16530 shlibpath_var=LD_LIBRARY_PATH
16531 ;;
16532
16533 freebsd* | dragonfly*)
16534 # DragonFly does not have aout. When/if they implement a new
16535 # versioning mechanism, adjust this.
16536 if test -x /usr/bin/objformat; then
16537 objformat=`/usr/bin/objformat`
16538 else
16539 case $host_os in
16540 freebsd[23].*) objformat=aout ;;
16541 *) objformat=elf ;;
16542 esac
16543 fi
16544 version_type=freebsd-$objformat
16545 case $version_type in
16546 freebsd-elf*)
16547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16548 need_version=no
16549 need_lib_prefix=no
16550 ;;
16551 freebsd-*)
16552 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16553 need_version=yes
16554 ;;
16555 esac
16556 shlibpath_var=LD_LIBRARY_PATH
16557 case $host_os in
16558 freebsd2.*)
16559 shlibpath_overrides_runpath=yes
16560 ;;
16561 freebsd3.[01]* | freebsdelf3.[01]*)
16562 shlibpath_overrides_runpath=yes
16563 hardcode_into_libs=yes
16564 ;;
16565 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16566 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16567 shlibpath_overrides_runpath=no
16568 hardcode_into_libs=yes
16569 ;;
16570 *) # from 4.6 on, and DragonFly
16571 shlibpath_overrides_runpath=yes
16572 hardcode_into_libs=yes
16573 ;;
16574 esac
16575 ;;
16576
16577 gnu*)
16578 version_type=linux # correct to gnu/linux during the next big refactor
16579 need_lib_prefix=no
16580 need_version=no
16581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16582 soname_spec='${libname}${release}${shared_ext}$major'
16583 shlibpath_var=LD_LIBRARY_PATH
16584 shlibpath_overrides_runpath=no
16585 hardcode_into_libs=yes
16586 ;;
16587
16588 haiku*)
16589 version_type=linux # correct to gnu/linux during the next big refactor
16590 need_lib_prefix=no
16591 need_version=no
16592 dynamic_linker="$host_os runtime_loader"
16593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16594 soname_spec='${libname}${release}${shared_ext}$major'
16595 shlibpath_var=LIBRARY_PATH
16596 shlibpath_overrides_runpath=yes
16597 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16598 hardcode_into_libs=yes
16599 ;;
16600
16601 hpux9* | hpux10* | hpux11*)
16602 # Give a soname corresponding to the major version so that dld.sl refuses to
16603 # link against other versions.
16604 version_type=sunos
16605 need_lib_prefix=no
16606 need_version=no
16607 case $host_cpu in
16608 ia64*)
16609 shrext_cmds='.so'
16610 hardcode_into_libs=yes
16611 dynamic_linker="$host_os dld.so"
16612 shlibpath_var=LD_LIBRARY_PATH
16613 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16615 soname_spec='${libname}${release}${shared_ext}$major'
16616 if test "X$HPUX_IA64_MODE" = X32; then
16617 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16618 else
16619 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16620 fi
16621 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16622 ;;
16623 hppa*64*)
16624 shrext_cmds='.sl'
16625 hardcode_into_libs=yes
16626 dynamic_linker="$host_os dld.sl"
16627 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16628 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16630 soname_spec='${libname}${release}${shared_ext}$major'
16631 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16632 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16633 ;;
16634 *)
16635 shrext_cmds='.sl'
16636 dynamic_linker="$host_os dld.sl"
16637 shlibpath_var=SHLIB_PATH
16638 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16640 soname_spec='${libname}${release}${shared_ext}$major'
16641 ;;
16642 esac
16643 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16644 postinstall_cmds='chmod 555 $lib'
16645 # or fails outright, so override atomically:
16646 install_override_mode=555
16647 ;;
16648
16649 interix[3-9]*)
16650 version_type=linux # correct to gnu/linux during the next big refactor
16651 need_lib_prefix=no
16652 need_version=no
16653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16654 soname_spec='${libname}${release}${shared_ext}$major'
16655 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16656 shlibpath_var=LD_LIBRARY_PATH
16657 shlibpath_overrides_runpath=no
16658 hardcode_into_libs=yes
16659 ;;
16660
16661 irix5* | irix6* | nonstopux*)
16662 case $host_os in
16663 nonstopux*) version_type=nonstopux ;;
16664 *)
16665 if test "$lt_cv_prog_gnu_ld" = yes; then
16666 version_type=linux # correct to gnu/linux during the next big refactor
16667 else
16668 version_type=irix
16669 fi ;;
16670 esac
16671 need_lib_prefix=no
16672 need_version=no
16673 soname_spec='${libname}${release}${shared_ext}$major'
16674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16675 case $host_os in
16676 irix5* | nonstopux*)
16677 libsuff= shlibsuff=
16678 ;;
16679 *)
16680 case $LD in # libtool.m4 will add one of these switches to LD
16681 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16682 libsuff= shlibsuff= libmagic=32-bit;;
16683 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16684 libsuff=32 shlibsuff=N32 libmagic=N32;;
16685 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16686 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16687 *) libsuff= shlibsuff= libmagic=never-match;;
16688 esac
16689 ;;
16690 esac
16691 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16692 shlibpath_overrides_runpath=no
16693 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16694 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16695 hardcode_into_libs=yes
16696 ;;
16697
16698 # No shared lib support for Linux oldld, aout, or coff.
16699 linux*oldld* | linux*aout* | linux*coff*)
16700 dynamic_linker=no
16701 ;;
16702
16703 # This must be glibc/ELF.
16704 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16705 version_type=linux # correct to gnu/linux during the next big refactor
16706 need_lib_prefix=no
16707 need_version=no
16708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16709 soname_spec='${libname}${release}${shared_ext}$major'
16710 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16711 shlibpath_var=LD_LIBRARY_PATH
16712 shlibpath_overrides_runpath=no
16713
16714 # Some binutils ld are patched to set DT_RUNPATH
16715 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16716 $as_echo_n "(cached) " >&6
16717 else
16718 lt_cv_shlibpath_overrides_runpath=no
16719 save_LDFLAGS=$LDFLAGS
16720 save_libdir=$libdir
16721 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16722 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16724 /* end confdefs.h. */
16725
16726 int
16727 main ()
16728 {
16729
16730 ;
16731 return 0;
16732 }
16733 _ACEOF
16734 if ac_fn_c_try_link "$LINENO"; then :
16735 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16736 lt_cv_shlibpath_overrides_runpath=yes
16737 fi
16738 fi
16739 rm -f core conftest.err conftest.$ac_objext \
16740 conftest$ac_exeext conftest.$ac_ext
16741 LDFLAGS=$save_LDFLAGS
16742 libdir=$save_libdir
16743
16744 fi
16745
16746 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16747
16748 # This implies no fast_install, which is unacceptable.
16749 # Some rework will be needed to allow for fast_install
16750 # before this can be enabled.
16751 hardcode_into_libs=yes
16752
16753 # Add ABI-specific directories to the system library path.
16754 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16755
16756 # Append ld.so.conf contents to the search path
16757 if test -f /etc/ld.so.conf; then
16758 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' ' '`
16759 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16760
16761 fi
16762
16763 # We used to test for /lib/ld.so.1 and disable shared libraries on
16764 # powerpc, because MkLinux only supported shared libraries with the
16765 # GNU dynamic linker. Since this was broken with cross compilers,
16766 # most powerpc-linux boxes support dynamic linking these days and
16767 # people can always --disable-shared, the test was removed, and we
16768 # assume the GNU/Linux dynamic linker is in use.
16769 dynamic_linker='GNU/Linux ld.so'
16770 ;;
16771
16772 netbsd*)
16773 version_type=sunos
16774 need_lib_prefix=no
16775 need_version=no
16776 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16778 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16779 dynamic_linker='NetBSD (a.out) ld.so'
16780 else
16781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16782 soname_spec='${libname}${release}${shared_ext}$major'
16783 dynamic_linker='NetBSD ld.elf_so'
16784 fi
16785 shlibpath_var=LD_LIBRARY_PATH
16786 shlibpath_overrides_runpath=yes
16787 hardcode_into_libs=yes
16788 ;;
16789
16790 newsos6)
16791 version_type=linux # correct to gnu/linux during the next big refactor
16792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16793 shlibpath_var=LD_LIBRARY_PATH
16794 shlibpath_overrides_runpath=yes
16795 ;;
16796
16797 *nto* | *qnx*)
16798 version_type=qnx
16799 need_lib_prefix=no
16800 need_version=no
16801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16802 soname_spec='${libname}${release}${shared_ext}$major'
16803 shlibpath_var=LD_LIBRARY_PATH
16804 shlibpath_overrides_runpath=no
16805 hardcode_into_libs=yes
16806 dynamic_linker='ldqnx.so'
16807 ;;
16808
16809 openbsd*)
16810 version_type=sunos
16811 sys_lib_dlsearch_path_spec="/usr/lib"
16812 need_lib_prefix=no
16813 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16814 case $host_os in
16815 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16816 *) need_version=no ;;
16817 esac
16818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16819 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16820 shlibpath_var=LD_LIBRARY_PATH
16821 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16822 case $host_os in
16823 openbsd2.[89] | openbsd2.[89].*)
16824 shlibpath_overrides_runpath=no
16825 ;;
16826 *)
16827 shlibpath_overrides_runpath=yes
16828 ;;
16829 esac
16830 else
16831 shlibpath_overrides_runpath=yes
16832 fi
16833 ;;
16834
16835 os2*)
16836 libname_spec='$name'
16837 shrext_cmds=".dll"
16838 need_lib_prefix=no
16839 library_names_spec='$libname${shared_ext} $libname.a'
16840 dynamic_linker='OS/2 ld.exe'
16841 shlibpath_var=LIBPATH
16842 ;;
16843
16844 osf3* | osf4* | osf5*)
16845 version_type=osf
16846 need_lib_prefix=no
16847 need_version=no
16848 soname_spec='${libname}${release}${shared_ext}$major'
16849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16850 shlibpath_var=LD_LIBRARY_PATH
16851 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16852 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16853 ;;
16854
16855 rdos*)
16856 dynamic_linker=no
16857 ;;
16858
16859 solaris*)
16860 version_type=linux # correct to gnu/linux during the next big refactor
16861 need_lib_prefix=no
16862 need_version=no
16863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16864 soname_spec='${libname}${release}${shared_ext}$major'
16865 shlibpath_var=LD_LIBRARY_PATH
16866 shlibpath_overrides_runpath=yes
16867 hardcode_into_libs=yes
16868 # ldd complains unless libraries are executable
16869 postinstall_cmds='chmod +x $lib'
16870 ;;
16871
16872 sunos4*)
16873 version_type=sunos
16874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16875 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16876 shlibpath_var=LD_LIBRARY_PATH
16877 shlibpath_overrides_runpath=yes
16878 if test "$with_gnu_ld" = yes; then
16879 need_lib_prefix=no
16880 fi
16881 need_version=yes
16882 ;;
16883
16884 sysv4 | sysv4.3*)
16885 version_type=linux # correct to gnu/linux during the next big refactor
16886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16887 soname_spec='${libname}${release}${shared_ext}$major'
16888 shlibpath_var=LD_LIBRARY_PATH
16889 case $host_vendor in
16890 sni)
16891 shlibpath_overrides_runpath=no
16892 need_lib_prefix=no
16893 runpath_var=LD_RUN_PATH
16894 ;;
16895 siemens)
16896 need_lib_prefix=no
16897 ;;
16898 motorola)
16899 need_lib_prefix=no
16900 need_version=no
16901 shlibpath_overrides_runpath=no
16902 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16903 ;;
16904 esac
16905 ;;
16906
16907 sysv4*MP*)
16908 if test -d /usr/nec ;then
16909 version_type=linux # correct to gnu/linux during the next big refactor
16910 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16911 soname_spec='$libname${shared_ext}.$major'
16912 shlibpath_var=LD_LIBRARY_PATH
16913 fi
16914 ;;
16915
16916 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16917 version_type=freebsd-elf
16918 need_lib_prefix=no
16919 need_version=no
16920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16921 soname_spec='${libname}${release}${shared_ext}$major'
16922 shlibpath_var=LD_LIBRARY_PATH
16923 shlibpath_overrides_runpath=yes
16924 hardcode_into_libs=yes
16925 if test "$with_gnu_ld" = yes; then
16926 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16927 else
16928 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16929 case $host_os in
16930 sco3.2v5*)
16931 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16932 ;;
16933 esac
16934 fi
16935 sys_lib_dlsearch_path_spec='/usr/lib'
16936 ;;
16937
16938 tpf*)
16939 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16940 version_type=linux # correct to gnu/linux during the next big refactor
16941 need_lib_prefix=no
16942 need_version=no
16943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16944 shlibpath_var=LD_LIBRARY_PATH
16945 shlibpath_overrides_runpath=no
16946 hardcode_into_libs=yes
16947 ;;
16948
16949 uts4*)
16950 version_type=linux # correct to gnu/linux during the next big refactor
16951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16952 soname_spec='${libname}${release}${shared_ext}$major'
16953 shlibpath_var=LD_LIBRARY_PATH
16954 ;;
16955
16956 *)
16957 dynamic_linker=no
16958 ;;
16959 esac
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16961 $as_echo "$dynamic_linker" >&6; }
16962 test "$dynamic_linker" = no && can_build_shared=no
16963
16964 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16965 if test "$GCC" = yes; then
16966 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16967 fi
16968
16969 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16970 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16971 fi
16972 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16973 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16974 fi
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17068 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17069 hardcode_action=
17070 if test -n "$hardcode_libdir_flag_spec" ||
17071 test -n "$runpath_var" ||
17072 test "X$hardcode_automatic" = "Xyes" ; then
17073
17074 # We can hardcode non-existent directories.
17075 if test "$hardcode_direct" != no &&
17076 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17077 # have to relink, otherwise we might link with an installed library
17078 # when we should be linking with a yet-to-be-installed one
17079 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17080 test "$hardcode_minus_L" != no; then
17081 # Linking always hardcodes the temporary library directory.
17082 hardcode_action=relink
17083 else
17084 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17085 hardcode_action=immediate
17086 fi
17087 else
17088 # We cannot hardcode anything, or else we can only hardcode existing
17089 # directories.
17090 hardcode_action=unsupported
17091 fi
17092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17093 $as_echo "$hardcode_action" >&6; }
17094
17095 if test "$hardcode_action" = relink ||
17096 test "$inherit_rpath" = yes; then
17097 # Fast installation is not supported
17098 enable_fast_install=no
17099 elif test "$shlibpath_overrides_runpath" = yes ||
17100 test "$enable_shared" = no; then
17101 # Fast installation is not necessary
17102 enable_fast_install=needless
17103 fi
17104
17105
17106
17107
17108
17109
17110 if test "x$enable_dlopen" != xyes; then
17111 enable_dlopen=unknown
17112 enable_dlopen_self=unknown
17113 enable_dlopen_self_static=unknown
17114 else
17115 lt_cv_dlopen=no
17116 lt_cv_dlopen_libs=
17117
17118 case $host_os in
17119 beos*)
17120 lt_cv_dlopen="load_add_on"
17121 lt_cv_dlopen_libs=
17122 lt_cv_dlopen_self=yes
17123 ;;
17124
17125 mingw* | pw32* | cegcc*)
17126 lt_cv_dlopen="LoadLibrary"
17127 lt_cv_dlopen_libs=
17128 ;;
17129
17130 cygwin*)
17131 lt_cv_dlopen="dlopen"
17132 lt_cv_dlopen_libs=
17133 ;;
17134
17135 darwin*)
17136 # if libdl is installed we need to link against it
17137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17138 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17139 if ${ac_cv_lib_dl_dlopen+:} false; then :
17140 $as_echo_n "(cached) " >&6
17141 else
17142 ac_check_lib_save_LIBS=$LIBS
17143 LIBS="-ldl $LIBS"
17144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17145 /* end confdefs.h. */
17146
17147 /* Override any GCC internal prototype to avoid an error.
17148 Use char because int might match the return type of a GCC
17149 builtin and then its argument prototype would still apply. */
17150 #ifdef __cplusplus
17151 extern "C"
17152 #endif
17153 char dlopen ();
17154 int
17155 main ()
17156 {
17157 return dlopen ();
17158 ;
17159 return 0;
17160 }
17161 _ACEOF
17162 if ac_fn_c_try_link "$LINENO"; then :
17163 ac_cv_lib_dl_dlopen=yes
17164 else
17165 ac_cv_lib_dl_dlopen=no
17166 fi
17167 rm -f core conftest.err conftest.$ac_objext \
17168 conftest$ac_exeext conftest.$ac_ext
17169 LIBS=$ac_check_lib_save_LIBS
17170 fi
17171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17172 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17173 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17174 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17175 else
17176
17177 lt_cv_dlopen="dyld"
17178 lt_cv_dlopen_libs=
17179 lt_cv_dlopen_self=yes
17180
17181 fi
17182
17183 ;;
17184
17185 *)
17186 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17187 if test "x$ac_cv_func_shl_load" = xyes; then :
17188 lt_cv_dlopen="shl_load"
17189 else
17190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17191 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17192 if ${ac_cv_lib_dld_shl_load+:} false; then :
17193 $as_echo_n "(cached) " >&6
17194 else
17195 ac_check_lib_save_LIBS=$LIBS
17196 LIBS="-ldld $LIBS"
17197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17198 /* end confdefs.h. */
17199
17200 /* Override any GCC internal prototype to avoid an error.
17201 Use char because int might match the return type of a GCC
17202 builtin and then its argument prototype would still apply. */
17203 #ifdef __cplusplus
17204 extern "C"
17205 #endif
17206 char shl_load ();
17207 int
17208 main ()
17209 {
17210 return shl_load ();
17211 ;
17212 return 0;
17213 }
17214 _ACEOF
17215 if ac_fn_c_try_link "$LINENO"; then :
17216 ac_cv_lib_dld_shl_load=yes
17217 else
17218 ac_cv_lib_dld_shl_load=no
17219 fi
17220 rm -f core conftest.err conftest.$ac_objext \
17221 conftest$ac_exeext conftest.$ac_ext
17222 LIBS=$ac_check_lib_save_LIBS
17223 fi
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17225 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17226 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17227 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17228 else
17229 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17230 if test "x$ac_cv_func_dlopen" = xyes; then :
17231 lt_cv_dlopen="dlopen"
17232 else
17233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17234 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17235 if ${ac_cv_lib_dl_dlopen+:} false; then :
17236 $as_echo_n "(cached) " >&6
17237 else
17238 ac_check_lib_save_LIBS=$LIBS
17239 LIBS="-ldl $LIBS"
17240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17241 /* end confdefs.h. */
17242
17243 /* Override any GCC internal prototype to avoid an error.
17244 Use char because int might match the return type of a GCC
17245 builtin and then its argument prototype would still apply. */
17246 #ifdef __cplusplus
17247 extern "C"
17248 #endif
17249 char dlopen ();
17250 int
17251 main ()
17252 {
17253 return dlopen ();
17254 ;
17255 return 0;
17256 }
17257 _ACEOF
17258 if ac_fn_c_try_link "$LINENO"; then :
17259 ac_cv_lib_dl_dlopen=yes
17260 else
17261 ac_cv_lib_dl_dlopen=no
17262 fi
17263 rm -f core conftest.err conftest.$ac_objext \
17264 conftest$ac_exeext conftest.$ac_ext
17265 LIBS=$ac_check_lib_save_LIBS
17266 fi
17267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17268 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17269 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17270 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17271 else
17272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17273 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17274 if ${ac_cv_lib_svld_dlopen+:} false; then :
17275 $as_echo_n "(cached) " >&6
17276 else
17277 ac_check_lib_save_LIBS=$LIBS
17278 LIBS="-lsvld $LIBS"
17279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17280 /* end confdefs.h. */
17281
17282 /* Override any GCC internal prototype to avoid an error.
17283 Use char because int might match the return type of a GCC
17284 builtin and then its argument prototype would still apply. */
17285 #ifdef __cplusplus
17286 extern "C"
17287 #endif
17288 char dlopen ();
17289 int
17290 main ()
17291 {
17292 return dlopen ();
17293 ;
17294 return 0;
17295 }
17296 _ACEOF
17297 if ac_fn_c_try_link "$LINENO"; then :
17298 ac_cv_lib_svld_dlopen=yes
17299 else
17300 ac_cv_lib_svld_dlopen=no
17301 fi
17302 rm -f core conftest.err conftest.$ac_objext \
17303 conftest$ac_exeext conftest.$ac_ext
17304 LIBS=$ac_check_lib_save_LIBS
17305 fi
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17307 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17308 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17309 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17310 else
17311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17312 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17313 if ${ac_cv_lib_dld_dld_link+:} false; then :
17314 $as_echo_n "(cached) " >&6
17315 else
17316 ac_check_lib_save_LIBS=$LIBS
17317 LIBS="-ldld $LIBS"
17318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17319 /* end confdefs.h. */
17320
17321 /* Override any GCC internal prototype to avoid an error.
17322 Use char because int might match the return type of a GCC
17323 builtin and then its argument prototype would still apply. */
17324 #ifdef __cplusplus
17325 extern "C"
17326 #endif
17327 char dld_link ();
17328 int
17329 main ()
17330 {
17331 return dld_link ();
17332 ;
17333 return 0;
17334 }
17335 _ACEOF
17336 if ac_fn_c_try_link "$LINENO"; then :
17337 ac_cv_lib_dld_dld_link=yes
17338 else
17339 ac_cv_lib_dld_dld_link=no
17340 fi
17341 rm -f core conftest.err conftest.$ac_objext \
17342 conftest$ac_exeext conftest.$ac_ext
17343 LIBS=$ac_check_lib_save_LIBS
17344 fi
17345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17346 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17347 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17348 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17349 fi
17350
17351
17352 fi
17353
17354
17355 fi
17356
17357
17358 fi
17359
17360
17361 fi
17362
17363
17364 fi
17365
17366 ;;
17367 esac
17368
17369 if test "x$lt_cv_dlopen" != xno; then
17370 enable_dlopen=yes
17371 else
17372 enable_dlopen=no
17373 fi
17374
17375 case $lt_cv_dlopen in
17376 dlopen)
17377 save_CPPFLAGS="$CPPFLAGS"
17378 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17379
17380 save_LDFLAGS="$LDFLAGS"
17381 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17382
17383 save_LIBS="$LIBS"
17384 LIBS="$lt_cv_dlopen_libs $LIBS"
17385
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17387 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17388 if ${lt_cv_dlopen_self+:} false; then :
17389 $as_echo_n "(cached) " >&6
17390 else
17391 if test "$cross_compiling" = yes; then :
17392 lt_cv_dlopen_self=cross
17393 else
17394 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17395 lt_status=$lt_dlunknown
17396 cat > conftest.$ac_ext <<_LT_EOF
17397 #line $LINENO "configure"
17398 #include "confdefs.h"
17399
17400 #if HAVE_DLFCN_H
17401 #include <dlfcn.h>
17402 #endif
17403
17404 #include <stdio.h>
17405
17406 #ifdef RTLD_GLOBAL
17407 # define LT_DLGLOBAL RTLD_GLOBAL
17408 #else
17409 # ifdef DL_GLOBAL
17410 # define LT_DLGLOBAL DL_GLOBAL
17411 # else
17412 # define LT_DLGLOBAL 0
17413 # endif
17414 #endif
17415
17416 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17417 find out it does not work in some platform. */
17418 #ifndef LT_DLLAZY_OR_NOW
17419 # ifdef RTLD_LAZY
17420 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17421 # else
17422 # ifdef DL_LAZY
17423 # define LT_DLLAZY_OR_NOW DL_LAZY
17424 # else
17425 # ifdef RTLD_NOW
17426 # define LT_DLLAZY_OR_NOW RTLD_NOW
17427 # else
17428 # ifdef DL_NOW
17429 # define LT_DLLAZY_OR_NOW DL_NOW
17430 # else
17431 # define LT_DLLAZY_OR_NOW 0
17432 # endif
17433 # endif
17434 # endif
17435 # endif
17436 #endif
17437
17438 /* When -fvisbility=hidden is used, assume the code has been annotated
17439 correspondingly for the symbols needed. */
17440 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17441 int fnord () __attribute__((visibility("default")));
17442 #endif
17443
17444 int fnord () { return 42; }
17445 int main ()
17446 {
17447 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17448 int status = $lt_dlunknown;
17449
17450 if (self)
17451 {
17452 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17453 else
17454 {
17455 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17456 else puts (dlerror ());
17457 }
17458 /* dlclose (self); */
17459 }
17460 else
17461 puts (dlerror ());
17462
17463 return status;
17464 }
17465 _LT_EOF
17466 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17467 (eval $ac_link) 2>&5
17468 ac_status=$?
17469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17470 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17471 (./conftest; exit; ) >&5 2>/dev/null
17472 lt_status=$?
17473 case x$lt_status in
17474 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17475 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17476 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17477 esac
17478 else :
17479 # compilation failed
17480 lt_cv_dlopen_self=no
17481 fi
17482 fi
17483 rm -fr conftest*
17484
17485
17486 fi
17487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17488 $as_echo "$lt_cv_dlopen_self" >&6; }
17489
17490 if test "x$lt_cv_dlopen_self" = xyes; then
17491 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17493 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17494 if ${lt_cv_dlopen_self_static+:} false; then :
17495 $as_echo_n "(cached) " >&6
17496 else
17497 if test "$cross_compiling" = yes; then :
17498 lt_cv_dlopen_self_static=cross
17499 else
17500 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17501 lt_status=$lt_dlunknown
17502 cat > conftest.$ac_ext <<_LT_EOF
17503 #line $LINENO "configure"
17504 #include "confdefs.h"
17505
17506 #if HAVE_DLFCN_H
17507 #include <dlfcn.h>
17508 #endif
17509
17510 #include <stdio.h>
17511
17512 #ifdef RTLD_GLOBAL
17513 # define LT_DLGLOBAL RTLD_GLOBAL
17514 #else
17515 # ifdef DL_GLOBAL
17516 # define LT_DLGLOBAL DL_GLOBAL
17517 # else
17518 # define LT_DLGLOBAL 0
17519 # endif
17520 #endif
17521
17522 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17523 find out it does not work in some platform. */
17524 #ifndef LT_DLLAZY_OR_NOW
17525 # ifdef RTLD_LAZY
17526 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17527 # else
17528 # ifdef DL_LAZY
17529 # define LT_DLLAZY_OR_NOW DL_LAZY
17530 # else
17531 # ifdef RTLD_NOW
17532 # define LT_DLLAZY_OR_NOW RTLD_NOW
17533 # else
17534 # ifdef DL_NOW
17535 # define LT_DLLAZY_OR_NOW DL_NOW
17536 # else
17537 # define LT_DLLAZY_OR_NOW 0
17538 # endif
17539 # endif
17540 # endif
17541 # endif
17542 #endif
17543
17544 /* When -fvisbility=hidden is used, assume the code has been annotated
17545 correspondingly for the symbols needed. */
17546 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17547 int fnord () __attribute__((visibility("default")));
17548 #endif
17549
17550 int fnord () { return 42; }
17551 int main ()
17552 {
17553 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17554 int status = $lt_dlunknown;
17555
17556 if (self)
17557 {
17558 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17559 else
17560 {
17561 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17562 else puts (dlerror ());
17563 }
17564 /* dlclose (self); */
17565 }
17566 else
17567 puts (dlerror ());
17568
17569 return status;
17570 }
17571 _LT_EOF
17572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17573 (eval $ac_link) 2>&5
17574 ac_status=$?
17575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17576 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17577 (./conftest; exit; ) >&5 2>/dev/null
17578 lt_status=$?
17579 case x$lt_status in
17580 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17581 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17582 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17583 esac
17584 else :
17585 # compilation failed
17586 lt_cv_dlopen_self_static=no
17587 fi
17588 fi
17589 rm -fr conftest*
17590
17591
17592 fi
17593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17594 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17595 fi
17596
17597 CPPFLAGS="$save_CPPFLAGS"
17598 LDFLAGS="$save_LDFLAGS"
17599 LIBS="$save_LIBS"
17600 ;;
17601 esac
17602
17603 case $lt_cv_dlopen_self in
17604 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17605 *) enable_dlopen_self=unknown ;;
17606 esac
17607
17608 case $lt_cv_dlopen_self_static in
17609 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17610 *) enable_dlopen_self_static=unknown ;;
17611 esac
17612 fi
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630 striplib=
17631 old_striplib=
17632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17633 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17634 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17635 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17636 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17638 $as_echo "yes" >&6; }
17639 else
17640 # FIXME - insert some real tests, host_os isn't really good enough
17641 case $host_os in
17642 darwin*)
17643 if test -n "$STRIP" ; then
17644 striplib="$STRIP -x"
17645 old_striplib="$STRIP -S"
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17647 $as_echo "yes" >&6; }
17648 else
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17650 $as_echo "no" >&6; }
17651 fi
17652 ;;
17653 *)
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17655 $as_echo "no" >&6; }
17656 ;;
17657 esac
17658 fi
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671 # Report which library types will actually be built
17672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17673 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17675 $as_echo "$can_build_shared" >&6; }
17676
17677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17678 $as_echo_n "checking whether to build shared libraries... " >&6; }
17679 test "$can_build_shared" = "no" && enable_shared=no
17680
17681 # On AIX, shared libraries and static libraries use the same namespace, and
17682 # are all built from PIC.
17683 case $host_os in
17684 aix3*)
17685 test "$enable_shared" = yes && enable_static=no
17686 if test -n "$RANLIB"; then
17687 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17688 postinstall_cmds='$RANLIB $lib'
17689 fi
17690 ;;
17691
17692 aix[4-9]*)
17693 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17694 test "$enable_shared" = yes && enable_static=no
17695 fi
17696 ;;
17697 esac
17698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17699 $as_echo "$enable_shared" >&6; }
17700
17701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17702 $as_echo_n "checking whether to build static libraries... " >&6; }
17703 # Make sure either enable_shared or enable_static is yes.
17704 test "$enable_shared" = yes || enable_static=yes
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17706 $as_echo "$enable_static" >&6; }
17707
17708
17709
17710
17711 fi
17712 ac_ext=c
17713 ac_cpp='$CPP $CPPFLAGS'
17714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17717
17718 CC="$lt_save_CC"
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734 ac_config_commands="$ac_config_commands libtool"
17735
17736
17737
17738
17739 # Only expand once:
17740
17741
17742
17743
17744
17745 # Define a configure option for an alternate module directory
17746
17747 # Check whether --with-xorg-module-dir was given.
17748 if test "${with_xorg_module_dir+set}" = set; then :
17749 withval=$with_xorg_module_dir; moduledir="$withval"
17750 else
17751 moduledir="$libdir/xorg/modules"
17752 fi
17753
17754
17755 # Store the list of server defined optional extensions in REQUIRED_MODULES
17756
17757
17758 SAVE_CFLAGS="$CFLAGS"
17759 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17761 /* end confdefs.h. */
17762
17763 #include "xorg-server.h"
17764 #if !defined RANDR
17765 #error RANDR not defined
17766 #endif
17767
17768 int
17769 main ()
17770 {
17771
17772 ;
17773 return 0;
17774 }
17775 _ACEOF
17776 if ac_fn_c_try_compile "$LINENO"; then :
17777 _EXT_CHECK=yes
17778 else
17779 _EXT_CHECK=no
17780 fi
17781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17782 CFLAGS="$SAVE_CFLAGS"
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
17784 $as_echo_n "checking if RANDR is defined... " >&6; }
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17786 $as_echo "$_EXT_CHECK" >&6; }
17787 if test "$_EXT_CHECK" != no; then
17788 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
17789 fi
17790
17791
17792
17793 SAVE_CFLAGS="$CFLAGS"
17794 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17796 /* end confdefs.h. */
17797
17798 #include "xorg-server.h"
17799 #if !defined RENDER
17800 #error RENDER not defined
17801 #endif
17802
17803 int
17804 main ()
17805 {
17806
17807 ;
17808 return 0;
17809 }
17810 _ACEOF
17811 if ac_fn_c_try_compile "$LINENO"; then :
17812 _EXT_CHECK=yes
17813 else
17814 _EXT_CHECK=no
17815 fi
17816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17817 CFLAGS="$SAVE_CFLAGS"
17818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
17819 $as_echo_n "checking if RENDER is defined... " >&6; }
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17821 $as_echo "$_EXT_CHECK" >&6; }
17822 if test "$_EXT_CHECK" != no; then
17823 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
17824 fi
17825
17826
17827
17828 SAVE_CFLAGS="$CFLAGS"
17829 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17831 /* end confdefs.h. */
17832
17833 #include "xorg-server.h"
17834 #if !defined XV
17835 #error XV not defined
17836 #endif
17837
17838 int
17839 main ()
17840 {
17841
17842 ;
17843 return 0;
17844 }
17845 _ACEOF
17846 if ac_fn_c_try_compile "$LINENO"; then :
17847 _EXT_CHECK=yes
17848 else
17849 _EXT_CHECK=no
17850 fi
17851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17852 CFLAGS="$SAVE_CFLAGS"
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
17854 $as_echo_n "checking if XV is defined... " >&6; }
17855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17856 $as_echo "$_EXT_CHECK" >&6; }
17857 if test "$_EXT_CHECK" != no; then
17858 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
17859 fi
17860
17861
17862
17863 SAVE_CFLAGS="$CFLAGS"
17864 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17866 /* end confdefs.h. */
17867
17868 #include "xorg-server.h"
17869 #if !defined DPMSExtension
17870 #error DPMSExtension not defined
17871 #endif
17872
17873 int
17874 main ()
17875 {
17876
17877 ;
17878 return 0;
17879 }
17880 _ACEOF
17881 if ac_fn_c_try_compile "$LINENO"; then :
17882 _EXT_CHECK=yes
17883 else
17884 _EXT_CHECK=no
17885 fi
17886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17887 CFLAGS="$SAVE_CFLAGS"
17888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
17889 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17891 $as_echo "$_EXT_CHECK" >&6; }
17892 if test "$_EXT_CHECK" != no; then
17893 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
17894 fi
17895
17896
17897 # Obtain compiler/linker options for the driver dependencies
17898
17899 pkg_failed=no
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
17901 $as_echo_n "checking for XORG... " >&6; }
17902
17903 if test -n "$XORG_CFLAGS"; then
17904 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
17905 elif test -n "$PKG_CONFIG"; then
17906 if test -n "$PKG_CONFIG" && \
17907 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17908 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
17909 ac_status=$?
17910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17911 test $ac_status = 0; }; then
17912 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17913 else
17914 pkg_failed=yes
17915 fi
17916 else
17917 pkg_failed=untried
17918 fi
17919 if test -n "$XORG_LIBS"; then
17920 pkg_cv_XORG_LIBS="$XORG_LIBS"
17921 elif test -n "$PKG_CONFIG"; then
17922 if test -n "$PKG_CONFIG" && \
17923 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17924 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
17925 ac_status=$?
17926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17927 test $ac_status = 0; }; then
17928 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17929 else
17930 pkg_failed=yes
17931 fi
17932 else
17933 pkg_failed=untried
17934 fi
17935
17936
17937
17938 if test $pkg_failed = yes; then
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17940 $as_echo "no" >&6; }
17941
17942 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17943 _pkg_short_errors_supported=yes
17944 else
17945 _pkg_short_errors_supported=no
17946 fi
17947 if test $_pkg_short_errors_supported = yes; then
17948 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
17949 else
17950 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
17951 fi
17952 # Put the nasty error message in config.log where it belongs
17953 echo "$XORG_PKG_ERRORS" >&5
17954
17955 as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
17956
17957 $XORG_PKG_ERRORS
17958
17959 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17960 installed software in a non-standard prefix.
17961
17962 Alternatively, you may set the environment variables XORG_CFLAGS
17963 and XORG_LIBS to avoid the need to call pkg-config.
17964 See the pkg-config man page for more details." "$LINENO" 5
17965
17966 elif test $pkg_failed = untried; then
17967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17968 $as_echo "no" >&6; }
17969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17971 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17972 is in your PATH or set the PKG_CONFIG environment variable to the full
17973 path to pkg-config.
17974
17975 Alternatively, you may set the environment variables XORG_CFLAGS
17976 and XORG_LIBS to avoid the need to call pkg-config.
17977 See the pkg-config man page for more details.
17978
17979 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17980 See \`config.log' for more details" "$LINENO" 5; }
17981
17982 else
17983 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
17984 XORG_LIBS=$pkg_cv_XORG_LIBS
17985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17986 $as_echo "yes" >&6; }
17987
17988 fi
17989
17990 # Checks for libraries.
17991 SAVE_CPPFLAGS="$CPPFLAGS"
17992 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
17993 ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
17994 "
17995 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
17996 XSERVER_LIBPCIACCESS=yes
17997 else
17998 XSERVER_LIBPCIACCESS=no
17999 fi
18000
18001 CPPFLAGS="$SAVE_CPPFLAGS"
18002
18003 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18004
18005 pkg_failed=no
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18007 $as_echo_n "checking for PCIACCESS... " >&6; }
18008
18009 if test -n "$PCIACCESS_CFLAGS"; then
18010 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18011 elif test -n "$PKG_CONFIG"; then
18012 if test -n "$PKG_CONFIG" && \
18013 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18014 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18015 ac_status=$?
18016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18017 test $ac_status = 0; }; then
18018 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
18019 else
18020 pkg_failed=yes
18021 fi
18022 else
18023 pkg_failed=untried
18024 fi
18025 if test -n "$PCIACCESS_LIBS"; then
18026 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18027 elif test -n "$PKG_CONFIG"; then
18028 if test -n "$PKG_CONFIG" && \
18029 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18030 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18031 ac_status=$?
18032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18033 test $ac_status = 0; }; then
18034 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
18035 else
18036 pkg_failed=yes
18037 fi
18038 else
18039 pkg_failed=untried
18040 fi
18041
18042
18043
18044 if test $pkg_failed = yes; then
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18046 $as_echo "no" >&6; }
18047
18048 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18049 _pkg_short_errors_supported=yes
18050 else
18051 _pkg_short_errors_supported=no
18052 fi
18053 if test $_pkg_short_errors_supported = yes; then
18054 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1`
18055 else
18056 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1`
18057 fi
18058 # Put the nasty error message in config.log where it belongs
18059 echo "$PCIACCESS_PKG_ERRORS" >&5
18060
18061 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
18062
18063 $PCIACCESS_PKG_ERRORS
18064
18065 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18066 installed software in a non-standard prefix.
18067
18068 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18069 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18070 See the pkg-config man page for more details." "$LINENO" 5
18071
18072 elif test $pkg_failed = untried; then
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18074 $as_echo "no" >&6; }
18075 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18077 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18078 is in your PATH or set the PKG_CONFIG environment variable to the full
18079 path to pkg-config.
18080
18081 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18082 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18083 See the pkg-config man page for more details.
18084
18085 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18086 See \`config.log' for more details" "$LINENO" 5; }
18087
18088 else
18089 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18090 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18092 $as_echo "yes" >&6; }
18093
18094 fi
18095 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
18096 fi
18097 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18098 XSERVER_LIBPCIACCESS_TRUE=
18099 XSERVER_LIBPCIACCESS_FALSE='#'
18100 else
18101 XSERVER_LIBPCIACCESS_TRUE='#'
18102 XSERVER_LIBPCIACCESS_FALSE=
18103 fi
18104
18105
18106 # Check whether --enable-xaa was given.
18107 if test "${enable_xaa+set}" = set; then :
18108 enableval=$enable_xaa; XAA="$enableval"
18109 else
18110 XAA=auto
18111 fi
18112
18113 if test "x$XAA" != xno; then
18114 save_CFLAGS=$CFLAGS
18115 save_CPPFLAGS=$CPPFLAGS
18116 CFLAGS=$XORG_CFLAGS
18117 CPPFLAGS="$XORG_CFLAGS"
18118 for ac_header in xaa.h
18119 do :
18120 ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
18121 if test "x$ac_cv_header_xaa_h" = xyes; then :
18122 cat >>confdefs.h <<_ACEOF
18123 #define HAVE_XAA_H 1
18124 _ACEOF
18125 XAA=yes
18126 else
18127 XAA=no
18128 fi
18129
18130 done
18131
18132 CFLAGS=$save_CFLAGS
18133 CPPFLAGS=$save_CPPFLAGS
18134 fi
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
18136 $as_echo_n "checking whether to include XAA support... " >&6; }
18137 if test "x$XAA" = xyes; then
18138 XAA_TRUE=
18139 XAA_FALSE='#'
18140 else
18141 XAA_TRUE='#'
18142 XAA_FALSE=
18143 fi
18144
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
18146 $as_echo "$XAA" >&6; }
18147
18148
18149
18150 DRIVER_NAME=i740
18151
18152
18153 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
18154
18155 cat >confcache <<\_ACEOF
18156 # This file is a shell script that caches the results of configure
18157 # tests run on this system so they can be shared between configure
18158 # scripts and configure runs, see configure's option --config-cache.
18159 # It is not useful on other systems. If it contains results you don't
18160 # want to keep, you may remove or edit it.
18161 #
18162 # config.status only pays attention to the cache file if you give it
18163 # the --recheck option to rerun configure.
18164 #
18165 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18166 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18167 # following values.
18168
18169 _ACEOF
18170
18171 # The following way of writing the cache mishandles newlines in values,
18172 # but we know of no workaround that is simple, portable, and efficient.
18173 # So, we kill variables containing newlines.
18174 # Ultrix sh set writes to stderr and can't be redirected directly,
18175 # and sets the high bit in the cache file unless we assign to the vars.
18176 (
18177 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18178 eval ac_val=\$$ac_var
18179 case $ac_val in #(
18180 *${as_nl}*)
18181 case $ac_var in #(
18182 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18183 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18184 esac
18185 case $ac_var in #(
18186 _ | IFS | as_nl) ;; #(
18187 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18188 *) { eval $ac_var=; unset $ac_var;} ;;
18189 esac ;;
18190 esac
18191 done
18192
18193 (set) 2>&1 |
18194 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18195 *${as_nl}ac_space=\ *)
18196 # `set' does not quote correctly, so add quotes: double-quote
18197 # substitution turns \\\\ into \\, and sed turns \\ into \.
18198 sed -n \
18199 "s/'/'\\\\''/g;
18200 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18201 ;; #(
18202 *)
18203 # `set' quotes correctly as required by POSIX, so do not add quotes.
18204 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18205 ;;
18206 esac |
18207 sort
18208 ) |
18209 sed '
18210 /^ac_cv_env_/b end
18211 t clear
18212 :clear
18213 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18214 t end
18215 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18216 :end' >>confcache
18217 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18218 if test -w "$cache_file"; then
18219 if test "x$cache_file" != "x/dev/null"; then
18220 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18221 $as_echo "$as_me: updating cache $cache_file" >&6;}
18222 if test ! -f "$cache_file" || test -h "$cache_file"; then
18223 cat confcache >"$cache_file"
18224 else
18225 case $cache_file in #(
18226 */* | ?:*)
18227 mv -f confcache "$cache_file"$$ &&
18228 mv -f "$cache_file"$$ "$cache_file" ;; #(
18229 *)
18230 mv -f confcache "$cache_file" ;;
18231 esac
18232 fi
18233 fi
18234 else
18235 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18236 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18237 fi
18238 fi
18239 rm -f confcache
18240
18241 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18242 # Let make expand exec_prefix.
18243 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18244
18245 DEFS=-DHAVE_CONFIG_H
18246
18247 ac_libobjs=
18248 ac_ltlibobjs=
18249 U=
18250 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18251 # 1. Remove the extension, and $U if already installed.
18252 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18253 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18254 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18255 # will be set to the directory where LIBOBJS objects are built.
18256 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18257 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18258 done
18259 LIBOBJS=$ac_libobjs
18260
18261 LTLIBOBJS=$ac_ltlibobjs
18262
18263
18264 if test -n "$EXEEXT"; then
18265 am__EXEEXT_TRUE=
18266 am__EXEEXT_FALSE='#'
18267 else
18268 am__EXEEXT_TRUE='#'
18269 am__EXEEXT_FALSE=
18270 fi
18271
18272 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18273 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18274 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18275 fi
18276 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18277 as_fn_error $? "conditional \"AMDEP\" was never defined.
18278 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18279 fi
18280 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18281 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18282 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18283 fi
18284 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
18285 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
18286 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18287 fi
18288 if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
18289 as_fn_error $? "conditional \"XAA\" was never defined.
18290 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18291 fi
18292
18293 : "${CONFIG_STATUS=./config.status}"
18294 ac_write_fail=0
18295 ac_clean_files_save=$ac_clean_files
18296 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18297 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18298 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18299 as_write_fail=0
18300 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18301 #! $SHELL
18302 # Generated by $as_me.
18303 # Run this file to recreate the current configuration.
18304 # Compiler output produced by configure, useful for debugging
18305 # configure, is in config.log if it exists.
18306
18307 debug=false
18308 ac_cs_recheck=false
18309 ac_cs_silent=false
18310
18311 SHELL=\${CONFIG_SHELL-$SHELL}
18312 export SHELL
18313 _ASEOF
18314 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18315 ## -------------------- ##
18316 ## M4sh Initialization. ##
18317 ## -------------------- ##
18318
18319 # Be more Bourne compatible
18320 DUALCASE=1; export DUALCASE # for MKS sh
18321 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18322 emulate sh
18323 NULLCMD=:
18324 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18325 # is contrary to our usage. Disable this feature.
18326 alias -g '${1+"$@"}'='"$@"'
18327 setopt NO_GLOB_SUBST
18328 else
18329 case `(set -o) 2>/dev/null` in #(
18330 *posix*) :
18331 set -o posix ;; #(
18332 *) :
18333 ;;
18334 esac
18335 fi
18336
18337
18338 as_nl='
18339 '
18340 export as_nl
18341 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18342 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18343 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18344 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18345 # Prefer a ksh shell builtin over an external printf program on Solaris,
18346 # but without wasting forks for bash or zsh.
18347 if test -z "$BASH_VERSION$ZSH_VERSION" \
18348 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18349 as_echo='print -r --'
18350 as_echo_n='print -rn --'
18351 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18352 as_echo='printf %s\n'
18353 as_echo_n='printf %s'
18354 else
18355 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18356 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18357 as_echo_n='/usr/ucb/echo -n'
18358 else
18359 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18360 as_echo_n_body='eval
18361 arg=$1;
18362 case $arg in #(
18363 *"$as_nl"*)
18364 expr "X$arg" : "X\\(.*\\)$as_nl";
18365 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18366 esac;
18367 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18368 '
18369 export as_echo_n_body
18370 as_echo_n='sh -c $as_echo_n_body as_echo'
18371 fi
18372 export as_echo_body
18373 as_echo='sh -c $as_echo_body as_echo'
18374 fi
18375
18376 # The user is always right.
18377 if test "${PATH_SEPARATOR+set}" != set; then
18378 PATH_SEPARATOR=:
18379 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18380 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18381 PATH_SEPARATOR=';'
18382 }
18383 fi
18384
18385
18386 # IFS
18387 # We need space, tab and new line, in precisely that order. Quoting is
18388 # there to prevent editors from complaining about space-tab.
18389 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18390 # splitting by setting IFS to empty value.)
18391 IFS=" "" $as_nl"
18392
18393 # Find who we are. Look in the path if we contain no directory separator.
18394 as_myself=
18395 case $0 in #((
18396 *[\\/]* ) as_myself=$0 ;;
18397 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18398 for as_dir in $PATH
18399 do
18400 IFS=$as_save_IFS
18401 test -z "$as_dir" && as_dir=.
18402 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18403 done
18404 IFS=$as_save_IFS
18405
18406 ;;
18407 esac
18408 # We did not find ourselves, most probably we were run as `sh COMMAND'
18409 # in which case we are not to be found in the path.
18410 if test "x$as_myself" = x; then
18411 as_myself=$0
18412 fi
18413 if test ! -f "$as_myself"; then
18414 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18415 exit 1
18416 fi
18417
18418 # Unset variables that we do not need and which cause bugs (e.g. in
18419 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18420 # suppresses any "Segmentation fault" message there. '((' could
18421 # trigger a bug in pdksh 5.2.14.
18422 for as_var in BASH_ENV ENV MAIL MAILPATH
18423 do eval test x\${$as_var+set} = xset \
18424 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18425 done
18426 PS1='$ '
18427 PS2='> '
18428 PS4='+ '
18429
18430 # NLS nuisances.
18431 LC_ALL=C
18432 export LC_ALL
18433 LANGUAGE=C
18434 export LANGUAGE
18435
18436 # CDPATH.
18437 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18438
18439
18440 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18441 # ----------------------------------------
18442 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18443 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18444 # script with STATUS, using 1 if that was 0.
18445 as_fn_error ()
18446 {
18447 as_status=$1; test $as_status -eq 0 && as_status=1
18448 if test "$4"; then
18449 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18450 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18451 fi
18452 $as_echo "$as_me: error: $2" >&2
18453 as_fn_exit $as_status
18454 } # as_fn_error
18455
18456
18457 # as_fn_set_status STATUS
18458 # -----------------------
18459 # Set $? to STATUS, without forking.
18460 as_fn_set_status ()
18461 {
18462 return $1
18463 } # as_fn_set_status
18464
18465 # as_fn_exit STATUS
18466 # -----------------
18467 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18468 as_fn_exit ()
18469 {
18470 set +e
18471 as_fn_set_status $1
18472 exit $1
18473 } # as_fn_exit
18474
18475 # as_fn_unset VAR
18476 # ---------------
18477 # Portably unset VAR.
18478 as_fn_unset ()
18479 {
18480 { eval $1=; unset $1;}
18481 }
18482 as_unset=as_fn_unset
18483 # as_fn_append VAR VALUE
18484 # ----------------------
18485 # Append the text in VALUE to the end of the definition contained in VAR. Take
18486 # advantage of any shell optimizations that allow amortized linear growth over
18487 # repeated appends, instead of the typical quadratic growth present in naive
18488 # implementations.
18489 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18490 eval 'as_fn_append ()
18491 {
18492 eval $1+=\$2
18493 }'
18494 else
18495 as_fn_append ()
18496 {
18497 eval $1=\$$1\$2
18498 }
18499 fi # as_fn_append
18500
18501 # as_fn_arith ARG...
18502 # ------------------
18503 # Perform arithmetic evaluation on the ARGs, and store the result in the
18504 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18505 # must be portable across $(()) and expr.
18506 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18507 eval 'as_fn_arith ()
18508 {
18509 as_val=$(( $* ))
18510 }'
18511 else
18512 as_fn_arith ()
18513 {
18514 as_val=`expr "$@" || test $? -eq 1`
18515 }
18516 fi # as_fn_arith
18517
18518
18519 if expr a : '\(a\)' >/dev/null 2>&1 &&
18520 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18521 as_expr=expr
18522 else
18523 as_expr=false
18524 fi
18525
18526 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18527 as_basename=basename
18528 else
18529 as_basename=false
18530 fi
18531
18532 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18533 as_dirname=dirname
18534 else
18535 as_dirname=false
18536 fi
18537
18538 as_me=`$as_basename -- "$0" ||
18539 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18540 X"$0" : 'X\(//\)$' \| \
18541 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18542 $as_echo X/"$0" |
18543 sed '/^.*\/\([^/][^/]*\)\/*$/{
18544 s//\1/
18545 q
18546 }
18547 /^X\/\(\/\/\)$/{
18548 s//\1/
18549 q
18550 }
18551 /^X\/\(\/\).*/{
18552 s//\1/
18553 q
18554 }
18555 s/.*/./; q'`
18556
18557 # Avoid depending upon Character Ranges.
18558 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18559 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18560 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18561 as_cr_digits='0123456789'
18562 as_cr_alnum=$as_cr_Letters$as_cr_digits
18563
18564 ECHO_C= ECHO_N= ECHO_T=
18565 case `echo -n x` in #(((((
18566 -n*)
18567 case `echo 'xy\c'` in
18568 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18569 xy) ECHO_C='\c';;
18570 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18571 ECHO_T=' ';;
18572 esac;;
18573 *)
18574 ECHO_N='-n';;
18575 esac
18576
18577 rm -f conf$$ conf$$.exe conf$$.file
18578 if test -d conf$$.dir; then
18579 rm -f conf$$.dir/conf$$.file
18580 else
18581 rm -f conf$$.dir
18582 mkdir conf$$.dir 2>/dev/null
18583 fi
18584 if (echo >conf$$.file) 2>/dev/null; then
18585 if ln -s conf$$.file conf$$ 2>/dev/null; then
18586 as_ln_s='ln -s'
18587 # ... but there are two gotchas:
18588 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18589 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18590 # In both cases, we have to default to `cp -p'.
18591 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18592 as_ln_s='cp -p'
18593 elif ln conf$$.file conf$$ 2>/dev/null; then
18594 as_ln_s=ln
18595 else
18596 as_ln_s='cp -p'
18597 fi
18598 else
18599 as_ln_s='cp -p'
18600 fi
18601 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18602 rmdir conf$$.dir 2>/dev/null
18603
18604
18605 # as_fn_mkdir_p
18606 # -------------
18607 # Create "$as_dir" as a directory, including parents if necessary.
18608 as_fn_mkdir_p ()
18609 {
18610
18611 case $as_dir in #(
18612 -*) as_dir=./$as_dir;;
18613 esac
18614 test -d "$as_dir" || eval $as_mkdir_p || {
18615 as_dirs=
18616 while :; do
18617 case $as_dir in #(
18618 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18619 *) as_qdir=$as_dir;;
18620 esac
18621 as_dirs="'$as_qdir' $as_dirs"
18622 as_dir=`$as_dirname -- "$as_dir" ||
18623 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18624 X"$as_dir" : 'X\(//\)[^/]' \| \
18625 X"$as_dir" : 'X\(//\)$' \| \
18626 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18627 $as_echo X"$as_dir" |
18628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18629 s//\1/
18630 q
18631 }
18632 /^X\(\/\/\)[^/].*/{
18633 s//\1/
18634 q
18635 }
18636 /^X\(\/\/\)$/{
18637 s//\1/
18638 q
18639 }
18640 /^X\(\/\).*/{
18641 s//\1/
18642 q
18643 }
18644 s/.*/./; q'`
18645 test -d "$as_dir" && break
18646 done
18647 test -z "$as_dirs" || eval "mkdir $as_dirs"
18648 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18649
18650
18651 } # as_fn_mkdir_p
18652 if mkdir -p . 2>/dev/null; then
18653 as_mkdir_p='mkdir -p "$as_dir"'
18654 else
18655 test -d ./-p && rmdir ./-p
18656 as_mkdir_p=false
18657 fi
18658
18659 if test -x / >/dev/null 2>&1; then
18660 as_test_x='test -x'
18661 else
18662 if ls -dL / >/dev/null 2>&1; then
18663 as_ls_L_option=L
18664 else
18665 as_ls_L_option=
18666 fi
18667 as_test_x='
18668 eval sh -c '\''
18669 if test -d "$1"; then
18670 test -d "$1/.";
18671 else
18672 case $1 in #(
18673 -*)set "./$1";;
18674 esac;
18675 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18676 ???[sx]*):;;*)false;;esac;fi
18677 '\'' sh
18678 '
18679 fi
18680 as_executable_p=$as_test_x
18681
18682 # Sed expression to map a string onto a valid CPP name.
18683 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18684
18685 # Sed expression to map a string onto a valid variable name.
18686 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18687
18688
18689 exec 6>&1
18690 ## ----------------------------------- ##
18691 ## Main body of $CONFIG_STATUS script. ##
18692 ## ----------------------------------- ##
18693 _ASEOF
18694 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18695
18696 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18697 # Save the log message, to keep $0 and so on meaningful, and to
18698 # report actual input values of CONFIG_FILES etc. instead of their
18699 # values after options handling.
18700 ac_log="
18701 This file was extended by xf86-video-i740 $as_me 1.3.4, which was
18702 generated by GNU Autoconf 2.68. Invocation command line was
18703
18704 CONFIG_FILES = $CONFIG_FILES
18705 CONFIG_HEADERS = $CONFIG_HEADERS
18706 CONFIG_LINKS = $CONFIG_LINKS
18707 CONFIG_COMMANDS = $CONFIG_COMMANDS
18708 $ $0 $@
18709
18710 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18711 "
18712
18713 _ACEOF
18714
18715 case $ac_config_files in *"
18716 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18717 esac
18718
18719 case $ac_config_headers in *"
18720 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18721 esac
18722
18723
18724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18725 # Files that config.status was made for.
18726 config_files="$ac_config_files"
18727 config_headers="$ac_config_headers"
18728 config_commands="$ac_config_commands"
18729
18730 _ACEOF
18731
18732 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18733 ac_cs_usage="\
18734 \`$as_me' instantiates files and other configuration actions
18735 from templates according to the current configuration. Unless the files
18736 and actions are specified as TAGs, all are instantiated by default.
18737
18738 Usage: $0 [OPTION]... [TAG]...
18739
18740 -h, --help print this help, then exit
18741 -V, --version print version number and configuration settings, then exit
18742 --config print configuration, then exit
18743 -q, --quiet, --silent
18744 do not print progress messages
18745 -d, --debug don't remove temporary files
18746 --recheck update $as_me by reconfiguring in the same conditions
18747 --file=FILE[:TEMPLATE]
18748 instantiate the configuration file FILE
18749 --header=FILE[:TEMPLATE]
18750 instantiate the configuration header FILE
18751
18752 Configuration files:
18753 $config_files
18754
18755 Configuration headers:
18756 $config_headers
18757
18758 Configuration commands:
18759 $config_commands
18760
18761 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18762
18763 _ACEOF
18764 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18765 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18766 ac_cs_version="\\
18767 xf86-video-i740 config.status 1.3.4
18768 configured by $0, generated by GNU Autoconf 2.68,
18769 with options \\"\$ac_cs_config\\"
18770
18771 Copyright (C) 2010 Free Software Foundation, Inc.
18772 This config.status script is free software; the Free Software Foundation
18773 gives unlimited permission to copy, distribute and modify it."
18774
18775 ac_pwd='$ac_pwd'
18776 srcdir='$srcdir'
18777 INSTALL='$INSTALL'
18778 MKDIR_P='$MKDIR_P'
18779 AWK='$AWK'
18780 test -n "\$AWK" || AWK=awk
18781 _ACEOF
18782
18783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18784 # The default lists apply if the user does not specify any file.
18785 ac_need_defaults=:
18786 while test $# != 0
18787 do
18788 case $1 in
18789 --*=?*)
18790 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18791 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18792 ac_shift=:
18793 ;;
18794 --*=)
18795 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18796 ac_optarg=
18797 ac_shift=:
18798 ;;
18799 *)
18800 ac_option=$1
18801 ac_optarg=$2
18802 ac_shift=shift
18803 ;;
18804 esac
18805
18806 case $ac_option in
18807 # Handling of the options.
18808 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18809 ac_cs_recheck=: ;;
18810 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18811 $as_echo "$ac_cs_version"; exit ;;
18812 --config | --confi | --conf | --con | --co | --c )
18813 $as_echo "$ac_cs_config"; exit ;;
18814 --debug | --debu | --deb | --de | --d | -d )
18815 debug=: ;;
18816 --file | --fil | --fi | --f )
18817 $ac_shift
18818 case $ac_optarg in
18819 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18820 '') as_fn_error $? "missing file argument" ;;
18821 esac
18822 as_fn_append CONFIG_FILES " '$ac_optarg'"
18823 ac_need_defaults=false;;
18824 --header | --heade | --head | --hea )
18825 $ac_shift
18826 case $ac_optarg in
18827 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18828 esac
18829 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18830 ac_need_defaults=false;;
18831 --he | --h)
18832 # Conflict between --help and --header
18833 as_fn_error $? "ambiguous option: \`$1'
18834 Try \`$0 --help' for more information.";;
18835 --help | --hel | -h )
18836 $as_echo "$ac_cs_usage"; exit ;;
18837 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18838 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18839 ac_cs_silent=: ;;
18840
18841 # This is an error.
18842 -*) as_fn_error $? "unrecognized option: \`$1'
18843 Try \`$0 --help' for more information." ;;
18844
18845 *) as_fn_append ac_config_targets " $1"
18846 ac_need_defaults=false ;;
18847
18848 esac
18849 shift
18850 done
18851
18852 ac_configure_extra_args=
18853
18854 if $ac_cs_silent; then
18855 exec 6>/dev/null
18856 ac_configure_extra_args="$ac_configure_extra_args --silent"
18857 fi
18858
18859 _ACEOF
18860 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18861 if \$ac_cs_recheck; then
18862 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18863 shift
18864 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18865 CONFIG_SHELL='$SHELL'
18866 export CONFIG_SHELL
18867 exec "\$@"
18868 fi
18869
18870 _ACEOF
18871 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18872 exec 5>>config.log
18873 {
18874 echo
18875 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18876 ## Running $as_me. ##
18877 _ASBOX
18878 $as_echo "$ac_log"
18879 } >&5
18880
18881 _ACEOF
18882 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18883 #
18884 # INIT-COMMANDS
18885 #
18886 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18887
18888
18889 # The HP-UX ksh and POSIX shell print the target directory to stdout
18890 # if CDPATH is set.
18891 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18892
18893 sed_quote_subst='$sed_quote_subst'
18894 double_quote_subst='$double_quote_subst'
18895 delay_variable_subst='$delay_variable_subst'
18896 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18897 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18898 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18899 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18900 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18901 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18902 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18903 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18904 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18905 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18906 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18907 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18908 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18909 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18910 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18911 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18912 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18913 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18914 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18915 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18916 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18917 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18918 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18919 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18920 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18921 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18922 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18923 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18924 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18925 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18926 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18927 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18928 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18929 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18930 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18931 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18932 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18933 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18934 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18935 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18936 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18937 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18938 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18939 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18940 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18941 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18942 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18943 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18944 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18945 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18946 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18947 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18948 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18949 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18950 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18951 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18952 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"`'
18953 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18954 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18955 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18956 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18957 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18958 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18959 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18960 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18961 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18962 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18963 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18964 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18965 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18966 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18967 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18968 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18969 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18970 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18971 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18972 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18973 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18974 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18975 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18976 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18977 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18978 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18979 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18980 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18981 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18982 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18983 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18984 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18985 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18986 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18987 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18988 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18989 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18990 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18991 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18992 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18993 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18994 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18995 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18996 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18997 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18998 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18999 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19000 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19001 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19002 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19003 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19004 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19005 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19006 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19007 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19008 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19009 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19010 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19011 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19012 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19013 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19014 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19015 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19016 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19017 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19018 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19019 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19020 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19021 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19022 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19023 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19024 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19025 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19026
19027 LTCC='$LTCC'
19028 LTCFLAGS='$LTCFLAGS'
19029 compiler='$compiler_DEFAULT'
19030
19031 # A function that is used when there is no print builtin or printf.
19032 func_fallback_echo ()
19033 {
19034 eval 'cat <<_LTECHO_EOF
19035 \$1
19036 _LTECHO_EOF'
19037 }
19038
19039 # Quote evaled strings.
19040 for var in SHELL \
19041 ECHO \
19042 PATH_SEPARATOR \
19043 SED \
19044 GREP \
19045 EGREP \
19046 FGREP \
19047 LD \
19048 NM \
19049 LN_S \
19050 lt_SP2NL \
19051 lt_NL2SP \
19052 reload_flag \
19053 OBJDUMP \
19054 deplibs_check_method \
19055 file_magic_cmd \
19056 file_magic_glob \
19057 want_nocaseglob \
19058 DLLTOOL \
19059 sharedlib_from_linklib_cmd \
19060 AR \
19061 AR_FLAGS \
19062 archiver_list_spec \
19063 STRIP \
19064 RANLIB \
19065 CC \
19066 CFLAGS \
19067 compiler \
19068 lt_cv_sys_global_symbol_pipe \
19069 lt_cv_sys_global_symbol_to_cdecl \
19070 lt_cv_sys_global_symbol_to_c_name_address \
19071 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19072 nm_file_list_spec \
19073 lt_prog_compiler_no_builtin_flag \
19074 lt_prog_compiler_pic \
19075 lt_prog_compiler_wl \
19076 lt_prog_compiler_static \
19077 lt_cv_prog_compiler_c_o \
19078 need_locks \
19079 MANIFEST_TOOL \
19080 DSYMUTIL \
19081 NMEDIT \
19082 LIPO \
19083 OTOOL \
19084 OTOOL64 \
19085 shrext_cmds \
19086 export_dynamic_flag_spec \
19087 whole_archive_flag_spec \
19088 compiler_needs_object \
19089 with_gnu_ld \
19090 allow_undefined_flag \
19091 no_undefined_flag \
19092 hardcode_libdir_flag_spec \
19093 hardcode_libdir_separator \
19094 exclude_expsyms \
19095 include_expsyms \
19096 file_list_spec \
19097 variables_saved_for_relink \
19098 libname_spec \
19099 library_names_spec \
19100 soname_spec \
19101 install_override_mode \
19102 finish_eval \
19103 old_striplib \
19104 striplib; do
19105 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19106 *[\\\\\\\`\\"\\\$]*)
19107 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19108 ;;
19109 *)
19110 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19111 ;;
19112 esac
19113 done
19114
19115 # Double-quote double-evaled strings.
19116 for var in reload_cmds \
19117 old_postinstall_cmds \
19118 old_postuninstall_cmds \
19119 old_archive_cmds \
19120 extract_expsyms_cmds \
19121 old_archive_from_new_cmds \
19122 old_archive_from_expsyms_cmds \
19123 archive_cmds \
19124 archive_expsym_cmds \
19125 module_cmds \
19126 module_expsym_cmds \
19127 export_symbols_cmds \
19128 prelink_cmds \
19129 postlink_cmds \
19130 postinstall_cmds \
19131 postuninstall_cmds \
19132 finish_cmds \
19133 sys_lib_search_path_spec \
19134 sys_lib_dlsearch_path_spec; do
19135 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19136 *[\\\\\\\`\\"\\\$]*)
19137 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19138 ;;
19139 *)
19140 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19141 ;;
19142 esac
19143 done
19144
19145 ac_aux_dir='$ac_aux_dir'
19146 xsi_shell='$xsi_shell'
19147 lt_shell_append='$lt_shell_append'
19148
19149 # See if we are running on zsh, and set the options which allow our
19150 # commands through without removal of \ escapes INIT.
19151 if test -n "\${ZSH_VERSION+set}" ; then
19152 setopt NO_GLOB_SUBST
19153 fi
19154
19155
19156 PACKAGE='$PACKAGE'
19157 VERSION='$VERSION'
19158 TIMESTAMP='$TIMESTAMP'
19159 RM='$RM'
19160 ofile='$ofile'
19161
19162
19163
19164
19165 _ACEOF
19166
19167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19168
19169 # Handling of arguments.
19170 for ac_config_target in $ac_config_targets
19171 do
19172 case $ac_config_target in
19173 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19174 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19175 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19176 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19177 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19178 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19179
19180 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19181 esac
19182 done
19183
19184
19185 # If the user did not use the arguments to specify the items to instantiate,
19186 # then the envvar interface is used. Set only those that are not.
19187 # We use the long form for the default assignment because of an extremely
19188 # bizarre bug on SunOS 4.1.3.
19189 if $ac_need_defaults; then
19190 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19191 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19192 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19193 fi
19194
19195 # Have a temporary directory for convenience. Make it in the build tree
19196 # simply because there is no reason against having it here, and in addition,
19197 # creating and moving files from /tmp can sometimes cause problems.
19198 # Hook for its removal unless debugging.
19199 # Note that there is a small window in which the directory will not be cleaned:
19200 # after its creation but before its name has been assigned to `$tmp'.
19201 $debug ||
19202 {
19203 tmp= ac_tmp=
19204 trap 'exit_status=$?
19205 : "${ac_tmp:=$tmp}"
19206 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19207 ' 0
19208 trap 'as_fn_exit 1' 1 2 13 15
19209 }
19210 # Create a (secure) tmp directory for tmp files.
19211
19212 {
19213 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19214 test -d "$tmp"
19215 } ||
19216 {
19217 tmp=./conf$$-$RANDOM
19218 (umask 077 && mkdir "$tmp")
19219 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19220 ac_tmp=$tmp
19221
19222 # Set up the scripts for CONFIG_FILES section.
19223 # No need to generate them if there are no CONFIG_FILES.
19224 # This happens for instance with `./config.status config.h'.
19225 if test -n "$CONFIG_FILES"; then
19226
19227
19228 ac_cr=`echo X | tr X '\015'`
19229 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19230 # But we know of no other shell where ac_cr would be empty at this
19231 # point, so we can use a bashism as a fallback.
19232 if test "x$ac_cr" = x; then
19233 eval ac_cr=\$\'\\r\'
19234 fi
19235 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19236 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19237 ac_cs_awk_cr='\\r'
19238 else
19239 ac_cs_awk_cr=$ac_cr
19240 fi
19241
19242 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19243 _ACEOF
19244
19245
19246 {
19247 echo "cat >conf$$subs.awk <<_ACEOF" &&
19248 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19249 echo "_ACEOF"
19250 } >conf$$subs.sh ||
19251 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19252 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19253 ac_delim='%!_!# '
19254 for ac_last_try in false false false false false :; do
19255 . ./conf$$subs.sh ||
19256 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19257
19258 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19259 if test $ac_delim_n = $ac_delim_num; then
19260 break
19261 elif $ac_last_try; then
19262 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19263 else
19264 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19265 fi
19266 done
19267 rm -f conf$$subs.sh
19268
19269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19270 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19271 _ACEOF
19272 sed -n '
19273 h
19274 s/^/S["/; s/!.*/"]=/
19275 p
19276 g
19277 s/^[^!]*!//
19278 :repl
19279 t repl
19280 s/'"$ac_delim"'$//
19281 t delim
19282 :nl
19283 h
19284 s/\(.\{148\}\)..*/\1/
19285 t more1
19286 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19287 p
19288 n
19289 b repl
19290 :more1
19291 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19292 p
19293 g
19294 s/.\{148\}//
19295 t nl
19296 :delim
19297 h
19298 s/\(.\{148\}\)..*/\1/
19299 t more2
19300 s/["\\]/\\&/g; s/^/"/; s/$/"/
19301 p
19302 b
19303 :more2
19304 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19305 p
19306 g
19307 s/.\{148\}//
19308 t delim
19309 ' <conf$$subs.awk | sed '
19310 /^[^""]/{
19311 N
19312 s/\n//
19313 }
19314 ' >>$CONFIG_STATUS || ac_write_fail=1
19315 rm -f conf$$subs.awk
19316 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19317 _ACAWK
19318 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19319 for (key in S) S_is_set[key] = 1
19320 FS = ""
19321
19322 }
19323 {
19324 line = $ 0
19325 nfields = split(line, field, "@")
19326 substed = 0
19327 len = length(field[1])
19328 for (i = 2; i < nfields; i++) {
19329 key = field[i]
19330 keylen = length(key)
19331 if (S_is_set[key]) {
19332 value = S[key]
19333 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19334 len += length(value) + length(field[++i])
19335 substed = 1
19336 } else
19337 len += 1 + keylen
19338 }
19339
19340 print line
19341 }
19342
19343 _ACAWK
19344 _ACEOF
19345 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19346 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19347 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19348 else
19349 cat
19350 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19351 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19352 _ACEOF
19353
19354 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19355 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19356 # trailing colons and then remove the whole line if VPATH becomes empty
19357 # (actually we leave an empty line to preserve line numbers).
19358 if test "x$srcdir" = x.; then
19359 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19360 h
19361 s///
19362 s/^/:/
19363 s/[ ]*$/:/
19364 s/:\$(srcdir):/:/g
19365 s/:\${srcdir}:/:/g
19366 s/:@srcdir@:/:/g
19367 s/^:*//
19368 s/:*$//
19369 x
19370 s/\(=[ ]*\).*/\1/
19371 G
19372 s/\n//
19373 s/^[^=]*=[ ]*$//
19374 }'
19375 fi
19376
19377 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19378 fi # test -n "$CONFIG_FILES"
19379
19380 # Set up the scripts for CONFIG_HEADERS section.
19381 # No need to generate them if there are no CONFIG_HEADERS.
19382 # This happens for instance with `./config.status Makefile'.
19383 if test -n "$CONFIG_HEADERS"; then
19384 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19385 BEGIN {
19386 _ACEOF
19387
19388 # Transform confdefs.h into an awk script `defines.awk', embedded as
19389 # here-document in config.status, that substitutes the proper values into
19390 # config.h.in to produce config.h.
19391
19392 # Create a delimiter string that does not exist in confdefs.h, to ease
19393 # handling of long lines.
19394 ac_delim='%!_!# '
19395 for ac_last_try in false false :; do
19396 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19397 if test -z "$ac_tt"; then
19398 break
19399 elif $ac_last_try; then
19400 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19401 else
19402 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19403 fi
19404 done
19405
19406 # For the awk script, D is an array of macro values keyed by name,
19407 # likewise P contains macro parameters if any. Preserve backslash
19408 # newline sequences.
19409
19410 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19411 sed -n '
19412 s/.\{148\}/&'"$ac_delim"'/g
19413 t rset
19414 :rset
19415 s/^[ ]*#[ ]*define[ ][ ]*/ /
19416 t def
19417 d
19418 :def
19419 s/\\$//
19420 t bsnl
19421 s/["\\]/\\&/g
19422 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19423 D["\1"]=" \3"/p
19424 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19425 d
19426 :bsnl
19427 s/["\\]/\\&/g
19428 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19429 D["\1"]=" \3\\\\\\n"\\/p
19430 t cont
19431 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19432 t cont
19433 d
19434 :cont
19435 n
19436 s/.\{148\}/&'"$ac_delim"'/g
19437 t clear
19438 :clear
19439 s/\\$//
19440 t bsnlc
19441 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19442 d
19443 :bsnlc
19444 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19445 b cont
19446 ' <confdefs.h | sed '
19447 s/'"$ac_delim"'/"\\\
19448 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19449
19450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19451 for (key in D) D_is_set[key] = 1
19452 FS = ""
19453 }
19454 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19455 line = \$ 0
19456 split(line, arg, " ")
19457 if (arg[1] == "#") {
19458 defundef = arg[2]
19459 mac1 = arg[3]
19460 } else {
19461 defundef = substr(arg[1], 2)
19462 mac1 = arg[2]
19463 }
19464 split(mac1, mac2, "(") #)
19465 macro = mac2[1]
19466 prefix = substr(line, 1, index(line, defundef) - 1)
19467 if (D_is_set[macro]) {
19468 # Preserve the white space surrounding the "#".
19469 print prefix "define", macro P[macro] D[macro]
19470 next
19471 } else {
19472 # Replace #undef with comments. This is necessary, for example,
19473 # in the case of _POSIX_SOURCE, which is predefined and required
19474 # on some systems where configure will not decide to define it.
19475 if (defundef == "undef") {
19476 print "/*", prefix defundef, macro, "*/"
19477 next
19478 }
19479 }
19480 }
19481 { print }
19482 _ACAWK
19483 _ACEOF
19484 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19485 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19486 fi # test -n "$CONFIG_HEADERS"
19487
19488
19489 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19490 shift
19491 for ac_tag
19492 do
19493 case $ac_tag in
19494 :[FHLC]) ac_mode=$ac_tag; continue;;
19495 esac
19496 case $ac_mode$ac_tag in
19497 :[FHL]*:*);;
19498 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19499 :[FH]-) ac_tag=-:-;;
19500 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19501 esac
19502 ac_save_IFS=$IFS
19503 IFS=:
19504 set x $ac_tag
19505 IFS=$ac_save_IFS
19506 shift
19507 ac_file=$1
19508 shift
19509
19510 case $ac_mode in
19511 :L) ac_source=$1;;
19512 :[FH])
19513 ac_file_inputs=
19514 for ac_f
19515 do
19516 case $ac_f in
19517 -) ac_f="$ac_tmp/stdin";;
19518 *) # Look for the file first in the build tree, then in the source tree
19519 # (if the path is not absolute). The absolute path cannot be DOS-style,
19520 # because $ac_f cannot contain `:'.
19521 test -f "$ac_f" ||
19522 case $ac_f in
19523 [\\/$]*) false;;
19524 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19525 esac ||
19526 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19527 esac
19528 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19529 as_fn_append ac_file_inputs " '$ac_f'"
19530 done
19531
19532 # Let's still pretend it is `configure' which instantiates (i.e., don't
19533 # use $as_me), people would be surprised to read:
19534 # /* config.h. Generated by config.status. */
19535 configure_input='Generated from '`
19536 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19537 `' by configure.'
19538 if test x"$ac_file" != x-; then
19539 configure_input="$ac_file. $configure_input"
19540 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19541 $as_echo "$as_me: creating $ac_file" >&6;}
19542 fi
19543 # Neutralize special characters interpreted by sed in replacement strings.
19544 case $configure_input in #(
19545 *\&* | *\|* | *\\* )
19546 ac_sed_conf_input=`$as_echo "$configure_input" |
19547 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19548 *) ac_sed_conf_input=$configure_input;;
19549 esac
19550
19551 case $ac_tag in
19552 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19553 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19554 esac
19555 ;;
19556 esac
19557
19558 ac_dir=`$as_dirname -- "$ac_file" ||
19559 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19560 X"$ac_file" : 'X\(//\)[^/]' \| \
19561 X"$ac_file" : 'X\(//\)$' \| \
19562 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19563 $as_echo X"$ac_file" |
19564 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19565 s//\1/
19566 q
19567 }
19568 /^X\(\/\/\)[^/].*/{
19569 s//\1/
19570 q
19571 }
19572 /^X\(\/\/\)$/{
19573 s//\1/
19574 q
19575 }
19576 /^X\(\/\).*/{
19577 s//\1/
19578 q
19579 }
19580 s/.*/./; q'`
19581 as_dir="$ac_dir"; as_fn_mkdir_p
19582 ac_builddir=.
19583
19584 case "$ac_dir" in
19585 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19586 *)
19587 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19588 # A ".." for each directory in $ac_dir_suffix.
19589 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19590 case $ac_top_builddir_sub in
19591 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19592 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19593 esac ;;
19594 esac
19595 ac_abs_top_builddir=$ac_pwd
19596 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19597 # for backward compatibility:
19598 ac_top_builddir=$ac_top_build_prefix
19599
19600 case $srcdir in
19601 .) # We are building in place.
19602 ac_srcdir=.
19603 ac_top_srcdir=$ac_top_builddir_sub
19604 ac_abs_top_srcdir=$ac_pwd ;;
19605 [\\/]* | ?:[\\/]* ) # Absolute name.
19606 ac_srcdir=$srcdir$ac_dir_suffix;
19607 ac_top_srcdir=$srcdir
19608 ac_abs_top_srcdir=$srcdir ;;
19609 *) # Relative name.
19610 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19611 ac_top_srcdir=$ac_top_build_prefix$srcdir
19612 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19613 esac
19614 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19615
19616
19617 case $ac_mode in
19618 :F)
19619 #
19620 # CONFIG_FILE
19621 #
19622
19623 case $INSTALL in
19624 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19625 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19626 esac
19627 ac_MKDIR_P=$MKDIR_P
19628 case $MKDIR_P in
19629 [\\/$]* | ?:[\\/]* ) ;;
19630 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19631 esac
19632 _ACEOF
19633
19634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19635 # If the template does not know about datarootdir, expand it.
19636 # FIXME: This hack should be removed a few years after 2.60.
19637 ac_datarootdir_hack=; ac_datarootdir_seen=
19638 ac_sed_dataroot='
19639 /datarootdir/ {
19640 p
19641 q
19642 }
19643 /@datadir@/p
19644 /@docdir@/p
19645 /@infodir@/p
19646 /@localedir@/p
19647 /@mandir@/p'
19648 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19649 *datarootdir*) ac_datarootdir_seen=yes;;
19650 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19652 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19653 _ACEOF
19654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19655 ac_datarootdir_hack='
19656 s&@datadir@&$datadir&g
19657 s&@docdir@&$docdir&g
19658 s&@infodir@&$infodir&g
19659 s&@localedir@&$localedir&g
19660 s&@mandir@&$mandir&g
19661 s&\\\${datarootdir}&$datarootdir&g' ;;
19662 esac
19663 _ACEOF
19664
19665 # Neutralize VPATH when `$srcdir' = `.'.
19666 # Shell code in configure.ac might set extrasub.
19667 # FIXME: do we really want to maintain this feature?
19668 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19669 ac_sed_extra="$ac_vpsub
19670 $extrasub
19671 _ACEOF
19672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19673 :t
19674 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19675 s|@configure_input@|$ac_sed_conf_input|;t t
19676 s&@top_builddir@&$ac_top_builddir_sub&;t t
19677 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19678 s&@srcdir@&$ac_srcdir&;t t
19679 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19680 s&@top_srcdir@&$ac_top_srcdir&;t t
19681 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19682 s&@builddir@&$ac_builddir&;t t
19683 s&@abs_builddir@&$ac_abs_builddir&;t t
19684 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19685 s&@INSTALL@&$ac_INSTALL&;t t
19686 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19687 $ac_datarootdir_hack
19688 "
19689 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19690 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19691
19692 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19693 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19694 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19695 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19697 which seems to be undefined. Please make sure it is defined" >&5
19698 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19699 which seems to be undefined. Please make sure it is defined" >&2;}
19700
19701 rm -f "$ac_tmp/stdin"
19702 case $ac_file in
19703 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19704 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19705 esac \
19706 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19707 ;;
19708 :H)
19709 #
19710 # CONFIG_HEADER
19711 #
19712 if test x"$ac_file" != x-; then
19713 {
19714 $as_echo "/* $configure_input */" \
19715 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19716 } >"$ac_tmp/config.h" \
19717 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19718 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19719 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19720 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19721 else
19722 rm -f "$ac_file"
19723 mv "$ac_tmp/config.h" "$ac_file" \
19724 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19725 fi
19726 else
19727 $as_echo "/* $configure_input */" \
19728 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19729 || as_fn_error $? "could not create -" "$LINENO" 5
19730 fi
19731 # Compute "$ac_file"'s index in $config_headers.
19732 _am_arg="$ac_file"
19733 _am_stamp_count=1
19734 for _am_header in $config_headers :; do
19735 case $_am_header in
19736 $_am_arg | $_am_arg:* )
19737 break ;;
19738 * )
19739 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19740 esac
19741 done
19742 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19743 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19744 X"$_am_arg" : 'X\(//\)[^/]' \| \
19745 X"$_am_arg" : 'X\(//\)$' \| \
19746 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19747 $as_echo X"$_am_arg" |
19748 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19749 s//\1/
19750 q
19751 }
19752 /^X\(\/\/\)[^/].*/{
19753 s//\1/
19754 q
19755 }
19756 /^X\(\/\/\)$/{
19757 s//\1/
19758 q
19759 }
19760 /^X\(\/\).*/{
19761 s//\1/
19762 q
19763 }
19764 s/.*/./; q'`/stamp-h$_am_stamp_count
19765 ;;
19766
19767 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19768 $as_echo "$as_me: executing $ac_file commands" >&6;}
19769 ;;
19770 esac
19771
19772
19773 case $ac_file$ac_mode in
19774 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19775 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19776 # are listed without --file. Let's play safe and only enable the eval
19777 # if we detect the quoting.
19778 case $CONFIG_FILES in
19779 *\'*) eval set x "$CONFIG_FILES" ;;
19780 *) set x $CONFIG_FILES ;;
19781 esac
19782 shift
19783 for mf
19784 do
19785 # Strip MF so we end up with the name of the file.
19786 mf=`echo "$mf" | sed -e 's/:.*$//'`
19787 # Check whether this is an Automake generated Makefile or not.
19788 # We used to match only the files named `Makefile.in', but
19789 # some people rename them; so instead we look at the file content.
19790 # Grep'ing the first line is not enough: some people post-process
19791 # each Makefile.in and add a new line on top of each file to say so.
19792 # Grep'ing the whole file is not good either: AIX grep has a line
19793 # limit of 2048, but all sed's we know have understand at least 4000.
19794 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19795 dirpart=`$as_dirname -- "$mf" ||
19796 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19797 X"$mf" : 'X\(//\)[^/]' \| \
19798 X"$mf" : 'X\(//\)$' \| \
19799 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19800 $as_echo X"$mf" |
19801 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19802 s//\1/
19803 q
19804 }
19805 /^X\(\/\/\)[^/].*/{
19806 s//\1/
19807 q
19808 }
19809 /^X\(\/\/\)$/{
19810 s//\1/
19811 q
19812 }
19813 /^X\(\/\).*/{
19814 s//\1/
19815 q
19816 }
19817 s/.*/./; q'`
19818 else
19819 continue
19820 fi
19821 # Extract the definition of DEPDIR, am__include, and am__quote
19822 # from the Makefile without running `make'.
19823 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19824 test -z "$DEPDIR" && continue
19825 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19826 test -z "am__include" && continue
19827 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19828 # When using ansi2knr, U may be empty or an underscore; expand it
19829 U=`sed -n 's/^U = //p' < "$mf"`
19830 # Find all dependency output files, they are included files with
19831 # $(DEPDIR) in their names. We invoke sed twice because it is the
19832 # simplest approach to changing $(DEPDIR) to its actual value in the
19833 # expansion.
19834 for file in `sed -n "
19835 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19836 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19837 # Make sure the directory exists.
19838 test -f "$dirpart/$file" && continue
19839 fdir=`$as_dirname -- "$file" ||
19840 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19841 X"$file" : 'X\(//\)[^/]' \| \
19842 X"$file" : 'X\(//\)$' \| \
19843 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19844 $as_echo X"$file" |
19845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19846 s//\1/
19847 q
19848 }
19849 /^X\(\/\/\)[^/].*/{
19850 s//\1/
19851 q
19852 }
19853 /^X\(\/\/\)$/{
19854 s//\1/
19855 q
19856 }
19857 /^X\(\/\).*/{
19858 s//\1/
19859 q
19860 }
19861 s/.*/./; q'`
19862 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19863 # echo "creating $dirpart/$file"
19864 echo '# dummy' > "$dirpart/$file"
19865 done
19866 done
19867 }
19868 ;;
19869 "libtool":C)
19870
19871 # See if we are running on zsh, and set the options which allow our
19872 # commands through without removal of \ escapes.
19873 if test -n "${ZSH_VERSION+set}" ; then
19874 setopt NO_GLOB_SUBST
19875 fi
19876
19877 cfgfile="${ofile}T"
19878 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19879 $RM "$cfgfile"
19880
19881 cat <<_LT_EOF >> "$cfgfile"
19882 #! $SHELL
19883
19884 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19885 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19886 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19887 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19888 #
19889 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19890 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19891 # Foundation, Inc.
19892 # Written by Gordon Matzigkeit, 1996
19893 #
19894 # This file is part of GNU Libtool.
19895 #
19896 # GNU Libtool is free software; you can redistribute it and/or
19897 # modify it under the terms of the GNU General Public License as
19898 # published by the Free Software Foundation; either version 2 of
19899 # the License, or (at your option) any later version.
19900 #
19901 # As a special exception to the GNU General Public License,
19902 # if you distribute this file as part of a program or library that
19903 # is built using GNU Libtool, you may include this file under the
19904 # same distribution terms that you use for the rest of that program.
19905 #
19906 # GNU Libtool is distributed in the hope that it will be useful,
19907 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19908 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19909 # GNU General Public License for more details.
19910 #
19911 # You should have received a copy of the GNU General Public License
19912 # along with GNU Libtool; see the file COPYING. If not, a copy
19913 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19914 # obtained by writing to the Free Software Foundation, Inc.,
19915 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19916
19917
19918 # The names of the tagged configurations supported by this script.
19919 available_tags=""
19920
19921 # ### BEGIN LIBTOOL CONFIG
19922
19923 # Whether or not to build static libraries.
19924 build_old_libs=$enable_static
19925
19926 # Which release of libtool.m4 was used?
19927 macro_version=$macro_version
19928 macro_revision=$macro_revision
19929
19930 # Whether or not to build shared libraries.
19931 build_libtool_libs=$enable_shared
19932
19933 # What type of objects to build.
19934 pic_mode=$pic_mode
19935
19936 # Whether or not to optimize for fast installation.
19937 fast_install=$enable_fast_install
19938
19939 # Shell to use when invoking shell scripts.
19940 SHELL=$lt_SHELL
19941
19942 # An echo program that protects backslashes.
19943 ECHO=$lt_ECHO
19944
19945 # The PATH separator for the build system.
19946 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19947
19948 # The host system.
19949 host_alias=$host_alias
19950 host=$host
19951 host_os=$host_os
19952
19953 # The build system.
19954 build_alias=$build_alias
19955 build=$build
19956 build_os=$build_os
19957
19958 # A sed program that does not truncate output.
19959 SED=$lt_SED
19960
19961 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19962 Xsed="\$SED -e 1s/^X//"
19963
19964 # A grep program that handles long lines.
19965 GREP=$lt_GREP
19966
19967 # An ERE matcher.
19968 EGREP=$lt_EGREP
19969
19970 # A literal string matcher.
19971 FGREP=$lt_FGREP
19972
19973 # A BSD- or MS-compatible name lister.
19974 NM=$lt_NM
19975
19976 # Whether we need soft or hard links.
19977 LN_S=$lt_LN_S
19978
19979 # What is the maximum length of a command?
19980 max_cmd_len=$max_cmd_len
19981
19982 # Object file suffix (normally "o").
19983 objext=$ac_objext
19984
19985 # Executable file suffix (normally "").
19986 exeext=$exeext
19987
19988 # whether the shell understands "unset".
19989 lt_unset=$lt_unset
19990
19991 # turn spaces into newlines.
19992 SP2NL=$lt_lt_SP2NL
19993
19994 # turn newlines into spaces.
19995 NL2SP=$lt_lt_NL2SP
19996
19997 # convert \$build file names to \$host format.
19998 to_host_file_cmd=$lt_cv_to_host_file_cmd
19999
20000 # convert \$build files to toolchain format.
20001 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20002
20003 # An object symbol dumper.
20004 OBJDUMP=$lt_OBJDUMP
20005
20006 # Method to check whether dependent libraries are shared objects.
20007 deplibs_check_method=$lt_deplibs_check_method
20008
20009 # Command to use when deplibs_check_method = "file_magic".
20010 file_magic_cmd=$lt_file_magic_cmd
20011
20012 # How to find potential files when deplibs_check_method = "file_magic".
20013 file_magic_glob=$lt_file_magic_glob
20014
20015 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20016 want_nocaseglob=$lt_want_nocaseglob
20017
20018 # DLL creation program.
20019 DLLTOOL=$lt_DLLTOOL
20020
20021 # Command to associate shared and link libraries.
20022 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20023
20024 # The archiver.
20025 AR=$lt_AR
20026
20027 # Flags to create an archive.
20028 AR_FLAGS=$lt_AR_FLAGS
20029
20030 # How to feed a file listing to the archiver.
20031 archiver_list_spec=$lt_archiver_list_spec
20032
20033 # A symbol stripping program.
20034 STRIP=$lt_STRIP
20035
20036 # Commands used to install an old-style archive.
20037 RANLIB=$lt_RANLIB
20038 old_postinstall_cmds=$lt_old_postinstall_cmds
20039 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20040
20041 # Whether to use a lock for old archive extraction.
20042 lock_old_archive_extraction=$lock_old_archive_extraction
20043
20044 # A C compiler.
20045 LTCC=$lt_CC
20046
20047 # LTCC compiler flags.
20048 LTCFLAGS=$lt_CFLAGS
20049
20050 # Take the output of nm and produce a listing of raw symbols and C names.
20051 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20052
20053 # Transform the output of nm in a proper C declaration.
20054 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20055
20056 # Transform the output of nm in a C name address pair.
20057 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20058
20059 # Transform the output of nm in a C name address pair when lib prefix is needed.
20060 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20061
20062 # Specify filename containing input files for \$NM.
20063 nm_file_list_spec=$lt_nm_file_list_spec
20064
20065 # The root where to search for dependent libraries,and in which our libraries should be installed.
20066 lt_sysroot=$lt_sysroot
20067
20068 # The name of the directory that contains temporary libtool files.
20069 objdir=$objdir
20070
20071 # Used to examine libraries when file_magic_cmd begins with "file".
20072 MAGIC_CMD=$MAGIC_CMD
20073
20074 # Must we lock files when doing compilation?
20075 need_locks=$lt_need_locks
20076
20077 # Manifest tool.
20078 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20079
20080 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20081 DSYMUTIL=$lt_DSYMUTIL
20082
20083 # Tool to change global to local symbols on Mac OS X.
20084 NMEDIT=$lt_NMEDIT
20085
20086 # Tool to manipulate fat objects and archives on Mac OS X.
20087 LIPO=$lt_LIPO
20088
20089 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20090 OTOOL=$lt_OTOOL
20091
20092 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20093 OTOOL64=$lt_OTOOL64
20094
20095 # Old archive suffix (normally "a").
20096 libext=$libext
20097
20098 # Shared library suffix (normally ".so").
20099 shrext_cmds=$lt_shrext_cmds
20100
20101 # The commands to extract the exported symbol list from a shared archive.
20102 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20103
20104 # Variables whose values should be saved in libtool wrapper scripts and
20105 # restored at link time.
20106 variables_saved_for_relink=$lt_variables_saved_for_relink
20107
20108 # Do we need the "lib" prefix for modules?
20109 need_lib_prefix=$need_lib_prefix
20110
20111 # Do we need a version for libraries?
20112 need_version=$need_version
20113
20114 # Library versioning type.
20115 version_type=$version_type
20116
20117 # Shared library runtime path variable.
20118 runpath_var=$runpath_var
20119
20120 # Shared library path variable.
20121 shlibpath_var=$shlibpath_var
20122
20123 # Is shlibpath searched before the hard-coded library search path?
20124 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20125
20126 # Format of library name prefix.
20127 libname_spec=$lt_libname_spec
20128
20129 # List of archive names. First name is the real one, the rest are links.
20130 # The last name is the one that the linker finds with -lNAME
20131 library_names_spec=$lt_library_names_spec
20132
20133 # The coded name of the library, if different from the real name.
20134 soname_spec=$lt_soname_spec
20135
20136 # Permission mode override for installation of shared libraries.
20137 install_override_mode=$lt_install_override_mode
20138
20139 # Command to use after installation of a shared archive.
20140 postinstall_cmds=$lt_postinstall_cmds
20141
20142 # Command to use after uninstallation of a shared archive.
20143 postuninstall_cmds=$lt_postuninstall_cmds
20144
20145 # Commands used to finish a libtool library installation in a directory.
20146 finish_cmds=$lt_finish_cmds
20147
20148 # As "finish_cmds", except a single script fragment to be evaled but
20149 # not shown.
20150 finish_eval=$lt_finish_eval
20151
20152 # Whether we should hardcode library paths into libraries.
20153 hardcode_into_libs=$hardcode_into_libs
20154
20155 # Compile-time system search path for libraries.
20156 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20157
20158 # Run-time system search path for libraries.
20159 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20160
20161 # Whether dlopen is supported.
20162 dlopen_support=$enable_dlopen
20163
20164 # Whether dlopen of programs is supported.
20165 dlopen_self=$enable_dlopen_self
20166
20167 # Whether dlopen of statically linked programs is supported.
20168 dlopen_self_static=$enable_dlopen_self_static
20169
20170 # Commands to strip libraries.
20171 old_striplib=$lt_old_striplib
20172 striplib=$lt_striplib
20173
20174
20175 # The linker used to build libraries.
20176 LD=$lt_LD
20177
20178 # How to create reloadable object files.
20179 reload_flag=$lt_reload_flag
20180 reload_cmds=$lt_reload_cmds
20181
20182 # Commands used to build an old-style archive.
20183 old_archive_cmds=$lt_old_archive_cmds
20184
20185 # A language specific compiler.
20186 CC=$lt_compiler
20187
20188 # Is the compiler the GNU compiler?
20189 with_gcc=$GCC
20190
20191 # Compiler flag to turn off builtin functions.
20192 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20193
20194 # Additional compiler flags for building library objects.
20195 pic_flag=$lt_lt_prog_compiler_pic
20196
20197 # How to pass a linker flag through the compiler.
20198 wl=$lt_lt_prog_compiler_wl
20199
20200 # Compiler flag to prevent dynamic linking.
20201 link_static_flag=$lt_lt_prog_compiler_static
20202
20203 # Does compiler simultaneously support -c and -o options?
20204 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20205
20206 # Whether or not to add -lc for building shared libraries.
20207 build_libtool_need_lc=$archive_cmds_need_lc
20208
20209 # Whether or not to disallow shared libs when runtime libs are static.
20210 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20211
20212 # Compiler flag to allow reflexive dlopens.
20213 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20214
20215 # Compiler flag to generate shared objects directly from archives.
20216 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20217
20218 # Whether the compiler copes with passing no objects directly.
20219 compiler_needs_object=$lt_compiler_needs_object
20220
20221 # Create an old-style archive from a shared archive.
20222 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20223
20224 # Create a temporary old-style archive to link instead of a shared archive.
20225 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20226
20227 # Commands used to build a shared archive.
20228 archive_cmds=$lt_archive_cmds
20229 archive_expsym_cmds=$lt_archive_expsym_cmds
20230
20231 # Commands used to build a loadable module if different from building
20232 # a shared archive.
20233 module_cmds=$lt_module_cmds
20234 module_expsym_cmds=$lt_module_expsym_cmds
20235
20236 # Whether we are building with GNU ld or not.
20237 with_gnu_ld=$lt_with_gnu_ld
20238
20239 # Flag that allows shared libraries with undefined symbols to be built.
20240 allow_undefined_flag=$lt_allow_undefined_flag
20241
20242 # Flag that enforces no undefined symbols.
20243 no_undefined_flag=$lt_no_undefined_flag
20244
20245 # Flag to hardcode \$libdir into a binary during linking.
20246 # This must work even if \$libdir does not exist
20247 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20248
20249 # Whether we need a single "-rpath" flag with a separated argument.
20250 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20251
20252 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20253 # DIR into the resulting binary.
20254 hardcode_direct=$hardcode_direct
20255
20256 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20257 # DIR into the resulting binary and the resulting library dependency is
20258 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20259 # library is relocated.
20260 hardcode_direct_absolute=$hardcode_direct_absolute
20261
20262 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20263 # into the resulting binary.
20264 hardcode_minus_L=$hardcode_minus_L
20265
20266 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20267 # into the resulting binary.
20268 hardcode_shlibpath_var=$hardcode_shlibpath_var
20269
20270 # Set to "yes" if building a shared library automatically hardcodes DIR
20271 # into the library and all subsequent libraries and executables linked
20272 # against it.
20273 hardcode_automatic=$hardcode_automatic
20274
20275 # Set to yes if linker adds runtime paths of dependent libraries
20276 # to runtime path list.
20277 inherit_rpath=$inherit_rpath
20278
20279 # Whether libtool must link a program against all its dependency libraries.
20280 link_all_deplibs=$link_all_deplibs
20281
20282 # Set to "yes" if exported symbols are required.
20283 always_export_symbols=$always_export_symbols
20284
20285 # The commands to list exported symbols.
20286 export_symbols_cmds=$lt_export_symbols_cmds
20287
20288 # Symbols that should not be listed in the preloaded symbols.
20289 exclude_expsyms=$lt_exclude_expsyms
20290
20291 # Symbols that must always be exported.
20292 include_expsyms=$lt_include_expsyms
20293
20294 # Commands necessary for linking programs (against libraries) with templates.
20295 prelink_cmds=$lt_prelink_cmds
20296
20297 # Commands necessary for finishing linking programs.
20298 postlink_cmds=$lt_postlink_cmds
20299
20300 # Specify filename containing input files.
20301 file_list_spec=$lt_file_list_spec
20302
20303 # How to hardcode a shared library path into an executable.
20304 hardcode_action=$hardcode_action
20305
20306 # ### END LIBTOOL CONFIG
20307
20308 _LT_EOF
20309
20310 case $host_os in
20311 aix3*)
20312 cat <<\_LT_EOF >> "$cfgfile"
20313 # AIX sometimes has problems with the GCC collect2 program. For some
20314 # reason, if we set the COLLECT_NAMES environment variable, the problems
20315 # vanish in a puff of smoke.
20316 if test "X${COLLECT_NAMES+set}" != Xset; then
20317 COLLECT_NAMES=
20318 export COLLECT_NAMES
20319 fi
20320 _LT_EOF
20321 ;;
20322 esac
20323
20324
20325 ltmain="$ac_aux_dir/ltmain.sh"
20326
20327
20328 # We use sed instead of cat because bash on DJGPP gets confused if
20329 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20330 # text mode, it properly converts lines to CR/LF. This bash problem
20331 # is reportedly fixed, but why not run on old versions too?
20332 sed '$q' "$ltmain" >> "$cfgfile" \
20333 || (rm -f "$cfgfile"; exit 1)
20334
20335 if test x"$xsi_shell" = xyes; then
20336 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20337 func_dirname ()\
20338 {\
20339 \ case ${1} in\
20340 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20341 \ * ) func_dirname_result="${3}" ;;\
20342 \ esac\
20343 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20344 && mv -f "$cfgfile.tmp" "$cfgfile" \
20345 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20346 test 0 -eq $? || _lt_function_replace_fail=:
20347
20348
20349 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20350 func_basename ()\
20351 {\
20352 \ func_basename_result="${1##*/}"\
20353 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20354 && mv -f "$cfgfile.tmp" "$cfgfile" \
20355 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20356 test 0 -eq $? || _lt_function_replace_fail=:
20357
20358
20359 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20360 func_dirname_and_basename ()\
20361 {\
20362 \ case ${1} in\
20363 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20364 \ * ) func_dirname_result="${3}" ;;\
20365 \ esac\
20366 \ func_basename_result="${1##*/}"\
20367 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20368 && mv -f "$cfgfile.tmp" "$cfgfile" \
20369 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20370 test 0 -eq $? || _lt_function_replace_fail=:
20371
20372
20373 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20374 func_stripname ()\
20375 {\
20376 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20377 \ # positional parameters, so assign one to ordinary parameter first.\
20378 \ func_stripname_result=${3}\
20379 \ func_stripname_result=${func_stripname_result#"${1}"}\
20380 \ func_stripname_result=${func_stripname_result%"${2}"}\
20381 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20382 && mv -f "$cfgfile.tmp" "$cfgfile" \
20383 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20384 test 0 -eq $? || _lt_function_replace_fail=:
20385
20386
20387 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20388 func_split_long_opt ()\
20389 {\
20390 \ func_split_long_opt_name=${1%%=*}\
20391 \ func_split_long_opt_arg=${1#*=}\
20392 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20393 && mv -f "$cfgfile.tmp" "$cfgfile" \
20394 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20395 test 0 -eq $? || _lt_function_replace_fail=:
20396
20397
20398 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20399 func_split_short_opt ()\
20400 {\
20401 \ func_split_short_opt_arg=${1#??}\
20402 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20403 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20404 && mv -f "$cfgfile.tmp" "$cfgfile" \
20405 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20406 test 0 -eq $? || _lt_function_replace_fail=:
20407
20408
20409 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20410 func_lo2o ()\
20411 {\
20412 \ case ${1} in\
20413 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20414 \ *) func_lo2o_result=${1} ;;\
20415 \ esac\
20416 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20417 && mv -f "$cfgfile.tmp" "$cfgfile" \
20418 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20419 test 0 -eq $? || _lt_function_replace_fail=:
20420
20421
20422 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20423 func_xform ()\
20424 {\
20425 func_xform_result=${1%.*}.lo\
20426 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20427 && mv -f "$cfgfile.tmp" "$cfgfile" \
20428 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20429 test 0 -eq $? || _lt_function_replace_fail=:
20430
20431
20432 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20433 func_arith ()\
20434 {\
20435 func_arith_result=$(( $* ))\
20436 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20437 && mv -f "$cfgfile.tmp" "$cfgfile" \
20438 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20439 test 0 -eq $? || _lt_function_replace_fail=:
20440
20441
20442 sed -e '/^func_len ()$/,/^} # func_len /c\
20443 func_len ()\
20444 {\
20445 func_len_result=${#1}\
20446 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20447 && mv -f "$cfgfile.tmp" "$cfgfile" \
20448 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20449 test 0 -eq $? || _lt_function_replace_fail=:
20450
20451 fi
20452
20453 if test x"$lt_shell_append" = xyes; then
20454 sed -e '/^func_append ()$/,/^} # func_append /c\
20455 func_append ()\
20456 {\
20457 eval "${1}+=\\${2}"\
20458 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20459 && mv -f "$cfgfile.tmp" "$cfgfile" \
20460 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20461 test 0 -eq $? || _lt_function_replace_fail=:
20462
20463
20464 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20465 func_append_quoted ()\
20466 {\
20467 \ func_quote_for_eval "${2}"\
20468 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20469 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20470 && mv -f "$cfgfile.tmp" "$cfgfile" \
20471 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20472 test 0 -eq $? || _lt_function_replace_fail=:
20473
20474
20475 # Save a `func_append' function call where possible by direct use of '+='
20476 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20477 && mv -f "$cfgfile.tmp" "$cfgfile" \
20478 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20479 test 0 -eq $? || _lt_function_replace_fail=:
20480 else
20481 # Save a `func_append' function call even when '+=' is not available
20482 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20483 && mv -f "$cfgfile.tmp" "$cfgfile" \
20484 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20485 test 0 -eq $? || _lt_function_replace_fail=:
20486 fi
20487
20488 if test x"$_lt_function_replace_fail" = x":"; then
20489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20490 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20491 fi
20492
20493
20494 mv -f "$cfgfile" "$ofile" ||
20495 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20496 chmod +x "$ofile"
20497
20498 ;;
20499
20500 esac
20501 done # for ac_tag
20502
20503
20504 as_fn_exit 0
20505 _ACEOF
20506 ac_clean_files=$ac_clean_files_save
20507
20508 test $ac_write_fail = 0 ||
20509 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20510
20511
20512 # configure is writing to config.log, and then calls config.status.
20513 # config.status does its own redirection, appending to config.log.
20514 # Unfortunately, on DOS this fails, as config.log is still kept open
20515 # by configure, so config.status won't be able to write to it; its
20516 # output is simply discarded. So we exec the FD to /dev/null,
20517 # effectively closing config.log, so it can be properly (re)opened and
20518 # appended to by config.status. When coming back to configure, we
20519 # need to make the FD available again.
20520 if test "$no_create" != yes; then
20521 ac_cs_success=:
20522 ac_config_status_args=
20523 test "$silent" = yes &&
20524 ac_config_status_args="$ac_config_status_args --quiet"
20525 exec 5>/dev/null
20526 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20527 exec 5>>config.log
20528 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20529 # would make configure fail if this is the last instruction.
20530 $ac_cs_success || as_fn_exit 1
20531 fi
20532 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20534 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20535 fi
20536
20537