configure revision 1.1.1.6 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xf86-video-i740 1.3.5.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
278 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='xf86-video-i740'
593 PACKAGE_TARNAME='xf86-video-i740'
594 PACKAGE_VERSION='1.3.5'
595 PACKAGE_STRING='xf86-video-i740 1.3.5'
596 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
597 PACKAGE_URL=''
598
599 ac_unique_file="Makefile.am"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 DRIVER_NAME
641 moduledir
642 XAA_FALSE
643 XAA_TRUE
644 XSERVER_LIBPCIACCESS_FALSE
645 XSERVER_LIBPCIACCESS_TRUE
646 PCIACCESS_LIBS
647 PCIACCESS_CFLAGS
648 XORG_LIBS
649 XORG_CFLAGS
650 OTOOL64
651 OTOOL
652 LIPO
653 NMEDIT
654 DSYMUTIL
655 MANIFEST_TOOL
656 RANLIB
657 ac_ct_AR
658 AR
659 DLLTOOL
660 OBJDUMP
661 LN_S
662 NM
663 ac_ct_DUMPBIN
664 DUMPBIN
665 LD
666 FGREP
667 LIBTOOL
668 MAN_SUBSTS
669 XORG_MAN_PAGE
670 ADMIN_MAN_DIR
671 DRIVER_MAN_DIR
672 MISC_MAN_DIR
673 FILE_MAN_DIR
674 LIB_MAN_DIR
675 APP_MAN_DIR
676 ADMIN_MAN_SUFFIX
677 DRIVER_MAN_SUFFIX
678 MISC_MAN_SUFFIX
679 FILE_MAN_SUFFIX
680 LIB_MAN_SUFFIX
681 APP_MAN_SUFFIX
682 SED
683 host_os
684 host_vendor
685 host_cpu
686 host
687 build_os
688 build_vendor
689 build_cpu
690 build
691 INSTALL_CMD
692 PKG_CONFIG_LIBDIR
693 PKG_CONFIG_PATH
694 PKG_CONFIG
695 CHANGELOG_CMD
696 STRICT_CFLAGS
697 CWARNFLAGS
698 BASE_CFLAGS
699 EGREP
700 GREP
701 CPP
702 am__fastdepCC_FALSE
703 am__fastdepCC_TRUE
704 CCDEPMODE
705 am__nodep
706 AMDEPBACKSLASH
707 AMDEP_FALSE
708 AMDEP_TRUE
709 am__quote
710 am__include
711 DEPDIR
712 OBJEXT
713 EXEEXT
714 ac_ct_CC
715 CPPFLAGS
716 LDFLAGS
717 CFLAGS
718 CC
719 MAINT
720 MAINTAINER_MODE_FALSE
721 MAINTAINER_MODE_TRUE
722 AM_BACKSLASH
723 AM_DEFAULT_VERBOSITY
724 AM_DEFAULT_V
725 AM_V
726 am__untar
727 am__tar
728 AMTAR
729 am__leading_dot
730 SET_MAKE
731 AWK
732 mkdir_p
733 MKDIR_P
734 INSTALL_STRIP_PROGRAM
735 STRIP
736 install_sh
737 MAKEINFO
738 AUTOHEADER
739 AUTOMAKE
740 AUTOCONF
741 ACLOCAL
742 VERSION
743 PACKAGE
744 CYGPATH_W
745 am__isrc
746 INSTALL_DATA
747 INSTALL_SCRIPT
748 INSTALL_PROGRAM
749 target_alias
750 host_alias
751 build_alias
752 LIBS
753 ECHO_T
754 ECHO_N
755 ECHO_C
756 DEFS
757 mandir
758 localedir
759 libdir
760 psdir
761 pdfdir
762 dvidir
763 htmldir
764 infodir
765 docdir
766 oldincludedir
767 includedir
768 localstatedir
769 sharedstatedir
770 sysconfdir
771 datadir
772 datarootdir
773 libexecdir
774 sbindir
775 bindir
776 program_transform_name
777 prefix
778 exec_prefix
779 PACKAGE_URL
780 PACKAGE_BUGREPORT
781 PACKAGE_STRING
782 PACKAGE_VERSION
783 PACKAGE_TARNAME
784 PACKAGE_NAME
785 PATH_SEPARATOR
786 SHELL'
787 ac_subst_files=''
788 ac_user_opts='
789 enable_option_checking
790 enable_silent_rules
791 enable_maintainer_mode
792 enable_dependency_tracking
793 enable_selective_werror
794 enable_strict_compilation
795 enable_static
796 enable_shared
797 with_pic
798 enable_fast_install
799 with_gnu_ld
800 with_sysroot
801 enable_libtool_lock
802 with_xorg_module_dir
803 enable_xaa
804 '
805 ac_precious_vars='build_alias
806 host_alias
807 target_alias
808 CC
809 CFLAGS
810 LDFLAGS
811 LIBS
812 CPPFLAGS
813 CPP
814 PKG_CONFIG
815 PKG_CONFIG_PATH
816 PKG_CONFIG_LIBDIR
817 XORG_CFLAGS
818 XORG_LIBS
819 PCIACCESS_CFLAGS
820 PCIACCESS_LIBS'
821
822
823 # Initialize some variables set by options.
824 ac_init_help=
825 ac_init_version=false
826 ac_unrecognized_opts=
827 ac_unrecognized_sep=
828 # The variables have the same names as the options, with
829 # dashes changed to underlines.
830 cache_file=/dev/null
831 exec_prefix=NONE
832 no_create=
833 no_recursion=
834 prefix=NONE
835 program_prefix=NONE
836 program_suffix=NONE
837 program_transform_name=s,x,x,
838 silent=
839 site=
840 srcdir=
841 verbose=
842 x_includes=NONE
843 x_libraries=NONE
844
845 # Installation directory options.
846 # These are left unexpanded so users can "make install exec_prefix=/foo"
847 # and all the variables that are supposed to be based on exec_prefix
848 # by default will actually change.
849 # Use braces instead of parens because sh, perl, etc. also accept them.
850 # (The list follows the same order as the GNU Coding Standards.)
851 bindir='${exec_prefix}/bin'
852 sbindir='${exec_prefix}/sbin'
853 libexecdir='${exec_prefix}/libexec'
854 datarootdir='${prefix}/share'
855 datadir='${datarootdir}'
856 sysconfdir='${prefix}/etc'
857 sharedstatedir='${prefix}/com'
858 localstatedir='${prefix}/var'
859 includedir='${prefix}/include'
860 oldincludedir='/usr/include'
861 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
862 infodir='${datarootdir}/info'
863 htmldir='${docdir}'
864 dvidir='${docdir}'
865 pdfdir='${docdir}'
866 psdir='${docdir}'
867 libdir='${exec_prefix}/lib'
868 localedir='${datarootdir}/locale'
869 mandir='${datarootdir}/man'
870
871 ac_prev=
872 ac_dashdash=
873 for ac_option
874 do
875 # If the previous option needs an argument, assign it.
876 if test -n "$ac_prev"; then
877 eval $ac_prev=\$ac_option
878 ac_prev=
879 continue
880 fi
881
882 case $ac_option in
883 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
884 *=) ac_optarg= ;;
885 *) ac_optarg=yes ;;
886 esac
887
888 # Accept the important Cygnus configure options, so we can diagnose typos.
889
890 case $ac_dashdash$ac_option in
891 --)
892 ac_dashdash=yes ;;
893
894 -bindir | --bindir | --bindi | --bind | --bin | --bi)
895 ac_prev=bindir ;;
896 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
897 bindir=$ac_optarg ;;
898
899 -build | --build | --buil | --bui | --bu)
900 ac_prev=build_alias ;;
901 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
902 build_alias=$ac_optarg ;;
903
904 -cache-file | --cache-file | --cache-fil | --cache-fi \
905 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
906 ac_prev=cache_file ;;
907 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
908 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
909 cache_file=$ac_optarg ;;
910
911 --config-cache | -C)
912 cache_file=config.cache ;;
913
914 -datadir | --datadir | --datadi | --datad)
915 ac_prev=datadir ;;
916 -datadir=* | --datadir=* | --datadi=* | --datad=*)
917 datadir=$ac_optarg ;;
918
919 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
920 | --dataroo | --dataro | --datar)
921 ac_prev=datarootdir ;;
922 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
923 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
924 datarootdir=$ac_optarg ;;
925
926 -disable-* | --disable-*)
927 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
928 # Reject names that are not valid shell variable names.
929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
930 as_fn_error $? "invalid feature name: $ac_useropt"
931 ac_useropt_orig=$ac_useropt
932 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
933 case $ac_user_opts in
934 *"
935 "enable_$ac_useropt"
936 "*) ;;
937 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
938 ac_unrecognized_sep=', ';;
939 esac
940 eval enable_$ac_useropt=no ;;
941
942 -docdir | --docdir | --docdi | --doc | --do)
943 ac_prev=docdir ;;
944 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
945 docdir=$ac_optarg ;;
946
947 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
948 ac_prev=dvidir ;;
949 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
950 dvidir=$ac_optarg ;;
951
952 -enable-* | --enable-*)
953 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
954 # Reject names that are not valid shell variable names.
955 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
956 as_fn_error $? "invalid feature name: $ac_useropt"
957 ac_useropt_orig=$ac_useropt
958 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
959 case $ac_user_opts in
960 *"
961 "enable_$ac_useropt"
962 "*) ;;
963 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
964 ac_unrecognized_sep=', ';;
965 esac
966 eval enable_$ac_useropt=\$ac_optarg ;;
967
968 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
969 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
970 | --exec | --exe | --ex)
971 ac_prev=exec_prefix ;;
972 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
973 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
974 | --exec=* | --exe=* | --ex=*)
975 exec_prefix=$ac_optarg ;;
976
977 -gas | --gas | --ga | --g)
978 # Obsolete; use --with-gas.
979 with_gas=yes ;;
980
981 -help | --help | --hel | --he | -h)
982 ac_init_help=long ;;
983 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
984 ac_init_help=recursive ;;
985 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
986 ac_init_help=short ;;
987
988 -host | --host | --hos | --ho)
989 ac_prev=host_alias ;;
990 -host=* | --host=* | --hos=* | --ho=*)
991 host_alias=$ac_optarg ;;
992
993 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
994 ac_prev=htmldir ;;
995 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
996 | --ht=*)
997 htmldir=$ac_optarg ;;
998
999 -includedir | --includedir | --includedi | --included | --include \
1000 | --includ | --inclu | --incl | --inc)
1001 ac_prev=includedir ;;
1002 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1003 | --includ=* | --inclu=* | --incl=* | --inc=*)
1004 includedir=$ac_optarg ;;
1005
1006 -infodir | --infodir | --infodi | --infod | --info | --inf)
1007 ac_prev=infodir ;;
1008 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1009 infodir=$ac_optarg ;;
1010
1011 -libdir | --libdir | --libdi | --libd)
1012 ac_prev=libdir ;;
1013 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1014 libdir=$ac_optarg ;;
1015
1016 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1017 | --libexe | --libex | --libe)
1018 ac_prev=libexecdir ;;
1019 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1020 | --libexe=* | --libex=* | --libe=*)
1021 libexecdir=$ac_optarg ;;
1022
1023 -localedir | --localedir | --localedi | --localed | --locale)
1024 ac_prev=localedir ;;
1025 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1026 localedir=$ac_optarg ;;
1027
1028 -localstatedir | --localstatedir | --localstatedi | --localstated \
1029 | --localstate | --localstat | --localsta | --localst | --locals)
1030 ac_prev=localstatedir ;;
1031 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1032 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1033 localstatedir=$ac_optarg ;;
1034
1035 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1036 ac_prev=mandir ;;
1037 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1038 mandir=$ac_optarg ;;
1039
1040 -nfp | --nfp | --nf)
1041 # Obsolete; use --without-fp.
1042 with_fp=no ;;
1043
1044 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1045 | --no-cr | --no-c | -n)
1046 no_create=yes ;;
1047
1048 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1049 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1050 no_recursion=yes ;;
1051
1052 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1053 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1054 | --oldin | --oldi | --old | --ol | --o)
1055 ac_prev=oldincludedir ;;
1056 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1057 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1058 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1059 oldincludedir=$ac_optarg ;;
1060
1061 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1062 ac_prev=prefix ;;
1063 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1064 prefix=$ac_optarg ;;
1065
1066 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1067 | --program-pre | --program-pr | --program-p)
1068 ac_prev=program_prefix ;;
1069 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1070 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1071 program_prefix=$ac_optarg ;;
1072
1073 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1074 | --program-suf | --program-su | --program-s)
1075 ac_prev=program_suffix ;;
1076 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1077 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1078 program_suffix=$ac_optarg ;;
1079
1080 -program-transform-name | --program-transform-name \
1081 | --program-transform-nam | --program-transform-na \
1082 | --program-transform-n | --program-transform- \
1083 | --program-transform | --program-transfor \
1084 | --program-transfo | --program-transf \
1085 | --program-trans | --program-tran \
1086 | --progr-tra | --program-tr | --program-t)
1087 ac_prev=program_transform_name ;;
1088 -program-transform-name=* | --program-transform-name=* \
1089 | --program-transform-nam=* | --program-transform-na=* \
1090 | --program-transform-n=* | --program-transform-=* \
1091 | --program-transform=* | --program-transfor=* \
1092 | --program-transfo=* | --program-transf=* \
1093 | --program-trans=* | --program-tran=* \
1094 | --progr-tra=* | --program-tr=* | --program-t=*)
1095 program_transform_name=$ac_optarg ;;
1096
1097 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1098 ac_prev=pdfdir ;;
1099 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1100 pdfdir=$ac_optarg ;;
1101
1102 -psdir | --psdir | --psdi | --psd | --ps)
1103 ac_prev=psdir ;;
1104 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1105 psdir=$ac_optarg ;;
1106
1107 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1108 | -silent | --silent | --silen | --sile | --sil)
1109 silent=yes ;;
1110
1111 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1112 ac_prev=sbindir ;;
1113 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1114 | --sbi=* | --sb=*)
1115 sbindir=$ac_optarg ;;
1116
1117 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1118 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1119 | --sharedst | --shareds | --shared | --share | --shar \
1120 | --sha | --sh)
1121 ac_prev=sharedstatedir ;;
1122 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1123 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1124 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1125 | --sha=* | --sh=*)
1126 sharedstatedir=$ac_optarg ;;
1127
1128 -site | --site | --sit)
1129 ac_prev=site ;;
1130 -site=* | --site=* | --sit=*)
1131 site=$ac_optarg ;;
1132
1133 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1134 ac_prev=srcdir ;;
1135 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1136 srcdir=$ac_optarg ;;
1137
1138 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1139 | --syscon | --sysco | --sysc | --sys | --sy)
1140 ac_prev=sysconfdir ;;
1141 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1142 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1143 sysconfdir=$ac_optarg ;;
1144
1145 -target | --target | --targe | --targ | --tar | --ta | --t)
1146 ac_prev=target_alias ;;
1147 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1148 target_alias=$ac_optarg ;;
1149
1150 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1151 verbose=yes ;;
1152
1153 -version | --version | --versio | --versi | --vers | -V)
1154 ac_init_version=: ;;
1155
1156 -with-* | --with-*)
1157 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160 as_fn_error $? "invalid package name: $ac_useropt"
1161 ac_useropt_orig=$ac_useropt
1162 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1163 case $ac_user_opts in
1164 *"
1165 "with_$ac_useropt"
1166 "*) ;;
1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1168 ac_unrecognized_sep=', ';;
1169 esac
1170 eval with_$ac_useropt=\$ac_optarg ;;
1171
1172 -without-* | --without-*)
1173 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1174 # Reject names that are not valid shell variable names.
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176 as_fn_error $? "invalid package name: $ac_useropt"
1177 ac_useropt_orig=$ac_useropt
1178 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179 case $ac_user_opts in
1180 *"
1181 "with_$ac_useropt"
1182 "*) ;;
1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1184 ac_unrecognized_sep=', ';;
1185 esac
1186 eval with_$ac_useropt=no ;;
1187
1188 --x)
1189 # Obsolete; use --with-x.
1190 with_x=yes ;;
1191
1192 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1193 | --x-incl | --x-inc | --x-in | --x-i)
1194 ac_prev=x_includes ;;
1195 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1196 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1197 x_includes=$ac_optarg ;;
1198
1199 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1200 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1201 ac_prev=x_libraries ;;
1202 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1203 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1204 x_libraries=$ac_optarg ;;
1205
1206 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1207 Try \`$0 --help' for more information"
1208 ;;
1209
1210 *=*)
1211 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1212 # Reject names that are not valid shell variable names.
1213 case $ac_envvar in #(
1214 '' | [0-9]* | *[!_$as_cr_alnum]* )
1215 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1216 esac
1217 eval $ac_envvar=\$ac_optarg
1218 export $ac_envvar ;;
1219
1220 *)
1221 # FIXME: should be removed in autoconf 3.0.
1222 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1223 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1225 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1226 ;;
1227
1228 esac
1229 done
1230
1231 if test -n "$ac_prev"; then
1232 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1233 as_fn_error $? "missing argument to $ac_option"
1234 fi
1235
1236 if test -n "$ac_unrecognized_opts"; then
1237 case $enable_option_checking in
1238 no) ;;
1239 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1240 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1241 esac
1242 fi
1243
1244 # Check all directory arguments for consistency.
1245 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1246 datadir sysconfdir sharedstatedir localstatedir includedir \
1247 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1248 libdir localedir mandir
1249 do
1250 eval ac_val=\$$ac_var
1251 # Remove trailing slashes.
1252 case $ac_val in
1253 */ )
1254 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1255 eval $ac_var=\$ac_val;;
1256 esac
1257 # Be sure to have absolute directory names.
1258 case $ac_val in
1259 [\\/$]* | ?:[\\/]* ) continue;;
1260 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1261 esac
1262 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1263 done
1264
1265 # There might be people who depend on the old broken behavior: `$host'
1266 # used to hold the argument of --host etc.
1267 # FIXME: To remove some day.
1268 build=$build_alias
1269 host=$host_alias
1270 target=$target_alias
1271
1272 # FIXME: To remove some day.
1273 if test "x$host_alias" != x; then
1274 if test "x$build_alias" = x; then
1275 cross_compiling=maybe
1276 elif test "x$build_alias" != "x$host_alias"; then
1277 cross_compiling=yes
1278 fi
1279 fi
1280
1281 ac_tool_prefix=
1282 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1283
1284 test "$silent" = yes && exec 6>/dev/null
1285
1286
1287 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1288 ac_ls_di=`ls -di .` &&
1289 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1290 as_fn_error $? "working directory cannot be determined"
1291 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1292 as_fn_error $? "pwd does not report name of working directory"
1293
1294
1295 # Find the source files, if location was not specified.
1296 if test -z "$srcdir"; then
1297 ac_srcdir_defaulted=yes
1298 # Try the directory containing this script, then the parent directory.
1299 ac_confdir=`$as_dirname -- "$as_myself" ||
1300 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1301 X"$as_myself" : 'X\(//\)[^/]' \| \
1302 X"$as_myself" : 'X\(//\)$' \| \
1303 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1304 $as_echo X"$as_myself" |
1305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1306 s//\1/
1307 q
1308 }
1309 /^X\(\/\/\)[^/].*/{
1310 s//\1/
1311 q
1312 }
1313 /^X\(\/\/\)$/{
1314 s//\1/
1315 q
1316 }
1317 /^X\(\/\).*/{
1318 s//\1/
1319 q
1320 }
1321 s/.*/./; q'`
1322 srcdir=$ac_confdir
1323 if test ! -r "$srcdir/$ac_unique_file"; then
1324 srcdir=..
1325 fi
1326 else
1327 ac_srcdir_defaulted=no
1328 fi
1329 if test ! -r "$srcdir/$ac_unique_file"; then
1330 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1331 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1332 fi
1333 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1334 ac_abs_confdir=`(
1335 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1336 pwd)`
1337 # When building in place, set srcdir=.
1338 if test "$ac_abs_confdir" = "$ac_pwd"; then
1339 srcdir=.
1340 fi
1341 # Remove unnecessary trailing slashes from srcdir.
1342 # Double slashes in file names in object file debugging info
1343 # mess up M-x gdb in Emacs.
1344 case $srcdir in
1345 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1346 esac
1347 for ac_var in $ac_precious_vars; do
1348 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1349 eval ac_env_${ac_var}_value=\$${ac_var}
1350 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1351 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1352 done
1353
1354 #
1355 # Report the --help message.
1356 #
1357 if test "$ac_init_help" = "long"; then
1358 # Omit some internal or obsolete options to make the list less imposing.
1359 # This message is too long to be a string in the A/UX 3.1 sh.
1360 cat <<_ACEOF
1361 \`configure' configures xf86-video-i740 1.3.5 to adapt to many kinds of systems.
1362
1363 Usage: $0 [OPTION]... [VAR=VALUE]...
1364
1365 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1366 VAR=VALUE. See below for descriptions of some of the useful variables.
1367
1368 Defaults for the options are specified in brackets.
1369
1370 Configuration:
1371 -h, --help display this help and exit
1372 --help=short display options specific to this package
1373 --help=recursive display the short help of all the included packages
1374 -V, --version display version information and exit
1375 -q, --quiet, --silent do not print \`checking ...' messages
1376 --cache-file=FILE cache test results in FILE [disabled]
1377 -C, --config-cache alias for \`--cache-file=config.cache'
1378 -n, --no-create do not create output files
1379 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1380
1381 Installation directories:
1382 --prefix=PREFIX install architecture-independent files in PREFIX
1383 [$ac_default_prefix]
1384 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1385 [PREFIX]
1386
1387 By default, \`make install' will install all the files in
1388 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1389 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1390 for instance \`--prefix=\$HOME'.
1391
1392 For better control, use the options below.
1393
1394 Fine tuning of the installation directories:
1395 --bindir=DIR user executables [EPREFIX/bin]
1396 --sbindir=DIR system admin executables [EPREFIX/sbin]
1397 --libexecdir=DIR program executables [EPREFIX/libexec]
1398 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1399 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1400 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1401 --libdir=DIR object code libraries [EPREFIX/lib]
1402 --includedir=DIR C header files [PREFIX/include]
1403 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1404 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1405 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1406 --infodir=DIR info documentation [DATAROOTDIR/info]
1407 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1408 --mandir=DIR man documentation [DATAROOTDIR/man]
1409 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-i740]
1410 --htmldir=DIR html documentation [DOCDIR]
1411 --dvidir=DIR dvi documentation [DOCDIR]
1412 --pdfdir=DIR pdf documentation [DOCDIR]
1413 --psdir=DIR ps documentation [DOCDIR]
1414 _ACEOF
1415
1416 cat <<\_ACEOF
1417
1418 Program names:
1419 --program-prefix=PREFIX prepend PREFIX to installed program names
1420 --program-suffix=SUFFIX append SUFFIX to installed program names
1421 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1422
1423 System types:
1424 --build=BUILD configure for building on BUILD [guessed]
1425 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1426 _ACEOF
1427 fi
1428
1429 if test -n "$ac_init_help"; then
1430 case $ac_init_help in
1431 short | recursive ) echo "Configuration of xf86-video-i740 1.3.5:";;
1432 esac
1433 cat <<\_ACEOF
1434
1435 Optional Features:
1436 --disable-option-checking ignore unrecognized --enable/--with options
1437 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1438 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1439 --enable-silent-rules less verbose build output (undo: "make V=1")
1440 --disable-silent-rules verbose build output (undo: "make V=0")
1441 --enable-maintainer-mode
1442 enable make rules and dependencies not useful (and
1443 sometimes confusing) to the casual installer
1444 --enable-dependency-tracking
1445 do not reject slow dependency extractors
1446 --disable-dependency-tracking
1447 speeds up one-time build
1448 --disable-selective-werror
1449 Turn off selective compiler errors. (default:
1450 enabled)
1451 --enable-strict-compilation
1452 Enable all warnings from compiler and make them
1453 errors (default: disabled)
1454 --enable-static[=PKGS] build static libraries [default=no]
1455 --enable-shared[=PKGS] build shared libraries [default=yes]
1456 --enable-fast-install[=PKGS]
1457 optimize for fast installation [default=yes]
1458 --disable-libtool-lock avoid locking (might break parallel builds)
1459 --enable-xaa Enable legacy X Acceleration Architecture (XAA)
1460 [default=auto]
1461
1462 Optional Packages:
1463 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1464 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1465 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1466 both]
1467 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1468 --with-sysroot=DIR Search for dependent libraries within DIR
1469 (or the compiler's sysroot if not specified).
1470 --with-xorg-module-dir=DIR
1471 Default xorg module directory
1472 [[default=$libdir/xorg/modules]]
1473
1474 Some influential environment variables:
1475 CC C compiler command
1476 CFLAGS C compiler flags
1477 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1478 nonstandard directory <lib dir>
1479 LIBS libraries to pass to the linker, e.g. -l<library>
1480 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1481 you have headers in a nonstandard directory <include dir>
1482 CPP C preprocessor
1483 PKG_CONFIG path to pkg-config utility
1484 PKG_CONFIG_PATH
1485 directories to add to pkg-config's search path
1486 PKG_CONFIG_LIBDIR
1487 path overriding pkg-config's built-in search path
1488 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1489 XORG_LIBS linker flags for XORG, overriding pkg-config
1490 PCIACCESS_CFLAGS
1491 C compiler flags for PCIACCESS, overriding pkg-config
1492 PCIACCESS_LIBS
1493 linker flags for PCIACCESS, overriding pkg-config
1494
1495 Use these variables to override the choices made by `configure' or to help
1496 it to find libraries and programs with nonstandard names/locations.
1497
1498 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1499 _ACEOF
1500 ac_status=$?
1501 fi
1502
1503 if test "$ac_init_help" = "recursive"; then
1504 # If there are subdirs, report their specific --help.
1505 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1506 test -d "$ac_dir" ||
1507 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1508 continue
1509 ac_builddir=.
1510
1511 case "$ac_dir" in
1512 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513 *)
1514 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1515 # A ".." for each directory in $ac_dir_suffix.
1516 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1517 case $ac_top_builddir_sub in
1518 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1520 esac ;;
1521 esac
1522 ac_abs_top_builddir=$ac_pwd
1523 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1524 # for backward compatibility:
1525 ac_top_builddir=$ac_top_build_prefix
1526
1527 case $srcdir in
1528 .) # We are building in place.
1529 ac_srcdir=.
1530 ac_top_srcdir=$ac_top_builddir_sub
1531 ac_abs_top_srcdir=$ac_pwd ;;
1532 [\\/]* | ?:[\\/]* ) # Absolute name.
1533 ac_srcdir=$srcdir$ac_dir_suffix;
1534 ac_top_srcdir=$srcdir
1535 ac_abs_top_srcdir=$srcdir ;;
1536 *) # Relative name.
1537 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1538 ac_top_srcdir=$ac_top_build_prefix$srcdir
1539 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1540 esac
1541 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1542
1543 cd "$ac_dir" || { ac_status=$?; continue; }
1544 # Check for guested configure.
1545 if test -f "$ac_srcdir/configure.gnu"; then
1546 echo &&
1547 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1548 elif test -f "$ac_srcdir/configure"; then
1549 echo &&
1550 $SHELL "$ac_srcdir/configure" --help=recursive
1551 else
1552 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1553 fi || ac_status=$?
1554 cd "$ac_pwd" || { ac_status=$?; break; }
1555 done
1556 fi
1557
1558 test -n "$ac_init_help" && exit $ac_status
1559 if $ac_init_version; then
1560 cat <<\_ACEOF
1561 xf86-video-i740 configure 1.3.5
1562 generated by GNU Autoconf 2.69
1563
1564 Copyright (C) 2012 Free Software Foundation, Inc.
1565 This configure script is free software; the Free Software Foundation
1566 gives unlimited permission to copy, distribute and modify it.
1567 _ACEOF
1568 exit
1569 fi
1570
1571 ## ------------------------ ##
1572 ## Autoconf initialization. ##
1573 ## ------------------------ ##
1574
1575 # ac_fn_c_try_compile LINENO
1576 # --------------------------
1577 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1578 ac_fn_c_try_compile ()
1579 {
1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581 rm -f conftest.$ac_objext
1582 if { { ac_try="$ac_compile"
1583 case "(($ac_try" in
1584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585 *) ac_try_echo=$ac_try;;
1586 esac
1587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588 $as_echo "$ac_try_echo"; } >&5
1589 (eval "$ac_compile") 2>conftest.err
1590 ac_status=$?
1591 if test -s conftest.err; then
1592 grep -v '^ *+' conftest.err >conftest.er1
1593 cat conftest.er1 >&5
1594 mv -f conftest.er1 conftest.err
1595 fi
1596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597 test $ac_status = 0; } && {
1598 test -z "$ac_c_werror_flag" ||
1599 test ! -s conftest.err
1600 } && test -s conftest.$ac_objext; then :
1601 ac_retval=0
1602 else
1603 $as_echo "$as_me: failed program was:" >&5
1604 sed 's/^/| /' conftest.$ac_ext >&5
1605
1606 ac_retval=1
1607 fi
1608 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1609 as_fn_set_status $ac_retval
1610
1611 } # ac_fn_c_try_compile
1612
1613 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1614 # ---------------------------------------------
1615 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1616 # accordingly.
1617 ac_fn_c_check_decl ()
1618 {
1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620 as_decl_name=`echo $2|sed 's/ *(.*//'`
1621 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1623 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1624 if eval \${$3+:} false; then :
1625 $as_echo_n "(cached) " >&6
1626 else
1627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1628 /* end confdefs.h. */
1629 $4
1630 int
1631 main ()
1632 {
1633 #ifndef $as_decl_name
1634 #ifdef __cplusplus
1635 (void) $as_decl_use;
1636 #else
1637 (void) $as_decl_name;
1638 #endif
1639 #endif
1640
1641 ;
1642 return 0;
1643 }
1644 _ACEOF
1645 if ac_fn_c_try_compile "$LINENO"; then :
1646 eval "$3=yes"
1647 else
1648 eval "$3=no"
1649 fi
1650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1651 fi
1652 eval ac_res=\$$3
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1654 $as_echo "$ac_res" >&6; }
1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656
1657 } # ac_fn_c_check_decl
1658
1659 # ac_fn_c_try_cpp LINENO
1660 # ----------------------
1661 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1662 ac_fn_c_try_cpp ()
1663 {
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 if { { ac_try="$ac_cpp conftest.$ac_ext"
1666 case "(($ac_try" in
1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1669 esac
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1673 ac_status=$?
1674 if test -s conftest.err; then
1675 grep -v '^ *+' conftest.err >conftest.er1
1676 cat conftest.er1 >&5
1677 mv -f conftest.er1 conftest.err
1678 fi
1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680 test $ac_status = 0; } > conftest.i && {
1681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1682 test ! -s conftest.err
1683 }; then :
1684 ac_retval=0
1685 else
1686 $as_echo "$as_me: failed program was:" >&5
1687 sed 's/^/| /' conftest.$ac_ext >&5
1688
1689 ac_retval=1
1690 fi
1691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692 as_fn_set_status $ac_retval
1693
1694 } # ac_fn_c_try_cpp
1695
1696 # ac_fn_c_try_run LINENO
1697 # ----------------------
1698 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1699 # that executables *can* be run.
1700 ac_fn_c_try_run ()
1701 {
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 if { { ac_try="$ac_link"
1704 case "(($ac_try" in
1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706 *) ac_try_echo=$ac_try;;
1707 esac
1708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709 $as_echo "$ac_try_echo"; } >&5
1710 (eval "$ac_link") 2>&5
1711 ac_status=$?
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1714 { { case "(($ac_try" in
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1717 esac
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_try") 2>&5
1721 ac_status=$?
1722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723 test $ac_status = 0; }; }; then :
1724 ac_retval=0
1725 else
1726 $as_echo "$as_me: program exited with status $ac_status" >&5
1727 $as_echo "$as_me: failed program was:" >&5
1728 sed 's/^/| /' conftest.$ac_ext >&5
1729
1730 ac_retval=$ac_status
1731 fi
1732 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734 as_fn_set_status $ac_retval
1735
1736 } # ac_fn_c_try_run
1737
1738 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1739 # -------------------------------------------------------
1740 # Tests whether HEADER exists and can be compiled using the include files in
1741 # INCLUDES, setting the cache variable VAR accordingly.
1742 ac_fn_c_check_header_compile ()
1743 {
1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1746 $as_echo_n "checking for $2... " >&6; }
1747 if eval \${$3+:} false; then :
1748 $as_echo_n "(cached) " >&6
1749 else
1750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1751 /* end confdefs.h. */
1752 $4
1753 #include <$2>
1754 _ACEOF
1755 if ac_fn_c_try_compile "$LINENO"; then :
1756 eval "$3=yes"
1757 else
1758 eval "$3=no"
1759 fi
1760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1761 fi
1762 eval ac_res=\$$3
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1764 $as_echo "$ac_res" >&6; }
1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766
1767 } # ac_fn_c_check_header_compile
1768
1769 # ac_fn_c_try_link LINENO
1770 # -----------------------
1771 # Try to link conftest.$ac_ext, and return whether this succeeded.
1772 ac_fn_c_try_link ()
1773 {
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 rm -f conftest.$ac_objext conftest$ac_exeext
1776 if { { ac_try="$ac_link"
1777 case "(($ac_try" in
1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779 *) ac_try_echo=$ac_try;;
1780 esac
1781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782 $as_echo "$ac_try_echo"; } >&5
1783 (eval "$ac_link") 2>conftest.err
1784 ac_status=$?
1785 if test -s conftest.err; then
1786 grep -v '^ *+' conftest.err >conftest.er1
1787 cat conftest.er1 >&5
1788 mv -f conftest.er1 conftest.err
1789 fi
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; } && {
1792 test -z "$ac_c_werror_flag" ||
1793 test ! -s conftest.err
1794 } && test -s conftest$ac_exeext && {
1795 test "$cross_compiling" = yes ||
1796 test -x conftest$ac_exeext
1797 }; then :
1798 ac_retval=0
1799 else
1800 $as_echo "$as_me: failed program was:" >&5
1801 sed 's/^/| /' conftest.$ac_ext >&5
1802
1803 ac_retval=1
1804 fi
1805 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1806 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1807 # interfere with the next link command; also delete a directory that is
1808 # left behind by Apple's compiler. We do this before executing the actions.
1809 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811 as_fn_set_status $ac_retval
1812
1813 } # ac_fn_c_try_link
1814
1815 # ac_fn_c_check_func LINENO FUNC VAR
1816 # ----------------------------------
1817 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1818 ac_fn_c_check_func ()
1819 {
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822 $as_echo_n "checking for $2... " >&6; }
1823 if eval \${$3+:} false; then :
1824 $as_echo_n "(cached) " >&6
1825 else
1826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827 /* end confdefs.h. */
1828 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1830 #define $2 innocuous_$2
1831
1832 /* System header to define __stub macros and hopefully few prototypes,
1833 which can conflict with char $2 (); below.
1834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1835 <limits.h> exists even on freestanding compilers. */
1836
1837 #ifdef __STDC__
1838 # include <limits.h>
1839 #else
1840 # include <assert.h>
1841 #endif
1842
1843 #undef $2
1844
1845 /* Override any GCC internal prototype to avoid an error.
1846 Use char because int might match the return type of a GCC
1847 builtin and then its argument prototype would still apply. */
1848 #ifdef __cplusplus
1849 extern "C"
1850 #endif
1851 char $2 ();
1852 /* The GNU C library defines this for functions which it implements
1853 to always fail with ENOSYS. Some functions are actually named
1854 something starting with __ and the normal name is an alias. */
1855 #if defined __stub_$2 || defined __stub___$2
1856 choke me
1857 #endif
1858
1859 int
1860 main ()
1861 {
1862 return $2 ();
1863 ;
1864 return 0;
1865 }
1866 _ACEOF
1867 if ac_fn_c_try_link "$LINENO"; then :
1868 eval "$3=yes"
1869 else
1870 eval "$3=no"
1871 fi
1872 rm -f core conftest.err conftest.$ac_objext \
1873 conftest$ac_exeext conftest.$ac_ext
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 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879
1880 } # ac_fn_c_check_func
1881
1882 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1883 # -------------------------------------------------------
1884 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1885 # the include files in INCLUDES and setting the cache variable VAR
1886 # accordingly.
1887 ac_fn_c_check_header_mongrel ()
1888 {
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 if eval \${$3+:} false; then :
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1892 $as_echo_n "checking for $2... " >&6; }
1893 if eval \${$3+:} false; then :
1894 $as_echo_n "(cached) " >&6
1895 fi
1896 eval ac_res=\$$3
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898 $as_echo "$ac_res" >&6; }
1899 else
1900 # Is the header compilable?
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1902 $as_echo_n "checking $2 usability... " >&6; }
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h. */
1905 $4
1906 #include <$2>
1907 _ACEOF
1908 if ac_fn_c_try_compile "$LINENO"; then :
1909 ac_header_compiler=yes
1910 else
1911 ac_header_compiler=no
1912 fi
1913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1915 $as_echo "$ac_header_compiler" >&6; }
1916
1917 # Is the header present?
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1919 $as_echo_n "checking $2 presence... " >&6; }
1920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h. */
1922 #include <$2>
1923 _ACEOF
1924 if ac_fn_c_try_cpp "$LINENO"; then :
1925 ac_header_preproc=yes
1926 else
1927 ac_header_preproc=no
1928 fi
1929 rm -f conftest.err conftest.i conftest.$ac_ext
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1931 $as_echo "$ac_header_preproc" >&6; }
1932
1933 # So? What about this header?
1934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1935 yes:no: )
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1937 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1939 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1940 ;;
1941 no:yes:* )
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1943 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1945 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1947 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1949 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1951 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1952 ( $as_echo "## ---------------------------------------------------------------------- ##
1953 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1954 ## ---------------------------------------------------------------------- ##"
1955 ) | sed "s/^/$as_me: WARNING: /" >&2
1956 ;;
1957 esac
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959 $as_echo_n "checking for $2... " >&6; }
1960 if eval \${$3+:} false; then :
1961 $as_echo_n "(cached) " >&6
1962 else
1963 eval "$3=\$ac_header_compiler"
1964 fi
1965 eval ac_res=\$$3
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967 $as_echo "$ac_res" >&6; }
1968 fi
1969 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970
1971 } # ac_fn_c_check_header_mongrel
1972 cat >config.log <<_ACEOF
1973 This file contains any messages produced by compilers while
1974 running configure, to aid debugging if configure makes a mistake.
1975
1976 It was created by xf86-video-i740 $as_me 1.3.5, which was
1977 generated by GNU Autoconf 2.69. Invocation command line was
1978
1979 $ $0 $@
1980
1981 _ACEOF
1982 exec 5>>config.log
1983 {
1984 cat <<_ASUNAME
1985 ## --------- ##
1986 ## Platform. ##
1987 ## --------- ##
1988
1989 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1990 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1991 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1992 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1993 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1994
1995 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1996 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1997
1998 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1999 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2000 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2001 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2002 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2003 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2004 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2005
2006 _ASUNAME
2007
2008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009 for as_dir in $PATH
2010 do
2011 IFS=$as_save_IFS
2012 test -z "$as_dir" && as_dir=.
2013 $as_echo "PATH: $as_dir"
2014 done
2015 IFS=$as_save_IFS
2016
2017 } >&5
2018
2019 cat >&5 <<_ACEOF
2020
2021
2022 ## ----------- ##
2023 ## Core tests. ##
2024 ## ----------- ##
2025
2026 _ACEOF
2027
2028
2029 # Keep a trace of the command line.
2030 # Strip out --no-create and --no-recursion so they do not pile up.
2031 # Strip out --silent because we don't want to record it for future runs.
2032 # Also quote any args containing shell meta-characters.
2033 # Make two passes to allow for proper duplicate-argument suppression.
2034 ac_configure_args=
2035 ac_configure_args0=
2036 ac_configure_args1=
2037 ac_must_keep_next=false
2038 for ac_pass in 1 2
2039 do
2040 for ac_arg
2041 do
2042 case $ac_arg in
2043 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2045 | -silent | --silent | --silen | --sile | --sil)
2046 continue ;;
2047 *\'*)
2048 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2049 esac
2050 case $ac_pass in
2051 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2052 2)
2053 as_fn_append ac_configure_args1 " '$ac_arg'"
2054 if test $ac_must_keep_next = true; then
2055 ac_must_keep_next=false # Got value, back to normal.
2056 else
2057 case $ac_arg in
2058 *=* | --config-cache | -C | -disable-* | --disable-* \
2059 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2060 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2061 | -with-* | --with-* | -without-* | --without-* | --x)
2062 case "$ac_configure_args0 " in
2063 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2064 esac
2065 ;;
2066 -* ) ac_must_keep_next=true ;;
2067 esac
2068 fi
2069 as_fn_append ac_configure_args " '$ac_arg'"
2070 ;;
2071 esac
2072 done
2073 done
2074 { ac_configure_args0=; unset ac_configure_args0;}
2075 { ac_configure_args1=; unset ac_configure_args1;}
2076
2077 # When interrupted or exit'd, cleanup temporary files, and complete
2078 # config.log. We remove comments because anyway the quotes in there
2079 # would cause problems or look ugly.
2080 # WARNING: Use '\'' to represent an apostrophe within the trap.
2081 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2082 trap 'exit_status=$?
2083 # Save into config.log some information that might help in debugging.
2084 {
2085 echo
2086
2087 $as_echo "## ---------------- ##
2088 ## Cache variables. ##
2089 ## ---------------- ##"
2090 echo
2091 # The following way of writing the cache mishandles newlines in values,
2092 (
2093 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2094 eval ac_val=\$$ac_var
2095 case $ac_val in #(
2096 *${as_nl}*)
2097 case $ac_var in #(
2098 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2099 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2100 esac
2101 case $ac_var in #(
2102 _ | IFS | as_nl) ;; #(
2103 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2104 *) { eval $ac_var=; unset $ac_var;} ;;
2105 esac ;;
2106 esac
2107 done
2108 (set) 2>&1 |
2109 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2110 *${as_nl}ac_space=\ *)
2111 sed -n \
2112 "s/'\''/'\''\\\\'\'''\''/g;
2113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2114 ;; #(
2115 *)
2116 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2117 ;;
2118 esac |
2119 sort
2120 )
2121 echo
2122
2123 $as_echo "## ----------------- ##
2124 ## Output variables. ##
2125 ## ----------------- ##"
2126 echo
2127 for ac_var in $ac_subst_vars
2128 do
2129 eval ac_val=\$$ac_var
2130 case $ac_val in
2131 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2132 esac
2133 $as_echo "$ac_var='\''$ac_val'\''"
2134 done | sort
2135 echo
2136
2137 if test -n "$ac_subst_files"; then
2138 $as_echo "## ------------------- ##
2139 ## File substitutions. ##
2140 ## ------------------- ##"
2141 echo
2142 for ac_var in $ac_subst_files
2143 do
2144 eval ac_val=\$$ac_var
2145 case $ac_val in
2146 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2147 esac
2148 $as_echo "$ac_var='\''$ac_val'\''"
2149 done | sort
2150 echo
2151 fi
2152
2153 if test -s confdefs.h; then
2154 $as_echo "## ----------- ##
2155 ## confdefs.h. ##
2156 ## ----------- ##"
2157 echo
2158 cat confdefs.h
2159 echo
2160 fi
2161 test "$ac_signal" != 0 &&
2162 $as_echo "$as_me: caught signal $ac_signal"
2163 $as_echo "$as_me: exit $exit_status"
2164 } >&5
2165 rm -f core *.core core.conftest.* &&
2166 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2167 exit $exit_status
2168 ' 0
2169 for ac_signal in 1 2 13 15; do
2170 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2171 done
2172 ac_signal=0
2173
2174 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2175 rm -f -r conftest* confdefs.h
2176
2177 $as_echo "/* confdefs.h */" > confdefs.h
2178
2179 # Predefined preprocessor variables.
2180
2181 cat >>confdefs.h <<_ACEOF
2182 #define PACKAGE_NAME "$PACKAGE_NAME"
2183 _ACEOF
2184
2185 cat >>confdefs.h <<_ACEOF
2186 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2187 _ACEOF
2188
2189 cat >>confdefs.h <<_ACEOF
2190 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2191 _ACEOF
2192
2193 cat >>confdefs.h <<_ACEOF
2194 #define PACKAGE_STRING "$PACKAGE_STRING"
2195 _ACEOF
2196
2197 cat >>confdefs.h <<_ACEOF
2198 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2199 _ACEOF
2200
2201 cat >>confdefs.h <<_ACEOF
2202 #define PACKAGE_URL "$PACKAGE_URL"
2203 _ACEOF
2204
2205
2206 # Let the site file select an alternate cache file if it wants to.
2207 # Prefer an explicitly selected file to automatically selected ones.
2208 ac_site_file1=NONE
2209 ac_site_file2=NONE
2210 if test -n "$CONFIG_SITE"; then
2211 # We do not want a PATH search for config.site.
2212 case $CONFIG_SITE in #((
2213 -*) ac_site_file1=./$CONFIG_SITE;;
2214 */*) ac_site_file1=$CONFIG_SITE;;
2215 *) ac_site_file1=./$CONFIG_SITE;;
2216 esac
2217 elif test "x$prefix" != xNONE; then
2218 ac_site_file1=$prefix/share/config.site
2219 ac_site_file2=$prefix/etc/config.site
2220 else
2221 ac_site_file1=$ac_default_prefix/share/config.site
2222 ac_site_file2=$ac_default_prefix/etc/config.site
2223 fi
2224 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2225 do
2226 test "x$ac_site_file" = xNONE && continue
2227 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2229 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2230 sed 's/^/| /' "$ac_site_file" >&5
2231 . "$ac_site_file" \
2232 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2234 as_fn_error $? "failed to load site script $ac_site_file
2235 See \`config.log' for more details" "$LINENO" 5; }
2236 fi
2237 done
2238
2239 if test -r "$cache_file"; then
2240 # Some versions of bash will fail to source /dev/null (special files
2241 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2242 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2244 $as_echo "$as_me: loading cache $cache_file" >&6;}
2245 case $cache_file in
2246 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2247 *) . "./$cache_file";;
2248 esac
2249 fi
2250 else
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2252 $as_echo "$as_me: creating cache $cache_file" >&6;}
2253 >$cache_file
2254 fi
2255
2256 # Check that the precious variables saved in the cache have kept the same
2257 # value.
2258 ac_cache_corrupted=false
2259 for ac_var in $ac_precious_vars; do
2260 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2261 eval ac_new_set=\$ac_env_${ac_var}_set
2262 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2263 eval ac_new_val=\$ac_env_${ac_var}_value
2264 case $ac_old_set,$ac_new_set in
2265 set,)
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2267 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2268 ac_cache_corrupted=: ;;
2269 ,set)
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2271 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2272 ac_cache_corrupted=: ;;
2273 ,);;
2274 *)
2275 if test "x$ac_old_val" != "x$ac_new_val"; then
2276 # differences in whitespace do not lead to failure.
2277 ac_old_val_w=`echo x $ac_old_val`
2278 ac_new_val_w=`echo x $ac_new_val`
2279 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2281 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2282 ac_cache_corrupted=:
2283 else
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2285 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2286 eval $ac_var=\$ac_old_val
2287 fi
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2289 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2291 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2292 fi;;
2293 esac
2294 # Pass precious variables to config.status.
2295 if test "$ac_new_set" = set; then
2296 case $ac_new_val in
2297 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2298 *) ac_arg=$ac_var=$ac_new_val ;;
2299 esac
2300 case " $ac_configure_args " in
2301 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2302 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2303 esac
2304 fi
2305 done
2306 if $ac_cache_corrupted; then
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2310 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2311 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2312 fi
2313 ## -------------------- ##
2314 ## Main body of script. ##
2315 ## -------------------- ##
2316
2317 ac_ext=c
2318 ac_cpp='$CPP $CPPFLAGS'
2319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2322
2323
2324
2325 ac_config_headers="$ac_config_headers config.h"
2326
2327 ac_aux_dir=
2328 for ac_dir in . "$srcdir"/.; do
2329 if test -f "$ac_dir/install-sh"; then
2330 ac_aux_dir=$ac_dir
2331 ac_install_sh="$ac_aux_dir/install-sh -c"
2332 break
2333 elif test -f "$ac_dir/install.sh"; then
2334 ac_aux_dir=$ac_dir
2335 ac_install_sh="$ac_aux_dir/install.sh -c"
2336 break
2337 elif test -f "$ac_dir/shtool"; then
2338 ac_aux_dir=$ac_dir
2339 ac_install_sh="$ac_aux_dir/shtool install -c"
2340 break
2341 fi
2342 done
2343 if test -z "$ac_aux_dir"; then
2344 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2345 fi
2346
2347 # These three variables are undocumented and unsupported,
2348 # and are intended to be withdrawn in a future Autoconf release.
2349 # They can cause serious problems if a builder's source tree is in a directory
2350 # whose full name contains unusual characters.
2351 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2352 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2353 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2354
2355
2356
2357 # Initialize Automake
2358 am__api_version='1.13'
2359
2360 # Find a good install program. We prefer a C program (faster),
2361 # so one script is as good as another. But avoid the broken or
2362 # incompatible versions:
2363 # SysV /etc/install, /usr/sbin/install
2364 # SunOS /usr/etc/install
2365 # IRIX /sbin/install
2366 # AIX /bin/install
2367 # AmigaOS /C/install, which installs bootblocks on floppy discs
2368 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2369 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2370 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2371 # OS/2's system install, which has a completely different semantic
2372 # ./install, which can be erroneously created by make from ./install.sh.
2373 # Reject install programs that cannot install multiple files.
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2375 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2376 if test -z "$INSTALL"; then
2377 if ${ac_cv_path_install+:} false; then :
2378 $as_echo_n "(cached) " >&6
2379 else
2380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2381 for as_dir in $PATH
2382 do
2383 IFS=$as_save_IFS
2384 test -z "$as_dir" && as_dir=.
2385 # Account for people who put trailing slashes in PATH elements.
2386 case $as_dir/ in #((
2387 ./ | .// | /[cC]/* | \
2388 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2389 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2390 /usr/ucb/* ) ;;
2391 *)
2392 # OSF1 and SCO ODT 3.0 have their own names for install.
2393 # Don't use installbsd from OSF since it installs stuff as root
2394 # by default.
2395 for ac_prog in ginstall scoinst install; do
2396 for ac_exec_ext in '' $ac_executable_extensions; do
2397 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2398 if test $ac_prog = install &&
2399 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2400 # AIX install. It has an incompatible calling convention.
2401 :
2402 elif test $ac_prog = install &&
2403 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2404 # program-specific install script used by HP pwplus--don't use.
2405 :
2406 else
2407 rm -rf conftest.one conftest.two conftest.dir
2408 echo one > conftest.one
2409 echo two > conftest.two
2410 mkdir conftest.dir
2411 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2412 test -s conftest.one && test -s conftest.two &&
2413 test -s conftest.dir/conftest.one &&
2414 test -s conftest.dir/conftest.two
2415 then
2416 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2417 break 3
2418 fi
2419 fi
2420 fi
2421 done
2422 done
2423 ;;
2424 esac
2425
2426 done
2427 IFS=$as_save_IFS
2428
2429 rm -rf conftest.one conftest.two conftest.dir
2430
2431 fi
2432 if test "${ac_cv_path_install+set}" = set; then
2433 INSTALL=$ac_cv_path_install
2434 else
2435 # As a last resort, use the slow shell script. Don't cache a
2436 # value for INSTALL within a source directory, because that will
2437 # break other packages using the cache if that directory is
2438 # removed, or if the value is a relative name.
2439 INSTALL=$ac_install_sh
2440 fi
2441 fi
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2443 $as_echo "$INSTALL" >&6; }
2444
2445 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2446 # It thinks the first close brace ends the variable substitution.
2447 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2448
2449 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2450
2451 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2452
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2454 $as_echo_n "checking whether build environment is sane... " >&6; }
2455 # Reject unsafe characters in $srcdir or the absolute working directory
2456 # name. Accept space and tab only in the latter.
2457 am_lf='
2458 '
2459 case `pwd` in
2460 *[\\\"\#\$\&\'\`$am_lf]*)
2461 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2462 esac
2463 case $srcdir in
2464 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2465 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2466 esac
2467
2468 # Do 'set' in a subshell so we don't clobber the current shell's
2469 # arguments. Must try -L first in case configure is actually a
2470 # symlink; some systems play weird games with the mod time of symlinks
2471 # (eg FreeBSD returns the mod time of the symlink's containing
2472 # directory).
2473 if (
2474 am_has_slept=no
2475 for am_try in 1 2; do
2476 echo "timestamp, slept: $am_has_slept" > conftest.file
2477 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2478 if test "$*" = "X"; then
2479 # -L didn't work.
2480 set X `ls -t "$srcdir/configure" conftest.file`
2481 fi
2482 if test "$*" != "X $srcdir/configure conftest.file" \
2483 && test "$*" != "X conftest.file $srcdir/configure"; then
2484
2485 # If neither matched, then we have a broken ls. This can happen
2486 # if, for instance, CONFIG_SHELL is bash and it inherits a
2487 # broken ls alias from the environment. This has actually
2488 # happened. Such a system could not be considered "sane".
2489 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2490 alias in your environment" "$LINENO" 5
2491 fi
2492 if test "$2" = conftest.file || test $am_try -eq 2; then
2493 break
2494 fi
2495 # Just in case.
2496 sleep 1
2497 am_has_slept=yes
2498 done
2499 test "$2" = conftest.file
2500 )
2501 then
2502 # Ok.
2503 :
2504 else
2505 as_fn_error $? "newly created file is older than distributed files!
2506 Check your system clock" "$LINENO" 5
2507 fi
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2509 $as_echo "yes" >&6; }
2510 # If we didn't sleep, we still need to ensure time stamps of config.status and
2511 # generated files are strictly newer.
2512 am_sleep_pid=
2513 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2514 ( sleep 1 ) &
2515 am_sleep_pid=$!
2516 fi
2517
2518 rm -f conftest.file
2519
2520 test "$program_prefix" != NONE &&
2521 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2522 # Use a double $ so make ignores it.
2523 test "$program_suffix" != NONE &&
2524 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2525 # Double any \ or $.
2526 # By default was `s,x,x', remove it if useless.
2527 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2528 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2529
2530 # expand $ac_aux_dir to an absolute path
2531 am_aux_dir=`cd $ac_aux_dir && pwd`
2532
2533 if test x"${MISSING+set}" != xset; then
2534 case $am_aux_dir in
2535 *\ * | *\ *)
2536 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2537 *)
2538 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2539 esac
2540 fi
2541 # Use eval to expand $SHELL
2542 if eval "$MISSING --is-lightweight"; then
2543 am_missing_run="$MISSING "
2544 else
2545 am_missing_run=
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2547 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2548 fi
2549
2550 if test x"${install_sh}" != xset; then
2551 case $am_aux_dir in
2552 *\ * | *\ *)
2553 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2554 *)
2555 install_sh="\${SHELL} $am_aux_dir/install-sh"
2556 esac
2557 fi
2558
2559 # Installed binaries are usually stripped using 'strip' when the user
2560 # run "make install-strip". However 'strip' might not be the right
2561 # tool to use in cross-compilation environments, therefore Automake
2562 # will honor the 'STRIP' environment variable to overrule this program.
2563 if test "$cross_compiling" != no; then
2564 if test -n "$ac_tool_prefix"; then
2565 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2566 set dummy ${ac_tool_prefix}strip; ac_word=$2
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2568 $as_echo_n "checking for $ac_word... " >&6; }
2569 if ${ac_cv_prog_STRIP+:} false; then :
2570 $as_echo_n "(cached) " >&6
2571 else
2572 if test -n "$STRIP"; then
2573 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2574 else
2575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576 for as_dir in $PATH
2577 do
2578 IFS=$as_save_IFS
2579 test -z "$as_dir" && as_dir=.
2580 for ac_exec_ext in '' $ac_executable_extensions; do
2581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2582 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2584 break 2
2585 fi
2586 done
2587 done
2588 IFS=$as_save_IFS
2589
2590 fi
2591 fi
2592 STRIP=$ac_cv_prog_STRIP
2593 if test -n "$STRIP"; then
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2595 $as_echo "$STRIP" >&6; }
2596 else
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2598 $as_echo "no" >&6; }
2599 fi
2600
2601
2602 fi
2603 if test -z "$ac_cv_prog_STRIP"; then
2604 ac_ct_STRIP=$STRIP
2605 # Extract the first word of "strip", so it can be a program name with args.
2606 set dummy strip; ac_word=$2
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2608 $as_echo_n "checking for $ac_word... " >&6; }
2609 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2610 $as_echo_n "(cached) " >&6
2611 else
2612 if test -n "$ac_ct_STRIP"; then
2613 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2614 else
2615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 for as_dir in $PATH
2617 do
2618 IFS=$as_save_IFS
2619 test -z "$as_dir" && as_dir=.
2620 for ac_exec_ext in '' $ac_executable_extensions; do
2621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2622 ac_cv_prog_ac_ct_STRIP="strip"
2623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2624 break 2
2625 fi
2626 done
2627 done
2628 IFS=$as_save_IFS
2629
2630 fi
2631 fi
2632 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2633 if test -n "$ac_ct_STRIP"; then
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2635 $as_echo "$ac_ct_STRIP" >&6; }
2636 else
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2638 $as_echo "no" >&6; }
2639 fi
2640
2641 if test "x$ac_ct_STRIP" = x; then
2642 STRIP=":"
2643 else
2644 case $cross_compiling:$ac_tool_warned in
2645 yes:)
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2647 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2648 ac_tool_warned=yes ;;
2649 esac
2650 STRIP=$ac_ct_STRIP
2651 fi
2652 else
2653 STRIP="$ac_cv_prog_STRIP"
2654 fi
2655
2656 fi
2657 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2658
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2660 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2661 if test -z "$MKDIR_P"; then
2662 if ${ac_cv_path_mkdir+:} false; then :
2663 $as_echo_n "(cached) " >&6
2664 else
2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2667 do
2668 IFS=$as_save_IFS
2669 test -z "$as_dir" && as_dir=.
2670 for ac_prog in mkdir gmkdir; do
2671 for ac_exec_ext in '' $ac_executable_extensions; do
2672 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2673 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2674 'mkdir (GNU coreutils) '* | \
2675 'mkdir (coreutils) '* | \
2676 'mkdir (fileutils) '4.1*)
2677 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2678 break 3;;
2679 esac
2680 done
2681 done
2682 done
2683 IFS=$as_save_IFS
2684
2685 fi
2686
2687 test -d ./--version && rmdir ./--version
2688 if test "${ac_cv_path_mkdir+set}" = set; then
2689 MKDIR_P="$ac_cv_path_mkdir -p"
2690 else
2691 # As a last resort, use the slow shell script. Don't cache a
2692 # value for MKDIR_P within a source directory, because that will
2693 # break other packages using the cache if that directory is
2694 # removed, or if the value is a relative name.
2695 MKDIR_P="$ac_install_sh -d"
2696 fi
2697 fi
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2699 $as_echo "$MKDIR_P" >&6; }
2700
2701 for ac_prog in gawk mawk nawk awk
2702 do
2703 # Extract the first word of "$ac_prog", so it can be a program name with args.
2704 set dummy $ac_prog; ac_word=$2
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2706 $as_echo_n "checking for $ac_word... " >&6; }
2707 if ${ac_cv_prog_AWK+:} false; then :
2708 $as_echo_n "(cached) " >&6
2709 else
2710 if test -n "$AWK"; then
2711 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2712 else
2713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714 for as_dir in $PATH
2715 do
2716 IFS=$as_save_IFS
2717 test -z "$as_dir" && as_dir=.
2718 for ac_exec_ext in '' $ac_executable_extensions; do
2719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2720 ac_cv_prog_AWK="$ac_prog"
2721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2722 break 2
2723 fi
2724 done
2725 done
2726 IFS=$as_save_IFS
2727
2728 fi
2729 fi
2730 AWK=$ac_cv_prog_AWK
2731 if test -n "$AWK"; then
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2733 $as_echo "$AWK" >&6; }
2734 else
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2736 $as_echo "no" >&6; }
2737 fi
2738
2739
2740 test -n "$AWK" && break
2741 done
2742
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2744 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2745 set x ${MAKE-make}
2746 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2747 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2748 $as_echo_n "(cached) " >&6
2749 else
2750 cat >conftest.make <<\_ACEOF
2751 SHELL = /bin/sh
2752 all:
2753 @echo '@@@%%%=$(MAKE)=@@@%%%'
2754 _ACEOF
2755 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2756 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2757 *@@@%%%=?*=@@@%%%*)
2758 eval ac_cv_prog_make_${ac_make}_set=yes;;
2759 *)
2760 eval ac_cv_prog_make_${ac_make}_set=no;;
2761 esac
2762 rm -f conftest.make
2763 fi
2764 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2766 $as_echo "yes" >&6; }
2767 SET_MAKE=
2768 else
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2770 $as_echo "no" >&6; }
2771 SET_MAKE="MAKE=${MAKE-make}"
2772 fi
2773
2774 rm -rf .tst 2>/dev/null
2775 mkdir .tst 2>/dev/null
2776 if test -d .tst; then
2777 am__leading_dot=.
2778 else
2779 am__leading_dot=_
2780 fi
2781 rmdir .tst 2>/dev/null
2782
2783 # Check whether --enable-silent-rules was given.
2784 if test "${enable_silent_rules+set}" = set; then :
2785 enableval=$enable_silent_rules;
2786 fi
2787
2788 case $enable_silent_rules in # (((
2789 yes) AM_DEFAULT_VERBOSITY=0;;
2790 no) AM_DEFAULT_VERBOSITY=1;;
2791 *) AM_DEFAULT_VERBOSITY=1;;
2792 esac
2793 am_make=${MAKE-make}
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2795 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2796 if ${am_cv_make_support_nested_variables+:} false; then :
2797 $as_echo_n "(cached) " >&6
2798 else
2799 if $as_echo 'TRUE=$(BAR$(V))
2800 BAR0=false
2801 BAR1=true
2802 V=1
2803 am__doit:
2804 @$(TRUE)
2805 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2806 am_cv_make_support_nested_variables=yes
2807 else
2808 am_cv_make_support_nested_variables=no
2809 fi
2810 fi
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2812 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2813 if test $am_cv_make_support_nested_variables = yes; then
2814 AM_V='$(V)'
2815 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2816 else
2817 AM_V=$AM_DEFAULT_VERBOSITY
2818 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2819 fi
2820 AM_BACKSLASH='\'
2821
2822 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2823 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2824 # is not polluted with repeated "-I."
2825 am__isrc=' -I$(srcdir)'
2826 # test to see if srcdir already configured
2827 if test -f $srcdir/config.status; then
2828 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2829 fi
2830 fi
2831
2832 # test whether we have cygpath
2833 if test -z "$CYGPATH_W"; then
2834 if (cygpath --version) >/dev/null 2>/dev/null; then
2835 CYGPATH_W='cygpath -w'
2836 else
2837 CYGPATH_W=echo
2838 fi
2839 fi
2840
2841
2842 # Define the identity of the package.
2843 PACKAGE='xf86-video-i740'
2844 VERSION='1.3.5'
2845
2846
2847 cat >>confdefs.h <<_ACEOF
2848 #define PACKAGE "$PACKAGE"
2849 _ACEOF
2850
2851
2852 cat >>confdefs.h <<_ACEOF
2853 #define VERSION "$VERSION"
2854 _ACEOF
2855
2856 # Some tools Automake needs.
2857
2858 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2859
2860
2861 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2862
2863
2864 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2865
2866
2867 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2868
2869
2870 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2871
2872 # For better backward compatibility. To be removed once Automake 1.9.x
2873 # dies out for good. For more background, see:
2874 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2875 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2876 mkdir_p='$(MKDIR_P)'
2877
2878 # We need awk for the "check" target. The system "awk" is bad on
2879 # some platforms.
2880 # Always define AMTAR for backward compatibility. Yes, it's still used
2881 # in the wild :-( We should find a proper way to deprecate it ...
2882 AMTAR='$${TAR-tar}'
2883
2884
2885 # We'll loop over all known methods to create a tar archive until one works.
2886 _am_tools='gnutar pax cpio none'
2887
2888 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2889
2890
2891
2892
2893
2894
2895
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2897 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2898 # Check whether --enable-maintainer-mode was given.
2899 if test "${enable_maintainer_mode+set}" = set; then :
2900 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2901 else
2902 USE_MAINTAINER_MODE=no
2903 fi
2904
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2906 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2907 if test $USE_MAINTAINER_MODE = yes; then
2908 MAINTAINER_MODE_TRUE=
2909 MAINTAINER_MODE_FALSE='#'
2910 else
2911 MAINTAINER_MODE_TRUE='#'
2912 MAINTAINER_MODE_FALSE=
2913 fi
2914
2915 MAINT=$MAINTAINER_MODE_TRUE
2916
2917
2918
2919 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931 DEPDIR="${am__leading_dot}deps"
2932
2933 ac_config_commands="$ac_config_commands depfiles"
2934
2935
2936 am_make=${MAKE-make}
2937 cat > confinc << 'END'
2938 am__doit:
2939 @echo this is the am__doit target
2940 .PHONY: am__doit
2941 END
2942 # If we don't find an include directive, just comment out the code.
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2944 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2945 am__include="#"
2946 am__quote=
2947 _am_result=none
2948 # First try GNU make style include.
2949 echo "include confinc" > confmf
2950 # Ignore all kinds of additional output from 'make'.
2951 case `$am_make -s -f confmf 2> /dev/null` in #(
2952 *the\ am__doit\ target*)
2953 am__include=include
2954 am__quote=
2955 _am_result=GNU
2956 ;;
2957 esac
2958 # Now try BSD make style include.
2959 if test "$am__include" = "#"; then
2960 echo '.include "confinc"' > confmf
2961 case `$am_make -s -f confmf 2> /dev/null` in #(
2962 *the\ am__doit\ target*)
2963 am__include=.include
2964 am__quote="\""
2965 _am_result=BSD
2966 ;;
2967 esac
2968 fi
2969
2970
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2972 $as_echo "$_am_result" >&6; }
2973 rm -f confinc confmf
2974
2975 # Check whether --enable-dependency-tracking was given.
2976 if test "${enable_dependency_tracking+set}" = set; then :
2977 enableval=$enable_dependency_tracking;
2978 fi
2979
2980 if test "x$enable_dependency_tracking" != xno; then
2981 am_depcomp="$ac_aux_dir/depcomp"
2982 AMDEPBACKSLASH='\'
2983 am__nodep='_no'
2984 fi
2985 if test "x$enable_dependency_tracking" != xno; then
2986 AMDEP_TRUE=
2987 AMDEP_FALSE='#'
2988 else
2989 AMDEP_TRUE='#'
2990 AMDEP_FALSE=
2991 fi
2992
2993
2994 ac_ext=c
2995 ac_cpp='$CPP $CPPFLAGS'
2996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2999 if test -n "$ac_tool_prefix"; then
3000 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3001 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3003 $as_echo_n "checking for $ac_word... " >&6; }
3004 if ${ac_cv_prog_CC+:} false; then :
3005 $as_echo_n "(cached) " >&6
3006 else
3007 if test -n "$CC"; then
3008 ac_cv_prog_CC="$CC" # Let the user override the test.
3009 else
3010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011 for as_dir in $PATH
3012 do
3013 IFS=$as_save_IFS
3014 test -z "$as_dir" && as_dir=.
3015 for ac_exec_ext in '' $ac_executable_extensions; do
3016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3017 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3019 break 2
3020 fi
3021 done
3022 done
3023 IFS=$as_save_IFS
3024
3025 fi
3026 fi
3027 CC=$ac_cv_prog_CC
3028 if test -n "$CC"; then
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3030 $as_echo "$CC" >&6; }
3031 else
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033 $as_echo "no" >&6; }
3034 fi
3035
3036
3037 fi
3038 if test -z "$ac_cv_prog_CC"; then
3039 ac_ct_CC=$CC
3040 # Extract the first word of "gcc", so it can be a program name with args.
3041 set dummy gcc; ac_word=$2
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043 $as_echo_n "checking for $ac_word... " >&6; }
3044 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3045 $as_echo_n "(cached) " >&6
3046 else
3047 if test -n "$ac_ct_CC"; then
3048 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3049 else
3050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051 for as_dir in $PATH
3052 do
3053 IFS=$as_save_IFS
3054 test -z "$as_dir" && as_dir=.
3055 for ac_exec_ext in '' $ac_executable_extensions; do
3056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3057 ac_cv_prog_ac_ct_CC="gcc"
3058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3059 break 2
3060 fi
3061 done
3062 done
3063 IFS=$as_save_IFS
3064
3065 fi
3066 fi
3067 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3068 if test -n "$ac_ct_CC"; then
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3070 $as_echo "$ac_ct_CC" >&6; }
3071 else
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073 $as_echo "no" >&6; }
3074 fi
3075
3076 if test "x$ac_ct_CC" = x; then
3077 CC=""
3078 else
3079 case $cross_compiling:$ac_tool_warned in
3080 yes:)
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3083 ac_tool_warned=yes ;;
3084 esac
3085 CC=$ac_ct_CC
3086 fi
3087 else
3088 CC="$ac_cv_prog_CC"
3089 fi
3090
3091 if test -z "$CC"; then
3092 if test -n "$ac_tool_prefix"; then
3093 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3094 set dummy ${ac_tool_prefix}cc; ac_word=$2
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096 $as_echo_n "checking for $ac_word... " >&6; }
3097 if ${ac_cv_prog_CC+:} false; then :
3098 $as_echo_n "(cached) " >&6
3099 else
3100 if test -n "$CC"; then
3101 ac_cv_prog_CC="$CC" # Let the user override the test.
3102 else
3103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104 for as_dir in $PATH
3105 do
3106 IFS=$as_save_IFS
3107 test -z "$as_dir" && as_dir=.
3108 for ac_exec_ext in '' $ac_executable_extensions; do
3109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3110 ac_cv_prog_CC="${ac_tool_prefix}cc"
3111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3112 break 2
3113 fi
3114 done
3115 done
3116 IFS=$as_save_IFS
3117
3118 fi
3119 fi
3120 CC=$ac_cv_prog_CC
3121 if test -n "$CC"; then
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3123 $as_echo "$CC" >&6; }
3124 else
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126 $as_echo "no" >&6; }
3127 fi
3128
3129
3130 fi
3131 fi
3132 if test -z "$CC"; then
3133 # Extract the first word of "cc", so it can be a program name with args.
3134 set dummy cc; ac_word=$2
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3136 $as_echo_n "checking for $ac_word... " >&6; }
3137 if ${ac_cv_prog_CC+:} false; then :
3138 $as_echo_n "(cached) " >&6
3139 else
3140 if test -n "$CC"; then
3141 ac_cv_prog_CC="$CC" # Let the user override the test.
3142 else
3143 ac_prog_rejected=no
3144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145 for as_dir in $PATH
3146 do
3147 IFS=$as_save_IFS
3148 test -z "$as_dir" && as_dir=.
3149 for ac_exec_ext in '' $ac_executable_extensions; do
3150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3151 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3152 ac_prog_rejected=yes
3153 continue
3154 fi
3155 ac_cv_prog_CC="cc"
3156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3157 break 2
3158 fi
3159 done
3160 done
3161 IFS=$as_save_IFS
3162
3163 if test $ac_prog_rejected = yes; then
3164 # We found a bogon in the path, so make sure we never use it.
3165 set dummy $ac_cv_prog_CC
3166 shift
3167 if test $# != 0; then
3168 # We chose a different compiler from the bogus one.
3169 # However, it has the same basename, so the bogon will be chosen
3170 # first if we set CC to just the basename; use the full file name.
3171 shift
3172 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3173 fi
3174 fi
3175 fi
3176 fi
3177 CC=$ac_cv_prog_CC
3178 if test -n "$CC"; then
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3180 $as_echo "$CC" >&6; }
3181 else
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183 $as_echo "no" >&6; }
3184 fi
3185
3186
3187 fi
3188 if test -z "$CC"; then
3189 if test -n "$ac_tool_prefix"; then
3190 for ac_prog in cl.exe
3191 do
3192 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3193 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3195 $as_echo_n "checking for $ac_word... " >&6; }
3196 if ${ac_cv_prog_CC+:} false; then :
3197 $as_echo_n "(cached) " >&6
3198 else
3199 if test -n "$CC"; then
3200 ac_cv_prog_CC="$CC" # Let the user override the test.
3201 else
3202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203 for as_dir in $PATH
3204 do
3205 IFS=$as_save_IFS
3206 test -z "$as_dir" && as_dir=.
3207 for ac_exec_ext in '' $ac_executable_extensions; do
3208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3209 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3211 break 2
3212 fi
3213 done
3214 done
3215 IFS=$as_save_IFS
3216
3217 fi
3218 fi
3219 CC=$ac_cv_prog_CC
3220 if test -n "$CC"; then
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3222 $as_echo "$CC" >&6; }
3223 else
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225 $as_echo "no" >&6; }
3226 fi
3227
3228
3229 test -n "$CC" && break
3230 done
3231 fi
3232 if test -z "$CC"; then
3233 ac_ct_CC=$CC
3234 for ac_prog in cl.exe
3235 do
3236 # Extract the first word of "$ac_prog", so it can be a program name with args.
3237 set dummy $ac_prog; ac_word=$2
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3239 $as_echo_n "checking for $ac_word... " >&6; }
3240 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3241 $as_echo_n "(cached) " >&6
3242 else
3243 if test -n "$ac_ct_CC"; then
3244 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3245 else
3246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247 for as_dir in $PATH
3248 do
3249 IFS=$as_save_IFS
3250 test -z "$as_dir" && as_dir=.
3251 for ac_exec_ext in '' $ac_executable_extensions; do
3252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3253 ac_cv_prog_ac_ct_CC="$ac_prog"
3254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3255 break 2
3256 fi
3257 done
3258 done
3259 IFS=$as_save_IFS
3260
3261 fi
3262 fi
3263 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3264 if test -n "$ac_ct_CC"; then
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3266 $as_echo "$ac_ct_CC" >&6; }
3267 else
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269 $as_echo "no" >&6; }
3270 fi
3271
3272
3273 test -n "$ac_ct_CC" && break
3274 done
3275
3276 if test "x$ac_ct_CC" = x; then
3277 CC=""
3278 else
3279 case $cross_compiling:$ac_tool_warned in
3280 yes:)
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3283 ac_tool_warned=yes ;;
3284 esac
3285 CC=$ac_ct_CC
3286 fi
3287 fi
3288
3289 fi
3290
3291
3292 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3294 as_fn_error $? "no acceptable C compiler found in \$PATH
3295 See \`config.log' for more details" "$LINENO" 5; }
3296
3297 # Provide some information about the compiler.
3298 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3299 set X $ac_compile
3300 ac_compiler=$2
3301 for ac_option in --version -v -V -qversion; do
3302 { { ac_try="$ac_compiler $ac_option >&5"
3303 case "(($ac_try" in
3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305 *) ac_try_echo=$ac_try;;
3306 esac
3307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3308 $as_echo "$ac_try_echo"; } >&5
3309 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3310 ac_status=$?
3311 if test -s conftest.err; then
3312 sed '10a\
3313 ... rest of stderr output deleted ...
3314 10q' conftest.err >conftest.er1
3315 cat conftest.er1 >&5
3316 fi
3317 rm -f conftest.er1 conftest.err
3318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3319 test $ac_status = 0; }
3320 done
3321
3322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3323 /* end confdefs.h. */
3324
3325 int
3326 main ()
3327 {
3328
3329 ;
3330 return 0;
3331 }
3332 _ACEOF
3333 ac_clean_files_save=$ac_clean_files
3334 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3335 # Try to create an executable without -o first, disregard a.out.
3336 # It will help us diagnose broken compilers, and finding out an intuition
3337 # of exeext.
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3339 $as_echo_n "checking whether the C compiler works... " >&6; }
3340 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3341
3342 # The possible output files:
3343 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3344
3345 ac_rmfiles=
3346 for ac_file in $ac_files
3347 do
3348 case $ac_file in
3349 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3350 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3351 esac
3352 done
3353 rm -f $ac_rmfiles
3354
3355 if { { ac_try="$ac_link_default"
3356 case "(($ac_try" in
3357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358 *) ac_try_echo=$ac_try;;
3359 esac
3360 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3361 $as_echo "$ac_try_echo"; } >&5
3362 (eval "$ac_link_default") 2>&5
3363 ac_status=$?
3364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3365 test $ac_status = 0; }; then :
3366 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3367 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3368 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3369 # so that the user can short-circuit this test for compilers unknown to
3370 # Autoconf.
3371 for ac_file in $ac_files ''
3372 do
3373 test -f "$ac_file" || continue
3374 case $ac_file in
3375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3376 ;;
3377 [ab].out )
3378 # We found the default executable, but exeext='' is most
3379 # certainly right.
3380 break;;
3381 *.* )
3382 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3383 then :; else
3384 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3385 fi
3386 # We set ac_cv_exeext here because the later test for it is not
3387 # safe: cross compilers may not add the suffix if given an `-o'
3388 # argument, so we may need to know it at that point already.
3389 # Even if this section looks crufty: it has the advantage of
3390 # actually working.
3391 break;;
3392 * )
3393 break;;
3394 esac
3395 done
3396 test "$ac_cv_exeext" = no && ac_cv_exeext=
3397
3398 else
3399 ac_file=''
3400 fi
3401 if test -z "$ac_file"; then :
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3403 $as_echo "no" >&6; }
3404 $as_echo "$as_me: failed program was:" >&5
3405 sed 's/^/| /' conftest.$ac_ext >&5
3406
3407 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3408 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3409 as_fn_error 77 "C compiler cannot create executables
3410 See \`config.log' for more details" "$LINENO" 5; }
3411 else
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3413 $as_echo "yes" >&6; }
3414 fi
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3416 $as_echo_n "checking for C compiler default output file name... " >&6; }
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3418 $as_echo "$ac_file" >&6; }
3419 ac_exeext=$ac_cv_exeext
3420
3421 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3422 ac_clean_files=$ac_clean_files_save
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3424 $as_echo_n "checking for suffix of executables... " >&6; }
3425 if { { ac_try="$ac_link"
3426 case "(($ac_try" in
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3429 esac
3430 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3431 $as_echo "$ac_try_echo"; } >&5
3432 (eval "$ac_link") 2>&5
3433 ac_status=$?
3434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3435 test $ac_status = 0; }; then :
3436 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3437 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3438 # work properly (i.e., refer to `conftest.exe'), while it won't with
3439 # `rm'.
3440 for ac_file in conftest.exe conftest conftest.*; do
3441 test -f "$ac_file" || continue
3442 case $ac_file in
3443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3444 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3445 break;;
3446 * ) break;;
3447 esac
3448 done
3449 else
3450 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3452 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3453 See \`config.log' for more details" "$LINENO" 5; }
3454 fi
3455 rm -f conftest conftest$ac_cv_exeext
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3457 $as_echo "$ac_cv_exeext" >&6; }
3458
3459 rm -f conftest.$ac_ext
3460 EXEEXT=$ac_cv_exeext
3461 ac_exeext=$EXEEXT
3462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463 /* end confdefs.h. */
3464 #include <stdio.h>
3465 int
3466 main ()
3467 {
3468 FILE *f = fopen ("conftest.out", "w");
3469 return ferror (f) || fclose (f) != 0;
3470
3471 ;
3472 return 0;
3473 }
3474 _ACEOF
3475 ac_clean_files="$ac_clean_files conftest.out"
3476 # Check that the compiler produces executables we can run. If not, either
3477 # the compiler is broken, or we cross compile.
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3479 $as_echo_n "checking whether we are cross compiling... " >&6; }
3480 if test "$cross_compiling" != yes; then
3481 { { ac_try="$ac_link"
3482 case "(($ac_try" in
3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484 *) ac_try_echo=$ac_try;;
3485 esac
3486 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3487 $as_echo "$ac_try_echo"; } >&5
3488 (eval "$ac_link") 2>&5
3489 ac_status=$?
3490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3491 test $ac_status = 0; }
3492 if { ac_try='./conftest$ac_cv_exeext'
3493 { { case "(($ac_try" in
3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495 *) ac_try_echo=$ac_try;;
3496 esac
3497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3498 $as_echo "$ac_try_echo"; } >&5
3499 (eval "$ac_try") 2>&5
3500 ac_status=$?
3501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3502 test $ac_status = 0; }; }; then
3503 cross_compiling=no
3504 else
3505 if test "$cross_compiling" = maybe; then
3506 cross_compiling=yes
3507 else
3508 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3510 as_fn_error $? "cannot run C compiled programs.
3511 If you meant to cross compile, use \`--host'.
3512 See \`config.log' for more details" "$LINENO" 5; }
3513 fi
3514 fi
3515 fi
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3517 $as_echo "$cross_compiling" >&6; }
3518
3519 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3520 ac_clean_files=$ac_clean_files_save
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3522 $as_echo_n "checking for suffix of object files... " >&6; }
3523 if ${ac_cv_objext+:} false; then :
3524 $as_echo_n "(cached) " >&6
3525 else
3526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527 /* end confdefs.h. */
3528
3529 int
3530 main ()
3531 {
3532
3533 ;
3534 return 0;
3535 }
3536 _ACEOF
3537 rm -f conftest.o conftest.obj
3538 if { { ac_try="$ac_compile"
3539 case "(($ac_try" in
3540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541 *) ac_try_echo=$ac_try;;
3542 esac
3543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3544 $as_echo "$ac_try_echo"; } >&5
3545 (eval "$ac_compile") 2>&5
3546 ac_status=$?
3547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3548 test $ac_status = 0; }; then :
3549 for ac_file in conftest.o conftest.obj conftest.*; do
3550 test -f "$ac_file" || continue;
3551 case $ac_file in
3552 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3553 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3554 break;;
3555 esac
3556 done
3557 else
3558 $as_echo "$as_me: failed program was:" >&5
3559 sed 's/^/| /' conftest.$ac_ext >&5
3560
3561 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3563 as_fn_error $? "cannot compute suffix of object files: cannot compile
3564 See \`config.log' for more details" "$LINENO" 5; }
3565 fi
3566 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3567 fi
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3569 $as_echo "$ac_cv_objext" >&6; }
3570 OBJEXT=$ac_cv_objext
3571 ac_objext=$OBJEXT
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3573 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3574 if ${ac_cv_c_compiler_gnu+:} false; then :
3575 $as_echo_n "(cached) " >&6
3576 else
3577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578 /* end confdefs.h. */
3579
3580 int
3581 main ()
3582 {
3583 #ifndef __GNUC__
3584 choke me
3585 #endif
3586
3587 ;
3588 return 0;
3589 }
3590 _ACEOF
3591 if ac_fn_c_try_compile "$LINENO"; then :
3592 ac_compiler_gnu=yes
3593 else
3594 ac_compiler_gnu=no
3595 fi
3596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3597 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3598
3599 fi
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3601 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3602 if test $ac_compiler_gnu = yes; then
3603 GCC=yes
3604 else
3605 GCC=
3606 fi
3607 ac_test_CFLAGS=${CFLAGS+set}
3608 ac_save_CFLAGS=$CFLAGS
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3610 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3611 if ${ac_cv_prog_cc_g+:} false; then :
3612 $as_echo_n "(cached) " >&6
3613 else
3614 ac_save_c_werror_flag=$ac_c_werror_flag
3615 ac_c_werror_flag=yes
3616 ac_cv_prog_cc_g=no
3617 CFLAGS="-g"
3618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619 /* end confdefs.h. */
3620
3621 int
3622 main ()
3623 {
3624
3625 ;
3626 return 0;
3627 }
3628 _ACEOF
3629 if ac_fn_c_try_compile "$LINENO"; then :
3630 ac_cv_prog_cc_g=yes
3631 else
3632 CFLAGS=""
3633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634 /* end confdefs.h. */
3635
3636 int
3637 main ()
3638 {
3639
3640 ;
3641 return 0;
3642 }
3643 _ACEOF
3644 if ac_fn_c_try_compile "$LINENO"; then :
3645
3646 else
3647 ac_c_werror_flag=$ac_save_c_werror_flag
3648 CFLAGS="-g"
3649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650 /* end confdefs.h. */
3651
3652 int
3653 main ()
3654 {
3655
3656 ;
3657 return 0;
3658 }
3659 _ACEOF
3660 if ac_fn_c_try_compile "$LINENO"; then :
3661 ac_cv_prog_cc_g=yes
3662 fi
3663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3664 fi
3665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3666 fi
3667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3668 ac_c_werror_flag=$ac_save_c_werror_flag
3669 fi
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3671 $as_echo "$ac_cv_prog_cc_g" >&6; }
3672 if test "$ac_test_CFLAGS" = set; then
3673 CFLAGS=$ac_save_CFLAGS
3674 elif test $ac_cv_prog_cc_g = yes; then
3675 if test "$GCC" = yes; then
3676 CFLAGS="-g -O2"
3677 else
3678 CFLAGS="-g"
3679 fi
3680 else
3681 if test "$GCC" = yes; then
3682 CFLAGS="-O2"
3683 else
3684 CFLAGS=
3685 fi
3686 fi
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3688 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3689 if ${ac_cv_prog_cc_c89+:} false; then :
3690 $as_echo_n "(cached) " >&6
3691 else
3692 ac_cv_prog_cc_c89=no
3693 ac_save_CC=$CC
3694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3695 /* end confdefs.h. */
3696 #include <stdarg.h>
3697 #include <stdio.h>
3698 struct stat;
3699 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3700 struct buf { int x; };
3701 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3702 static char *e (p, i)
3703 char **p;
3704 int i;
3705 {
3706 return p[i];
3707 }
3708 static char *f (char * (*g) (char **, int), char **p, ...)
3709 {
3710 char *s;
3711 va_list v;
3712 va_start (v,p);
3713 s = g (p, va_arg (v,int));
3714 va_end (v);
3715 return s;
3716 }
3717
3718 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3719 function prototypes and stuff, but not '\xHH' hex character constants.
3720 These don't provoke an error unfortunately, instead are silently treated
3721 as 'x'. The following induces an error, until -std is added to get
3722 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3723 array size at least. It's necessary to write '\x00'==0 to get something
3724 that's true only with -std. */
3725 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3726
3727 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3728 inside strings and character constants. */
3729 #define FOO(x) 'x'
3730 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3731
3732 int test (int i, double x);
3733 struct s1 {int (*f) (int a);};
3734 struct s2 {int (*f) (double a);};
3735 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3736 int argc;
3737 char **argv;
3738 int
3739 main ()
3740 {
3741 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3742 ;
3743 return 0;
3744 }
3745 _ACEOF
3746 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3747 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3748 do
3749 CC="$ac_save_CC $ac_arg"
3750 if ac_fn_c_try_compile "$LINENO"; then :
3751 ac_cv_prog_cc_c89=$ac_arg
3752 fi
3753 rm -f core conftest.err conftest.$ac_objext
3754 test "x$ac_cv_prog_cc_c89" != "xno" && break
3755 done
3756 rm -f conftest.$ac_ext
3757 CC=$ac_save_CC
3758
3759 fi
3760 # AC_CACHE_VAL
3761 case "x$ac_cv_prog_cc_c89" in
3762 x)
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3764 $as_echo "none needed" >&6; } ;;
3765 xno)
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3767 $as_echo "unsupported" >&6; } ;;
3768 *)
3769 CC="$CC $ac_cv_prog_cc_c89"
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3771 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3772 esac
3773 if test "x$ac_cv_prog_cc_c89" != xno; then :
3774
3775 fi
3776
3777 ac_ext=c
3778 ac_cpp='$CPP $CPPFLAGS'
3779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3782
3783 depcc="$CC" am_compiler_list=
3784
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3786 $as_echo_n "checking dependency style of $depcc... " >&6; }
3787 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3788 $as_echo_n "(cached) " >&6
3789 else
3790 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3791 # We make a subdir and do the tests there. Otherwise we can end up
3792 # making bogus files that we don't know about and never remove. For
3793 # instance it was reported that on HP-UX the gcc test will end up
3794 # making a dummy file named 'D' -- because '-MD' means "put the output
3795 # in D".
3796 rm -rf conftest.dir
3797 mkdir conftest.dir
3798 # Copy depcomp to subdir because otherwise we won't find it if we're
3799 # using a relative directory.
3800 cp "$am_depcomp" conftest.dir
3801 cd conftest.dir
3802 # We will build objects and dependencies in a subdirectory because
3803 # it helps to detect inapplicable dependency modes. For instance
3804 # both Tru64's cc and ICC support -MD to output dependencies as a
3805 # side effect of compilation, but ICC will put the dependencies in
3806 # the current directory while Tru64 will put them in the object
3807 # directory.
3808 mkdir sub
3809
3810 am_cv_CC_dependencies_compiler_type=none
3811 if test "$am_compiler_list" = ""; then
3812 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3813 fi
3814 am__universal=false
3815 case " $depcc " in #(
3816 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3817 esac
3818
3819 for depmode in $am_compiler_list; do
3820 # Setup a source with many dependencies, because some compilers
3821 # like to wrap large dependency lists on column 80 (with \), and
3822 # we should not choose a depcomp mode which is confused by this.
3823 #
3824 # We need to recreate these files for each test, as the compiler may
3825 # overwrite some of them when testing with obscure command lines.
3826 # This happens at least with the AIX C compiler.
3827 : > sub/conftest.c
3828 for i in 1 2 3 4 5 6; do
3829 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3830 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3831 # Solaris 10 /bin/sh.
3832 echo '/* dummy */' > sub/conftst$i.h
3833 done
3834 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3835
3836 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3837 # mode. It turns out that the SunPro C++ compiler does not properly
3838 # handle '-M -o', and we need to detect this. Also, some Intel
3839 # versions had trouble with output in subdirs.
3840 am__obj=sub/conftest.${OBJEXT-o}
3841 am__minus_obj="-o $am__obj"
3842 case $depmode in
3843 gcc)
3844 # This depmode causes a compiler race in universal mode.
3845 test "$am__universal" = false || continue
3846 ;;
3847 nosideeffect)
3848 # After this tag, mechanisms are not by side-effect, so they'll
3849 # only be used when explicitly requested.
3850 if test "x$enable_dependency_tracking" = xyes; then
3851 continue
3852 else
3853 break
3854 fi
3855 ;;
3856 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3857 # This compiler won't grok '-c -o', but also, the minuso test has
3858 # not run yet. These depmodes are late enough in the game, and
3859 # so weak that their functioning should not be impacted.
3860 am__obj=conftest.${OBJEXT-o}
3861 am__minus_obj=
3862 ;;
3863 none) break ;;
3864 esac
3865 if depmode=$depmode \
3866 source=sub/conftest.c object=$am__obj \
3867 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3868 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3869 >/dev/null 2>conftest.err &&
3870 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3871 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3872 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3873 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3874 # icc doesn't choke on unknown options, it will just issue warnings
3875 # or remarks (even with -Werror). So we grep stderr for any message
3876 # that says an option was ignored or not supported.
3877 # When given -MP, icc 7.0 and 7.1 complain thusly:
3878 # icc: Command line warning: ignoring option '-M'; no argument required
3879 # The diagnosis changed in icc 8.0:
3880 # icc: Command line remark: option '-MP' not supported
3881 if (grep 'ignoring option' conftest.err ||
3882 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3883 am_cv_CC_dependencies_compiler_type=$depmode
3884 break
3885 fi
3886 fi
3887 done
3888
3889 cd ..
3890 rm -rf conftest.dir
3891 else
3892 am_cv_CC_dependencies_compiler_type=none
3893 fi
3894
3895 fi
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3897 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3898 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3899
3900 if
3901 test "x$enable_dependency_tracking" != xno \
3902 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3903 am__fastdepCC_TRUE=
3904 am__fastdepCC_FALSE='#'
3905 else
3906 am__fastdepCC_TRUE='#'
3907 am__fastdepCC_FALSE=
3908 fi
3909
3910
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3912 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3913 if ${ac_cv_prog_cc_c99+:} false; then :
3914 $as_echo_n "(cached) " >&6
3915 else
3916 ac_cv_prog_cc_c99=no
3917 ac_save_CC=$CC
3918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919 /* end confdefs.h. */
3920 #include <stdarg.h>
3921 #include <stdbool.h>
3922 #include <stdlib.h>
3923 #include <wchar.h>
3924 #include <stdio.h>
3925
3926 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3927 #define debug(...) fprintf (stderr, __VA_ARGS__)
3928 #define showlist(...) puts (#__VA_ARGS__)
3929 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3930 static void
3931 test_varargs_macros (void)
3932 {
3933 int x = 1234;
3934 int y = 5678;
3935 debug ("Flag");
3936 debug ("X = %d\n", x);
3937 showlist (The first, second, and third items.);
3938 report (x>y, "x is %d but y is %d", x, y);
3939 }
3940
3941 // Check long long types.
3942 #define BIG64 18446744073709551615ull
3943 #define BIG32 4294967295ul
3944 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3945 #if !BIG_OK
3946 your preprocessor is broken;
3947 #endif
3948 #if BIG_OK
3949 #else
3950 your preprocessor is broken;
3951 #endif
3952 static long long int bignum = -9223372036854775807LL;
3953 static unsigned long long int ubignum = BIG64;
3954
3955 struct incomplete_array
3956 {
3957 int datasize;
3958 double data[];
3959 };
3960
3961 struct named_init {
3962 int number;
3963 const wchar_t *name;
3964 double average;
3965 };
3966
3967 typedef const char *ccp;
3968
3969 static inline int
3970 test_restrict (ccp restrict text)
3971 {
3972 // See if C++-style comments work.
3973 // Iterate through items via the restricted pointer.
3974 // Also check for declarations in for loops.
3975 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3976 continue;
3977 return 0;
3978 }
3979
3980 // Check varargs and va_copy.
3981 static void
3982 test_varargs (const char *format, ...)
3983 {
3984 va_list args;
3985 va_start (args, format);
3986 va_list args_copy;
3987 va_copy (args_copy, args);
3988
3989 const char *str;
3990 int number;
3991 float fnumber;
3992
3993 while (*format)
3994 {
3995 switch (*format++)
3996 {
3997 case 's': // string
3998 str = va_arg (args_copy, const char *);
3999 break;
4000 case 'd': // int
4001 number = va_arg (args_copy, int);
4002 break;
4003 case 'f': // float
4004 fnumber = va_arg (args_copy, double);
4005 break;
4006 default:
4007 break;
4008 }
4009 }
4010 va_end (args_copy);
4011 va_end (args);
4012 }
4013
4014 int
4015 main ()
4016 {
4017
4018 // Check bool.
4019 _Bool success = false;
4020
4021 // Check restrict.
4022 if (test_restrict ("String literal") == 0)
4023 success = true;
4024 char *restrict newvar = "Another string";
4025
4026 // Check varargs.
4027 test_varargs ("s, d' f .", "string", 65, 34.234);
4028 test_varargs_macros ();
4029
4030 // Check flexible array members.
4031 struct incomplete_array *ia =
4032 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4033 ia->datasize = 10;
4034 for (int i = 0; i < ia->datasize; ++i)
4035 ia->data[i] = i * 1.234;
4036
4037 // Check named initializers.
4038 struct named_init ni = {
4039 .number = 34,
4040 .name = L"Test wide string",
4041 .average = 543.34343,
4042 };
4043
4044 ni.number = 58;
4045
4046 int dynamic_array[ni.number];
4047 dynamic_array[ni.number - 1] = 543;
4048
4049 // work around unused variable warnings
4050 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4051 || dynamic_array[ni.number - 1] != 543);
4052
4053 ;
4054 return 0;
4055 }
4056 _ACEOF
4057 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4058 do
4059 CC="$ac_save_CC $ac_arg"
4060 if ac_fn_c_try_compile "$LINENO"; then :
4061 ac_cv_prog_cc_c99=$ac_arg
4062 fi
4063 rm -f core conftest.err conftest.$ac_objext
4064 test "x$ac_cv_prog_cc_c99" != "xno" && break
4065 done
4066 rm -f conftest.$ac_ext
4067 CC=$ac_save_CC
4068
4069 fi
4070 # AC_CACHE_VAL
4071 case "x$ac_cv_prog_cc_c99" in
4072 x)
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4074 $as_echo "none needed" >&6; } ;;
4075 xno)
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4077 $as_echo "unsupported" >&6; } ;;
4078 *)
4079 CC="$CC $ac_cv_prog_cc_c99"
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4081 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4082 esac
4083 if test "x$ac_cv_prog_cc_c99" != xno; then :
4084
4085 fi
4086
4087
4088
4089 ac_ext=c
4090 ac_cpp='$CPP $CPPFLAGS'
4091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4095 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4096 # On Suns, sometimes $CPP names a directory.
4097 if test -n "$CPP" && test -d "$CPP"; then
4098 CPP=
4099 fi
4100 if test -z "$CPP"; then
4101 if ${ac_cv_prog_CPP+:} false; then :
4102 $as_echo_n "(cached) " >&6
4103 else
4104 # Double quotes because CPP needs to be expanded
4105 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4106 do
4107 ac_preproc_ok=false
4108 for ac_c_preproc_warn_flag in '' yes
4109 do
4110 # Use a header file that comes with gcc, so configuring glibc
4111 # with a fresh cross-compiler works.
4112 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4113 # <limits.h> exists even on freestanding compilers.
4114 # On the NeXT, cc -E runs the code through the compiler's parser,
4115 # not just through cpp. "Syntax error" is here to catch this case.
4116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4117 /* end confdefs.h. */
4118 #ifdef __STDC__
4119 # include <limits.h>
4120 #else
4121 # include <assert.h>
4122 #endif
4123 Syntax error
4124 _ACEOF
4125 if ac_fn_c_try_cpp "$LINENO"; then :
4126
4127 else
4128 # Broken: fails on valid input.
4129 continue
4130 fi
4131 rm -f conftest.err conftest.i conftest.$ac_ext
4132
4133 # OK, works on sane cases. Now check whether nonexistent headers
4134 # can be detected and how.
4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136 /* end confdefs.h. */
4137 #include <ac_nonexistent.h>
4138 _ACEOF
4139 if ac_fn_c_try_cpp "$LINENO"; then :
4140 # Broken: success on invalid input.
4141 continue
4142 else
4143 # Passes both tests.
4144 ac_preproc_ok=:
4145 break
4146 fi
4147 rm -f conftest.err conftest.i conftest.$ac_ext
4148
4149 done
4150 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4151 rm -f conftest.i conftest.err conftest.$ac_ext
4152 if $ac_preproc_ok; then :
4153 break
4154 fi
4155
4156 done
4157 ac_cv_prog_CPP=$CPP
4158
4159 fi
4160 CPP=$ac_cv_prog_CPP
4161 else
4162 ac_cv_prog_CPP=$CPP
4163 fi
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4165 $as_echo "$CPP" >&6; }
4166 ac_preproc_ok=false
4167 for ac_c_preproc_warn_flag in '' yes
4168 do
4169 # Use a header file that comes with gcc, so configuring glibc
4170 # with a fresh cross-compiler works.
4171 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4172 # <limits.h> exists even on freestanding compilers.
4173 # On the NeXT, cc -E runs the code through the compiler's parser,
4174 # not just through cpp. "Syntax error" is here to catch this case.
4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176 /* end confdefs.h. */
4177 #ifdef __STDC__
4178 # include <limits.h>
4179 #else
4180 # include <assert.h>
4181 #endif
4182 Syntax error
4183 _ACEOF
4184 if ac_fn_c_try_cpp "$LINENO"; then :
4185
4186 else
4187 # Broken: fails on valid input.
4188 continue
4189 fi
4190 rm -f conftest.err conftest.i conftest.$ac_ext
4191
4192 # OK, works on sane cases. Now check whether nonexistent headers
4193 # can be detected and how.
4194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195 /* end confdefs.h. */
4196 #include <ac_nonexistent.h>
4197 _ACEOF
4198 if ac_fn_c_try_cpp "$LINENO"; then :
4199 # Broken: success on invalid input.
4200 continue
4201 else
4202 # Passes both tests.
4203 ac_preproc_ok=:
4204 break
4205 fi
4206 rm -f conftest.err conftest.i conftest.$ac_ext
4207
4208 done
4209 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4210 rm -f conftest.i conftest.err conftest.$ac_ext
4211 if $ac_preproc_ok; then :
4212
4213 else
4214 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4216 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4217 See \`config.log' for more details" "$LINENO" 5; }
4218 fi
4219
4220 ac_ext=c
4221 ac_cpp='$CPP $CPPFLAGS'
4222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4225
4226
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4228 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4229 if ${ac_cv_path_GREP+:} false; then :
4230 $as_echo_n "(cached) " >&6
4231 else
4232 if test -z "$GREP"; then
4233 ac_path_GREP_found=false
4234 # Loop through the user's path and test for each of PROGNAME-LIST
4235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4237 do
4238 IFS=$as_save_IFS
4239 test -z "$as_dir" && as_dir=.
4240 for ac_prog in grep ggrep; do
4241 for ac_exec_ext in '' $ac_executable_extensions; do
4242 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4243 as_fn_executable_p "$ac_path_GREP" || continue
4244 # Check for GNU ac_path_GREP and select it if it is found.
4245 # Check for GNU $ac_path_GREP
4246 case `"$ac_path_GREP" --version 2>&1` in
4247 *GNU*)
4248 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4249 *)
4250 ac_count=0
4251 $as_echo_n 0123456789 >"conftest.in"
4252 while :
4253 do
4254 cat "conftest.in" "conftest.in" >"conftest.tmp"
4255 mv "conftest.tmp" "conftest.in"
4256 cp "conftest.in" "conftest.nl"
4257 $as_echo 'GREP' >> "conftest.nl"
4258 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4259 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4260 as_fn_arith $ac_count + 1 && ac_count=$as_val
4261 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4262 # Best one so far, save it but keep looking for a better one
4263 ac_cv_path_GREP="$ac_path_GREP"
4264 ac_path_GREP_max=$ac_count
4265 fi
4266 # 10*(2^10) chars as input seems more than enough
4267 test $ac_count -gt 10 && break
4268 done
4269 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4270 esac
4271
4272 $ac_path_GREP_found && break 3
4273 done
4274 done
4275 done
4276 IFS=$as_save_IFS
4277 if test -z "$ac_cv_path_GREP"; then
4278 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4279 fi
4280 else
4281 ac_cv_path_GREP=$GREP
4282 fi
4283
4284 fi
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4286 $as_echo "$ac_cv_path_GREP" >&6; }
4287 GREP="$ac_cv_path_GREP"
4288
4289
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4291 $as_echo_n "checking for egrep... " >&6; }
4292 if ${ac_cv_path_EGREP+:} false; then :
4293 $as_echo_n "(cached) " >&6
4294 else
4295 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4296 then ac_cv_path_EGREP="$GREP -E"
4297 else
4298 if test -z "$EGREP"; then
4299 ac_path_EGREP_found=false
4300 # Loop through the user's path and test for each of PROGNAME-LIST
4301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4303 do
4304 IFS=$as_save_IFS
4305 test -z "$as_dir" && as_dir=.
4306 for ac_prog in egrep; do
4307 for ac_exec_ext in '' $ac_executable_extensions; do
4308 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4309 as_fn_executable_p "$ac_path_EGREP" || continue
4310 # Check for GNU ac_path_EGREP and select it if it is found.
4311 # Check for GNU $ac_path_EGREP
4312 case `"$ac_path_EGREP" --version 2>&1` in
4313 *GNU*)
4314 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4315 *)
4316 ac_count=0
4317 $as_echo_n 0123456789 >"conftest.in"
4318 while :
4319 do
4320 cat "conftest.in" "conftest.in" >"conftest.tmp"
4321 mv "conftest.tmp" "conftest.in"
4322 cp "conftest.in" "conftest.nl"
4323 $as_echo 'EGREP' >> "conftest.nl"
4324 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4325 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4326 as_fn_arith $ac_count + 1 && ac_count=$as_val
4327 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4328 # Best one so far, save it but keep looking for a better one
4329 ac_cv_path_EGREP="$ac_path_EGREP"
4330 ac_path_EGREP_max=$ac_count
4331 fi
4332 # 10*(2^10) chars as input seems more than enough
4333 test $ac_count -gt 10 && break
4334 done
4335 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4336 esac
4337
4338 $ac_path_EGREP_found && break 3
4339 done
4340 done
4341 done
4342 IFS=$as_save_IFS
4343 if test -z "$ac_cv_path_EGREP"; then
4344 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4345 fi
4346 else
4347 ac_cv_path_EGREP=$EGREP
4348 fi
4349
4350 fi
4351 fi
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4353 $as_echo "$ac_cv_path_EGREP" >&6; }
4354 EGREP="$ac_cv_path_EGREP"
4355
4356
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4358 $as_echo_n "checking for ANSI C header files... " >&6; }
4359 if ${ac_cv_header_stdc+:} false; then :
4360 $as_echo_n "(cached) " >&6
4361 else
4362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4363 /* end confdefs.h. */
4364 #include <stdlib.h>
4365 #include <stdarg.h>
4366 #include <string.h>
4367 #include <float.h>
4368
4369 int
4370 main ()
4371 {
4372
4373 ;
4374 return 0;
4375 }
4376 _ACEOF
4377 if ac_fn_c_try_compile "$LINENO"; then :
4378 ac_cv_header_stdc=yes
4379 else
4380 ac_cv_header_stdc=no
4381 fi
4382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4383
4384 if test $ac_cv_header_stdc = yes; then
4385 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4387 /* end confdefs.h. */
4388 #include <string.h>
4389
4390 _ACEOF
4391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4392 $EGREP "memchr" >/dev/null 2>&1; then :
4393
4394 else
4395 ac_cv_header_stdc=no
4396 fi
4397 rm -f conftest*
4398
4399 fi
4400
4401 if test $ac_cv_header_stdc = yes; then
4402 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4404 /* end confdefs.h. */
4405 #include <stdlib.h>
4406
4407 _ACEOF
4408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4409 $EGREP "free" >/dev/null 2>&1; then :
4410
4411 else
4412 ac_cv_header_stdc=no
4413 fi
4414 rm -f conftest*
4415
4416 fi
4417
4418 if test $ac_cv_header_stdc = yes; then
4419 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4420 if test "$cross_compiling" = yes; then :
4421 :
4422 else
4423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4424 /* end confdefs.h. */
4425 #include <ctype.h>
4426 #include <stdlib.h>
4427 #if ((' ' & 0x0FF) == 0x020)
4428 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4429 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4430 #else
4431 # define ISLOWER(c) \
4432 (('a' <= (c) && (c) <= 'i') \
4433 || ('j' <= (c) && (c) <= 'r') \
4434 || ('s' <= (c) && (c) <= 'z'))
4435 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4436 #endif
4437
4438 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4439 int
4440 main ()
4441 {
4442 int i;
4443 for (i = 0; i < 256; i++)
4444 if (XOR (islower (i), ISLOWER (i))
4445 || toupper (i) != TOUPPER (i))
4446 return 2;
4447 return 0;
4448 }
4449 _ACEOF
4450 if ac_fn_c_try_run "$LINENO"; then :
4451
4452 else
4453 ac_cv_header_stdc=no
4454 fi
4455 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4456 conftest.$ac_objext conftest.beam conftest.$ac_ext
4457 fi
4458
4459 fi
4460 fi
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4462 $as_echo "$ac_cv_header_stdc" >&6; }
4463 if test $ac_cv_header_stdc = yes; then
4464
4465 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4466
4467 fi
4468
4469 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4470 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4471 inttypes.h stdint.h unistd.h
4472 do :
4473 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4474 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4475 "
4476 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4477 cat >>confdefs.h <<_ACEOF
4478 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4479 _ACEOF
4480
4481 fi
4482
4483 done
4484
4485
4486
4487
4488
4489
4490 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4491 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4492 CLANGCC="yes"
4493 else
4494 CLANGCC="no"
4495 fi
4496
4497 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4498 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4499 INTELCC="yes"
4500 else
4501 INTELCC="no"
4502 fi
4503
4504 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4505 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4506 SUNCC="yes"
4507 else
4508 SUNCC="no"
4509 fi
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4520 if test -n "$ac_tool_prefix"; then
4521 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4522 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4524 $as_echo_n "checking for $ac_word... " >&6; }
4525 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4526 $as_echo_n "(cached) " >&6
4527 else
4528 case $PKG_CONFIG in
4529 [\\/]* | ?:[\\/]*)
4530 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4531 ;;
4532 *)
4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534 for as_dir in $PATH
4535 do
4536 IFS=$as_save_IFS
4537 test -z "$as_dir" && as_dir=.
4538 for ac_exec_ext in '' $ac_executable_extensions; do
4539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4540 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4542 break 2
4543 fi
4544 done
4545 done
4546 IFS=$as_save_IFS
4547
4548 ;;
4549 esac
4550 fi
4551 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4552 if test -n "$PKG_CONFIG"; then
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4554 $as_echo "$PKG_CONFIG" >&6; }
4555 else
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4557 $as_echo "no" >&6; }
4558 fi
4559
4560
4561 fi
4562 if test -z "$ac_cv_path_PKG_CONFIG"; then
4563 ac_pt_PKG_CONFIG=$PKG_CONFIG
4564 # Extract the first word of "pkg-config", so it can be a program name with args.
4565 set dummy pkg-config; ac_word=$2
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4567 $as_echo_n "checking for $ac_word... " >&6; }
4568 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4569 $as_echo_n "(cached) " >&6
4570 else
4571 case $ac_pt_PKG_CONFIG in
4572 [\\/]* | ?:[\\/]*)
4573 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4574 ;;
4575 *)
4576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577 for as_dir in $PATH
4578 do
4579 IFS=$as_save_IFS
4580 test -z "$as_dir" && as_dir=.
4581 for ac_exec_ext in '' $ac_executable_extensions; do
4582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4583 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4585 break 2
4586 fi
4587 done
4588 done
4589 IFS=$as_save_IFS
4590
4591 ;;
4592 esac
4593 fi
4594 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4595 if test -n "$ac_pt_PKG_CONFIG"; then
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4597 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4598 else
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4600 $as_echo "no" >&6; }
4601 fi
4602
4603 if test "x$ac_pt_PKG_CONFIG" = x; then
4604 PKG_CONFIG=""
4605 else
4606 case $cross_compiling:$ac_tool_warned in
4607 yes:)
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4610 ac_tool_warned=yes ;;
4611 esac
4612 PKG_CONFIG=$ac_pt_PKG_CONFIG
4613 fi
4614 else
4615 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4616 fi
4617
4618 fi
4619 if test -n "$PKG_CONFIG"; then
4620 _pkg_min_version=0.9.0
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4622 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4623 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4625 $as_echo "yes" >&6; }
4626 else
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4628 $as_echo "no" >&6; }
4629 PKG_CONFIG=""
4630 fi
4631 fi
4632 # Make sure we can run config.sub.
4633 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4634 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4635
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4637 $as_echo_n "checking build system type... " >&6; }
4638 if ${ac_cv_build+:} false; then :
4639 $as_echo_n "(cached) " >&6
4640 else
4641 ac_build_alias=$build_alias
4642 test "x$ac_build_alias" = x &&
4643 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4644 test "x$ac_build_alias" = x &&
4645 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4646 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4647 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4648
4649 fi
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4651 $as_echo "$ac_cv_build" >&6; }
4652 case $ac_cv_build in
4653 *-*-*) ;;
4654 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4655 esac
4656 build=$ac_cv_build
4657 ac_save_IFS=$IFS; IFS='-'
4658 set x $ac_cv_build
4659 shift
4660 build_cpu=$1
4661 build_vendor=$2
4662 shift; shift
4663 # Remember, the first character of IFS is used to create $*,
4664 # except with old shells:
4665 build_os=$*
4666 IFS=$ac_save_IFS
4667 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4668
4669
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4671 $as_echo_n "checking host system type... " >&6; }
4672 if ${ac_cv_host+:} false; then :
4673 $as_echo_n "(cached) " >&6
4674 else
4675 if test "x$host_alias" = x; then
4676 ac_cv_host=$ac_cv_build
4677 else
4678 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4679 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4680 fi
4681
4682 fi
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4684 $as_echo "$ac_cv_host" >&6; }
4685 case $ac_cv_host in
4686 *-*-*) ;;
4687 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4688 esac
4689 host=$ac_cv_host
4690 ac_save_IFS=$IFS; IFS='-'
4691 set x $ac_cv_host
4692 shift
4693 host_cpu=$1
4694 host_vendor=$2
4695 shift; shift
4696 # Remember, the first character of IFS is used to create $*,
4697 # except with old shells:
4698 host_os=$*
4699 IFS=$ac_save_IFS
4700 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4701
4702
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4704 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4705 if ${ac_cv_path_SED+:} false; then :
4706 $as_echo_n "(cached) " >&6
4707 else
4708 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4709 for ac_i in 1 2 3 4 5 6 7; do
4710 ac_script="$ac_script$as_nl$ac_script"
4711 done
4712 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4713 { ac_script=; unset ac_script;}
4714 if test -z "$SED"; then
4715 ac_path_SED_found=false
4716 # Loop through the user's path and test for each of PROGNAME-LIST
4717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718 for as_dir in $PATH
4719 do
4720 IFS=$as_save_IFS
4721 test -z "$as_dir" && as_dir=.
4722 for ac_prog in sed gsed; do
4723 for ac_exec_ext in '' $ac_executable_extensions; do
4724 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4725 as_fn_executable_p "$ac_path_SED" || continue
4726 # Check for GNU ac_path_SED and select it if it is found.
4727 # Check for GNU $ac_path_SED
4728 case `"$ac_path_SED" --version 2>&1` in
4729 *GNU*)
4730 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4731 *)
4732 ac_count=0
4733 $as_echo_n 0123456789 >"conftest.in"
4734 while :
4735 do
4736 cat "conftest.in" "conftest.in" >"conftest.tmp"
4737 mv "conftest.tmp" "conftest.in"
4738 cp "conftest.in" "conftest.nl"
4739 $as_echo '' >> "conftest.nl"
4740 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4741 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4742 as_fn_arith $ac_count + 1 && ac_count=$as_val
4743 if test $ac_count -gt ${ac_path_SED_max-0}; then
4744 # Best one so far, save it but keep looking for a better one
4745 ac_cv_path_SED="$ac_path_SED"
4746 ac_path_SED_max=$ac_count
4747 fi
4748 # 10*(2^10) chars as input seems more than enough
4749 test $ac_count -gt 10 && break
4750 done
4751 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4752 esac
4753
4754 $ac_path_SED_found && break 3
4755 done
4756 done
4757 done
4758 IFS=$as_save_IFS
4759 if test -z "$ac_cv_path_SED"; then
4760 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4761 fi
4762 else
4763 ac_cv_path_SED=$SED
4764 fi
4765
4766 fi
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4768 $as_echo "$ac_cv_path_SED" >&6; }
4769 SED="$ac_cv_path_SED"
4770 rm -f conftest.sed
4771
4772
4773
4774
4775
4776
4777 # Check whether --enable-selective-werror was given.
4778 if test "${enable_selective_werror+set}" = set; then :
4779 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4780 else
4781 SELECTIVE_WERROR=yes
4782 fi
4783
4784
4785
4786
4787
4788 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4789 if test "x$SUNCC" = "xyes"; then
4790 BASE_CFLAGS="-v"
4791 else
4792 BASE_CFLAGS=""
4793 fi
4794
4795 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809 xorg_testset_save_CFLAGS="$CFLAGS"
4810
4811 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4812 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4814 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4815 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4816 $as_echo_n "(cached) " >&6
4817 else
4818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4819 /* end confdefs.h. */
4820 int i;
4821 _ACEOF
4822 if ac_fn_c_try_compile "$LINENO"; then :
4823 xorg_cv_cc_flag_unknown_warning_option=yes
4824 else
4825 xorg_cv_cc_flag_unknown_warning_option=no
4826 fi
4827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4828 fi
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4830 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4831 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4832 CFLAGS="$xorg_testset_save_CFLAGS"
4833 fi
4834
4835 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4836 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4837 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4838 fi
4839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4841 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4842 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4843 $as_echo_n "(cached) " >&6
4844 else
4845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4846 /* end confdefs.h. */
4847 int i;
4848 _ACEOF
4849 if ac_fn_c_try_compile "$LINENO"; then :
4850 xorg_cv_cc_flag_unused_command_line_argument=yes
4851 else
4852 xorg_cv_cc_flag_unused_command_line_argument=no
4853 fi
4854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4855 fi
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4857 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4858 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4859 CFLAGS="$xorg_testset_save_CFLAGS"
4860 fi
4861
4862 found="no"
4863
4864 if test $found = "no" ; then
4865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4867 fi
4868
4869 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4871 fi
4872
4873 CFLAGS="$CFLAGS -Wall"
4874
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4876 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4877 cacheid=xorg_cv_cc_flag__Wall
4878 if eval \${$cacheid+:} false; then :
4879 $as_echo_n "(cached) " >&6
4880 else
4881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4882 /* end confdefs.h. */
4883 int i;
4884 int
4885 main ()
4886 {
4887
4888 ;
4889 return 0;
4890 }
4891 _ACEOF
4892 if ac_fn_c_try_link "$LINENO"; then :
4893 eval $cacheid=yes
4894 else
4895 eval $cacheid=no
4896 fi
4897 rm -f core conftest.err conftest.$ac_objext \
4898 conftest$ac_exeext conftest.$ac_ext
4899 fi
4900
4901
4902 CFLAGS="$xorg_testset_save_CFLAGS"
4903
4904 eval supported=\$$cacheid
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4906 $as_echo "$supported" >&6; }
4907 if test "$supported" = "yes" ; then
4908 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4909 found="yes"
4910 fi
4911 fi
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927 xorg_testset_save_CFLAGS="$CFLAGS"
4928
4929 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4930 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4932 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4933 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4934 $as_echo_n "(cached) " >&6
4935 else
4936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4937 /* end confdefs.h. */
4938 int i;
4939 _ACEOF
4940 if ac_fn_c_try_compile "$LINENO"; then :
4941 xorg_cv_cc_flag_unknown_warning_option=yes
4942 else
4943 xorg_cv_cc_flag_unknown_warning_option=no
4944 fi
4945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4946 fi
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4948 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4949 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4950 CFLAGS="$xorg_testset_save_CFLAGS"
4951 fi
4952
4953 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4954 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4955 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4956 fi
4957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4959 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4960 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4961 $as_echo_n "(cached) " >&6
4962 else
4963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4964 /* end confdefs.h. */
4965 int i;
4966 _ACEOF
4967 if ac_fn_c_try_compile "$LINENO"; then :
4968 xorg_cv_cc_flag_unused_command_line_argument=yes
4969 else
4970 xorg_cv_cc_flag_unused_command_line_argument=no
4971 fi
4972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4973 fi
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4975 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4976 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4977 CFLAGS="$xorg_testset_save_CFLAGS"
4978 fi
4979
4980 found="no"
4981
4982 if test $found = "no" ; then
4983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4984 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4985 fi
4986
4987 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4989 fi
4990
4991 CFLAGS="$CFLAGS -Wpointer-arith"
4992
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4994 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4995 cacheid=xorg_cv_cc_flag__Wpointer_arith
4996 if eval \${$cacheid+:} false; then :
4997 $as_echo_n "(cached) " >&6
4998 else
4999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5000 /* end confdefs.h. */
5001 int i;
5002 int
5003 main ()
5004 {
5005
5006 ;
5007 return 0;
5008 }
5009 _ACEOF
5010 if ac_fn_c_try_link "$LINENO"; then :
5011 eval $cacheid=yes
5012 else
5013 eval $cacheid=no
5014 fi
5015 rm -f core conftest.err conftest.$ac_objext \
5016 conftest$ac_exeext conftest.$ac_ext
5017 fi
5018
5019
5020 CFLAGS="$xorg_testset_save_CFLAGS"
5021
5022 eval supported=\$$cacheid
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5024 $as_echo "$supported" >&6; }
5025 if test "$supported" = "yes" ; then
5026 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5027 found="yes"
5028 fi
5029 fi
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045 xorg_testset_save_CFLAGS="$CFLAGS"
5046
5047 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5048 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5050 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5051 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5052 $as_echo_n "(cached) " >&6
5053 else
5054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5055 /* end confdefs.h. */
5056 int i;
5057 _ACEOF
5058 if ac_fn_c_try_compile "$LINENO"; then :
5059 xorg_cv_cc_flag_unknown_warning_option=yes
5060 else
5061 xorg_cv_cc_flag_unknown_warning_option=no
5062 fi
5063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5064 fi
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5066 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5067 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5068 CFLAGS="$xorg_testset_save_CFLAGS"
5069 fi
5070
5071 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5073 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5074 fi
5075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5077 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5078 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5079 $as_echo_n "(cached) " >&6
5080 else
5081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5082 /* end confdefs.h. */
5083 int i;
5084 _ACEOF
5085 if ac_fn_c_try_compile "$LINENO"; then :
5086 xorg_cv_cc_flag_unused_command_line_argument=yes
5087 else
5088 xorg_cv_cc_flag_unused_command_line_argument=no
5089 fi
5090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5091 fi
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5093 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5094 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5095 CFLAGS="$xorg_testset_save_CFLAGS"
5096 fi
5097
5098 found="no"
5099
5100 if test $found = "no" ; then
5101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5102 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5103 fi
5104
5105 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5107 fi
5108
5109 CFLAGS="$CFLAGS -Wmissing-declarations"
5110
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5112 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5113 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5114 if eval \${$cacheid+:} false; then :
5115 $as_echo_n "(cached) " >&6
5116 else
5117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5118 /* end confdefs.h. */
5119 int i;
5120 int
5121 main ()
5122 {
5123
5124 ;
5125 return 0;
5126 }
5127 _ACEOF
5128 if ac_fn_c_try_link "$LINENO"; then :
5129 eval $cacheid=yes
5130 else
5131 eval $cacheid=no
5132 fi
5133 rm -f core conftest.err conftest.$ac_objext \
5134 conftest$ac_exeext conftest.$ac_ext
5135 fi
5136
5137
5138 CFLAGS="$xorg_testset_save_CFLAGS"
5139
5140 eval supported=\$$cacheid
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5142 $as_echo "$supported" >&6; }
5143 if test "$supported" = "yes" ; then
5144 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5145 found="yes"
5146 fi
5147 fi
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163 xorg_testset_save_CFLAGS="$CFLAGS"
5164
5165 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5166 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5168 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5169 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5170 $as_echo_n "(cached) " >&6
5171 else
5172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173 /* end confdefs.h. */
5174 int i;
5175 _ACEOF
5176 if ac_fn_c_try_compile "$LINENO"; then :
5177 xorg_cv_cc_flag_unknown_warning_option=yes
5178 else
5179 xorg_cv_cc_flag_unknown_warning_option=no
5180 fi
5181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5182 fi
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5184 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5185 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5186 CFLAGS="$xorg_testset_save_CFLAGS"
5187 fi
5188
5189 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5190 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5191 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5192 fi
5193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5195 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5196 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5197 $as_echo_n "(cached) " >&6
5198 else
5199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5200 /* end confdefs.h. */
5201 int i;
5202 _ACEOF
5203 if ac_fn_c_try_compile "$LINENO"; then :
5204 xorg_cv_cc_flag_unused_command_line_argument=yes
5205 else
5206 xorg_cv_cc_flag_unused_command_line_argument=no
5207 fi
5208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5209 fi
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5211 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5212 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5213 CFLAGS="$xorg_testset_save_CFLAGS"
5214 fi
5215
5216 found="no"
5217
5218 if test $found = "no" ; then
5219 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5220 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5221 fi
5222
5223 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5225 fi
5226
5227 CFLAGS="$CFLAGS -Wformat=2"
5228
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5230 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5231 cacheid=xorg_cv_cc_flag__Wformat_2
5232 if eval \${$cacheid+:} false; then :
5233 $as_echo_n "(cached) " >&6
5234 else
5235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5236 /* end confdefs.h. */
5237 int i;
5238 int
5239 main ()
5240 {
5241
5242 ;
5243 return 0;
5244 }
5245 _ACEOF
5246 if ac_fn_c_try_link "$LINENO"; then :
5247 eval $cacheid=yes
5248 else
5249 eval $cacheid=no
5250 fi
5251 rm -f core conftest.err conftest.$ac_objext \
5252 conftest$ac_exeext conftest.$ac_ext
5253 fi
5254
5255
5256 CFLAGS="$xorg_testset_save_CFLAGS"
5257
5258 eval supported=\$$cacheid
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5260 $as_echo "$supported" >&6; }
5261 if test "$supported" = "yes" ; then
5262 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5263 found="yes"
5264 fi
5265 fi
5266
5267 if test $found = "no" ; then
5268 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5269 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5270 fi
5271
5272 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5274 fi
5275
5276 CFLAGS="$CFLAGS -Wformat"
5277
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5279 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5280 cacheid=xorg_cv_cc_flag__Wformat
5281 if eval \${$cacheid+:} false; then :
5282 $as_echo_n "(cached) " >&6
5283 else
5284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285 /* end confdefs.h. */
5286 int i;
5287 int
5288 main ()
5289 {
5290
5291 ;
5292 return 0;
5293 }
5294 _ACEOF
5295 if ac_fn_c_try_link "$LINENO"; then :
5296 eval $cacheid=yes
5297 else
5298 eval $cacheid=no
5299 fi
5300 rm -f core conftest.err conftest.$ac_objext \
5301 conftest$ac_exeext conftest.$ac_ext
5302 fi
5303
5304
5305 CFLAGS="$xorg_testset_save_CFLAGS"
5306
5307 eval supported=\$$cacheid
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5309 $as_echo "$supported" >&6; }
5310 if test "$supported" = "yes" ; then
5311 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5312 found="yes"
5313 fi
5314 fi
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332 xorg_testset_save_CFLAGS="$CFLAGS"
5333
5334 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5335 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5337 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5338 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5339 $as_echo_n "(cached) " >&6
5340 else
5341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5342 /* end confdefs.h. */
5343 int i;
5344 _ACEOF
5345 if ac_fn_c_try_compile "$LINENO"; then :
5346 xorg_cv_cc_flag_unknown_warning_option=yes
5347 else
5348 xorg_cv_cc_flag_unknown_warning_option=no
5349 fi
5350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5351 fi
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5353 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5354 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5355 CFLAGS="$xorg_testset_save_CFLAGS"
5356 fi
5357
5358 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5360 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5361 fi
5362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5364 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5365 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5366 $as_echo_n "(cached) " >&6
5367 else
5368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5369 /* end confdefs.h. */
5370 int i;
5371 _ACEOF
5372 if ac_fn_c_try_compile "$LINENO"; then :
5373 xorg_cv_cc_flag_unused_command_line_argument=yes
5374 else
5375 xorg_cv_cc_flag_unused_command_line_argument=no
5376 fi
5377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5378 fi
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5380 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5381 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5382 CFLAGS="$xorg_testset_save_CFLAGS"
5383 fi
5384
5385 found="no"
5386
5387 if test $found = "no" ; then
5388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5389 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5390 fi
5391
5392 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5394 fi
5395
5396 CFLAGS="$CFLAGS -Wstrict-prototypes"
5397
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5399 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5400 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5401 if eval \${$cacheid+:} false; then :
5402 $as_echo_n "(cached) " >&6
5403 else
5404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5405 /* end confdefs.h. */
5406 int i;
5407 int
5408 main ()
5409 {
5410
5411 ;
5412 return 0;
5413 }
5414 _ACEOF
5415 if ac_fn_c_try_link "$LINENO"; then :
5416 eval $cacheid=yes
5417 else
5418 eval $cacheid=no
5419 fi
5420 rm -f core conftest.err conftest.$ac_objext \
5421 conftest$ac_exeext conftest.$ac_ext
5422 fi
5423
5424
5425 CFLAGS="$xorg_testset_save_CFLAGS"
5426
5427 eval supported=\$$cacheid
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5429 $as_echo "$supported" >&6; }
5430 if test "$supported" = "yes" ; then
5431 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5432 found="yes"
5433 fi
5434 fi
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450 xorg_testset_save_CFLAGS="$CFLAGS"
5451
5452 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5453 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5455 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5456 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5457 $as_echo_n "(cached) " >&6
5458 else
5459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5460 /* end confdefs.h. */
5461 int i;
5462 _ACEOF
5463 if ac_fn_c_try_compile "$LINENO"; then :
5464 xorg_cv_cc_flag_unknown_warning_option=yes
5465 else
5466 xorg_cv_cc_flag_unknown_warning_option=no
5467 fi
5468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5469 fi
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5471 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5472 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5473 CFLAGS="$xorg_testset_save_CFLAGS"
5474 fi
5475
5476 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5477 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5478 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5479 fi
5480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5482 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5483 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5484 $as_echo_n "(cached) " >&6
5485 else
5486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5487 /* end confdefs.h. */
5488 int i;
5489 _ACEOF
5490 if ac_fn_c_try_compile "$LINENO"; then :
5491 xorg_cv_cc_flag_unused_command_line_argument=yes
5492 else
5493 xorg_cv_cc_flag_unused_command_line_argument=no
5494 fi
5495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5496 fi
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5498 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5499 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5500 CFLAGS="$xorg_testset_save_CFLAGS"
5501 fi
5502
5503 found="no"
5504
5505 if test $found = "no" ; then
5506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5507 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5508 fi
5509
5510 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5512 fi
5513
5514 CFLAGS="$CFLAGS -Wmissing-prototypes"
5515
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5517 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5518 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5519 if eval \${$cacheid+:} false; then :
5520 $as_echo_n "(cached) " >&6
5521 else
5522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5523 /* end confdefs.h. */
5524 int i;
5525 int
5526 main ()
5527 {
5528
5529 ;
5530 return 0;
5531 }
5532 _ACEOF
5533 if ac_fn_c_try_link "$LINENO"; then :
5534 eval $cacheid=yes
5535 else
5536 eval $cacheid=no
5537 fi
5538 rm -f core conftest.err conftest.$ac_objext \
5539 conftest$ac_exeext conftest.$ac_ext
5540 fi
5541
5542
5543 CFLAGS="$xorg_testset_save_CFLAGS"
5544
5545 eval supported=\$$cacheid
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5547 $as_echo "$supported" >&6; }
5548 if test "$supported" = "yes" ; then
5549 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5550 found="yes"
5551 fi
5552 fi
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568 xorg_testset_save_CFLAGS="$CFLAGS"
5569
5570 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5571 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5573 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5574 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5575 $as_echo_n "(cached) " >&6
5576 else
5577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578 /* end confdefs.h. */
5579 int i;
5580 _ACEOF
5581 if ac_fn_c_try_compile "$LINENO"; then :
5582 xorg_cv_cc_flag_unknown_warning_option=yes
5583 else
5584 xorg_cv_cc_flag_unknown_warning_option=no
5585 fi
5586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5587 fi
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5589 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5590 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5591 CFLAGS="$xorg_testset_save_CFLAGS"
5592 fi
5593
5594 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5595 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5596 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5597 fi
5598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5600 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5601 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5602 $as_echo_n "(cached) " >&6
5603 else
5604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5605 /* end confdefs.h. */
5606 int i;
5607 _ACEOF
5608 if ac_fn_c_try_compile "$LINENO"; then :
5609 xorg_cv_cc_flag_unused_command_line_argument=yes
5610 else
5611 xorg_cv_cc_flag_unused_command_line_argument=no
5612 fi
5613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5614 fi
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5616 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5617 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5618 CFLAGS="$xorg_testset_save_CFLAGS"
5619 fi
5620
5621 found="no"
5622
5623 if test $found = "no" ; then
5624 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5625 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5626 fi
5627
5628 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5630 fi
5631
5632 CFLAGS="$CFLAGS -Wnested-externs"
5633
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5635 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5636 cacheid=xorg_cv_cc_flag__Wnested_externs
5637 if eval \${$cacheid+:} false; then :
5638 $as_echo_n "(cached) " >&6
5639 else
5640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5641 /* end confdefs.h. */
5642 int i;
5643 int
5644 main ()
5645 {
5646
5647 ;
5648 return 0;
5649 }
5650 _ACEOF
5651 if ac_fn_c_try_link "$LINENO"; then :
5652 eval $cacheid=yes
5653 else
5654 eval $cacheid=no
5655 fi
5656 rm -f core conftest.err conftest.$ac_objext \
5657 conftest$ac_exeext conftest.$ac_ext
5658 fi
5659
5660
5661 CFLAGS="$xorg_testset_save_CFLAGS"
5662
5663 eval supported=\$$cacheid
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5665 $as_echo "$supported" >&6; }
5666 if test "$supported" = "yes" ; then
5667 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5668 found="yes"
5669 fi
5670 fi
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686 xorg_testset_save_CFLAGS="$CFLAGS"
5687
5688 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5689 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5691 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5692 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5693 $as_echo_n "(cached) " >&6
5694 else
5695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5696 /* end confdefs.h. */
5697 int i;
5698 _ACEOF
5699 if ac_fn_c_try_compile "$LINENO"; then :
5700 xorg_cv_cc_flag_unknown_warning_option=yes
5701 else
5702 xorg_cv_cc_flag_unknown_warning_option=no
5703 fi
5704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5705 fi
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5707 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5708 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5709 CFLAGS="$xorg_testset_save_CFLAGS"
5710 fi
5711
5712 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5714 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5715 fi
5716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5718 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5719 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5720 $as_echo_n "(cached) " >&6
5721 else
5722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5723 /* end confdefs.h. */
5724 int i;
5725 _ACEOF
5726 if ac_fn_c_try_compile "$LINENO"; then :
5727 xorg_cv_cc_flag_unused_command_line_argument=yes
5728 else
5729 xorg_cv_cc_flag_unused_command_line_argument=no
5730 fi
5731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5732 fi
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5734 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5735 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5736 CFLAGS="$xorg_testset_save_CFLAGS"
5737 fi
5738
5739 found="no"
5740
5741 if test $found = "no" ; then
5742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5743 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5744 fi
5745
5746 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5748 fi
5749
5750 CFLAGS="$CFLAGS -Wbad-function-cast"
5751
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5753 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5754 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5755 if eval \${$cacheid+:} false; then :
5756 $as_echo_n "(cached) " >&6
5757 else
5758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759 /* end confdefs.h. */
5760 int i;
5761 int
5762 main ()
5763 {
5764
5765 ;
5766 return 0;
5767 }
5768 _ACEOF
5769 if ac_fn_c_try_link "$LINENO"; then :
5770 eval $cacheid=yes
5771 else
5772 eval $cacheid=no
5773 fi
5774 rm -f core conftest.err conftest.$ac_objext \
5775 conftest$ac_exeext conftest.$ac_ext
5776 fi
5777
5778
5779 CFLAGS="$xorg_testset_save_CFLAGS"
5780
5781 eval supported=\$$cacheid
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5783 $as_echo "$supported" >&6; }
5784 if test "$supported" = "yes" ; then
5785 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5786 found="yes"
5787 fi
5788 fi
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804 xorg_testset_save_CFLAGS="$CFLAGS"
5805
5806 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5807 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5809 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5810 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5811 $as_echo_n "(cached) " >&6
5812 else
5813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814 /* end confdefs.h. */
5815 int i;
5816 _ACEOF
5817 if ac_fn_c_try_compile "$LINENO"; then :
5818 xorg_cv_cc_flag_unknown_warning_option=yes
5819 else
5820 xorg_cv_cc_flag_unknown_warning_option=no
5821 fi
5822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5823 fi
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5825 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5826 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5827 CFLAGS="$xorg_testset_save_CFLAGS"
5828 fi
5829
5830 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5833 fi
5834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5836 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5837 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5838 $as_echo_n "(cached) " >&6
5839 else
5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841 /* end confdefs.h. */
5842 int i;
5843 _ACEOF
5844 if ac_fn_c_try_compile "$LINENO"; then :
5845 xorg_cv_cc_flag_unused_command_line_argument=yes
5846 else
5847 xorg_cv_cc_flag_unused_command_line_argument=no
5848 fi
5849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5850 fi
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5852 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5853 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5854 CFLAGS="$xorg_testset_save_CFLAGS"
5855 fi
5856
5857 found="no"
5858
5859 if test $found = "no" ; then
5860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5861 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5862 fi
5863
5864 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5866 fi
5867
5868 CFLAGS="$CFLAGS -Wold-style-definition"
5869
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5871 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5872 cacheid=xorg_cv_cc_flag__Wold_style_definition
5873 if eval \${$cacheid+:} false; then :
5874 $as_echo_n "(cached) " >&6
5875 else
5876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5877 /* end confdefs.h. */
5878 int i;
5879 int
5880 main ()
5881 {
5882
5883 ;
5884 return 0;
5885 }
5886 _ACEOF
5887 if ac_fn_c_try_link "$LINENO"; then :
5888 eval $cacheid=yes
5889 else
5890 eval $cacheid=no
5891 fi
5892 rm -f core conftest.err conftest.$ac_objext \
5893 conftest$ac_exeext conftest.$ac_ext
5894 fi
5895
5896
5897 CFLAGS="$xorg_testset_save_CFLAGS"
5898
5899 eval supported=\$$cacheid
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5901 $as_echo "$supported" >&6; }
5902 if test "$supported" = "yes" ; then
5903 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5904 found="yes"
5905 fi
5906 fi
5907
5908 if test $found = "no" ; then
5909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5910 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5911 fi
5912
5913 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5915 fi
5916
5917 CFLAGS="$CFLAGS -fd"
5918
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5920 $as_echo_n "checking if $CC supports -fd... " >&6; }
5921 cacheid=xorg_cv_cc_flag__fd
5922 if eval \${$cacheid+:} false; then :
5923 $as_echo_n "(cached) " >&6
5924 else
5925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926 /* end confdefs.h. */
5927 int i;
5928 int
5929 main ()
5930 {
5931
5932 ;
5933 return 0;
5934 }
5935 _ACEOF
5936 if ac_fn_c_try_link "$LINENO"; then :
5937 eval $cacheid=yes
5938 else
5939 eval $cacheid=no
5940 fi
5941 rm -f core conftest.err conftest.$ac_objext \
5942 conftest$ac_exeext conftest.$ac_ext
5943 fi
5944
5945
5946 CFLAGS="$xorg_testset_save_CFLAGS"
5947
5948 eval supported=\$$cacheid
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5950 $as_echo "$supported" >&6; }
5951 if test "$supported" = "yes" ; then
5952 BASE_CFLAGS="$BASE_CFLAGS -fd"
5953 found="yes"
5954 fi
5955 fi
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971 xorg_testset_save_CFLAGS="$CFLAGS"
5972
5973 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5974 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5976 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5977 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5978 $as_echo_n "(cached) " >&6
5979 else
5980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5981 /* end confdefs.h. */
5982 int i;
5983 _ACEOF
5984 if ac_fn_c_try_compile "$LINENO"; then :
5985 xorg_cv_cc_flag_unknown_warning_option=yes
5986 else
5987 xorg_cv_cc_flag_unknown_warning_option=no
5988 fi
5989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5990 fi
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5992 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5993 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5994 CFLAGS="$xorg_testset_save_CFLAGS"
5995 fi
5996
5997 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5999 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6000 fi
6001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6003 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6004 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6005 $as_echo_n "(cached) " >&6
6006 else
6007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008 /* end confdefs.h. */
6009 int i;
6010 _ACEOF
6011 if ac_fn_c_try_compile "$LINENO"; then :
6012 xorg_cv_cc_flag_unused_command_line_argument=yes
6013 else
6014 xorg_cv_cc_flag_unused_command_line_argument=no
6015 fi
6016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6017 fi
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6019 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6020 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6021 CFLAGS="$xorg_testset_save_CFLAGS"
6022 fi
6023
6024 found="no"
6025
6026 if test $found = "no" ; then
6027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6028 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6029 fi
6030
6031 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6033 fi
6034
6035 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6036
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6038 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6039 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6040 if eval \${$cacheid+:} false; then :
6041 $as_echo_n "(cached) " >&6
6042 else
6043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6044 /* end confdefs.h. */
6045 int i;
6046 int
6047 main ()
6048 {
6049
6050 ;
6051 return 0;
6052 }
6053 _ACEOF
6054 if ac_fn_c_try_link "$LINENO"; then :
6055 eval $cacheid=yes
6056 else
6057 eval $cacheid=no
6058 fi
6059 rm -f core conftest.err conftest.$ac_objext \
6060 conftest$ac_exeext conftest.$ac_ext
6061 fi
6062
6063
6064 CFLAGS="$xorg_testset_save_CFLAGS"
6065
6066 eval supported=\$$cacheid
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6068 $as_echo "$supported" >&6; }
6069 if test "$supported" = "yes" ; then
6070 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6071 found="yes"
6072 fi
6073 fi
6074
6075
6076
6077
6078
6079 # This chunk adds additional warnings that could catch undesired effects.
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093 xorg_testset_save_CFLAGS="$CFLAGS"
6094
6095 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6096 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6098 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6099 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6100 $as_echo_n "(cached) " >&6
6101 else
6102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6103 /* end confdefs.h. */
6104 int i;
6105 _ACEOF
6106 if ac_fn_c_try_compile "$LINENO"; then :
6107 xorg_cv_cc_flag_unknown_warning_option=yes
6108 else
6109 xorg_cv_cc_flag_unknown_warning_option=no
6110 fi
6111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6112 fi
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6114 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6115 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6116 CFLAGS="$xorg_testset_save_CFLAGS"
6117 fi
6118
6119 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6121 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6122 fi
6123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6125 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6126 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6127 $as_echo_n "(cached) " >&6
6128 else
6129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6130 /* end confdefs.h. */
6131 int i;
6132 _ACEOF
6133 if ac_fn_c_try_compile "$LINENO"; then :
6134 xorg_cv_cc_flag_unused_command_line_argument=yes
6135 else
6136 xorg_cv_cc_flag_unused_command_line_argument=no
6137 fi
6138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6139 fi
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6141 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6142 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6143 CFLAGS="$xorg_testset_save_CFLAGS"
6144 fi
6145
6146 found="no"
6147
6148 if test $found = "no" ; then
6149 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6150 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6151 fi
6152
6153 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6155 fi
6156
6157 CFLAGS="$CFLAGS -Wunused"
6158
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6160 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6161 cacheid=xorg_cv_cc_flag__Wunused
6162 if eval \${$cacheid+:} false; then :
6163 $as_echo_n "(cached) " >&6
6164 else
6165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6166 /* end confdefs.h. */
6167 int i;
6168 int
6169 main ()
6170 {
6171
6172 ;
6173 return 0;
6174 }
6175 _ACEOF
6176 if ac_fn_c_try_link "$LINENO"; then :
6177 eval $cacheid=yes
6178 else
6179 eval $cacheid=no
6180 fi
6181 rm -f core conftest.err conftest.$ac_objext \
6182 conftest$ac_exeext conftest.$ac_ext
6183 fi
6184
6185
6186 CFLAGS="$xorg_testset_save_CFLAGS"
6187
6188 eval supported=\$$cacheid
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6190 $as_echo "$supported" >&6; }
6191 if test "$supported" = "yes" ; then
6192 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6193 found="yes"
6194 fi
6195 fi
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211 xorg_testset_save_CFLAGS="$CFLAGS"
6212
6213 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6214 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6216 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6217 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6218 $as_echo_n "(cached) " >&6
6219 else
6220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6221 /* end confdefs.h. */
6222 int i;
6223 _ACEOF
6224 if ac_fn_c_try_compile "$LINENO"; then :
6225 xorg_cv_cc_flag_unknown_warning_option=yes
6226 else
6227 xorg_cv_cc_flag_unknown_warning_option=no
6228 fi
6229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6230 fi
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6232 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6233 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6234 CFLAGS="$xorg_testset_save_CFLAGS"
6235 fi
6236
6237 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6238 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6239 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6240 fi
6241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6243 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6244 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6245 $as_echo_n "(cached) " >&6
6246 else
6247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6248 /* end confdefs.h. */
6249 int i;
6250 _ACEOF
6251 if ac_fn_c_try_compile "$LINENO"; then :
6252 xorg_cv_cc_flag_unused_command_line_argument=yes
6253 else
6254 xorg_cv_cc_flag_unused_command_line_argument=no
6255 fi
6256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6257 fi
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6259 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6260 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6261 CFLAGS="$xorg_testset_save_CFLAGS"
6262 fi
6263
6264 found="no"
6265
6266 if test $found = "no" ; then
6267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6268 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6269 fi
6270
6271 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6273 fi
6274
6275 CFLAGS="$CFLAGS -Wuninitialized"
6276
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6278 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6279 cacheid=xorg_cv_cc_flag__Wuninitialized
6280 if eval \${$cacheid+:} false; then :
6281 $as_echo_n "(cached) " >&6
6282 else
6283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6284 /* end confdefs.h. */
6285 int i;
6286 int
6287 main ()
6288 {
6289
6290 ;
6291 return 0;
6292 }
6293 _ACEOF
6294 if ac_fn_c_try_link "$LINENO"; then :
6295 eval $cacheid=yes
6296 else
6297 eval $cacheid=no
6298 fi
6299 rm -f core conftest.err conftest.$ac_objext \
6300 conftest$ac_exeext conftest.$ac_ext
6301 fi
6302
6303
6304 CFLAGS="$xorg_testset_save_CFLAGS"
6305
6306 eval supported=\$$cacheid
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6308 $as_echo "$supported" >&6; }
6309 if test "$supported" = "yes" ; then
6310 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6311 found="yes"
6312 fi
6313 fi
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329 xorg_testset_save_CFLAGS="$CFLAGS"
6330
6331 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6332 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6334 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6335 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6336 $as_echo_n "(cached) " >&6
6337 else
6338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6339 /* end confdefs.h. */
6340 int i;
6341 _ACEOF
6342 if ac_fn_c_try_compile "$LINENO"; then :
6343 xorg_cv_cc_flag_unknown_warning_option=yes
6344 else
6345 xorg_cv_cc_flag_unknown_warning_option=no
6346 fi
6347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6348 fi
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6350 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6351 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6352 CFLAGS="$xorg_testset_save_CFLAGS"
6353 fi
6354
6355 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6357 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6358 fi
6359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6361 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6362 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6363 $as_echo_n "(cached) " >&6
6364 else
6365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6366 /* end confdefs.h. */
6367 int i;
6368 _ACEOF
6369 if ac_fn_c_try_compile "$LINENO"; then :
6370 xorg_cv_cc_flag_unused_command_line_argument=yes
6371 else
6372 xorg_cv_cc_flag_unused_command_line_argument=no
6373 fi
6374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6375 fi
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6377 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6378 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6379 CFLAGS="$xorg_testset_save_CFLAGS"
6380 fi
6381
6382 found="no"
6383
6384 if test $found = "no" ; then
6385 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6386 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6387 fi
6388
6389 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6391 fi
6392
6393 CFLAGS="$CFLAGS -Wshadow"
6394
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6396 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6397 cacheid=xorg_cv_cc_flag__Wshadow
6398 if eval \${$cacheid+:} false; then :
6399 $as_echo_n "(cached) " >&6
6400 else
6401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6402 /* end confdefs.h. */
6403 int i;
6404 int
6405 main ()
6406 {
6407
6408 ;
6409 return 0;
6410 }
6411 _ACEOF
6412 if ac_fn_c_try_link "$LINENO"; then :
6413 eval $cacheid=yes
6414 else
6415 eval $cacheid=no
6416 fi
6417 rm -f core conftest.err conftest.$ac_objext \
6418 conftest$ac_exeext conftest.$ac_ext
6419 fi
6420
6421
6422 CFLAGS="$xorg_testset_save_CFLAGS"
6423
6424 eval supported=\$$cacheid
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6426 $as_echo "$supported" >&6; }
6427 if test "$supported" = "yes" ; then
6428 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6429 found="yes"
6430 fi
6431 fi
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447 xorg_testset_save_CFLAGS="$CFLAGS"
6448
6449 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6450 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6452 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6453 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6454 $as_echo_n "(cached) " >&6
6455 else
6456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6457 /* end confdefs.h. */
6458 int i;
6459 _ACEOF
6460 if ac_fn_c_try_compile "$LINENO"; then :
6461 xorg_cv_cc_flag_unknown_warning_option=yes
6462 else
6463 xorg_cv_cc_flag_unknown_warning_option=no
6464 fi
6465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6466 fi
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6468 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6469 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6470 CFLAGS="$xorg_testset_save_CFLAGS"
6471 fi
6472
6473 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6474 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6475 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6476 fi
6477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6479 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6480 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6481 $as_echo_n "(cached) " >&6
6482 else
6483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6484 /* end confdefs.h. */
6485 int i;
6486 _ACEOF
6487 if ac_fn_c_try_compile "$LINENO"; then :
6488 xorg_cv_cc_flag_unused_command_line_argument=yes
6489 else
6490 xorg_cv_cc_flag_unused_command_line_argument=no
6491 fi
6492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6493 fi
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6495 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6496 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6497 CFLAGS="$xorg_testset_save_CFLAGS"
6498 fi
6499
6500 found="no"
6501
6502 if test $found = "no" ; then
6503 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6504 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6505 fi
6506
6507 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6509 fi
6510
6511 CFLAGS="$CFLAGS -Wmissing-noreturn"
6512
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6514 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6515 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6516 if eval \${$cacheid+:} false; then :
6517 $as_echo_n "(cached) " >&6
6518 else
6519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6520 /* end confdefs.h. */
6521 int i;
6522 int
6523 main ()
6524 {
6525
6526 ;
6527 return 0;
6528 }
6529 _ACEOF
6530 if ac_fn_c_try_link "$LINENO"; then :
6531 eval $cacheid=yes
6532 else
6533 eval $cacheid=no
6534 fi
6535 rm -f core conftest.err conftest.$ac_objext \
6536 conftest$ac_exeext conftest.$ac_ext
6537 fi
6538
6539
6540 CFLAGS="$xorg_testset_save_CFLAGS"
6541
6542 eval supported=\$$cacheid
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6544 $as_echo "$supported" >&6; }
6545 if test "$supported" = "yes" ; then
6546 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6547 found="yes"
6548 fi
6549 fi
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565 xorg_testset_save_CFLAGS="$CFLAGS"
6566
6567 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6568 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6570 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6571 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6572 $as_echo_n "(cached) " >&6
6573 else
6574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6575 /* end confdefs.h. */
6576 int i;
6577 _ACEOF
6578 if ac_fn_c_try_compile "$LINENO"; then :
6579 xorg_cv_cc_flag_unknown_warning_option=yes
6580 else
6581 xorg_cv_cc_flag_unknown_warning_option=no
6582 fi
6583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6584 fi
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6586 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6587 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6588 CFLAGS="$xorg_testset_save_CFLAGS"
6589 fi
6590
6591 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6593 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6594 fi
6595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6597 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6598 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6599 $as_echo_n "(cached) " >&6
6600 else
6601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6602 /* end confdefs.h. */
6603 int i;
6604 _ACEOF
6605 if ac_fn_c_try_compile "$LINENO"; then :
6606 xorg_cv_cc_flag_unused_command_line_argument=yes
6607 else
6608 xorg_cv_cc_flag_unused_command_line_argument=no
6609 fi
6610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6611 fi
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6613 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6614 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6615 CFLAGS="$xorg_testset_save_CFLAGS"
6616 fi
6617
6618 found="no"
6619
6620 if test $found = "no" ; then
6621 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6622 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6623 fi
6624
6625 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6627 fi
6628
6629 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6630
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6632 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6633 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6634 if eval \${$cacheid+:} false; then :
6635 $as_echo_n "(cached) " >&6
6636 else
6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638 /* end confdefs.h. */
6639 int i;
6640 int
6641 main ()
6642 {
6643
6644 ;
6645 return 0;
6646 }
6647 _ACEOF
6648 if ac_fn_c_try_link "$LINENO"; then :
6649 eval $cacheid=yes
6650 else
6651 eval $cacheid=no
6652 fi
6653 rm -f core conftest.err conftest.$ac_objext \
6654 conftest$ac_exeext conftest.$ac_ext
6655 fi
6656
6657
6658 CFLAGS="$xorg_testset_save_CFLAGS"
6659
6660 eval supported=\$$cacheid
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6662 $as_echo "$supported" >&6; }
6663 if test "$supported" = "yes" ; then
6664 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6665 found="yes"
6666 fi
6667 fi
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683 xorg_testset_save_CFLAGS="$CFLAGS"
6684
6685 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6686 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6688 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6689 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6690 $as_echo_n "(cached) " >&6
6691 else
6692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6693 /* end confdefs.h. */
6694 int i;
6695 _ACEOF
6696 if ac_fn_c_try_compile "$LINENO"; then :
6697 xorg_cv_cc_flag_unknown_warning_option=yes
6698 else
6699 xorg_cv_cc_flag_unknown_warning_option=no
6700 fi
6701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6702 fi
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6704 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6705 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6706 CFLAGS="$xorg_testset_save_CFLAGS"
6707 fi
6708
6709 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6710 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6711 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6712 fi
6713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6715 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6716 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6717 $as_echo_n "(cached) " >&6
6718 else
6719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6720 /* end confdefs.h. */
6721 int i;
6722 _ACEOF
6723 if ac_fn_c_try_compile "$LINENO"; then :
6724 xorg_cv_cc_flag_unused_command_line_argument=yes
6725 else
6726 xorg_cv_cc_flag_unused_command_line_argument=no
6727 fi
6728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6729 fi
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6731 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6732 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6733 CFLAGS="$xorg_testset_save_CFLAGS"
6734 fi
6735
6736 found="no"
6737
6738 if test $found = "no" ; then
6739 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6740 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6741 fi
6742
6743 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6745 fi
6746
6747 CFLAGS="$CFLAGS -Wredundant-decls"
6748
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6750 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6751 cacheid=xorg_cv_cc_flag__Wredundant_decls
6752 if eval \${$cacheid+:} false; then :
6753 $as_echo_n "(cached) " >&6
6754 else
6755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6756 /* end confdefs.h. */
6757 int i;
6758 int
6759 main ()
6760 {
6761
6762 ;
6763 return 0;
6764 }
6765 _ACEOF
6766 if ac_fn_c_try_link "$LINENO"; then :
6767 eval $cacheid=yes
6768 else
6769 eval $cacheid=no
6770 fi
6771 rm -f core conftest.err conftest.$ac_objext \
6772 conftest$ac_exeext conftest.$ac_ext
6773 fi
6774
6775
6776 CFLAGS="$xorg_testset_save_CFLAGS"
6777
6778 eval supported=\$$cacheid
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6780 $as_echo "$supported" >&6; }
6781 if test "$supported" = "yes" ; then
6782 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6783 found="yes"
6784 fi
6785 fi
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801 xorg_testset_save_CFLAGS="$CFLAGS"
6802
6803 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6804 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6806 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6807 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6808 $as_echo_n "(cached) " >&6
6809 else
6810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6811 /* end confdefs.h. */
6812 int i;
6813 _ACEOF
6814 if ac_fn_c_try_compile "$LINENO"; then :
6815 xorg_cv_cc_flag_unknown_warning_option=yes
6816 else
6817 xorg_cv_cc_flag_unknown_warning_option=no
6818 fi
6819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6820 fi
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6822 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6823 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6824 CFLAGS="$xorg_testset_save_CFLAGS"
6825 fi
6826
6827 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6828 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6829 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6830 fi
6831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6833 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6834 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6835 $as_echo_n "(cached) " >&6
6836 else
6837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6838 /* end confdefs.h. */
6839 int i;
6840 _ACEOF
6841 if ac_fn_c_try_compile "$LINENO"; then :
6842 xorg_cv_cc_flag_unused_command_line_argument=yes
6843 else
6844 xorg_cv_cc_flag_unused_command_line_argument=no
6845 fi
6846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6847 fi
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6849 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6850 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6851 CFLAGS="$xorg_testset_save_CFLAGS"
6852 fi
6853
6854 found="no"
6855
6856 if test $found = "no" ; then
6857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6858 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6859 fi
6860
6861 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6863 fi
6864
6865 CFLAGS="$CFLAGS -Wlogical-op"
6866
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6868 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6869 cacheid=xorg_cv_cc_flag__Wlogical_op
6870 if eval \${$cacheid+:} false; then :
6871 $as_echo_n "(cached) " >&6
6872 else
6873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6874 /* end confdefs.h. */
6875 int i;
6876 int
6877 main ()
6878 {
6879
6880 ;
6881 return 0;
6882 }
6883 _ACEOF
6884 if ac_fn_c_try_link "$LINENO"; then :
6885 eval $cacheid=yes
6886 else
6887 eval $cacheid=no
6888 fi
6889 rm -f core conftest.err conftest.$ac_objext \
6890 conftest$ac_exeext conftest.$ac_ext
6891 fi
6892
6893
6894 CFLAGS="$xorg_testset_save_CFLAGS"
6895
6896 eval supported=\$$cacheid
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6898 $as_echo "$supported" >&6; }
6899 if test "$supported" = "yes" ; then
6900 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6901 found="yes"
6902 fi
6903 fi
6904
6905
6906
6907 # These are currently disabled because they are noisy. They will be enabled
6908 # in the future once the codebase is sufficiently modernized to silence
6909 # them. For now, I don't want them to drown out the other warnings.
6910 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6911 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6912 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6913
6914 # Turn some warnings into errors, so we don't accidently get successful builds
6915 # when there are problems that should be fixed.
6916
6917 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931 xorg_testset_save_CFLAGS="$CFLAGS"
6932
6933 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6934 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6936 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6937 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6938 $as_echo_n "(cached) " >&6
6939 else
6940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6941 /* end confdefs.h. */
6942 int i;
6943 _ACEOF
6944 if ac_fn_c_try_compile "$LINENO"; then :
6945 xorg_cv_cc_flag_unknown_warning_option=yes
6946 else
6947 xorg_cv_cc_flag_unknown_warning_option=no
6948 fi
6949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6950 fi
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6952 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6953 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6954 CFLAGS="$xorg_testset_save_CFLAGS"
6955 fi
6956
6957 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6960 fi
6961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6963 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6964 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6965 $as_echo_n "(cached) " >&6
6966 else
6967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6968 /* end confdefs.h. */
6969 int i;
6970 _ACEOF
6971 if ac_fn_c_try_compile "$LINENO"; then :
6972 xorg_cv_cc_flag_unused_command_line_argument=yes
6973 else
6974 xorg_cv_cc_flag_unused_command_line_argument=no
6975 fi
6976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6977 fi
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6979 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6980 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6981 CFLAGS="$xorg_testset_save_CFLAGS"
6982 fi
6983
6984 found="no"
6985
6986 if test $found = "no" ; then
6987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6988 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6989 fi
6990
6991 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6993 fi
6994
6995 CFLAGS="$CFLAGS -Werror=implicit"
6996
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6998 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6999 cacheid=xorg_cv_cc_flag__Werror_implicit
7000 if eval \${$cacheid+:} false; then :
7001 $as_echo_n "(cached) " >&6
7002 else
7003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7004 /* end confdefs.h. */
7005 int i;
7006 int
7007 main ()
7008 {
7009
7010 ;
7011 return 0;
7012 }
7013 _ACEOF
7014 if ac_fn_c_try_link "$LINENO"; then :
7015 eval $cacheid=yes
7016 else
7017 eval $cacheid=no
7018 fi
7019 rm -f core conftest.err conftest.$ac_objext \
7020 conftest$ac_exeext conftest.$ac_ext
7021 fi
7022
7023
7024 CFLAGS="$xorg_testset_save_CFLAGS"
7025
7026 eval supported=\$$cacheid
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7028 $as_echo "$supported" >&6; }
7029 if test "$supported" = "yes" ; then
7030 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7031 found="yes"
7032 fi
7033 fi
7034
7035 if test $found = "no" ; then
7036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7037 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7038 fi
7039
7040 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7041 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7042 fi
7043
7044 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7045
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7047 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7048 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7049 if eval \${$cacheid+:} false; then :
7050 $as_echo_n "(cached) " >&6
7051 else
7052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7053 /* end confdefs.h. */
7054 int i;
7055 int
7056 main ()
7057 {
7058
7059 ;
7060 return 0;
7061 }
7062 _ACEOF
7063 if ac_fn_c_try_link "$LINENO"; then :
7064 eval $cacheid=yes
7065 else
7066 eval $cacheid=no
7067 fi
7068 rm -f core conftest.err conftest.$ac_objext \
7069 conftest$ac_exeext conftest.$ac_ext
7070 fi
7071
7072
7073 CFLAGS="$xorg_testset_save_CFLAGS"
7074
7075 eval supported=\$$cacheid
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7077 $as_echo "$supported" >&6; }
7078 if test "$supported" = "yes" ; then
7079 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7080 found="yes"
7081 fi
7082 fi
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098 xorg_testset_save_CFLAGS="$CFLAGS"
7099
7100 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7101 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7103 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7104 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7105 $as_echo_n "(cached) " >&6
7106 else
7107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108 /* end confdefs.h. */
7109 int i;
7110 _ACEOF
7111 if ac_fn_c_try_compile "$LINENO"; then :
7112 xorg_cv_cc_flag_unknown_warning_option=yes
7113 else
7114 xorg_cv_cc_flag_unknown_warning_option=no
7115 fi
7116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7117 fi
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7119 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7120 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7121 CFLAGS="$xorg_testset_save_CFLAGS"
7122 fi
7123
7124 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7125 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7126 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7127 fi
7128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7130 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7131 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7132 $as_echo_n "(cached) " >&6
7133 else
7134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7135 /* end confdefs.h. */
7136 int i;
7137 _ACEOF
7138 if ac_fn_c_try_compile "$LINENO"; then :
7139 xorg_cv_cc_flag_unused_command_line_argument=yes
7140 else
7141 xorg_cv_cc_flag_unused_command_line_argument=no
7142 fi
7143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7144 fi
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7146 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7147 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7148 CFLAGS="$xorg_testset_save_CFLAGS"
7149 fi
7150
7151 found="no"
7152
7153 if test $found = "no" ; then
7154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7155 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7156 fi
7157
7158 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7160 fi
7161
7162 CFLAGS="$CFLAGS -Werror=nonnull"
7163
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7165 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7166 cacheid=xorg_cv_cc_flag__Werror_nonnull
7167 if eval \${$cacheid+:} false; then :
7168 $as_echo_n "(cached) " >&6
7169 else
7170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7171 /* end confdefs.h. */
7172 int i;
7173 int
7174 main ()
7175 {
7176
7177 ;
7178 return 0;
7179 }
7180 _ACEOF
7181 if ac_fn_c_try_link "$LINENO"; then :
7182 eval $cacheid=yes
7183 else
7184 eval $cacheid=no
7185 fi
7186 rm -f core conftest.err conftest.$ac_objext \
7187 conftest$ac_exeext conftest.$ac_ext
7188 fi
7189
7190
7191 CFLAGS="$xorg_testset_save_CFLAGS"
7192
7193 eval supported=\$$cacheid
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7195 $as_echo "$supported" >&6; }
7196 if test "$supported" = "yes" ; then
7197 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7198 found="yes"
7199 fi
7200 fi
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216 xorg_testset_save_CFLAGS="$CFLAGS"
7217
7218 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7219 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7221 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7222 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7223 $as_echo_n "(cached) " >&6
7224 else
7225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7226 /* end confdefs.h. */
7227 int i;
7228 _ACEOF
7229 if ac_fn_c_try_compile "$LINENO"; then :
7230 xorg_cv_cc_flag_unknown_warning_option=yes
7231 else
7232 xorg_cv_cc_flag_unknown_warning_option=no
7233 fi
7234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7235 fi
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7237 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7238 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7239 CFLAGS="$xorg_testset_save_CFLAGS"
7240 fi
7241
7242 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7245 fi
7246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7248 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7249 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7250 $as_echo_n "(cached) " >&6
7251 else
7252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7253 /* end confdefs.h. */
7254 int i;
7255 _ACEOF
7256 if ac_fn_c_try_compile "$LINENO"; then :
7257 xorg_cv_cc_flag_unused_command_line_argument=yes
7258 else
7259 xorg_cv_cc_flag_unused_command_line_argument=no
7260 fi
7261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7262 fi
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7264 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7265 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7266 CFLAGS="$xorg_testset_save_CFLAGS"
7267 fi
7268
7269 found="no"
7270
7271 if test $found = "no" ; then
7272 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7273 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7274 fi
7275
7276 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7277 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7278 fi
7279
7280 CFLAGS="$CFLAGS -Werror=init-self"
7281
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7283 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7284 cacheid=xorg_cv_cc_flag__Werror_init_self
7285 if eval \${$cacheid+:} false; then :
7286 $as_echo_n "(cached) " >&6
7287 else
7288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7289 /* end confdefs.h. */
7290 int i;
7291 int
7292 main ()
7293 {
7294
7295 ;
7296 return 0;
7297 }
7298 _ACEOF
7299 if ac_fn_c_try_link "$LINENO"; then :
7300 eval $cacheid=yes
7301 else
7302 eval $cacheid=no
7303 fi
7304 rm -f core conftest.err conftest.$ac_objext \
7305 conftest$ac_exeext conftest.$ac_ext
7306 fi
7307
7308
7309 CFLAGS="$xorg_testset_save_CFLAGS"
7310
7311 eval supported=\$$cacheid
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7313 $as_echo "$supported" >&6; }
7314 if test "$supported" = "yes" ; then
7315 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7316 found="yes"
7317 fi
7318 fi
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334 xorg_testset_save_CFLAGS="$CFLAGS"
7335
7336 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7337 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7339 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7340 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7341 $as_echo_n "(cached) " >&6
7342 else
7343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7344 /* end confdefs.h. */
7345 int i;
7346 _ACEOF
7347 if ac_fn_c_try_compile "$LINENO"; then :
7348 xorg_cv_cc_flag_unknown_warning_option=yes
7349 else
7350 xorg_cv_cc_flag_unknown_warning_option=no
7351 fi
7352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7353 fi
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7355 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7356 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7357 CFLAGS="$xorg_testset_save_CFLAGS"
7358 fi
7359
7360 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7362 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7363 fi
7364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7366 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7367 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7368 $as_echo_n "(cached) " >&6
7369 else
7370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7371 /* end confdefs.h. */
7372 int i;
7373 _ACEOF
7374 if ac_fn_c_try_compile "$LINENO"; then :
7375 xorg_cv_cc_flag_unused_command_line_argument=yes
7376 else
7377 xorg_cv_cc_flag_unused_command_line_argument=no
7378 fi
7379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7380 fi
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7382 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7383 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7384 CFLAGS="$xorg_testset_save_CFLAGS"
7385 fi
7386
7387 found="no"
7388
7389 if test $found = "no" ; then
7390 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7391 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7392 fi
7393
7394 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7396 fi
7397
7398 CFLAGS="$CFLAGS -Werror=main"
7399
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7401 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7402 cacheid=xorg_cv_cc_flag__Werror_main
7403 if eval \${$cacheid+:} false; then :
7404 $as_echo_n "(cached) " >&6
7405 else
7406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7407 /* end confdefs.h. */
7408 int i;
7409 int
7410 main ()
7411 {
7412
7413 ;
7414 return 0;
7415 }
7416 _ACEOF
7417 if ac_fn_c_try_link "$LINENO"; then :
7418 eval $cacheid=yes
7419 else
7420 eval $cacheid=no
7421 fi
7422 rm -f core conftest.err conftest.$ac_objext \
7423 conftest$ac_exeext conftest.$ac_ext
7424 fi
7425
7426
7427 CFLAGS="$xorg_testset_save_CFLAGS"
7428
7429 eval supported=\$$cacheid
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7431 $as_echo "$supported" >&6; }
7432 if test "$supported" = "yes" ; then
7433 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7434 found="yes"
7435 fi
7436 fi
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452 xorg_testset_save_CFLAGS="$CFLAGS"
7453
7454 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7455 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7457 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7458 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7459 $as_echo_n "(cached) " >&6
7460 else
7461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7462 /* end confdefs.h. */
7463 int i;
7464 _ACEOF
7465 if ac_fn_c_try_compile "$LINENO"; then :
7466 xorg_cv_cc_flag_unknown_warning_option=yes
7467 else
7468 xorg_cv_cc_flag_unknown_warning_option=no
7469 fi
7470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7471 fi
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7473 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7474 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7475 CFLAGS="$xorg_testset_save_CFLAGS"
7476 fi
7477
7478 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7480 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7481 fi
7482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7484 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7485 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7486 $as_echo_n "(cached) " >&6
7487 else
7488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7489 /* end confdefs.h. */
7490 int i;
7491 _ACEOF
7492 if ac_fn_c_try_compile "$LINENO"; then :
7493 xorg_cv_cc_flag_unused_command_line_argument=yes
7494 else
7495 xorg_cv_cc_flag_unused_command_line_argument=no
7496 fi
7497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7498 fi
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7500 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7501 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7502 CFLAGS="$xorg_testset_save_CFLAGS"
7503 fi
7504
7505 found="no"
7506
7507 if test $found = "no" ; then
7508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7509 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7510 fi
7511
7512 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7514 fi
7515
7516 CFLAGS="$CFLAGS -Werror=missing-braces"
7517
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7519 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7520 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7521 if eval \${$cacheid+:} false; then :
7522 $as_echo_n "(cached) " >&6
7523 else
7524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7525 /* end confdefs.h. */
7526 int i;
7527 int
7528 main ()
7529 {
7530
7531 ;
7532 return 0;
7533 }
7534 _ACEOF
7535 if ac_fn_c_try_link "$LINENO"; then :
7536 eval $cacheid=yes
7537 else
7538 eval $cacheid=no
7539 fi
7540 rm -f core conftest.err conftest.$ac_objext \
7541 conftest$ac_exeext conftest.$ac_ext
7542 fi
7543
7544
7545 CFLAGS="$xorg_testset_save_CFLAGS"
7546
7547 eval supported=\$$cacheid
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7549 $as_echo "$supported" >&6; }
7550 if test "$supported" = "yes" ; then
7551 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7552 found="yes"
7553 fi
7554 fi
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570 xorg_testset_save_CFLAGS="$CFLAGS"
7571
7572 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7573 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7575 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7576 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7577 $as_echo_n "(cached) " >&6
7578 else
7579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7580 /* end confdefs.h. */
7581 int i;
7582 _ACEOF
7583 if ac_fn_c_try_compile "$LINENO"; then :
7584 xorg_cv_cc_flag_unknown_warning_option=yes
7585 else
7586 xorg_cv_cc_flag_unknown_warning_option=no
7587 fi
7588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7589 fi
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7591 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7592 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7593 CFLAGS="$xorg_testset_save_CFLAGS"
7594 fi
7595
7596 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7598 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7599 fi
7600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7602 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7603 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7604 $as_echo_n "(cached) " >&6
7605 else
7606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7607 /* end confdefs.h. */
7608 int i;
7609 _ACEOF
7610 if ac_fn_c_try_compile "$LINENO"; then :
7611 xorg_cv_cc_flag_unused_command_line_argument=yes
7612 else
7613 xorg_cv_cc_flag_unused_command_line_argument=no
7614 fi
7615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7616 fi
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7618 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7619 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7620 CFLAGS="$xorg_testset_save_CFLAGS"
7621 fi
7622
7623 found="no"
7624
7625 if test $found = "no" ; then
7626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7627 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7628 fi
7629
7630 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7632 fi
7633
7634 CFLAGS="$CFLAGS -Werror=sequence-point"
7635
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7637 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7638 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7639 if eval \${$cacheid+:} false; then :
7640 $as_echo_n "(cached) " >&6
7641 else
7642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7643 /* end confdefs.h. */
7644 int i;
7645 int
7646 main ()
7647 {
7648
7649 ;
7650 return 0;
7651 }
7652 _ACEOF
7653 if ac_fn_c_try_link "$LINENO"; then :
7654 eval $cacheid=yes
7655 else
7656 eval $cacheid=no
7657 fi
7658 rm -f core conftest.err conftest.$ac_objext \
7659 conftest$ac_exeext conftest.$ac_ext
7660 fi
7661
7662
7663 CFLAGS="$xorg_testset_save_CFLAGS"
7664
7665 eval supported=\$$cacheid
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7667 $as_echo "$supported" >&6; }
7668 if test "$supported" = "yes" ; then
7669 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7670 found="yes"
7671 fi
7672 fi
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688 xorg_testset_save_CFLAGS="$CFLAGS"
7689
7690 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7691 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7693 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7694 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7695 $as_echo_n "(cached) " >&6
7696 else
7697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7698 /* end confdefs.h. */
7699 int i;
7700 _ACEOF
7701 if ac_fn_c_try_compile "$LINENO"; then :
7702 xorg_cv_cc_flag_unknown_warning_option=yes
7703 else
7704 xorg_cv_cc_flag_unknown_warning_option=no
7705 fi
7706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7707 fi
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7709 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7710 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7711 CFLAGS="$xorg_testset_save_CFLAGS"
7712 fi
7713
7714 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7715 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7716 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7717 fi
7718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7720 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7721 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7722 $as_echo_n "(cached) " >&6
7723 else
7724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7725 /* end confdefs.h. */
7726 int i;
7727 _ACEOF
7728 if ac_fn_c_try_compile "$LINENO"; then :
7729 xorg_cv_cc_flag_unused_command_line_argument=yes
7730 else
7731 xorg_cv_cc_flag_unused_command_line_argument=no
7732 fi
7733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7734 fi
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7736 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7737 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7738 CFLAGS="$xorg_testset_save_CFLAGS"
7739 fi
7740
7741 found="no"
7742
7743 if test $found = "no" ; then
7744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7745 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7746 fi
7747
7748 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7750 fi
7751
7752 CFLAGS="$CFLAGS -Werror=return-type"
7753
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7755 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7756 cacheid=xorg_cv_cc_flag__Werror_return_type
7757 if eval \${$cacheid+:} false; then :
7758 $as_echo_n "(cached) " >&6
7759 else
7760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7761 /* end confdefs.h. */
7762 int i;
7763 int
7764 main ()
7765 {
7766
7767 ;
7768 return 0;
7769 }
7770 _ACEOF
7771 if ac_fn_c_try_link "$LINENO"; then :
7772 eval $cacheid=yes
7773 else
7774 eval $cacheid=no
7775 fi
7776 rm -f core conftest.err conftest.$ac_objext \
7777 conftest$ac_exeext conftest.$ac_ext
7778 fi
7779
7780
7781 CFLAGS="$xorg_testset_save_CFLAGS"
7782
7783 eval supported=\$$cacheid
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7785 $as_echo "$supported" >&6; }
7786 if test "$supported" = "yes" ; then
7787 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7788 found="yes"
7789 fi
7790 fi
7791
7792 if test $found = "no" ; then
7793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7794 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7795 fi
7796
7797 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7799 fi
7800
7801 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7802
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7804 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7805 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7806 if eval \${$cacheid+:} false; then :
7807 $as_echo_n "(cached) " >&6
7808 else
7809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7810 /* end confdefs.h. */
7811 int i;
7812 int
7813 main ()
7814 {
7815
7816 ;
7817 return 0;
7818 }
7819 _ACEOF
7820 if ac_fn_c_try_link "$LINENO"; then :
7821 eval $cacheid=yes
7822 else
7823 eval $cacheid=no
7824 fi
7825 rm -f core conftest.err conftest.$ac_objext \
7826 conftest$ac_exeext conftest.$ac_ext
7827 fi
7828
7829
7830 CFLAGS="$xorg_testset_save_CFLAGS"
7831
7832 eval supported=\$$cacheid
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7834 $as_echo "$supported" >&6; }
7835 if test "$supported" = "yes" ; then
7836 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7837 found="yes"
7838 fi
7839 fi
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855 xorg_testset_save_CFLAGS="$CFLAGS"
7856
7857 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7858 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7860 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7861 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7862 $as_echo_n "(cached) " >&6
7863 else
7864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7865 /* end confdefs.h. */
7866 int i;
7867 _ACEOF
7868 if ac_fn_c_try_compile "$LINENO"; then :
7869 xorg_cv_cc_flag_unknown_warning_option=yes
7870 else
7871 xorg_cv_cc_flag_unknown_warning_option=no
7872 fi
7873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7874 fi
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7876 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7877 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7878 CFLAGS="$xorg_testset_save_CFLAGS"
7879 fi
7880
7881 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7882 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7883 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7884 fi
7885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7887 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7888 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7889 $as_echo_n "(cached) " >&6
7890 else
7891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7892 /* end confdefs.h. */
7893 int i;
7894 _ACEOF
7895 if ac_fn_c_try_compile "$LINENO"; then :
7896 xorg_cv_cc_flag_unused_command_line_argument=yes
7897 else
7898 xorg_cv_cc_flag_unused_command_line_argument=no
7899 fi
7900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7901 fi
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7903 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7904 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7905 CFLAGS="$xorg_testset_save_CFLAGS"
7906 fi
7907
7908 found="no"
7909
7910 if test $found = "no" ; then
7911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7912 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7913 fi
7914
7915 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7917 fi
7918
7919 CFLAGS="$CFLAGS -Werror=trigraphs"
7920
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7922 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7923 cacheid=xorg_cv_cc_flag__Werror_trigraphs
7924 if eval \${$cacheid+:} false; then :
7925 $as_echo_n "(cached) " >&6
7926 else
7927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7928 /* end confdefs.h. */
7929 int i;
7930 int
7931 main ()
7932 {
7933
7934 ;
7935 return 0;
7936 }
7937 _ACEOF
7938 if ac_fn_c_try_link "$LINENO"; then :
7939 eval $cacheid=yes
7940 else
7941 eval $cacheid=no
7942 fi
7943 rm -f core conftest.err conftest.$ac_objext \
7944 conftest$ac_exeext conftest.$ac_ext
7945 fi
7946
7947
7948 CFLAGS="$xorg_testset_save_CFLAGS"
7949
7950 eval supported=\$$cacheid
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7952 $as_echo "$supported" >&6; }
7953 if test "$supported" = "yes" ; then
7954 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7955 found="yes"
7956 fi
7957 fi
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973 xorg_testset_save_CFLAGS="$CFLAGS"
7974
7975 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7976 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7978 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7979 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7980 $as_echo_n "(cached) " >&6
7981 else
7982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7983 /* end confdefs.h. */
7984 int i;
7985 _ACEOF
7986 if ac_fn_c_try_compile "$LINENO"; then :
7987 xorg_cv_cc_flag_unknown_warning_option=yes
7988 else
7989 xorg_cv_cc_flag_unknown_warning_option=no
7990 fi
7991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7992 fi
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7994 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7995 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7996 CFLAGS="$xorg_testset_save_CFLAGS"
7997 fi
7998
7999 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8001 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8002 fi
8003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8005 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8006 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8007 $as_echo_n "(cached) " >&6
8008 else
8009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8010 /* end confdefs.h. */
8011 int i;
8012 _ACEOF
8013 if ac_fn_c_try_compile "$LINENO"; then :
8014 xorg_cv_cc_flag_unused_command_line_argument=yes
8015 else
8016 xorg_cv_cc_flag_unused_command_line_argument=no
8017 fi
8018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8019 fi
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8021 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8022 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8023 CFLAGS="$xorg_testset_save_CFLAGS"
8024 fi
8025
8026 found="no"
8027
8028 if test $found = "no" ; then
8029 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8030 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8031 fi
8032
8033 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8035 fi
8036
8037 CFLAGS="$CFLAGS -Werror=array-bounds"
8038
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8040 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8041 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8042 if eval \${$cacheid+:} false; then :
8043 $as_echo_n "(cached) " >&6
8044 else
8045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8046 /* end confdefs.h. */
8047 int i;
8048 int
8049 main ()
8050 {
8051
8052 ;
8053 return 0;
8054 }
8055 _ACEOF
8056 if ac_fn_c_try_link "$LINENO"; then :
8057 eval $cacheid=yes
8058 else
8059 eval $cacheid=no
8060 fi
8061 rm -f core conftest.err conftest.$ac_objext \
8062 conftest$ac_exeext conftest.$ac_ext
8063 fi
8064
8065
8066 CFLAGS="$xorg_testset_save_CFLAGS"
8067
8068 eval supported=\$$cacheid
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8070 $as_echo "$supported" >&6; }
8071 if test "$supported" = "yes" ; then
8072 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8073 found="yes"
8074 fi
8075 fi
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091 xorg_testset_save_CFLAGS="$CFLAGS"
8092
8093 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8094 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8096 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8097 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8098 $as_echo_n "(cached) " >&6
8099 else
8100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8101 /* end confdefs.h. */
8102 int i;
8103 _ACEOF
8104 if ac_fn_c_try_compile "$LINENO"; then :
8105 xorg_cv_cc_flag_unknown_warning_option=yes
8106 else
8107 xorg_cv_cc_flag_unknown_warning_option=no
8108 fi
8109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8110 fi
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8112 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8113 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8114 CFLAGS="$xorg_testset_save_CFLAGS"
8115 fi
8116
8117 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8120 fi
8121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8123 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8124 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8125 $as_echo_n "(cached) " >&6
8126 else
8127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8128 /* end confdefs.h. */
8129 int i;
8130 _ACEOF
8131 if ac_fn_c_try_compile "$LINENO"; then :
8132 xorg_cv_cc_flag_unused_command_line_argument=yes
8133 else
8134 xorg_cv_cc_flag_unused_command_line_argument=no
8135 fi
8136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8137 fi
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8139 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8140 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8141 CFLAGS="$xorg_testset_save_CFLAGS"
8142 fi
8143
8144 found="no"
8145
8146 if test $found = "no" ; then
8147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8148 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8149 fi
8150
8151 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8153 fi
8154
8155 CFLAGS="$CFLAGS -Werror=write-strings"
8156
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8158 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8159 cacheid=xorg_cv_cc_flag__Werror_write_strings
8160 if eval \${$cacheid+:} false; then :
8161 $as_echo_n "(cached) " >&6
8162 else
8163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8164 /* end confdefs.h. */
8165 int i;
8166 int
8167 main ()
8168 {
8169
8170 ;
8171 return 0;
8172 }
8173 _ACEOF
8174 if ac_fn_c_try_link "$LINENO"; then :
8175 eval $cacheid=yes
8176 else
8177 eval $cacheid=no
8178 fi
8179 rm -f core conftest.err conftest.$ac_objext \
8180 conftest$ac_exeext conftest.$ac_ext
8181 fi
8182
8183
8184 CFLAGS="$xorg_testset_save_CFLAGS"
8185
8186 eval supported=\$$cacheid
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8188 $as_echo "$supported" >&6; }
8189 if test "$supported" = "yes" ; then
8190 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8191 found="yes"
8192 fi
8193 fi
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209 xorg_testset_save_CFLAGS="$CFLAGS"
8210
8211 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8212 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8214 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8215 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8216 $as_echo_n "(cached) " >&6
8217 else
8218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8219 /* end confdefs.h. */
8220 int i;
8221 _ACEOF
8222 if ac_fn_c_try_compile "$LINENO"; then :
8223 xorg_cv_cc_flag_unknown_warning_option=yes
8224 else
8225 xorg_cv_cc_flag_unknown_warning_option=no
8226 fi
8227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8228 fi
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8230 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8231 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8232 CFLAGS="$xorg_testset_save_CFLAGS"
8233 fi
8234
8235 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8238 fi
8239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8241 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8242 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8243 $as_echo_n "(cached) " >&6
8244 else
8245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8246 /* end confdefs.h. */
8247 int i;
8248 _ACEOF
8249 if ac_fn_c_try_compile "$LINENO"; then :
8250 xorg_cv_cc_flag_unused_command_line_argument=yes
8251 else
8252 xorg_cv_cc_flag_unused_command_line_argument=no
8253 fi
8254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8255 fi
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8257 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8258 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8259 CFLAGS="$xorg_testset_save_CFLAGS"
8260 fi
8261
8262 found="no"
8263
8264 if test $found = "no" ; then
8265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8266 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8267 fi
8268
8269 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8271 fi
8272
8273 CFLAGS="$CFLAGS -Werror=address"
8274
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8276 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8277 cacheid=xorg_cv_cc_flag__Werror_address
8278 if eval \${$cacheid+:} false; then :
8279 $as_echo_n "(cached) " >&6
8280 else
8281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8282 /* end confdefs.h. */
8283 int i;
8284 int
8285 main ()
8286 {
8287
8288 ;
8289 return 0;
8290 }
8291 _ACEOF
8292 if ac_fn_c_try_link "$LINENO"; then :
8293 eval $cacheid=yes
8294 else
8295 eval $cacheid=no
8296 fi
8297 rm -f core conftest.err conftest.$ac_objext \
8298 conftest$ac_exeext conftest.$ac_ext
8299 fi
8300
8301
8302 CFLAGS="$xorg_testset_save_CFLAGS"
8303
8304 eval supported=\$$cacheid
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8306 $as_echo "$supported" >&6; }
8307 if test "$supported" = "yes" ; then
8308 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8309 found="yes"
8310 fi
8311 fi
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327 xorg_testset_save_CFLAGS="$CFLAGS"
8328
8329 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8330 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8332 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8333 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8334 $as_echo_n "(cached) " >&6
8335 else
8336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337 /* end confdefs.h. */
8338 int i;
8339 _ACEOF
8340 if ac_fn_c_try_compile "$LINENO"; then :
8341 xorg_cv_cc_flag_unknown_warning_option=yes
8342 else
8343 xorg_cv_cc_flag_unknown_warning_option=no
8344 fi
8345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8346 fi
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8348 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8349 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8350 CFLAGS="$xorg_testset_save_CFLAGS"
8351 fi
8352
8353 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8355 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8356 fi
8357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8359 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8360 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8361 $as_echo_n "(cached) " >&6
8362 else
8363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8364 /* end confdefs.h. */
8365 int i;
8366 _ACEOF
8367 if ac_fn_c_try_compile "$LINENO"; then :
8368 xorg_cv_cc_flag_unused_command_line_argument=yes
8369 else
8370 xorg_cv_cc_flag_unused_command_line_argument=no
8371 fi
8372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8373 fi
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8375 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8376 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8377 CFLAGS="$xorg_testset_save_CFLAGS"
8378 fi
8379
8380 found="no"
8381
8382 if test $found = "no" ; then
8383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8384 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8385 fi
8386
8387 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8389 fi
8390
8391 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8392
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8394 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8395 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8396 if eval \${$cacheid+:} false; then :
8397 $as_echo_n "(cached) " >&6
8398 else
8399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8400 /* end confdefs.h. */
8401 int i;
8402 int
8403 main ()
8404 {
8405
8406 ;
8407 return 0;
8408 }
8409 _ACEOF
8410 if ac_fn_c_try_link "$LINENO"; then :
8411 eval $cacheid=yes
8412 else
8413 eval $cacheid=no
8414 fi
8415 rm -f core conftest.err conftest.$ac_objext \
8416 conftest$ac_exeext conftest.$ac_ext
8417 fi
8418
8419
8420 CFLAGS="$xorg_testset_save_CFLAGS"
8421
8422 eval supported=\$$cacheid
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8424 $as_echo "$supported" >&6; }
8425 if test "$supported" = "yes" ; then
8426 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8427 found="yes"
8428 fi
8429 fi
8430
8431 if test $found = "no" ; then
8432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8433 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8434 fi
8435
8436 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8438 fi
8439
8440 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8441
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8443 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8444 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8445 if eval \${$cacheid+:} false; then :
8446 $as_echo_n "(cached) " >&6
8447 else
8448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8449 /* end confdefs.h. */
8450 int i;
8451 int
8452 main ()
8453 {
8454
8455 ;
8456 return 0;
8457 }
8458 _ACEOF
8459 if ac_fn_c_try_link "$LINENO"; then :
8460 eval $cacheid=yes
8461 else
8462 eval $cacheid=no
8463 fi
8464 rm -f core conftest.err conftest.$ac_objext \
8465 conftest$ac_exeext conftest.$ac_ext
8466 fi
8467
8468
8469 CFLAGS="$xorg_testset_save_CFLAGS"
8470
8471 eval supported=\$$cacheid
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8473 $as_echo "$supported" >&6; }
8474 if test "$supported" = "yes" ; then
8475 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8476 found="yes"
8477 fi
8478 fi
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494 xorg_testset_save_CFLAGS="$CFLAGS"
8495
8496 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8497 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8499 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8500 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8501 $as_echo_n "(cached) " >&6
8502 else
8503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8504 /* end confdefs.h. */
8505 int i;
8506 _ACEOF
8507 if ac_fn_c_try_compile "$LINENO"; then :
8508 xorg_cv_cc_flag_unknown_warning_option=yes
8509 else
8510 xorg_cv_cc_flag_unknown_warning_option=no
8511 fi
8512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8513 fi
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8515 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8516 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8517 CFLAGS="$xorg_testset_save_CFLAGS"
8518 fi
8519
8520 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8521 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8522 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8523 fi
8524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8526 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8527 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8528 $as_echo_n "(cached) " >&6
8529 else
8530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8531 /* end confdefs.h. */
8532 int i;
8533 _ACEOF
8534 if ac_fn_c_try_compile "$LINENO"; then :
8535 xorg_cv_cc_flag_unused_command_line_argument=yes
8536 else
8537 xorg_cv_cc_flag_unused_command_line_argument=no
8538 fi
8539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8540 fi
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8542 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8543 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8544 CFLAGS="$xorg_testset_save_CFLAGS"
8545 fi
8546
8547 found="no"
8548
8549 if test $found = "no" ; then
8550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8551 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8552 fi
8553
8554 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8556 fi
8557
8558 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8559
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8561 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8562 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8563 if eval \${$cacheid+:} false; then :
8564 $as_echo_n "(cached) " >&6
8565 else
8566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8567 /* end confdefs.h. */
8568 int i;
8569 int
8570 main ()
8571 {
8572
8573 ;
8574 return 0;
8575 }
8576 _ACEOF
8577 if ac_fn_c_try_link "$LINENO"; then :
8578 eval $cacheid=yes
8579 else
8580 eval $cacheid=no
8581 fi
8582 rm -f core conftest.err conftest.$ac_objext \
8583 conftest$ac_exeext conftest.$ac_ext
8584 fi
8585
8586
8587 CFLAGS="$xorg_testset_save_CFLAGS"
8588
8589 eval supported=\$$cacheid
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8591 $as_echo "$supported" >&6; }
8592 if test "$supported" = "yes" ; then
8593 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8594 found="yes"
8595 fi
8596 fi
8597
8598 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8599 else
8600 { $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
8601 $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;}
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615 xorg_testset_save_CFLAGS="$CFLAGS"
8616
8617 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8618 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8620 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8621 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8622 $as_echo_n "(cached) " >&6
8623 else
8624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8625 /* end confdefs.h. */
8626 int i;
8627 _ACEOF
8628 if ac_fn_c_try_compile "$LINENO"; then :
8629 xorg_cv_cc_flag_unknown_warning_option=yes
8630 else
8631 xorg_cv_cc_flag_unknown_warning_option=no
8632 fi
8633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8634 fi
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8636 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8637 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8638 CFLAGS="$xorg_testset_save_CFLAGS"
8639 fi
8640
8641 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8643 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8644 fi
8645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8647 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8648 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8649 $as_echo_n "(cached) " >&6
8650 else
8651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8652 /* end confdefs.h. */
8653 int i;
8654 _ACEOF
8655 if ac_fn_c_try_compile "$LINENO"; then :
8656 xorg_cv_cc_flag_unused_command_line_argument=yes
8657 else
8658 xorg_cv_cc_flag_unused_command_line_argument=no
8659 fi
8660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8661 fi
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8663 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8664 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8665 CFLAGS="$xorg_testset_save_CFLAGS"
8666 fi
8667
8668 found="no"
8669
8670 if test $found = "no" ; then
8671 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8673 fi
8674
8675 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8677 fi
8678
8679 CFLAGS="$CFLAGS -Wimplicit"
8680
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8682 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8683 cacheid=xorg_cv_cc_flag__Wimplicit
8684 if eval \${$cacheid+:} false; then :
8685 $as_echo_n "(cached) " >&6
8686 else
8687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8688 /* end confdefs.h. */
8689 int i;
8690 int
8691 main ()
8692 {
8693
8694 ;
8695 return 0;
8696 }
8697 _ACEOF
8698 if ac_fn_c_try_link "$LINENO"; then :
8699 eval $cacheid=yes
8700 else
8701 eval $cacheid=no
8702 fi
8703 rm -f core conftest.err conftest.$ac_objext \
8704 conftest$ac_exeext conftest.$ac_ext
8705 fi
8706
8707
8708 CFLAGS="$xorg_testset_save_CFLAGS"
8709
8710 eval supported=\$$cacheid
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8712 $as_echo "$supported" >&6; }
8713 if test "$supported" = "yes" ; then
8714 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8715 found="yes"
8716 fi
8717 fi
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733 xorg_testset_save_CFLAGS="$CFLAGS"
8734
8735 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8736 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8738 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8739 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8740 $as_echo_n "(cached) " >&6
8741 else
8742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8743 /* end confdefs.h. */
8744 int i;
8745 _ACEOF
8746 if ac_fn_c_try_compile "$LINENO"; then :
8747 xorg_cv_cc_flag_unknown_warning_option=yes
8748 else
8749 xorg_cv_cc_flag_unknown_warning_option=no
8750 fi
8751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8752 fi
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8754 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8755 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8756 CFLAGS="$xorg_testset_save_CFLAGS"
8757 fi
8758
8759 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8761 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8762 fi
8763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8765 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8766 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8767 $as_echo_n "(cached) " >&6
8768 else
8769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8770 /* end confdefs.h. */
8771 int i;
8772 _ACEOF
8773 if ac_fn_c_try_compile "$LINENO"; then :
8774 xorg_cv_cc_flag_unused_command_line_argument=yes
8775 else
8776 xorg_cv_cc_flag_unused_command_line_argument=no
8777 fi
8778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8779 fi
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8781 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8782 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8783 CFLAGS="$xorg_testset_save_CFLAGS"
8784 fi
8785
8786 found="no"
8787
8788 if test $found = "no" ; then
8789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8790 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8791 fi
8792
8793 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8795 fi
8796
8797 CFLAGS="$CFLAGS -Wnonnull"
8798
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8800 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8801 cacheid=xorg_cv_cc_flag__Wnonnull
8802 if eval \${$cacheid+:} false; then :
8803 $as_echo_n "(cached) " >&6
8804 else
8805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8806 /* end confdefs.h. */
8807 int i;
8808 int
8809 main ()
8810 {
8811
8812 ;
8813 return 0;
8814 }
8815 _ACEOF
8816 if ac_fn_c_try_link "$LINENO"; then :
8817 eval $cacheid=yes
8818 else
8819 eval $cacheid=no
8820 fi
8821 rm -f core conftest.err conftest.$ac_objext \
8822 conftest$ac_exeext conftest.$ac_ext
8823 fi
8824
8825
8826 CFLAGS="$xorg_testset_save_CFLAGS"
8827
8828 eval supported=\$$cacheid
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8830 $as_echo "$supported" >&6; }
8831 if test "$supported" = "yes" ; then
8832 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8833 found="yes"
8834 fi
8835 fi
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851 xorg_testset_save_CFLAGS="$CFLAGS"
8852
8853 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8856 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8857 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8858 $as_echo_n "(cached) " >&6
8859 else
8860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8861 /* end confdefs.h. */
8862 int i;
8863 _ACEOF
8864 if ac_fn_c_try_compile "$LINENO"; then :
8865 xorg_cv_cc_flag_unknown_warning_option=yes
8866 else
8867 xorg_cv_cc_flag_unknown_warning_option=no
8868 fi
8869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8870 fi
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8872 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8873 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8874 CFLAGS="$xorg_testset_save_CFLAGS"
8875 fi
8876
8877 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8878 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8879 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8880 fi
8881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8883 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8884 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8885 $as_echo_n "(cached) " >&6
8886 else
8887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8888 /* end confdefs.h. */
8889 int i;
8890 _ACEOF
8891 if ac_fn_c_try_compile "$LINENO"; then :
8892 xorg_cv_cc_flag_unused_command_line_argument=yes
8893 else
8894 xorg_cv_cc_flag_unused_command_line_argument=no
8895 fi
8896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8897 fi
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8899 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8900 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8901 CFLAGS="$xorg_testset_save_CFLAGS"
8902 fi
8903
8904 found="no"
8905
8906 if test $found = "no" ; then
8907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8908 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8909 fi
8910
8911 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8913 fi
8914
8915 CFLAGS="$CFLAGS -Winit-self"
8916
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8918 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8919 cacheid=xorg_cv_cc_flag__Winit_self
8920 if eval \${$cacheid+:} false; then :
8921 $as_echo_n "(cached) " >&6
8922 else
8923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8924 /* end confdefs.h. */
8925 int i;
8926 int
8927 main ()
8928 {
8929
8930 ;
8931 return 0;
8932 }
8933 _ACEOF
8934 if ac_fn_c_try_link "$LINENO"; then :
8935 eval $cacheid=yes
8936 else
8937 eval $cacheid=no
8938 fi
8939 rm -f core conftest.err conftest.$ac_objext \
8940 conftest$ac_exeext conftest.$ac_ext
8941 fi
8942
8943
8944 CFLAGS="$xorg_testset_save_CFLAGS"
8945
8946 eval supported=\$$cacheid
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8948 $as_echo "$supported" >&6; }
8949 if test "$supported" = "yes" ; then
8950 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8951 found="yes"
8952 fi
8953 fi
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969 xorg_testset_save_CFLAGS="$CFLAGS"
8970
8971 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8972 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8974 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8975 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8976 $as_echo_n "(cached) " >&6
8977 else
8978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8979 /* end confdefs.h. */
8980 int i;
8981 _ACEOF
8982 if ac_fn_c_try_compile "$LINENO"; then :
8983 xorg_cv_cc_flag_unknown_warning_option=yes
8984 else
8985 xorg_cv_cc_flag_unknown_warning_option=no
8986 fi
8987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8988 fi
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8990 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8991 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8992 CFLAGS="$xorg_testset_save_CFLAGS"
8993 fi
8994
8995 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8996 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8997 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8998 fi
8999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9001 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9002 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9003 $as_echo_n "(cached) " >&6
9004 else
9005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9006 /* end confdefs.h. */
9007 int i;
9008 _ACEOF
9009 if ac_fn_c_try_compile "$LINENO"; then :
9010 xorg_cv_cc_flag_unused_command_line_argument=yes
9011 else
9012 xorg_cv_cc_flag_unused_command_line_argument=no
9013 fi
9014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9015 fi
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9017 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9018 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9019 CFLAGS="$xorg_testset_save_CFLAGS"
9020 fi
9021
9022 found="no"
9023
9024 if test $found = "no" ; then
9025 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9026 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9027 fi
9028
9029 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9031 fi
9032
9033 CFLAGS="$CFLAGS -Wmain"
9034
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9036 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
9037 cacheid=xorg_cv_cc_flag__Wmain
9038 if eval \${$cacheid+:} false; then :
9039 $as_echo_n "(cached) " >&6
9040 else
9041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9042 /* end confdefs.h. */
9043 int i;
9044 int
9045 main ()
9046 {
9047
9048 ;
9049 return 0;
9050 }
9051 _ACEOF
9052 if ac_fn_c_try_link "$LINENO"; then :
9053 eval $cacheid=yes
9054 else
9055 eval $cacheid=no
9056 fi
9057 rm -f core conftest.err conftest.$ac_objext \
9058 conftest$ac_exeext conftest.$ac_ext
9059 fi
9060
9061
9062 CFLAGS="$xorg_testset_save_CFLAGS"
9063
9064 eval supported=\$$cacheid
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9066 $as_echo "$supported" >&6; }
9067 if test "$supported" = "yes" ; then
9068 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9069 found="yes"
9070 fi
9071 fi
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087 xorg_testset_save_CFLAGS="$CFLAGS"
9088
9089 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9090 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9092 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9093 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9094 $as_echo_n "(cached) " >&6
9095 else
9096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9097 /* end confdefs.h. */
9098 int i;
9099 _ACEOF
9100 if ac_fn_c_try_compile "$LINENO"; then :
9101 xorg_cv_cc_flag_unknown_warning_option=yes
9102 else
9103 xorg_cv_cc_flag_unknown_warning_option=no
9104 fi
9105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9106 fi
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9108 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9109 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9110 CFLAGS="$xorg_testset_save_CFLAGS"
9111 fi
9112
9113 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9115 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9116 fi
9117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9119 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9120 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9121 $as_echo_n "(cached) " >&6
9122 else
9123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9124 /* end confdefs.h. */
9125 int i;
9126 _ACEOF
9127 if ac_fn_c_try_compile "$LINENO"; then :
9128 xorg_cv_cc_flag_unused_command_line_argument=yes
9129 else
9130 xorg_cv_cc_flag_unused_command_line_argument=no
9131 fi
9132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9133 fi
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9135 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9136 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9137 CFLAGS="$xorg_testset_save_CFLAGS"
9138 fi
9139
9140 found="no"
9141
9142 if test $found = "no" ; then
9143 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9144 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9145 fi
9146
9147 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9149 fi
9150
9151 CFLAGS="$CFLAGS -Wmissing-braces"
9152
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9154 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9155 cacheid=xorg_cv_cc_flag__Wmissing_braces
9156 if eval \${$cacheid+:} false; then :
9157 $as_echo_n "(cached) " >&6
9158 else
9159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9160 /* end confdefs.h. */
9161 int i;
9162 int
9163 main ()
9164 {
9165
9166 ;
9167 return 0;
9168 }
9169 _ACEOF
9170 if ac_fn_c_try_link "$LINENO"; then :
9171 eval $cacheid=yes
9172 else
9173 eval $cacheid=no
9174 fi
9175 rm -f core conftest.err conftest.$ac_objext \
9176 conftest$ac_exeext conftest.$ac_ext
9177 fi
9178
9179
9180 CFLAGS="$xorg_testset_save_CFLAGS"
9181
9182 eval supported=\$$cacheid
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9184 $as_echo "$supported" >&6; }
9185 if test "$supported" = "yes" ; then
9186 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9187 found="yes"
9188 fi
9189 fi
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205 xorg_testset_save_CFLAGS="$CFLAGS"
9206
9207 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9208 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9210 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9211 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9212 $as_echo_n "(cached) " >&6
9213 else
9214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9215 /* end confdefs.h. */
9216 int i;
9217 _ACEOF
9218 if ac_fn_c_try_compile "$LINENO"; then :
9219 xorg_cv_cc_flag_unknown_warning_option=yes
9220 else
9221 xorg_cv_cc_flag_unknown_warning_option=no
9222 fi
9223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9224 fi
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9226 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9227 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9228 CFLAGS="$xorg_testset_save_CFLAGS"
9229 fi
9230
9231 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9234 fi
9235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9237 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9238 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9239 $as_echo_n "(cached) " >&6
9240 else
9241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9242 /* end confdefs.h. */
9243 int i;
9244 _ACEOF
9245 if ac_fn_c_try_compile "$LINENO"; then :
9246 xorg_cv_cc_flag_unused_command_line_argument=yes
9247 else
9248 xorg_cv_cc_flag_unused_command_line_argument=no
9249 fi
9250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9251 fi
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9253 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9254 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9255 CFLAGS="$xorg_testset_save_CFLAGS"
9256 fi
9257
9258 found="no"
9259
9260 if test $found = "no" ; then
9261 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9262 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9263 fi
9264
9265 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9267 fi
9268
9269 CFLAGS="$CFLAGS -Wsequence-point"
9270
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9272 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9273 cacheid=xorg_cv_cc_flag__Wsequence_point
9274 if eval \${$cacheid+:} false; then :
9275 $as_echo_n "(cached) " >&6
9276 else
9277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9278 /* end confdefs.h. */
9279 int i;
9280 int
9281 main ()
9282 {
9283
9284 ;
9285 return 0;
9286 }
9287 _ACEOF
9288 if ac_fn_c_try_link "$LINENO"; then :
9289 eval $cacheid=yes
9290 else
9291 eval $cacheid=no
9292 fi
9293 rm -f core conftest.err conftest.$ac_objext \
9294 conftest$ac_exeext conftest.$ac_ext
9295 fi
9296
9297
9298 CFLAGS="$xorg_testset_save_CFLAGS"
9299
9300 eval supported=\$$cacheid
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9302 $as_echo "$supported" >&6; }
9303 if test "$supported" = "yes" ; then
9304 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9305 found="yes"
9306 fi
9307 fi
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323 xorg_testset_save_CFLAGS="$CFLAGS"
9324
9325 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9326 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9328 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9329 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9330 $as_echo_n "(cached) " >&6
9331 else
9332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9333 /* end confdefs.h. */
9334 int i;
9335 _ACEOF
9336 if ac_fn_c_try_compile "$LINENO"; then :
9337 xorg_cv_cc_flag_unknown_warning_option=yes
9338 else
9339 xorg_cv_cc_flag_unknown_warning_option=no
9340 fi
9341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9342 fi
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9344 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9345 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9346 CFLAGS="$xorg_testset_save_CFLAGS"
9347 fi
9348
9349 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9351 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9352 fi
9353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9355 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9356 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9357 $as_echo_n "(cached) " >&6
9358 else
9359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9360 /* end confdefs.h. */
9361 int i;
9362 _ACEOF
9363 if ac_fn_c_try_compile "$LINENO"; then :
9364 xorg_cv_cc_flag_unused_command_line_argument=yes
9365 else
9366 xorg_cv_cc_flag_unused_command_line_argument=no
9367 fi
9368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9369 fi
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9371 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9372 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9373 CFLAGS="$xorg_testset_save_CFLAGS"
9374 fi
9375
9376 found="no"
9377
9378 if test $found = "no" ; then
9379 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9380 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9381 fi
9382
9383 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9385 fi
9386
9387 CFLAGS="$CFLAGS -Wreturn-type"
9388
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9390 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9391 cacheid=xorg_cv_cc_flag__Wreturn_type
9392 if eval \${$cacheid+:} false; then :
9393 $as_echo_n "(cached) " >&6
9394 else
9395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9396 /* end confdefs.h. */
9397 int i;
9398 int
9399 main ()
9400 {
9401
9402 ;
9403 return 0;
9404 }
9405 _ACEOF
9406 if ac_fn_c_try_link "$LINENO"; then :
9407 eval $cacheid=yes
9408 else
9409 eval $cacheid=no
9410 fi
9411 rm -f core conftest.err conftest.$ac_objext \
9412 conftest$ac_exeext conftest.$ac_ext
9413 fi
9414
9415
9416 CFLAGS="$xorg_testset_save_CFLAGS"
9417
9418 eval supported=\$$cacheid
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9420 $as_echo "$supported" >&6; }
9421 if test "$supported" = "yes" ; then
9422 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9423 found="yes"
9424 fi
9425 fi
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441 xorg_testset_save_CFLAGS="$CFLAGS"
9442
9443 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9446 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9447 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9448 $as_echo_n "(cached) " >&6
9449 else
9450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9451 /* end confdefs.h. */
9452 int i;
9453 _ACEOF
9454 if ac_fn_c_try_compile "$LINENO"; then :
9455 xorg_cv_cc_flag_unknown_warning_option=yes
9456 else
9457 xorg_cv_cc_flag_unknown_warning_option=no
9458 fi
9459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9460 fi
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9462 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9463 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9464 CFLAGS="$xorg_testset_save_CFLAGS"
9465 fi
9466
9467 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9470 fi
9471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9473 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9474 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9475 $as_echo_n "(cached) " >&6
9476 else
9477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9478 /* end confdefs.h. */
9479 int i;
9480 _ACEOF
9481 if ac_fn_c_try_compile "$LINENO"; then :
9482 xorg_cv_cc_flag_unused_command_line_argument=yes
9483 else
9484 xorg_cv_cc_flag_unused_command_line_argument=no
9485 fi
9486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9487 fi
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9489 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9490 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9491 CFLAGS="$xorg_testset_save_CFLAGS"
9492 fi
9493
9494 found="no"
9495
9496 if test $found = "no" ; then
9497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9498 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9499 fi
9500
9501 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9503 fi
9504
9505 CFLAGS="$CFLAGS -Wtrigraphs"
9506
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9508 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9509 cacheid=xorg_cv_cc_flag__Wtrigraphs
9510 if eval \${$cacheid+:} false; then :
9511 $as_echo_n "(cached) " >&6
9512 else
9513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9514 /* end confdefs.h. */
9515 int i;
9516 int
9517 main ()
9518 {
9519
9520 ;
9521 return 0;
9522 }
9523 _ACEOF
9524 if ac_fn_c_try_link "$LINENO"; then :
9525 eval $cacheid=yes
9526 else
9527 eval $cacheid=no
9528 fi
9529 rm -f core conftest.err conftest.$ac_objext \
9530 conftest$ac_exeext conftest.$ac_ext
9531 fi
9532
9533
9534 CFLAGS="$xorg_testset_save_CFLAGS"
9535
9536 eval supported=\$$cacheid
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9538 $as_echo "$supported" >&6; }
9539 if test "$supported" = "yes" ; then
9540 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9541 found="yes"
9542 fi
9543 fi
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559 xorg_testset_save_CFLAGS="$CFLAGS"
9560
9561 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9564 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9565 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9566 $as_echo_n "(cached) " >&6
9567 else
9568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9569 /* end confdefs.h. */
9570 int i;
9571 _ACEOF
9572 if ac_fn_c_try_compile "$LINENO"; then :
9573 xorg_cv_cc_flag_unknown_warning_option=yes
9574 else
9575 xorg_cv_cc_flag_unknown_warning_option=no
9576 fi
9577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9578 fi
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9580 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9581 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9582 CFLAGS="$xorg_testset_save_CFLAGS"
9583 fi
9584
9585 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9587 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9588 fi
9589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9591 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9592 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9593 $as_echo_n "(cached) " >&6
9594 else
9595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9596 /* end confdefs.h. */
9597 int i;
9598 _ACEOF
9599 if ac_fn_c_try_compile "$LINENO"; then :
9600 xorg_cv_cc_flag_unused_command_line_argument=yes
9601 else
9602 xorg_cv_cc_flag_unused_command_line_argument=no
9603 fi
9604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9605 fi
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9607 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9608 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9609 CFLAGS="$xorg_testset_save_CFLAGS"
9610 fi
9611
9612 found="no"
9613
9614 if test $found = "no" ; then
9615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9616 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9617 fi
9618
9619 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9621 fi
9622
9623 CFLAGS="$CFLAGS -Warray-bounds"
9624
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9626 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9627 cacheid=xorg_cv_cc_flag__Warray_bounds
9628 if eval \${$cacheid+:} false; then :
9629 $as_echo_n "(cached) " >&6
9630 else
9631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9632 /* end confdefs.h. */
9633 int i;
9634 int
9635 main ()
9636 {
9637
9638 ;
9639 return 0;
9640 }
9641 _ACEOF
9642 if ac_fn_c_try_link "$LINENO"; then :
9643 eval $cacheid=yes
9644 else
9645 eval $cacheid=no
9646 fi
9647 rm -f core conftest.err conftest.$ac_objext \
9648 conftest$ac_exeext conftest.$ac_ext
9649 fi
9650
9651
9652 CFLAGS="$xorg_testset_save_CFLAGS"
9653
9654 eval supported=\$$cacheid
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9656 $as_echo "$supported" >&6; }
9657 if test "$supported" = "yes" ; then
9658 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9659 found="yes"
9660 fi
9661 fi
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677 xorg_testset_save_CFLAGS="$CFLAGS"
9678
9679 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9680 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9682 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9683 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9684 $as_echo_n "(cached) " >&6
9685 else
9686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9687 /* end confdefs.h. */
9688 int i;
9689 _ACEOF
9690 if ac_fn_c_try_compile "$LINENO"; then :
9691 xorg_cv_cc_flag_unknown_warning_option=yes
9692 else
9693 xorg_cv_cc_flag_unknown_warning_option=no
9694 fi
9695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9696 fi
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9698 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9699 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9700 CFLAGS="$xorg_testset_save_CFLAGS"
9701 fi
9702
9703 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9704 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9705 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9706 fi
9707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9709 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9710 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9711 $as_echo_n "(cached) " >&6
9712 else
9713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9714 /* end confdefs.h. */
9715 int i;
9716 _ACEOF
9717 if ac_fn_c_try_compile "$LINENO"; then :
9718 xorg_cv_cc_flag_unused_command_line_argument=yes
9719 else
9720 xorg_cv_cc_flag_unused_command_line_argument=no
9721 fi
9722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9723 fi
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9725 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9726 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9727 CFLAGS="$xorg_testset_save_CFLAGS"
9728 fi
9729
9730 found="no"
9731
9732 if test $found = "no" ; then
9733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9734 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9735 fi
9736
9737 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9738 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9739 fi
9740
9741 CFLAGS="$CFLAGS -Wwrite-strings"
9742
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9744 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9745 cacheid=xorg_cv_cc_flag__Wwrite_strings
9746 if eval \${$cacheid+:} false; then :
9747 $as_echo_n "(cached) " >&6
9748 else
9749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9750 /* end confdefs.h. */
9751 int i;
9752 int
9753 main ()
9754 {
9755
9756 ;
9757 return 0;
9758 }
9759 _ACEOF
9760 if ac_fn_c_try_link "$LINENO"; then :
9761 eval $cacheid=yes
9762 else
9763 eval $cacheid=no
9764 fi
9765 rm -f core conftest.err conftest.$ac_objext \
9766 conftest$ac_exeext conftest.$ac_ext
9767 fi
9768
9769
9770 CFLAGS="$xorg_testset_save_CFLAGS"
9771
9772 eval supported=\$$cacheid
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9774 $as_echo "$supported" >&6; }
9775 if test "$supported" = "yes" ; then
9776 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9777 found="yes"
9778 fi
9779 fi
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795 xorg_testset_save_CFLAGS="$CFLAGS"
9796
9797 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9798 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9800 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9801 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9802 $as_echo_n "(cached) " >&6
9803 else
9804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9805 /* end confdefs.h. */
9806 int i;
9807 _ACEOF
9808 if ac_fn_c_try_compile "$LINENO"; then :
9809 xorg_cv_cc_flag_unknown_warning_option=yes
9810 else
9811 xorg_cv_cc_flag_unknown_warning_option=no
9812 fi
9813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9814 fi
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9816 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9817 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9818 CFLAGS="$xorg_testset_save_CFLAGS"
9819 fi
9820
9821 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9823 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9824 fi
9825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9827 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9828 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9829 $as_echo_n "(cached) " >&6
9830 else
9831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9832 /* end confdefs.h. */
9833 int i;
9834 _ACEOF
9835 if ac_fn_c_try_compile "$LINENO"; then :
9836 xorg_cv_cc_flag_unused_command_line_argument=yes
9837 else
9838 xorg_cv_cc_flag_unused_command_line_argument=no
9839 fi
9840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9841 fi
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9843 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9844 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9845 CFLAGS="$xorg_testset_save_CFLAGS"
9846 fi
9847
9848 found="no"
9849
9850 if test $found = "no" ; then
9851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9852 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9853 fi
9854
9855 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9857 fi
9858
9859 CFLAGS="$CFLAGS -Waddress"
9860
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9862 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9863 cacheid=xorg_cv_cc_flag__Waddress
9864 if eval \${$cacheid+:} false; then :
9865 $as_echo_n "(cached) " >&6
9866 else
9867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9868 /* end confdefs.h. */
9869 int i;
9870 int
9871 main ()
9872 {
9873
9874 ;
9875 return 0;
9876 }
9877 _ACEOF
9878 if ac_fn_c_try_link "$LINENO"; then :
9879 eval $cacheid=yes
9880 else
9881 eval $cacheid=no
9882 fi
9883 rm -f core conftest.err conftest.$ac_objext \
9884 conftest$ac_exeext conftest.$ac_ext
9885 fi
9886
9887
9888 CFLAGS="$xorg_testset_save_CFLAGS"
9889
9890 eval supported=\$$cacheid
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9892 $as_echo "$supported" >&6; }
9893 if test "$supported" = "yes" ; then
9894 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9895 found="yes"
9896 fi
9897 fi
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913 xorg_testset_save_CFLAGS="$CFLAGS"
9914
9915 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9916 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9918 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9919 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9920 $as_echo_n "(cached) " >&6
9921 else
9922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9923 /* end confdefs.h. */
9924 int i;
9925 _ACEOF
9926 if ac_fn_c_try_compile "$LINENO"; then :
9927 xorg_cv_cc_flag_unknown_warning_option=yes
9928 else
9929 xorg_cv_cc_flag_unknown_warning_option=no
9930 fi
9931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9932 fi
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9934 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9935 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9936 CFLAGS="$xorg_testset_save_CFLAGS"
9937 fi
9938
9939 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9940 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9941 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9942 fi
9943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9945 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9946 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9947 $as_echo_n "(cached) " >&6
9948 else
9949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9950 /* end confdefs.h. */
9951 int i;
9952 _ACEOF
9953 if ac_fn_c_try_compile "$LINENO"; then :
9954 xorg_cv_cc_flag_unused_command_line_argument=yes
9955 else
9956 xorg_cv_cc_flag_unused_command_line_argument=no
9957 fi
9958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9959 fi
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9961 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9962 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9963 CFLAGS="$xorg_testset_save_CFLAGS"
9964 fi
9965
9966 found="no"
9967
9968 if test $found = "no" ; then
9969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9970 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9971 fi
9972
9973 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9975 fi
9976
9977 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9978
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9980 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9981 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9982 if eval \${$cacheid+:} false; then :
9983 $as_echo_n "(cached) " >&6
9984 else
9985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9986 /* end confdefs.h. */
9987 int i;
9988 int
9989 main ()
9990 {
9991
9992 ;
9993 return 0;
9994 }
9995 _ACEOF
9996 if ac_fn_c_try_link "$LINENO"; then :
9997 eval $cacheid=yes
9998 else
9999 eval $cacheid=no
10000 fi
10001 rm -f core conftest.err conftest.$ac_objext \
10002 conftest$ac_exeext conftest.$ac_ext
10003 fi
10004
10005
10006 CFLAGS="$xorg_testset_save_CFLAGS"
10007
10008 eval supported=\$$cacheid
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10010 $as_echo "$supported" >&6; }
10011 if test "$supported" = "yes" ; then
10012 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10013 found="yes"
10014 fi
10015 fi
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031 xorg_testset_save_CFLAGS="$CFLAGS"
10032
10033 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10034 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10036 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10037 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10038 $as_echo_n "(cached) " >&6
10039 else
10040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10041 /* end confdefs.h. */
10042 int i;
10043 _ACEOF
10044 if ac_fn_c_try_compile "$LINENO"; then :
10045 xorg_cv_cc_flag_unknown_warning_option=yes
10046 else
10047 xorg_cv_cc_flag_unknown_warning_option=no
10048 fi
10049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10050 fi
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10052 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10053 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10054 CFLAGS="$xorg_testset_save_CFLAGS"
10055 fi
10056
10057 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10058 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10059 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10060 fi
10061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10063 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10064 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10065 $as_echo_n "(cached) " >&6
10066 else
10067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10068 /* end confdefs.h. */
10069 int i;
10070 _ACEOF
10071 if ac_fn_c_try_compile "$LINENO"; then :
10072 xorg_cv_cc_flag_unused_command_line_argument=yes
10073 else
10074 xorg_cv_cc_flag_unused_command_line_argument=no
10075 fi
10076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10077 fi
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10079 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10080 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10081 CFLAGS="$xorg_testset_save_CFLAGS"
10082 fi
10083
10084 found="no"
10085
10086 if test $found = "no" ; then
10087 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10088 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10089 fi
10090
10091 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10093 fi
10094
10095 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10096
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10098 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10099 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10100 if eval \${$cacheid+:} false; then :
10101 $as_echo_n "(cached) " >&6
10102 else
10103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10104 /* end confdefs.h. */
10105 int i;
10106 int
10107 main ()
10108 {
10109
10110 ;
10111 return 0;
10112 }
10113 _ACEOF
10114 if ac_fn_c_try_link "$LINENO"; then :
10115 eval $cacheid=yes
10116 else
10117 eval $cacheid=no
10118 fi
10119 rm -f core conftest.err conftest.$ac_objext \
10120 conftest$ac_exeext conftest.$ac_ext
10121 fi
10122
10123
10124 CFLAGS="$xorg_testset_save_CFLAGS"
10125
10126 eval supported=\$$cacheid
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10128 $as_echo "$supported" >&6; }
10129 if test "$supported" = "yes" ; then
10130 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10131 found="yes"
10132 fi
10133 fi
10134
10135
10136 fi
10137
10138
10139
10140
10141
10142
10143
10144 CWARNFLAGS="$BASE_CFLAGS"
10145 if test "x$GCC" = xyes ; then
10146 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10147 fi
10148
10149
10150
10151
10152
10153
10154
10155
10156 # Check whether --enable-strict-compilation was given.
10157 if test "${enable_strict_compilation+set}" = set; then :
10158 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10159 else
10160 STRICT_COMPILE=no
10161 fi
10162
10163
10164
10165
10166
10167
10168 STRICT_CFLAGS=""
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182 xorg_testset_save_CFLAGS="$CFLAGS"
10183
10184 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10185 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10187 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10188 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10189 $as_echo_n "(cached) " >&6
10190 else
10191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10192 /* end confdefs.h. */
10193 int i;
10194 _ACEOF
10195 if ac_fn_c_try_compile "$LINENO"; then :
10196 xorg_cv_cc_flag_unknown_warning_option=yes
10197 else
10198 xorg_cv_cc_flag_unknown_warning_option=no
10199 fi
10200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10201 fi
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10203 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10204 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10205 CFLAGS="$xorg_testset_save_CFLAGS"
10206 fi
10207
10208 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10210 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10211 fi
10212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10214 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10215 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10216 $as_echo_n "(cached) " >&6
10217 else
10218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10219 /* end confdefs.h. */
10220 int i;
10221 _ACEOF
10222 if ac_fn_c_try_compile "$LINENO"; then :
10223 xorg_cv_cc_flag_unused_command_line_argument=yes
10224 else
10225 xorg_cv_cc_flag_unused_command_line_argument=no
10226 fi
10227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10228 fi
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10230 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10231 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10232 CFLAGS="$xorg_testset_save_CFLAGS"
10233 fi
10234
10235 found="no"
10236
10237 if test $found = "no" ; then
10238 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10239 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10240 fi
10241
10242 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10244 fi
10245
10246 CFLAGS="$CFLAGS -pedantic"
10247
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10249 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10250 cacheid=xorg_cv_cc_flag__pedantic
10251 if eval \${$cacheid+:} false; then :
10252 $as_echo_n "(cached) " >&6
10253 else
10254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10255 /* end confdefs.h. */
10256 int i;
10257 int
10258 main ()
10259 {
10260
10261 ;
10262 return 0;
10263 }
10264 _ACEOF
10265 if ac_fn_c_try_link "$LINENO"; then :
10266 eval $cacheid=yes
10267 else
10268 eval $cacheid=no
10269 fi
10270 rm -f core conftest.err conftest.$ac_objext \
10271 conftest$ac_exeext conftest.$ac_ext
10272 fi
10273
10274
10275 CFLAGS="$xorg_testset_save_CFLAGS"
10276
10277 eval supported=\$$cacheid
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10279 $as_echo "$supported" >&6; }
10280 if test "$supported" = "yes" ; then
10281 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10282 found="yes"
10283 fi
10284 fi
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300 xorg_testset_save_CFLAGS="$CFLAGS"
10301
10302 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10303 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10305 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10306 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10307 $as_echo_n "(cached) " >&6
10308 else
10309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10310 /* end confdefs.h. */
10311 int i;
10312 _ACEOF
10313 if ac_fn_c_try_compile "$LINENO"; then :
10314 xorg_cv_cc_flag_unknown_warning_option=yes
10315 else
10316 xorg_cv_cc_flag_unknown_warning_option=no
10317 fi
10318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10319 fi
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10321 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10322 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10323 CFLAGS="$xorg_testset_save_CFLAGS"
10324 fi
10325
10326 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10328 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10329 fi
10330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10332 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10333 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10334 $as_echo_n "(cached) " >&6
10335 else
10336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10337 /* end confdefs.h. */
10338 int i;
10339 _ACEOF
10340 if ac_fn_c_try_compile "$LINENO"; then :
10341 xorg_cv_cc_flag_unused_command_line_argument=yes
10342 else
10343 xorg_cv_cc_flag_unused_command_line_argument=no
10344 fi
10345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10346 fi
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10348 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10349 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10350 CFLAGS="$xorg_testset_save_CFLAGS"
10351 fi
10352
10353 found="no"
10354
10355 if test $found = "no" ; then
10356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10357 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10358 fi
10359
10360 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10362 fi
10363
10364 CFLAGS="$CFLAGS -Werror"
10365
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10367 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10368 cacheid=xorg_cv_cc_flag__Werror
10369 if eval \${$cacheid+:} false; then :
10370 $as_echo_n "(cached) " >&6
10371 else
10372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10373 /* end confdefs.h. */
10374 int i;
10375 int
10376 main ()
10377 {
10378
10379 ;
10380 return 0;
10381 }
10382 _ACEOF
10383 if ac_fn_c_try_link "$LINENO"; then :
10384 eval $cacheid=yes
10385 else
10386 eval $cacheid=no
10387 fi
10388 rm -f core conftest.err conftest.$ac_objext \
10389 conftest$ac_exeext conftest.$ac_ext
10390 fi
10391
10392
10393 CFLAGS="$xorg_testset_save_CFLAGS"
10394
10395 eval supported=\$$cacheid
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10397 $as_echo "$supported" >&6; }
10398 if test "$supported" = "yes" ; then
10399 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10400 found="yes"
10401 fi
10402 fi
10403
10404 if test $found = "no" ; then
10405 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10406 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10407 fi
10408
10409 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10410 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10411 fi
10412
10413 CFLAGS="$CFLAGS -errwarn"
10414
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10416 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10417 cacheid=xorg_cv_cc_flag__errwarn
10418 if eval \${$cacheid+:} false; then :
10419 $as_echo_n "(cached) " >&6
10420 else
10421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10422 /* end confdefs.h. */
10423 int i;
10424 int
10425 main ()
10426 {
10427
10428 ;
10429 return 0;
10430 }
10431 _ACEOF
10432 if ac_fn_c_try_link "$LINENO"; then :
10433 eval $cacheid=yes
10434 else
10435 eval $cacheid=no
10436 fi
10437 rm -f core conftest.err conftest.$ac_objext \
10438 conftest$ac_exeext conftest.$ac_ext
10439 fi
10440
10441
10442 CFLAGS="$xorg_testset_save_CFLAGS"
10443
10444 eval supported=\$$cacheid
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10446 $as_echo "$supported" >&6; }
10447 if test "$supported" = "yes" ; then
10448 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10449 found="yes"
10450 fi
10451 fi
10452
10453
10454
10455 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10456 # activate it with -Werror, so we add it here explicitly.
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470 xorg_testset_save_CFLAGS="$CFLAGS"
10471
10472 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10473 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10475 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10476 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10477 $as_echo_n "(cached) " >&6
10478 else
10479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10480 /* end confdefs.h. */
10481 int i;
10482 _ACEOF
10483 if ac_fn_c_try_compile "$LINENO"; then :
10484 xorg_cv_cc_flag_unknown_warning_option=yes
10485 else
10486 xorg_cv_cc_flag_unknown_warning_option=no
10487 fi
10488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10489 fi
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10491 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10492 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10493 CFLAGS="$xorg_testset_save_CFLAGS"
10494 fi
10495
10496 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10498 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10499 fi
10500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10502 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10503 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10504 $as_echo_n "(cached) " >&6
10505 else
10506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10507 /* end confdefs.h. */
10508 int i;
10509 _ACEOF
10510 if ac_fn_c_try_compile "$LINENO"; then :
10511 xorg_cv_cc_flag_unused_command_line_argument=yes
10512 else
10513 xorg_cv_cc_flag_unused_command_line_argument=no
10514 fi
10515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10516 fi
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10518 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10519 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10520 CFLAGS="$xorg_testset_save_CFLAGS"
10521 fi
10522
10523 found="no"
10524
10525 if test $found = "no" ; then
10526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10527 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10528 fi
10529
10530 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10532 fi
10533
10534 CFLAGS="$CFLAGS -Werror=attributes"
10535
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10537 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10538 cacheid=xorg_cv_cc_flag__Werror_attributes
10539 if eval \${$cacheid+:} false; then :
10540 $as_echo_n "(cached) " >&6
10541 else
10542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10543 /* end confdefs.h. */
10544 int i;
10545 int
10546 main ()
10547 {
10548
10549 ;
10550 return 0;
10551 }
10552 _ACEOF
10553 if ac_fn_c_try_link "$LINENO"; then :
10554 eval $cacheid=yes
10555 else
10556 eval $cacheid=no
10557 fi
10558 rm -f core conftest.err conftest.$ac_objext \
10559 conftest$ac_exeext conftest.$ac_ext
10560 fi
10561
10562
10563 CFLAGS="$xorg_testset_save_CFLAGS"
10564
10565 eval supported=\$$cacheid
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10567 $as_echo "$supported" >&6; }
10568 if test "$supported" = "yes" ; then
10569 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10570 found="yes"
10571 fi
10572 fi
10573
10574
10575
10576 if test "x$STRICT_COMPILE" = "xyes"; then
10577 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10578 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10579 fi
10580
10581
10582
10583
10584
10585
10586 cat >>confdefs.h <<_ACEOF
10587 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10588 _ACEOF
10589
10590 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10591 if test "x$PVM" = "x"; then
10592 PVM="0"
10593 fi
10594
10595 cat >>confdefs.h <<_ACEOF
10596 #define PACKAGE_VERSION_MINOR $PVM
10597 _ACEOF
10598
10599 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10600 if test "x$PVP" = "x"; then
10601 PVP="0"
10602 fi
10603
10604 cat >>confdefs.h <<_ACEOF
10605 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10606 _ACEOF
10607
10608
10609
10610 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10611 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10612 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10613 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10614
10615
10616
10617
10618 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10619 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10620 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10621 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10622 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10623
10624
10625
10626
10627
10628
10629 if test x$APP_MAN_SUFFIX = x ; then
10630 APP_MAN_SUFFIX=1
10631 fi
10632 if test x$APP_MAN_DIR = x ; then
10633 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10634 fi
10635
10636 if test x$LIB_MAN_SUFFIX = x ; then
10637 LIB_MAN_SUFFIX=3
10638 fi
10639 if test x$LIB_MAN_DIR = x ; then
10640 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10641 fi
10642
10643 if test x$FILE_MAN_SUFFIX = x ; then
10644 case $host_os in
10645 solaris*) FILE_MAN_SUFFIX=4 ;;
10646 *) FILE_MAN_SUFFIX=5 ;;
10647 esac
10648 fi
10649 if test x$FILE_MAN_DIR = x ; then
10650 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10651 fi
10652
10653 if test x$MISC_MAN_SUFFIX = x ; then
10654 case $host_os in
10655 solaris*) MISC_MAN_SUFFIX=5 ;;
10656 *) MISC_MAN_SUFFIX=7 ;;
10657 esac
10658 fi
10659 if test x$MISC_MAN_DIR = x ; then
10660 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10661 fi
10662
10663 if test x$DRIVER_MAN_SUFFIX = x ; then
10664 case $host_os in
10665 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10666 *) DRIVER_MAN_SUFFIX=4 ;;
10667 esac
10668 fi
10669 if test x$DRIVER_MAN_DIR = x ; then
10670 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10671 fi
10672
10673 if test x$ADMIN_MAN_SUFFIX = x ; then
10674 case $host_os in
10675 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10676 *) ADMIN_MAN_SUFFIX=8 ;;
10677 esac
10678 fi
10679 if test x$ADMIN_MAN_DIR = x ; then
10680 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10681 fi
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697 XORG_MAN_PAGE="X Version 11"
10698
10699 MAN_SUBSTS="\
10700 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10701 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10702 -e 's|__xservername__|Xorg|g' \
10703 -e 's|__xconfigfile__|xorg.conf|g' \
10704 -e 's|__projectroot__|\$(prefix)|g' \
10705 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10706 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10707 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10708 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10709 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10710 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10711 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10712
10713
10714
10715 # Check whether --enable-silent-rules was given.
10716 if test "${enable_silent_rules+set}" = set; then :
10717 enableval=$enable_silent_rules;
10718 fi
10719
10720 case $enable_silent_rules in # (((
10721 yes) AM_DEFAULT_VERBOSITY=0;;
10722 no) AM_DEFAULT_VERBOSITY=1;;
10723 *) AM_DEFAULT_VERBOSITY=0;;
10724 esac
10725 am_make=${MAKE-make}
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10727 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10728 if ${am_cv_make_support_nested_variables+:} false; then :
10729 $as_echo_n "(cached) " >&6
10730 else
10731 if $as_echo 'TRUE=$(BAR$(V))
10732 BAR0=false
10733 BAR1=true
10734 V=1
10735 am__doit:
10736 @$(TRUE)
10737 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10738 am_cv_make_support_nested_variables=yes
10739 else
10740 am_cv_make_support_nested_variables=no
10741 fi
10742 fi
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10744 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10745 if test $am_cv_make_support_nested_variables = yes; then
10746 AM_V='$(V)'
10747 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10748 else
10749 AM_V=$AM_DEFAULT_VERBOSITY
10750 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10751 fi
10752 AM_BACKSLASH='\'
10753
10754
10755
10756 # Initialize libtool
10757 # Check whether --enable-static was given.
10758 if test "${enable_static+set}" = set; then :
10759 enableval=$enable_static; p=${PACKAGE-default}
10760 case $enableval in
10761 yes) enable_static=yes ;;
10762 no) enable_static=no ;;
10763 *)
10764 enable_static=no
10765 # Look at the argument we got. We use all the common list separators.
10766 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10767 for pkg in $enableval; do
10768 IFS="$lt_save_ifs"
10769 if test "X$pkg" = "X$p"; then
10770 enable_static=yes
10771 fi
10772 done
10773 IFS="$lt_save_ifs"
10774 ;;
10775 esac
10776 else
10777 enable_static=no
10778 fi
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788 case `pwd` in
10789 *\ * | *\ *)
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10791 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10792 esac
10793
10794
10795
10796 macro_version='2.4.2'
10797 macro_revision='1.3337'
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811 ltmain="$ac_aux_dir/ltmain.sh"
10812
10813 # Backslashify metacharacters that are still active within
10814 # double-quoted strings.
10815 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10816
10817 # Same as above, but do not quote variable references.
10818 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10819
10820 # Sed substitution to delay expansion of an escaped shell variable in a
10821 # double_quote_subst'ed string.
10822 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10823
10824 # Sed substitution to delay expansion of an escaped single quote.
10825 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10826
10827 # Sed substitution to avoid accidental globbing in evaled expressions
10828 no_glob_subst='s/\*/\\\*/g'
10829
10830 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10831 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10832 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10833
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10835 $as_echo_n "checking how to print strings... " >&6; }
10836 # Test print first, because it will be a builtin if present.
10837 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10838 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10839 ECHO='print -r --'
10840 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10841 ECHO='printf %s\n'
10842 else
10843 # Use this function as a fallback that always works.
10844 func_fallback_echo ()
10845 {
10846 eval 'cat <<_LTECHO_EOF
10847 $1
10848 _LTECHO_EOF'
10849 }
10850 ECHO='func_fallback_echo'
10851 fi
10852
10853 # func_echo_all arg...
10854 # Invoke $ECHO with all args, space-separated.
10855 func_echo_all ()
10856 {
10857 $ECHO ""
10858 }
10859
10860 case "$ECHO" in
10861 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10862 $as_echo "printf" >&6; } ;;
10863 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10864 $as_echo "print -r" >&6; } ;;
10865 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10866 $as_echo "cat" >&6; } ;;
10867 esac
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10883 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
10884 if ${ac_cv_path_SED+:} false; then :
10885 $as_echo_n "(cached) " >&6
10886 else
10887 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10888 for ac_i in 1 2 3 4 5 6 7; do
10889 ac_script="$ac_script$as_nl$ac_script"
10890 done
10891 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10892 { ac_script=; unset ac_script;}
10893 if test -z "$SED"; then
10894 ac_path_SED_found=false
10895 # Loop through the user's path and test for each of PROGNAME-LIST
10896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10897 for as_dir in $PATH
10898 do
10899 IFS=$as_save_IFS
10900 test -z "$as_dir" && as_dir=.
10901 for ac_prog in sed gsed; do
10902 for ac_exec_ext in '' $ac_executable_extensions; do
10903 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10904 as_fn_executable_p "$ac_path_SED" || continue
10905 # Check for GNU ac_path_SED and select it if it is found.
10906 # Check for GNU $ac_path_SED
10907 case `"$ac_path_SED" --version 2>&1` in
10908 *GNU*)
10909 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10910 *)
10911 ac_count=0
10912 $as_echo_n 0123456789 >"conftest.in"
10913 while :
10914 do
10915 cat "conftest.in" "conftest.in" >"conftest.tmp"
10916 mv "conftest.tmp" "conftest.in"
10917 cp "conftest.in" "conftest.nl"
10918 $as_echo '' >> "conftest.nl"
10919 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10920 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10921 as_fn_arith $ac_count + 1 && ac_count=$as_val
10922 if test $ac_count -gt ${ac_path_SED_max-0}; then
10923 # Best one so far, save it but keep looking for a better one
10924 ac_cv_path_SED="$ac_path_SED"
10925 ac_path_SED_max=$ac_count
10926 fi
10927 # 10*(2^10) chars as input seems more than enough
10928 test $ac_count -gt 10 && break
10929 done
10930 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10931 esac
10932
10933 $ac_path_SED_found && break 3
10934 done
10935 done
10936 done
10937 IFS=$as_save_IFS
10938 if test -z "$ac_cv_path_SED"; then
10939 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10940 fi
10941 else
10942 ac_cv_path_SED=$SED
10943 fi
10944
10945 fi
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10947 $as_echo "$ac_cv_path_SED" >&6; }
10948 SED="$ac_cv_path_SED"
10949 rm -f conftest.sed
10950
10951 test -z "$SED" && SED=sed
10952 Xsed="$SED -e 1s/^X//"
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10965 $as_echo_n "checking for fgrep... " >&6; }
10966 if ${ac_cv_path_FGREP+:} false; then :
10967 $as_echo_n "(cached) " >&6
10968 else
10969 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10970 then ac_cv_path_FGREP="$GREP -F"
10971 else
10972 if test -z "$FGREP"; then
10973 ac_path_FGREP_found=false
10974 # Loop through the user's path and test for each of PROGNAME-LIST
10975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10976 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10977 do
10978 IFS=$as_save_IFS
10979 test -z "$as_dir" && as_dir=.
10980 for ac_prog in fgrep; do
10981 for ac_exec_ext in '' $ac_executable_extensions; do
10982 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10983 as_fn_executable_p "$ac_path_FGREP" || continue
10984 # Check for GNU ac_path_FGREP and select it if it is found.
10985 # Check for GNU $ac_path_FGREP
10986 case `"$ac_path_FGREP" --version 2>&1` in
10987 *GNU*)
10988 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10989 *)
10990 ac_count=0
10991 $as_echo_n 0123456789 >"conftest.in"
10992 while :
10993 do
10994 cat "conftest.in" "conftest.in" >"conftest.tmp"
10995 mv "conftest.tmp" "conftest.in"
10996 cp "conftest.in" "conftest.nl"
10997 $as_echo 'FGREP' >> "conftest.nl"
10998 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10999 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11000 as_fn_arith $ac_count + 1 && ac_count=$as_val
11001 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11002 # Best one so far, save it but keep looking for a better one
11003 ac_cv_path_FGREP="$ac_path_FGREP"
11004 ac_path_FGREP_max=$ac_count
11005 fi
11006 # 10*(2^10) chars as input seems more than enough
11007 test $ac_count -gt 10 && break
11008 done
11009 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11010 esac
11011
11012 $ac_path_FGREP_found && break 3
11013 done
11014 done
11015 done
11016 IFS=$as_save_IFS
11017 if test -z "$ac_cv_path_FGREP"; then
11018 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11019 fi
11020 else
11021 ac_cv_path_FGREP=$FGREP
11022 fi
11023
11024 fi
11025 fi
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11027 $as_echo "$ac_cv_path_FGREP" >&6; }
11028 FGREP="$ac_cv_path_FGREP"
11029
11030
11031 test -z "$GREP" && GREP=grep
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051 # Check whether --with-gnu-ld was given.
11052 if test "${with_gnu_ld+set}" = set; then :
11053 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11054 else
11055 with_gnu_ld=no
11056 fi
11057
11058 ac_prog=ld
11059 if test "$GCC" = yes; then
11060 # Check if gcc -print-prog-name=ld gives a path.
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11062 $as_echo_n "checking for ld used by $CC... " >&6; }
11063 case $host in
11064 *-*-mingw*)
11065 # gcc leaves a trailing carriage return which upsets mingw
11066 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11067 *)
11068 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11069 esac
11070 case $ac_prog in
11071 # Accept absolute paths.
11072 [\\/]* | ?:[\\/]*)
11073 re_direlt='/[^/][^/]*/\.\./'
11074 # Canonicalize the pathname of ld
11075 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11076 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11077 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11078 done
11079 test -z "$LD" && LD="$ac_prog"
11080 ;;
11081 "")
11082 # If it fails, then pretend we aren't using GCC.
11083 ac_prog=ld
11084 ;;
11085 *)
11086 # If it is relative, then search for the first ld in PATH.
11087 with_gnu_ld=unknown
11088 ;;
11089 esac
11090 elif test "$with_gnu_ld" = yes; then
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11092 $as_echo_n "checking for GNU ld... " >&6; }
11093 else
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11095 $as_echo_n "checking for non-GNU ld... " >&6; }
11096 fi
11097 if ${lt_cv_path_LD+:} false; then :
11098 $as_echo_n "(cached) " >&6
11099 else
11100 if test -z "$LD"; then
11101 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11102 for ac_dir in $PATH; do
11103 IFS="$lt_save_ifs"
11104 test -z "$ac_dir" && ac_dir=.
11105 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11106 lt_cv_path_LD="$ac_dir/$ac_prog"
11107 # Check to see if the program is GNU ld. I'd rather use --version,
11108 # but apparently some variants of GNU ld only accept -v.
11109 # Break only if it was the GNU/non-GNU ld that we prefer.
11110 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11111 *GNU* | *'with BFD'*)
11112 test "$with_gnu_ld" != no && break
11113 ;;
11114 *)
11115 test "$with_gnu_ld" != yes && break
11116 ;;
11117 esac
11118 fi
11119 done
11120 IFS="$lt_save_ifs"
11121 else
11122 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11123 fi
11124 fi
11125
11126 LD="$lt_cv_path_LD"
11127 if test -n "$LD"; then
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11129 $as_echo "$LD" >&6; }
11130 else
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11132 $as_echo "no" >&6; }
11133 fi
11134 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11136 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11137 if ${lt_cv_prog_gnu_ld+:} false; then :
11138 $as_echo_n "(cached) " >&6
11139 else
11140 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11141 case `$LD -v 2>&1 </dev/null` in
11142 *GNU* | *'with BFD'*)
11143 lt_cv_prog_gnu_ld=yes
11144 ;;
11145 *)
11146 lt_cv_prog_gnu_ld=no
11147 ;;
11148 esac
11149 fi
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11151 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11152 with_gnu_ld=$lt_cv_prog_gnu_ld
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11163 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11164 if ${lt_cv_path_NM+:} false; then :
11165 $as_echo_n "(cached) " >&6
11166 else
11167 if test -n "$NM"; then
11168 # Let the user override the test.
11169 lt_cv_path_NM="$NM"
11170 else
11171 lt_nm_to_check="${ac_tool_prefix}nm"
11172 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11173 lt_nm_to_check="$lt_nm_to_check nm"
11174 fi
11175 for lt_tmp_nm in $lt_nm_to_check; do
11176 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11177 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11178 IFS="$lt_save_ifs"
11179 test -z "$ac_dir" && ac_dir=.
11180 tmp_nm="$ac_dir/$lt_tmp_nm"
11181 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11182 # Check to see if the nm accepts a BSD-compat flag.
11183 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11184 # nm: unknown option "B" ignored
11185 # Tru64's nm complains that /dev/null is an invalid object file
11186 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11187 */dev/null* | *'Invalid file or object type'*)
11188 lt_cv_path_NM="$tmp_nm -B"
11189 break
11190 ;;
11191 *)
11192 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11193 */dev/null*)
11194 lt_cv_path_NM="$tmp_nm -p"
11195 break
11196 ;;
11197 *)
11198 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11199 continue # so that we can try to find one that supports BSD flags
11200 ;;
11201 esac
11202 ;;
11203 esac
11204 fi
11205 done
11206 IFS="$lt_save_ifs"
11207 done
11208 : ${lt_cv_path_NM=no}
11209 fi
11210 fi
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11212 $as_echo "$lt_cv_path_NM" >&6; }
11213 if test "$lt_cv_path_NM" != "no"; then
11214 NM="$lt_cv_path_NM"
11215 else
11216 # Didn't find any BSD compatible name lister, look for dumpbin.
11217 if test -n "$DUMPBIN"; then :
11218 # Let the user override the test.
11219 else
11220 if test -n "$ac_tool_prefix"; then
11221 for ac_prog in dumpbin "link -dump"
11222 do
11223 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11224 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11226 $as_echo_n "checking for $ac_word... " >&6; }
11227 if ${ac_cv_prog_DUMPBIN+:} false; then :
11228 $as_echo_n "(cached) " >&6
11229 else
11230 if test -n "$DUMPBIN"; then
11231 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11232 else
11233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11234 for as_dir in $PATH
11235 do
11236 IFS=$as_save_IFS
11237 test -z "$as_dir" && as_dir=.
11238 for ac_exec_ext in '' $ac_executable_extensions; do
11239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11240 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11242 break 2
11243 fi
11244 done
11245 done
11246 IFS=$as_save_IFS
11247
11248 fi
11249 fi
11250 DUMPBIN=$ac_cv_prog_DUMPBIN
11251 if test -n "$DUMPBIN"; then
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11253 $as_echo "$DUMPBIN" >&6; }
11254 else
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11256 $as_echo "no" >&6; }
11257 fi
11258
11259
11260 test -n "$DUMPBIN" && break
11261 done
11262 fi
11263 if test -z "$DUMPBIN"; then
11264 ac_ct_DUMPBIN=$DUMPBIN
11265 for ac_prog in dumpbin "link -dump"
11266 do
11267 # Extract the first word of "$ac_prog", so it can be a program name with args.
11268 set dummy $ac_prog; ac_word=$2
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11270 $as_echo_n "checking for $ac_word... " >&6; }
11271 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11272 $as_echo_n "(cached) " >&6
11273 else
11274 if test -n "$ac_ct_DUMPBIN"; then
11275 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11276 else
11277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11278 for as_dir in $PATH
11279 do
11280 IFS=$as_save_IFS
11281 test -z "$as_dir" && as_dir=.
11282 for ac_exec_ext in '' $ac_executable_extensions; do
11283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11284 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11286 break 2
11287 fi
11288 done
11289 done
11290 IFS=$as_save_IFS
11291
11292 fi
11293 fi
11294 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11295 if test -n "$ac_ct_DUMPBIN"; then
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11297 $as_echo "$ac_ct_DUMPBIN" >&6; }
11298 else
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11300 $as_echo "no" >&6; }
11301 fi
11302
11303
11304 test -n "$ac_ct_DUMPBIN" && break
11305 done
11306
11307 if test "x$ac_ct_DUMPBIN" = x; then
11308 DUMPBIN=":"
11309 else
11310 case $cross_compiling:$ac_tool_warned in
11311 yes:)
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11313 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11314 ac_tool_warned=yes ;;
11315 esac
11316 DUMPBIN=$ac_ct_DUMPBIN
11317 fi
11318 fi
11319
11320 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11321 *COFF*)
11322 DUMPBIN="$DUMPBIN -symbols"
11323 ;;
11324 *)
11325 DUMPBIN=:
11326 ;;
11327 esac
11328 fi
11329
11330 if test "$DUMPBIN" != ":"; then
11331 NM="$DUMPBIN"
11332 fi
11333 fi
11334 test -z "$NM" && NM=nm
11335
11336
11337
11338
11339
11340
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11342 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11343 if ${lt_cv_nm_interface+:} false; then :
11344 $as_echo_n "(cached) " >&6
11345 else
11346 lt_cv_nm_interface="BSD nm"
11347 echo "int some_variable = 0;" > conftest.$ac_ext
11348 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11349 (eval "$ac_compile" 2>conftest.err)
11350 cat conftest.err >&5
11351 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11352 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11353 cat conftest.err >&5
11354 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11355 cat conftest.out >&5
11356 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11357 lt_cv_nm_interface="MS dumpbin"
11358 fi
11359 rm -f conftest*
11360 fi
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11362 $as_echo "$lt_cv_nm_interface" >&6; }
11363
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11365 $as_echo_n "checking whether ln -s works... " >&6; }
11366 LN_S=$as_ln_s
11367 if test "$LN_S" = "ln -s"; then
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11369 $as_echo "yes" >&6; }
11370 else
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11372 $as_echo "no, using $LN_S" >&6; }
11373 fi
11374
11375 # find the maximum length of command line arguments
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11377 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11378 if ${lt_cv_sys_max_cmd_len+:} false; then :
11379 $as_echo_n "(cached) " >&6
11380 else
11381 i=0
11382 teststring="ABCD"
11383
11384 case $build_os in
11385 msdosdjgpp*)
11386 # On DJGPP, this test can blow up pretty badly due to problems in libc
11387 # (any single argument exceeding 2000 bytes causes a buffer overrun
11388 # during glob expansion). Even if it were fixed, the result of this
11389 # check would be larger than it should be.
11390 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11391 ;;
11392
11393 gnu*)
11394 # Under GNU Hurd, this test is not required because there is
11395 # no limit to the length of command line arguments.
11396 # Libtool will interpret -1 as no limit whatsoever
11397 lt_cv_sys_max_cmd_len=-1;
11398 ;;
11399
11400 cygwin* | mingw* | cegcc*)
11401 # On Win9x/ME, this test blows up -- it succeeds, but takes
11402 # about 5 minutes as the teststring grows exponentially.
11403 # Worse, since 9x/ME are not pre-emptively multitasking,
11404 # you end up with a "frozen" computer, even though with patience
11405 # the test eventually succeeds (with a max line length of 256k).
11406 # Instead, let's just punt: use the minimum linelength reported by
11407 # all of the supported platforms: 8192 (on NT/2K/XP).
11408 lt_cv_sys_max_cmd_len=8192;
11409 ;;
11410
11411 mint*)
11412 # On MiNT this can take a long time and run out of memory.
11413 lt_cv_sys_max_cmd_len=8192;
11414 ;;
11415
11416 amigaos*)
11417 # On AmigaOS with pdksh, this test takes hours, literally.
11418 # So we just punt and use a minimum line length of 8192.
11419 lt_cv_sys_max_cmd_len=8192;
11420 ;;
11421
11422 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11423 # This has been around since 386BSD, at least. Likely further.
11424 if test -x /sbin/sysctl; then
11425 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11426 elif test -x /usr/sbin/sysctl; then
11427 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11428 else
11429 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11430 fi
11431 # And add a safety zone
11432 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11433 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11434 ;;
11435
11436 interix*)
11437 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11438 lt_cv_sys_max_cmd_len=196608
11439 ;;
11440
11441 os2*)
11442 # The test takes a long time on OS/2.
11443 lt_cv_sys_max_cmd_len=8192
11444 ;;
11445
11446 osf*)
11447 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11448 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11449 # nice to cause kernel panics so lets avoid the loop below.
11450 # First set a reasonable default.
11451 lt_cv_sys_max_cmd_len=16384
11452 #
11453 if test -x /sbin/sysconfig; then
11454 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11455 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11456 esac
11457 fi
11458 ;;
11459 sco3.2v5*)
11460 lt_cv_sys_max_cmd_len=102400
11461 ;;
11462 sysv5* | sco5v6* | sysv4.2uw2*)
11463 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11464 if test -n "$kargmax"; then
11465 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11466 else
11467 lt_cv_sys_max_cmd_len=32768
11468 fi
11469 ;;
11470 *)
11471 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11472 if test -n "$lt_cv_sys_max_cmd_len"; then
11473 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11474 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11475 else
11476 # Make teststring a little bigger before we do anything with it.
11477 # a 1K string should be a reasonable start.
11478 for i in 1 2 3 4 5 6 7 8 ; do
11479 teststring=$teststring$teststring
11480 done
11481 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11482 # If test is not a shell built-in, we'll probably end up computing a
11483 # maximum length that is only half of the actual maximum length, but
11484 # we can't tell.
11485 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
11486 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11487 test $i != 17 # 1/2 MB should be enough
11488 do
11489 i=`expr $i + 1`
11490 teststring=$teststring$teststring
11491 done
11492 # Only check the string length outside the loop.
11493 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11494 teststring=
11495 # Add a significant safety factor because C++ compilers can tack on
11496 # massive amounts of additional arguments before passing them to the
11497 # linker. It appears as though 1/2 is a usable value.
11498 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11499 fi
11500 ;;
11501 esac
11502
11503 fi
11504
11505 if test -n $lt_cv_sys_max_cmd_len ; then
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11507 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11508 else
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11510 $as_echo "none" >&6; }
11511 fi
11512 max_cmd_len=$lt_cv_sys_max_cmd_len
11513
11514
11515
11516
11517
11518
11519 : ${CP="cp -f"}
11520 : ${MV="mv -f"}
11521 : ${RM="rm -f"}
11522
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11524 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11525 # Try some XSI features
11526 xsi_shell=no
11527 ( _lt_dummy="a/b/c"
11528 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11529 = c,a/b,b/c, \
11530 && eval 'test $(( 1 + 1 )) -eq 2 \
11531 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11532 && xsi_shell=yes
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11534 $as_echo "$xsi_shell" >&6; }
11535
11536
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11538 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11539 lt_shell_append=no
11540 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11541 >/dev/null 2>&1 \
11542 && lt_shell_append=yes
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11544 $as_echo "$lt_shell_append" >&6; }
11545
11546
11547 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11548 lt_unset=unset
11549 else
11550 lt_unset=false
11551 fi
11552
11553
11554
11555
11556
11557 # test EBCDIC or ASCII
11558 case `echo X|tr X '\101'` in
11559 A) # ASCII based system
11560 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11561 lt_SP2NL='tr \040 \012'
11562 lt_NL2SP='tr \015\012 \040\040'
11563 ;;
11564 *) # EBCDIC based system
11565 lt_SP2NL='tr \100 \n'
11566 lt_NL2SP='tr \r\n \100\100'
11567 ;;
11568 esac
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11579 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11580 if ${lt_cv_to_host_file_cmd+:} false; then :
11581 $as_echo_n "(cached) " >&6
11582 else
11583 case $host in
11584 *-*-mingw* )
11585 case $build in
11586 *-*-mingw* ) # actually msys
11587 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11588 ;;
11589 *-*-cygwin* )
11590 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11591 ;;
11592 * ) # otherwise, assume *nix
11593 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11594 ;;
11595 esac
11596 ;;
11597 *-*-cygwin* )
11598 case $build in
11599 *-*-mingw* ) # actually msys
11600 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11601 ;;
11602 *-*-cygwin* )
11603 lt_cv_to_host_file_cmd=func_convert_file_noop
11604 ;;
11605 * ) # otherwise, assume *nix
11606 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11607 ;;
11608 esac
11609 ;;
11610 * ) # unhandled hosts (and "normal" native builds)
11611 lt_cv_to_host_file_cmd=func_convert_file_noop
11612 ;;
11613 esac
11614
11615 fi
11616
11617 to_host_file_cmd=$lt_cv_to_host_file_cmd
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11619 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
11620
11621
11622
11623
11624
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11626 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11627 if ${lt_cv_to_tool_file_cmd+:} false; then :
11628 $as_echo_n "(cached) " >&6
11629 else
11630 #assume ordinary cross tools, or native build.
11631 lt_cv_to_tool_file_cmd=func_convert_file_noop
11632 case $host in
11633 *-*-mingw* )
11634 case $build in
11635 *-*-mingw* ) # actually msys
11636 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11637 ;;
11638 esac
11639 ;;
11640 esac
11641
11642 fi
11643
11644 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11646 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11647
11648
11649
11650
11651
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11653 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11654 if ${lt_cv_ld_reload_flag+:} false; then :
11655 $as_echo_n "(cached) " >&6
11656 else
11657 lt_cv_ld_reload_flag='-r'
11658 fi
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11660 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11661 reload_flag=$lt_cv_ld_reload_flag
11662 case $reload_flag in
11663 "" | " "*) ;;
11664 *) reload_flag=" $reload_flag" ;;
11665 esac
11666 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11667 case $host_os in
11668 cygwin* | mingw* | pw32* | cegcc*)
11669 if test "$GCC" != yes; then
11670 reload_cmds=false
11671 fi
11672 ;;
11673 darwin*)
11674 if test "$GCC" = yes; then
11675 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11676 else
11677 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11678 fi
11679 ;;
11680 esac
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690 if test -n "$ac_tool_prefix"; then
11691 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11692 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11694 $as_echo_n "checking for $ac_word... " >&6; }
11695 if ${ac_cv_prog_OBJDUMP+:} false; then :
11696 $as_echo_n "(cached) " >&6
11697 else
11698 if test -n "$OBJDUMP"; then
11699 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11700 else
11701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11702 for as_dir in $PATH
11703 do
11704 IFS=$as_save_IFS
11705 test -z "$as_dir" && as_dir=.
11706 for ac_exec_ext in '' $ac_executable_extensions; do
11707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11708 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11710 break 2
11711 fi
11712 done
11713 done
11714 IFS=$as_save_IFS
11715
11716 fi
11717 fi
11718 OBJDUMP=$ac_cv_prog_OBJDUMP
11719 if test -n "$OBJDUMP"; then
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11721 $as_echo "$OBJDUMP" >&6; }
11722 else
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11724 $as_echo "no" >&6; }
11725 fi
11726
11727
11728 fi
11729 if test -z "$ac_cv_prog_OBJDUMP"; then
11730 ac_ct_OBJDUMP=$OBJDUMP
11731 # Extract the first word of "objdump", so it can be a program name with args.
11732 set dummy objdump; ac_word=$2
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11734 $as_echo_n "checking for $ac_word... " >&6; }
11735 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11736 $as_echo_n "(cached) " >&6
11737 else
11738 if test -n "$ac_ct_OBJDUMP"; then
11739 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11740 else
11741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11742 for as_dir in $PATH
11743 do
11744 IFS=$as_save_IFS
11745 test -z "$as_dir" && as_dir=.
11746 for ac_exec_ext in '' $ac_executable_extensions; do
11747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11748 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11750 break 2
11751 fi
11752 done
11753 done
11754 IFS=$as_save_IFS
11755
11756 fi
11757 fi
11758 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11759 if test -n "$ac_ct_OBJDUMP"; then
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11761 $as_echo "$ac_ct_OBJDUMP" >&6; }
11762 else
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11764 $as_echo "no" >&6; }
11765 fi
11766
11767 if test "x$ac_ct_OBJDUMP" = x; then
11768 OBJDUMP="false"
11769 else
11770 case $cross_compiling:$ac_tool_warned in
11771 yes:)
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11774 ac_tool_warned=yes ;;
11775 esac
11776 OBJDUMP=$ac_ct_OBJDUMP
11777 fi
11778 else
11779 OBJDUMP="$ac_cv_prog_OBJDUMP"
11780 fi
11781
11782 test -z "$OBJDUMP" && OBJDUMP=objdump
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11793 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11794 if ${lt_cv_deplibs_check_method+:} false; then :
11795 $as_echo_n "(cached) " >&6
11796 else
11797 lt_cv_file_magic_cmd='$MAGIC_CMD'
11798 lt_cv_file_magic_test_file=
11799 lt_cv_deplibs_check_method='unknown'
11800 # Need to set the preceding variable on all platforms that support
11801 # interlibrary dependencies.
11802 # 'none' -- dependencies not supported.
11803 # `unknown' -- same as none, but documents that we really don't know.
11804 # 'pass_all' -- all dependencies passed with no checks.
11805 # 'test_compile' -- check by making test program.
11806 # 'file_magic [[regex]]' -- check by looking for files in library path
11807 # which responds to the $file_magic_cmd with a given extended regex.
11808 # If you have `file' or equivalent on your system and you're not sure
11809 # whether `pass_all' will *always* work, you probably want this one.
11810
11811 case $host_os in
11812 aix[4-9]*)
11813 lt_cv_deplibs_check_method=pass_all
11814 ;;
11815
11816 beos*)
11817 lt_cv_deplibs_check_method=pass_all
11818 ;;
11819
11820 bsdi[45]*)
11821 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11822 lt_cv_file_magic_cmd='/usr/bin/file -L'
11823 lt_cv_file_magic_test_file=/shlib/libc.so
11824 ;;
11825
11826 cygwin*)
11827 # func_win32_libid is a shell function defined in ltmain.sh
11828 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11829 lt_cv_file_magic_cmd='func_win32_libid'
11830 ;;
11831
11832 mingw* | pw32*)
11833 # Base MSYS/MinGW do not provide the 'file' command needed by
11834 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11835 # unless we find 'file', for example because we are cross-compiling.
11836 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11837 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11838 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11839 lt_cv_file_magic_cmd='func_win32_libid'
11840 else
11841 # Keep this pattern in sync with the one in func_win32_libid.
11842 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11843 lt_cv_file_magic_cmd='$OBJDUMP -f'
11844 fi
11845 ;;
11846
11847 cegcc*)
11848 # use the weaker test based on 'objdump'. See mingw*.
11849 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11850 lt_cv_file_magic_cmd='$OBJDUMP -f'
11851 ;;
11852
11853 darwin* | rhapsody*)
11854 lt_cv_deplibs_check_method=pass_all
11855 ;;
11856
11857 freebsd* | dragonfly*)
11858 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11859 case $host_cpu in
11860 i*86 )
11861 # Not sure whether the presence of OpenBSD here was a mistake.
11862 # Let's accept both of them until this is cleared up.
11863 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11864 lt_cv_file_magic_cmd=/usr/bin/file
11865 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11866 ;;
11867 esac
11868 else
11869 lt_cv_deplibs_check_method=pass_all
11870 fi
11871 ;;
11872
11873 gnu*)
11874 lt_cv_deplibs_check_method=pass_all
11875 ;;
11876
11877 haiku*)
11878 lt_cv_deplibs_check_method=pass_all
11879 ;;
11880
11881 hpux10.20* | hpux11*)
11882 lt_cv_file_magic_cmd=/usr/bin/file
11883 case $host_cpu in
11884 ia64*)
11885 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11886 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11887 ;;
11888 hppa*64*)
11889 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]'
11890 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11891 ;;
11892 *)
11893 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11894 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11895 ;;
11896 esac
11897 ;;
11898
11899 interix[3-9]*)
11900 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11901 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11902 ;;
11903
11904 irix5* | irix6* | nonstopux*)
11905 case $LD in
11906 *-32|*"-32 ") libmagic=32-bit;;
11907 *-n32|*"-n32 ") libmagic=N32;;
11908 *-64|*"-64 ") libmagic=64-bit;;
11909 *) libmagic=never-match;;
11910 esac
11911 lt_cv_deplibs_check_method=pass_all
11912 ;;
11913
11914 # This must be glibc/ELF.
11915 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11916 lt_cv_deplibs_check_method=pass_all
11917 ;;
11918
11919 netbsd*)
11920 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11921 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11922 else
11923 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11924 fi
11925 ;;
11926
11927 newos6*)
11928 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11929 lt_cv_file_magic_cmd=/usr/bin/file
11930 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11931 ;;
11932
11933 *nto* | *qnx*)
11934 lt_cv_deplibs_check_method=pass_all
11935 ;;
11936
11937 openbsd*)
11938 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11939 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11940 else
11941 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11942 fi
11943 ;;
11944
11945 osf3* | osf4* | osf5*)
11946 lt_cv_deplibs_check_method=pass_all
11947 ;;
11948
11949 rdos*)
11950 lt_cv_deplibs_check_method=pass_all
11951 ;;
11952
11953 solaris*)
11954 lt_cv_deplibs_check_method=pass_all
11955 ;;
11956
11957 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11958 lt_cv_deplibs_check_method=pass_all
11959 ;;
11960
11961 sysv4 | sysv4.3*)
11962 case $host_vendor in
11963 motorola)
11964 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]'
11965 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11966 ;;
11967 ncr)
11968 lt_cv_deplibs_check_method=pass_all
11969 ;;
11970 sequent)
11971 lt_cv_file_magic_cmd='/bin/file'
11972 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11973 ;;
11974 sni)
11975 lt_cv_file_magic_cmd='/bin/file'
11976 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11977 lt_cv_file_magic_test_file=/lib/libc.so
11978 ;;
11979 siemens)
11980 lt_cv_deplibs_check_method=pass_all
11981 ;;
11982 pc)
11983 lt_cv_deplibs_check_method=pass_all
11984 ;;
11985 esac
11986 ;;
11987
11988 tpf*)
11989 lt_cv_deplibs_check_method=pass_all
11990 ;;
11991 esac
11992
11993 fi
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11995 $as_echo "$lt_cv_deplibs_check_method" >&6; }
11996
11997 file_magic_glob=
11998 want_nocaseglob=no
11999 if test "$build" = "$host"; then
12000 case $host_os in
12001 mingw* | pw32*)
12002 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12003 want_nocaseglob=yes
12004 else
12005 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12006 fi
12007 ;;
12008 esac
12009 fi
12010
12011 file_magic_cmd=$lt_cv_file_magic_cmd
12012 deplibs_check_method=$lt_cv_deplibs_check_method
12013 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036 if test -n "$ac_tool_prefix"; then
12037 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12038 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12040 $as_echo_n "checking for $ac_word... " >&6; }
12041 if ${ac_cv_prog_DLLTOOL+:} false; then :
12042 $as_echo_n "(cached) " >&6
12043 else
12044 if test -n "$DLLTOOL"; then
12045 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12046 else
12047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12048 for as_dir in $PATH
12049 do
12050 IFS=$as_save_IFS
12051 test -z "$as_dir" && as_dir=.
12052 for ac_exec_ext in '' $ac_executable_extensions; do
12053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12054 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12056 break 2
12057 fi
12058 done
12059 done
12060 IFS=$as_save_IFS
12061
12062 fi
12063 fi
12064 DLLTOOL=$ac_cv_prog_DLLTOOL
12065 if test -n "$DLLTOOL"; then
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12067 $as_echo "$DLLTOOL" >&6; }
12068 else
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12070 $as_echo "no" >&6; }
12071 fi
12072
12073
12074 fi
12075 if test -z "$ac_cv_prog_DLLTOOL"; then
12076 ac_ct_DLLTOOL=$DLLTOOL
12077 # Extract the first word of "dlltool", so it can be a program name with args.
12078 set dummy dlltool; ac_word=$2
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12080 $as_echo_n "checking for $ac_word... " >&6; }
12081 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12082 $as_echo_n "(cached) " >&6
12083 else
12084 if test -n "$ac_ct_DLLTOOL"; then
12085 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12086 else
12087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12088 for as_dir in $PATH
12089 do
12090 IFS=$as_save_IFS
12091 test -z "$as_dir" && as_dir=.
12092 for ac_exec_ext in '' $ac_executable_extensions; do
12093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12094 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12096 break 2
12097 fi
12098 done
12099 done
12100 IFS=$as_save_IFS
12101
12102 fi
12103 fi
12104 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12105 if test -n "$ac_ct_DLLTOOL"; then
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12107 $as_echo "$ac_ct_DLLTOOL" >&6; }
12108 else
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12110 $as_echo "no" >&6; }
12111 fi
12112
12113 if test "x$ac_ct_DLLTOOL" = x; then
12114 DLLTOOL="false"
12115 else
12116 case $cross_compiling:$ac_tool_warned in
12117 yes:)
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12120 ac_tool_warned=yes ;;
12121 esac
12122 DLLTOOL=$ac_ct_DLLTOOL
12123 fi
12124 else
12125 DLLTOOL="$ac_cv_prog_DLLTOOL"
12126 fi
12127
12128 test -z "$DLLTOOL" && DLLTOOL=dlltool
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12140 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12141 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12142 $as_echo_n "(cached) " >&6
12143 else
12144 lt_cv_sharedlib_from_linklib_cmd='unknown'
12145
12146 case $host_os in
12147 cygwin* | mingw* | pw32* | cegcc*)
12148 # two different shell functions defined in ltmain.sh
12149 # decide which to use based on capabilities of $DLLTOOL
12150 case `$DLLTOOL --help 2>&1` in
12151 *--identify-strict*)
12152 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12153 ;;
12154 *)
12155 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12156 ;;
12157 esac
12158 ;;
12159 *)
12160 # fallback: assume linklib IS sharedlib
12161 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12162 ;;
12163 esac
12164
12165 fi
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12167 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12168 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12169 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12170
12171
12172
12173
12174
12175
12176
12177 if test -n "$ac_tool_prefix"; then
12178 for ac_prog in ar
12179 do
12180 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12181 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12183 $as_echo_n "checking for $ac_word... " >&6; }
12184 if ${ac_cv_prog_AR+:} false; then :
12185 $as_echo_n "(cached) " >&6
12186 else
12187 if test -n "$AR"; then
12188 ac_cv_prog_AR="$AR" # Let the user override the test.
12189 else
12190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12191 for as_dir in $PATH
12192 do
12193 IFS=$as_save_IFS
12194 test -z "$as_dir" && as_dir=.
12195 for ac_exec_ext in '' $ac_executable_extensions; do
12196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12197 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12199 break 2
12200 fi
12201 done
12202 done
12203 IFS=$as_save_IFS
12204
12205 fi
12206 fi
12207 AR=$ac_cv_prog_AR
12208 if test -n "$AR"; then
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12210 $as_echo "$AR" >&6; }
12211 else
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12213 $as_echo "no" >&6; }
12214 fi
12215
12216
12217 test -n "$AR" && break
12218 done
12219 fi
12220 if test -z "$AR"; then
12221 ac_ct_AR=$AR
12222 for ac_prog in ar
12223 do
12224 # Extract the first word of "$ac_prog", so it can be a program name with args.
12225 set dummy $ac_prog; ac_word=$2
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12227 $as_echo_n "checking for $ac_word... " >&6; }
12228 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12229 $as_echo_n "(cached) " >&6
12230 else
12231 if test -n "$ac_ct_AR"; then
12232 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12233 else
12234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12235 for as_dir in $PATH
12236 do
12237 IFS=$as_save_IFS
12238 test -z "$as_dir" && as_dir=.
12239 for ac_exec_ext in '' $ac_executable_extensions; do
12240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12241 ac_cv_prog_ac_ct_AR="$ac_prog"
12242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12243 break 2
12244 fi
12245 done
12246 done
12247 IFS=$as_save_IFS
12248
12249 fi
12250 fi
12251 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12252 if test -n "$ac_ct_AR"; then
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12254 $as_echo "$ac_ct_AR" >&6; }
12255 else
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12257 $as_echo "no" >&6; }
12258 fi
12259
12260
12261 test -n "$ac_ct_AR" && break
12262 done
12263
12264 if test "x$ac_ct_AR" = x; then
12265 AR="false"
12266 else
12267 case $cross_compiling:$ac_tool_warned in
12268 yes:)
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12271 ac_tool_warned=yes ;;
12272 esac
12273 AR=$ac_ct_AR
12274 fi
12275 fi
12276
12277 : ${AR=ar}
12278 : ${AR_FLAGS=cru}
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12291 $as_echo_n "checking for archiver @FILE support... " >&6; }
12292 if ${lt_cv_ar_at_file+:} false; then :
12293 $as_echo_n "(cached) " >&6
12294 else
12295 lt_cv_ar_at_file=no
12296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12297 /* end confdefs.h. */
12298
12299 int
12300 main ()
12301 {
12302
12303 ;
12304 return 0;
12305 }
12306 _ACEOF
12307 if ac_fn_c_try_compile "$LINENO"; then :
12308 echo conftest.$ac_objext > conftest.lst
12309 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12310 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12311 (eval $lt_ar_try) 2>&5
12312 ac_status=$?
12313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12314 test $ac_status = 0; }
12315 if test "$ac_status" -eq 0; then
12316 # Ensure the archiver fails upon bogus file names.
12317 rm -f conftest.$ac_objext libconftest.a
12318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12319 (eval $lt_ar_try) 2>&5
12320 ac_status=$?
12321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12322 test $ac_status = 0; }
12323 if test "$ac_status" -ne 0; then
12324 lt_cv_ar_at_file=@
12325 fi
12326 fi
12327 rm -f conftest.* libconftest.a
12328
12329 fi
12330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12331
12332 fi
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12334 $as_echo "$lt_cv_ar_at_file" >&6; }
12335
12336 if test "x$lt_cv_ar_at_file" = xno; then
12337 archiver_list_spec=
12338 else
12339 archiver_list_spec=$lt_cv_ar_at_file
12340 fi
12341
12342
12343
12344
12345
12346
12347
12348 if test -n "$ac_tool_prefix"; then
12349 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12350 set dummy ${ac_tool_prefix}strip; ac_word=$2
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12352 $as_echo_n "checking for $ac_word... " >&6; }
12353 if ${ac_cv_prog_STRIP+:} false; then :
12354 $as_echo_n "(cached) " >&6
12355 else
12356 if test -n "$STRIP"; then
12357 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12358 else
12359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12360 for as_dir in $PATH
12361 do
12362 IFS=$as_save_IFS
12363 test -z "$as_dir" && as_dir=.
12364 for ac_exec_ext in '' $ac_executable_extensions; do
12365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12366 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12368 break 2
12369 fi
12370 done
12371 done
12372 IFS=$as_save_IFS
12373
12374 fi
12375 fi
12376 STRIP=$ac_cv_prog_STRIP
12377 if test -n "$STRIP"; then
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12379 $as_echo "$STRIP" >&6; }
12380 else
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12382 $as_echo "no" >&6; }
12383 fi
12384
12385
12386 fi
12387 if test -z "$ac_cv_prog_STRIP"; then
12388 ac_ct_STRIP=$STRIP
12389 # Extract the first word of "strip", so it can be a program name with args.
12390 set dummy strip; ac_word=$2
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12392 $as_echo_n "checking for $ac_word... " >&6; }
12393 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12394 $as_echo_n "(cached) " >&6
12395 else
12396 if test -n "$ac_ct_STRIP"; then
12397 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12398 else
12399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12400 for as_dir in $PATH
12401 do
12402 IFS=$as_save_IFS
12403 test -z "$as_dir" && as_dir=.
12404 for ac_exec_ext in '' $ac_executable_extensions; do
12405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12406 ac_cv_prog_ac_ct_STRIP="strip"
12407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12408 break 2
12409 fi
12410 done
12411 done
12412 IFS=$as_save_IFS
12413
12414 fi
12415 fi
12416 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12417 if test -n "$ac_ct_STRIP"; then
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12419 $as_echo "$ac_ct_STRIP" >&6; }
12420 else
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12422 $as_echo "no" >&6; }
12423 fi
12424
12425 if test "x$ac_ct_STRIP" = x; then
12426 STRIP=":"
12427 else
12428 case $cross_compiling:$ac_tool_warned in
12429 yes:)
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12432 ac_tool_warned=yes ;;
12433 esac
12434 STRIP=$ac_ct_STRIP
12435 fi
12436 else
12437 STRIP="$ac_cv_prog_STRIP"
12438 fi
12439
12440 test -z "$STRIP" && STRIP=:
12441
12442
12443
12444
12445
12446
12447 if test -n "$ac_tool_prefix"; then
12448 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12449 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12451 $as_echo_n "checking for $ac_word... " >&6; }
12452 if ${ac_cv_prog_RANLIB+:} false; then :
12453 $as_echo_n "(cached) " >&6
12454 else
12455 if test -n "$RANLIB"; then
12456 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12457 else
12458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12459 for as_dir in $PATH
12460 do
12461 IFS=$as_save_IFS
12462 test -z "$as_dir" && as_dir=.
12463 for ac_exec_ext in '' $ac_executable_extensions; do
12464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12465 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12467 break 2
12468 fi
12469 done
12470 done
12471 IFS=$as_save_IFS
12472
12473 fi
12474 fi
12475 RANLIB=$ac_cv_prog_RANLIB
12476 if test -n "$RANLIB"; then
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12478 $as_echo "$RANLIB" >&6; }
12479 else
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12481 $as_echo "no" >&6; }
12482 fi
12483
12484
12485 fi
12486 if test -z "$ac_cv_prog_RANLIB"; then
12487 ac_ct_RANLIB=$RANLIB
12488 # Extract the first word of "ranlib", so it can be a program name with args.
12489 set dummy ranlib; ac_word=$2
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12491 $as_echo_n "checking for $ac_word... " >&6; }
12492 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12493 $as_echo_n "(cached) " >&6
12494 else
12495 if test -n "$ac_ct_RANLIB"; then
12496 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12497 else
12498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12499 for as_dir in $PATH
12500 do
12501 IFS=$as_save_IFS
12502 test -z "$as_dir" && as_dir=.
12503 for ac_exec_ext in '' $ac_executable_extensions; do
12504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12505 ac_cv_prog_ac_ct_RANLIB="ranlib"
12506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12507 break 2
12508 fi
12509 done
12510 done
12511 IFS=$as_save_IFS
12512
12513 fi
12514 fi
12515 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12516 if test -n "$ac_ct_RANLIB"; then
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12518 $as_echo "$ac_ct_RANLIB" >&6; }
12519 else
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12521 $as_echo "no" >&6; }
12522 fi
12523
12524 if test "x$ac_ct_RANLIB" = x; then
12525 RANLIB=":"
12526 else
12527 case $cross_compiling:$ac_tool_warned in
12528 yes:)
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12531 ac_tool_warned=yes ;;
12532 esac
12533 RANLIB=$ac_ct_RANLIB
12534 fi
12535 else
12536 RANLIB="$ac_cv_prog_RANLIB"
12537 fi
12538
12539 test -z "$RANLIB" && RANLIB=:
12540
12541
12542
12543
12544
12545
12546 # Determine commands to create old-style static archives.
12547 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12548 old_postinstall_cmds='chmod 644 $oldlib'
12549 old_postuninstall_cmds=
12550
12551 if test -n "$RANLIB"; then
12552 case $host_os in
12553 openbsd*)
12554 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12555 ;;
12556 *)
12557 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12558 ;;
12559 esac
12560 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12561 fi
12562
12563 case $host_os in
12564 darwin*)
12565 lock_old_archive_extraction=yes ;;
12566 *)
12567 lock_old_archive_extraction=no ;;
12568 esac
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608 # If no C compiler was specified, use CC.
12609 LTCC=${LTCC-"$CC"}
12610
12611 # If no C compiler flags were specified, use CFLAGS.
12612 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12613
12614 # Allow CC to be a program name with arguments.
12615 compiler=$CC
12616
12617
12618 # Check for command to grab the raw symbol name followed by C symbol from nm.
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12620 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12621 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12622 $as_echo_n "(cached) " >&6
12623 else
12624
12625 # These are sane defaults that work on at least a few old systems.
12626 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12627
12628 # Character class describing NM global symbol codes.
12629 symcode='[BCDEGRST]'
12630
12631 # Regexp to match symbols that can be accessed directly from C.
12632 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12633
12634 # Define system-specific variables.
12635 case $host_os in
12636 aix*)
12637 symcode='[BCDT]'
12638 ;;
12639 cygwin* | mingw* | pw32* | cegcc*)
12640 symcode='[ABCDGISTW]'
12641 ;;
12642 hpux*)
12643 if test "$host_cpu" = ia64; then
12644 symcode='[ABCDEGRST]'
12645 fi
12646 ;;
12647 irix* | nonstopux*)
12648 symcode='[BCDEGRST]'
12649 ;;
12650 osf*)
12651 symcode='[BCDEGQRST]'
12652 ;;
12653 solaris*)
12654 symcode='[BDRT]'
12655 ;;
12656 sco3.2v5*)
12657 symcode='[DT]'
12658 ;;
12659 sysv4.2uw2*)
12660 symcode='[DT]'
12661 ;;
12662 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12663 symcode='[ABDT]'
12664 ;;
12665 sysv4)
12666 symcode='[DFNSTU]'
12667 ;;
12668 esac
12669
12670 # If we're using GNU nm, then use its standard symbol codes.
12671 case `$NM -V 2>&1` in
12672 *GNU* | *'with BFD'*)
12673 symcode='[ABCDGIRSTW]' ;;
12674 esac
12675
12676 # Transform an extracted symbol line into a proper C declaration.
12677 # Some systems (esp. on ia64) link data and code symbols differently,
12678 # so use this general approach.
12679 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12680
12681 # Transform an extracted symbol line into symbol name and symbol address
12682 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12683 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'"
12684
12685 # Handle CRLF in mingw tool chain
12686 opt_cr=
12687 case $build_os in
12688 mingw*)
12689 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12690 ;;
12691 esac
12692
12693 # Try without a prefix underscore, then with it.
12694 for ac_symprfx in "" "_"; do
12695
12696 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12697 symxfrm="\\1 $ac_symprfx\\2 \\2"
12698
12699 # Write the raw and C identifiers.
12700 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12701 # Fake it for dumpbin and say T for any non-static function
12702 # and D for any global variable.
12703 # Also find C++ and __fastcall symbols from MSVC++,
12704 # which start with @ or ?.
12705 lt_cv_sys_global_symbol_pipe="$AWK '"\
12706 " {last_section=section; section=\$ 3};"\
12707 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12708 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12709 " \$ 0!~/External *\|/{next};"\
12710 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12711 " {if(hide[section]) next};"\
12712 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12713 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12714 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12715 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12716 " ' prfx=^$ac_symprfx"
12717 else
12718 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12719 fi
12720 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12721
12722 # Check to see that the pipe works correctly.
12723 pipe_works=no
12724
12725 rm -f conftest*
12726 cat > conftest.$ac_ext <<_LT_EOF
12727 #ifdef __cplusplus
12728 extern "C" {
12729 #endif
12730 char nm_test_var;
12731 void nm_test_func(void);
12732 void nm_test_func(void){}
12733 #ifdef __cplusplus
12734 }
12735 #endif
12736 int main(){nm_test_var='a';nm_test_func();return(0);}
12737 _LT_EOF
12738
12739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12740 (eval $ac_compile) 2>&5
12741 ac_status=$?
12742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12743 test $ac_status = 0; }; then
12744 # Now try to grab the symbols.
12745 nlist=conftest.nm
12746 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12747 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12748 ac_status=$?
12749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12750 test $ac_status = 0; } && test -s "$nlist"; then
12751 # Try sorting and uniquifying the output.
12752 if sort "$nlist" | uniq > "$nlist"T; then
12753 mv -f "$nlist"T "$nlist"
12754 else
12755 rm -f "$nlist"T
12756 fi
12757
12758 # Make sure that we snagged all the symbols we need.
12759 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12760 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12761 cat <<_LT_EOF > conftest.$ac_ext
12762 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12763 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12764 /* DATA imports from DLLs on WIN32 con't be const, because runtime
12765 relocations are performed -- see ld's documentation on pseudo-relocs. */
12766 # define LT_DLSYM_CONST
12767 #elif defined(__osf__)
12768 /* This system does not cope well with relocations in const data. */
12769 # define LT_DLSYM_CONST
12770 #else
12771 # define LT_DLSYM_CONST const
12772 #endif
12773
12774 #ifdef __cplusplus
12775 extern "C" {
12776 #endif
12777
12778 _LT_EOF
12779 # Now generate the symbol file.
12780 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12781
12782 cat <<_LT_EOF >> conftest.$ac_ext
12783
12784 /* The mapping between symbol names and symbols. */
12785 LT_DLSYM_CONST struct {
12786 const char *name;
12787 void *address;
12788 }
12789 lt__PROGRAM__LTX_preloaded_symbols[] =
12790 {
12791 { "@PROGRAM@", (void *) 0 },
12792 _LT_EOF
12793 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12794 cat <<\_LT_EOF >> conftest.$ac_ext
12795 {0, (void *) 0}
12796 };
12797
12798 /* This works around a problem in FreeBSD linker */
12799 #ifdef FREEBSD_WORKAROUND
12800 static const void *lt_preloaded_setup() {
12801 return lt__PROGRAM__LTX_preloaded_symbols;
12802 }
12803 #endif
12804
12805 #ifdef __cplusplus
12806 }
12807 #endif
12808 _LT_EOF
12809 # Now try linking the two files.
12810 mv conftest.$ac_objext conftstm.$ac_objext
12811 lt_globsym_save_LIBS=$LIBS
12812 lt_globsym_save_CFLAGS=$CFLAGS
12813 LIBS="conftstm.$ac_objext"
12814 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12815 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12816 (eval $ac_link) 2>&5
12817 ac_status=$?
12818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12819 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12820 pipe_works=yes
12821 fi
12822 LIBS=$lt_globsym_save_LIBS
12823 CFLAGS=$lt_globsym_save_CFLAGS
12824 else
12825 echo "cannot find nm_test_func in $nlist" >&5
12826 fi
12827 else
12828 echo "cannot find nm_test_var in $nlist" >&5
12829 fi
12830 else
12831 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12832 fi
12833 else
12834 echo "$progname: failed program was:" >&5
12835 cat conftest.$ac_ext >&5
12836 fi
12837 rm -rf conftest* conftst*
12838
12839 # Do not use the global_symbol_pipe unless it works.
12840 if test "$pipe_works" = yes; then
12841 break
12842 else
12843 lt_cv_sys_global_symbol_pipe=
12844 fi
12845 done
12846
12847 fi
12848
12849 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12850 lt_cv_sys_global_symbol_to_cdecl=
12851 fi
12852 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12854 $as_echo "failed" >&6; }
12855 else
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12857 $as_echo "ok" >&6; }
12858 fi
12859
12860 # Response file support.
12861 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12862 nm_file_list_spec='@'
12863 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12864 nm_file_list_spec='@'
12865 fi
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12894 $as_echo_n "checking for sysroot... " >&6; }
12895
12896 # Check whether --with-sysroot was given.
12897 if test "${with_sysroot+set}" = set; then :
12898 withval=$with_sysroot;
12899 else
12900 with_sysroot=no
12901 fi
12902
12903
12904 lt_sysroot=
12905 case ${with_sysroot} in #(
12906 yes)
12907 if test "$GCC" = yes; then
12908 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12909 fi
12910 ;; #(
12911 /*)
12912 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12913 ;; #(
12914 no|'')
12915 ;; #(
12916 *)
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12918 $as_echo "${with_sysroot}" >&6; }
12919 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12920 ;;
12921 esac
12922
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12924 $as_echo "${lt_sysroot:-no}" >&6; }
12925
12926
12927
12928
12929
12930 # Check whether --enable-libtool-lock was given.
12931 if test "${enable_libtool_lock+set}" = set; then :
12932 enableval=$enable_libtool_lock;
12933 fi
12934
12935 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12936
12937 # Some flags need to be propagated to the compiler or linker for good
12938 # libtool support.
12939 case $host in
12940 ia64-*-hpux*)
12941 # Find out which ABI we are using.
12942 echo 'int i;' > conftest.$ac_ext
12943 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12944 (eval $ac_compile) 2>&5
12945 ac_status=$?
12946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12947 test $ac_status = 0; }; then
12948 case `/usr/bin/file conftest.$ac_objext` in
12949 *ELF-32*)
12950 HPUX_IA64_MODE="32"
12951 ;;
12952 *ELF-64*)
12953 HPUX_IA64_MODE="64"
12954 ;;
12955 esac
12956 fi
12957 rm -rf conftest*
12958 ;;
12959 *-*-irix6*)
12960 # Find out which ABI we are using.
12961 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12962 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12963 (eval $ac_compile) 2>&5
12964 ac_status=$?
12965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12966 test $ac_status = 0; }; then
12967 if test "$lt_cv_prog_gnu_ld" = yes; then
12968 case `/usr/bin/file conftest.$ac_objext` in
12969 *32-bit*)
12970 LD="${LD-ld} -melf32bsmip"
12971 ;;
12972 *N32*)
12973 LD="${LD-ld} -melf32bmipn32"
12974 ;;
12975 *64-bit*)
12976 LD="${LD-ld} -melf64bmip"
12977 ;;
12978 esac
12979 else
12980 case `/usr/bin/file conftest.$ac_objext` in
12981 *32-bit*)
12982 LD="${LD-ld} -32"
12983 ;;
12984 *N32*)
12985 LD="${LD-ld} -n32"
12986 ;;
12987 *64-bit*)
12988 LD="${LD-ld} -64"
12989 ;;
12990 esac
12991 fi
12992 fi
12993 rm -rf conftest*
12994 ;;
12995
12996 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12997 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12998 # Find out which ABI we are using.
12999 echo 'int i;' > conftest.$ac_ext
13000 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13001 (eval $ac_compile) 2>&5
13002 ac_status=$?
13003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13004 test $ac_status = 0; }; then
13005 case `/usr/bin/file conftest.o` in
13006 *32-bit*)
13007 case $host in
13008 x86_64-*kfreebsd*-gnu)
13009 LD="${LD-ld} -m elf_i386_fbsd"
13010 ;;
13011 x86_64-*linux*)
13012 LD="${LD-ld} -m elf_i386"
13013 ;;
13014 ppc64-*linux*|powerpc64-*linux*)
13015 LD="${LD-ld} -m elf32ppclinux"
13016 ;;
13017 s390x-*linux*)
13018 LD="${LD-ld} -m elf_s390"
13019 ;;
13020 sparc64-*linux*)
13021 LD="${LD-ld} -m elf32_sparc"
13022 ;;
13023 esac
13024 ;;
13025 *64-bit*)
13026 case $host in
13027 x86_64-*kfreebsd*-gnu)
13028 LD="${LD-ld} -m elf_x86_64_fbsd"
13029 ;;
13030 x86_64-*linux*)
13031 LD="${LD-ld} -m elf_x86_64"
13032 ;;
13033 ppc*-*linux*|powerpc*-*linux*)
13034 LD="${LD-ld} -m elf64ppc"
13035 ;;
13036 s390*-*linux*|s390*-*tpf*)
13037 LD="${LD-ld} -m elf64_s390"
13038 ;;
13039 sparc*-*linux*)
13040 LD="${LD-ld} -m elf64_sparc"
13041 ;;
13042 esac
13043 ;;
13044 esac
13045 fi
13046 rm -rf conftest*
13047 ;;
13048
13049 *-*-sco3.2v5*)
13050 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13051 SAVE_CFLAGS="$CFLAGS"
13052 CFLAGS="$CFLAGS -belf"
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13054 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13055 if ${lt_cv_cc_needs_belf+:} false; then :
13056 $as_echo_n "(cached) " >&6
13057 else
13058 ac_ext=c
13059 ac_cpp='$CPP $CPPFLAGS'
13060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13063
13064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13065 /* end confdefs.h. */
13066
13067 int
13068 main ()
13069 {
13070
13071 ;
13072 return 0;
13073 }
13074 _ACEOF
13075 if ac_fn_c_try_link "$LINENO"; then :
13076 lt_cv_cc_needs_belf=yes
13077 else
13078 lt_cv_cc_needs_belf=no
13079 fi
13080 rm -f core conftest.err conftest.$ac_objext \
13081 conftest$ac_exeext conftest.$ac_ext
13082 ac_ext=c
13083 ac_cpp='$CPP $CPPFLAGS'
13084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13087
13088 fi
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13090 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13091 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13092 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13093 CFLAGS="$SAVE_CFLAGS"
13094 fi
13095 ;;
13096 *-*solaris*)
13097 # Find out which ABI we are using.
13098 echo 'int i;' > conftest.$ac_ext
13099 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13100 (eval $ac_compile) 2>&5
13101 ac_status=$?
13102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13103 test $ac_status = 0; }; then
13104 case `/usr/bin/file conftest.o` in
13105 *64-bit*)
13106 case $lt_cv_prog_gnu_ld in
13107 yes*)
13108 case $host in
13109 i?86-*-solaris*)
13110 LD="${LD-ld} -m elf_x86_64"
13111 ;;
13112 sparc*-*-solaris*)
13113 LD="${LD-ld} -m elf64_sparc"
13114 ;;
13115 esac
13116 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13117 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13118 LD="${LD-ld}_sol2"
13119 fi
13120 ;;
13121 *)
13122 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13123 LD="${LD-ld} -64"
13124 fi
13125 ;;
13126 esac
13127 ;;
13128 esac
13129 fi
13130 rm -rf conftest*
13131 ;;
13132 esac
13133
13134 need_locks="$enable_libtool_lock"
13135
13136 if test -n "$ac_tool_prefix"; then
13137 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13138 set dummy ${ac_tool_prefix}mt; ac_word=$2
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13140 $as_echo_n "checking for $ac_word... " >&6; }
13141 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13142 $as_echo_n "(cached) " >&6
13143 else
13144 if test -n "$MANIFEST_TOOL"; then
13145 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13146 else
13147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13148 for as_dir in $PATH
13149 do
13150 IFS=$as_save_IFS
13151 test -z "$as_dir" && as_dir=.
13152 for ac_exec_ext in '' $ac_executable_extensions; do
13153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13154 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13156 break 2
13157 fi
13158 done
13159 done
13160 IFS=$as_save_IFS
13161
13162 fi
13163 fi
13164 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13165 if test -n "$MANIFEST_TOOL"; then
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13167 $as_echo "$MANIFEST_TOOL" >&6; }
13168 else
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13170 $as_echo "no" >&6; }
13171 fi
13172
13173
13174 fi
13175 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13176 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13177 # Extract the first word of "mt", so it can be a program name with args.
13178 set dummy mt; ac_word=$2
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13180 $as_echo_n "checking for $ac_word... " >&6; }
13181 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13182 $as_echo_n "(cached) " >&6
13183 else
13184 if test -n "$ac_ct_MANIFEST_TOOL"; then
13185 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13186 else
13187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13188 for as_dir in $PATH
13189 do
13190 IFS=$as_save_IFS
13191 test -z "$as_dir" && as_dir=.
13192 for ac_exec_ext in '' $ac_executable_extensions; do
13193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13194 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13196 break 2
13197 fi
13198 done
13199 done
13200 IFS=$as_save_IFS
13201
13202 fi
13203 fi
13204 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13205 if test -n "$ac_ct_MANIFEST_TOOL"; then
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13207 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13208 else
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13210 $as_echo "no" >&6; }
13211 fi
13212
13213 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13214 MANIFEST_TOOL=":"
13215 else
13216 case $cross_compiling:$ac_tool_warned in
13217 yes:)
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13220 ac_tool_warned=yes ;;
13221 esac
13222 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13223 fi
13224 else
13225 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13226 fi
13227
13228 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13230 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13231 if ${lt_cv_path_mainfest_tool+:} false; then :
13232 $as_echo_n "(cached) " >&6
13233 else
13234 lt_cv_path_mainfest_tool=no
13235 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13236 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13237 cat conftest.err >&5
13238 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13239 lt_cv_path_mainfest_tool=yes
13240 fi
13241 rm -f conftest*
13242 fi
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13244 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
13245 if test "x$lt_cv_path_mainfest_tool" != xyes; then
13246 MANIFEST_TOOL=:
13247 fi
13248
13249
13250
13251
13252
13253
13254 case $host_os in
13255 rhapsody* | darwin*)
13256 if test -n "$ac_tool_prefix"; then
13257 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13258 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13260 $as_echo_n "checking for $ac_word... " >&6; }
13261 if ${ac_cv_prog_DSYMUTIL+:} false; then :
13262 $as_echo_n "(cached) " >&6
13263 else
13264 if test -n "$DSYMUTIL"; then
13265 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13266 else
13267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13268 for as_dir in $PATH
13269 do
13270 IFS=$as_save_IFS
13271 test -z "$as_dir" && as_dir=.
13272 for ac_exec_ext in '' $ac_executable_extensions; do
13273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13274 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13276 break 2
13277 fi
13278 done
13279 done
13280 IFS=$as_save_IFS
13281
13282 fi
13283 fi
13284 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13285 if test -n "$DSYMUTIL"; then
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13287 $as_echo "$DSYMUTIL" >&6; }
13288 else
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13290 $as_echo "no" >&6; }
13291 fi
13292
13293
13294 fi
13295 if test -z "$ac_cv_prog_DSYMUTIL"; then
13296 ac_ct_DSYMUTIL=$DSYMUTIL
13297 # Extract the first word of "dsymutil", so it can be a program name with args.
13298 set dummy dsymutil; ac_word=$2
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13300 $as_echo_n "checking for $ac_word... " >&6; }
13301 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13302 $as_echo_n "(cached) " >&6
13303 else
13304 if test -n "$ac_ct_DSYMUTIL"; then
13305 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13306 else
13307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13308 for as_dir in $PATH
13309 do
13310 IFS=$as_save_IFS
13311 test -z "$as_dir" && as_dir=.
13312 for ac_exec_ext in '' $ac_executable_extensions; do
13313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13314 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13316 break 2
13317 fi
13318 done
13319 done
13320 IFS=$as_save_IFS
13321
13322 fi
13323 fi
13324 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13325 if test -n "$ac_ct_DSYMUTIL"; then
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13327 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13328 else
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13330 $as_echo "no" >&6; }
13331 fi
13332
13333 if test "x$ac_ct_DSYMUTIL" = x; then
13334 DSYMUTIL=":"
13335 else
13336 case $cross_compiling:$ac_tool_warned in
13337 yes:)
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13339 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13340 ac_tool_warned=yes ;;
13341 esac
13342 DSYMUTIL=$ac_ct_DSYMUTIL
13343 fi
13344 else
13345 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13346 fi
13347
13348 if test -n "$ac_tool_prefix"; then
13349 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13350 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13352 $as_echo_n "checking for $ac_word... " >&6; }
13353 if ${ac_cv_prog_NMEDIT+:} false; then :
13354 $as_echo_n "(cached) " >&6
13355 else
13356 if test -n "$NMEDIT"; then
13357 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13358 else
13359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13360 for as_dir in $PATH
13361 do
13362 IFS=$as_save_IFS
13363 test -z "$as_dir" && as_dir=.
13364 for ac_exec_ext in '' $ac_executable_extensions; do
13365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13366 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13368 break 2
13369 fi
13370 done
13371 done
13372 IFS=$as_save_IFS
13373
13374 fi
13375 fi
13376 NMEDIT=$ac_cv_prog_NMEDIT
13377 if test -n "$NMEDIT"; then
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13379 $as_echo "$NMEDIT" >&6; }
13380 else
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13382 $as_echo "no" >&6; }
13383 fi
13384
13385
13386 fi
13387 if test -z "$ac_cv_prog_NMEDIT"; then
13388 ac_ct_NMEDIT=$NMEDIT
13389 # Extract the first word of "nmedit", so it can be a program name with args.
13390 set dummy nmedit; ac_word=$2
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13392 $as_echo_n "checking for $ac_word... " >&6; }
13393 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13394 $as_echo_n "(cached) " >&6
13395 else
13396 if test -n "$ac_ct_NMEDIT"; then
13397 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13398 else
13399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13400 for as_dir in $PATH
13401 do
13402 IFS=$as_save_IFS
13403 test -z "$as_dir" && as_dir=.
13404 for ac_exec_ext in '' $ac_executable_extensions; do
13405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13406 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13408 break 2
13409 fi
13410 done
13411 done
13412 IFS=$as_save_IFS
13413
13414 fi
13415 fi
13416 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13417 if test -n "$ac_ct_NMEDIT"; then
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13419 $as_echo "$ac_ct_NMEDIT" >&6; }
13420 else
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13422 $as_echo "no" >&6; }
13423 fi
13424
13425 if test "x$ac_ct_NMEDIT" = x; then
13426 NMEDIT=":"
13427 else
13428 case $cross_compiling:$ac_tool_warned in
13429 yes:)
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13432 ac_tool_warned=yes ;;
13433 esac
13434 NMEDIT=$ac_ct_NMEDIT
13435 fi
13436 else
13437 NMEDIT="$ac_cv_prog_NMEDIT"
13438 fi
13439
13440 if test -n "$ac_tool_prefix"; then
13441 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13442 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13444 $as_echo_n "checking for $ac_word... " >&6; }
13445 if ${ac_cv_prog_LIPO+:} false; then :
13446 $as_echo_n "(cached) " >&6
13447 else
13448 if test -n "$LIPO"; then
13449 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13450 else
13451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13452 for as_dir in $PATH
13453 do
13454 IFS=$as_save_IFS
13455 test -z "$as_dir" && as_dir=.
13456 for ac_exec_ext in '' $ac_executable_extensions; do
13457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13458 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13460 break 2
13461 fi
13462 done
13463 done
13464 IFS=$as_save_IFS
13465
13466 fi
13467 fi
13468 LIPO=$ac_cv_prog_LIPO
13469 if test -n "$LIPO"; then
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13471 $as_echo "$LIPO" >&6; }
13472 else
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13474 $as_echo "no" >&6; }
13475 fi
13476
13477
13478 fi
13479 if test -z "$ac_cv_prog_LIPO"; then
13480 ac_ct_LIPO=$LIPO
13481 # Extract the first word of "lipo", so it can be a program name with args.
13482 set dummy lipo; ac_word=$2
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13484 $as_echo_n "checking for $ac_word... " >&6; }
13485 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13486 $as_echo_n "(cached) " >&6
13487 else
13488 if test -n "$ac_ct_LIPO"; then
13489 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13490 else
13491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13492 for as_dir in $PATH
13493 do
13494 IFS=$as_save_IFS
13495 test -z "$as_dir" && as_dir=.
13496 for ac_exec_ext in '' $ac_executable_extensions; do
13497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13498 ac_cv_prog_ac_ct_LIPO="lipo"
13499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13500 break 2
13501 fi
13502 done
13503 done
13504 IFS=$as_save_IFS
13505
13506 fi
13507 fi
13508 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13509 if test -n "$ac_ct_LIPO"; then
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13511 $as_echo "$ac_ct_LIPO" >&6; }
13512 else
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13514 $as_echo "no" >&6; }
13515 fi
13516
13517 if test "x$ac_ct_LIPO" = x; then
13518 LIPO=":"
13519 else
13520 case $cross_compiling:$ac_tool_warned in
13521 yes:)
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13524 ac_tool_warned=yes ;;
13525 esac
13526 LIPO=$ac_ct_LIPO
13527 fi
13528 else
13529 LIPO="$ac_cv_prog_LIPO"
13530 fi
13531
13532 if test -n "$ac_tool_prefix"; then
13533 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13534 set dummy ${ac_tool_prefix}otool; ac_word=$2
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13536 $as_echo_n "checking for $ac_word... " >&6; }
13537 if ${ac_cv_prog_OTOOL+:} false; then :
13538 $as_echo_n "(cached) " >&6
13539 else
13540 if test -n "$OTOOL"; then
13541 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13542 else
13543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13544 for as_dir in $PATH
13545 do
13546 IFS=$as_save_IFS
13547 test -z "$as_dir" && as_dir=.
13548 for ac_exec_ext in '' $ac_executable_extensions; do
13549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13550 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13552 break 2
13553 fi
13554 done
13555 done
13556 IFS=$as_save_IFS
13557
13558 fi
13559 fi
13560 OTOOL=$ac_cv_prog_OTOOL
13561 if test -n "$OTOOL"; then
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13563 $as_echo "$OTOOL" >&6; }
13564 else
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13566 $as_echo "no" >&6; }
13567 fi
13568
13569
13570 fi
13571 if test -z "$ac_cv_prog_OTOOL"; then
13572 ac_ct_OTOOL=$OTOOL
13573 # Extract the first word of "otool", so it can be a program name with args.
13574 set dummy otool; ac_word=$2
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13576 $as_echo_n "checking for $ac_word... " >&6; }
13577 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13578 $as_echo_n "(cached) " >&6
13579 else
13580 if test -n "$ac_ct_OTOOL"; then
13581 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13582 else
13583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13584 for as_dir in $PATH
13585 do
13586 IFS=$as_save_IFS
13587 test -z "$as_dir" && as_dir=.
13588 for ac_exec_ext in '' $ac_executable_extensions; do
13589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13590 ac_cv_prog_ac_ct_OTOOL="otool"
13591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13592 break 2
13593 fi
13594 done
13595 done
13596 IFS=$as_save_IFS
13597
13598 fi
13599 fi
13600 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13601 if test -n "$ac_ct_OTOOL"; then
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13603 $as_echo "$ac_ct_OTOOL" >&6; }
13604 else
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13606 $as_echo "no" >&6; }
13607 fi
13608
13609 if test "x$ac_ct_OTOOL" = x; then
13610 OTOOL=":"
13611 else
13612 case $cross_compiling:$ac_tool_warned in
13613 yes:)
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13616 ac_tool_warned=yes ;;
13617 esac
13618 OTOOL=$ac_ct_OTOOL
13619 fi
13620 else
13621 OTOOL="$ac_cv_prog_OTOOL"
13622 fi
13623
13624 if test -n "$ac_tool_prefix"; then
13625 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13626 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13628 $as_echo_n "checking for $ac_word... " >&6; }
13629 if ${ac_cv_prog_OTOOL64+:} false; then :
13630 $as_echo_n "(cached) " >&6
13631 else
13632 if test -n "$OTOOL64"; then
13633 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13634 else
13635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13636 for as_dir in $PATH
13637 do
13638 IFS=$as_save_IFS
13639 test -z "$as_dir" && as_dir=.
13640 for ac_exec_ext in '' $ac_executable_extensions; do
13641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13642 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13644 break 2
13645 fi
13646 done
13647 done
13648 IFS=$as_save_IFS
13649
13650 fi
13651 fi
13652 OTOOL64=$ac_cv_prog_OTOOL64
13653 if test -n "$OTOOL64"; then
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13655 $as_echo "$OTOOL64" >&6; }
13656 else
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13658 $as_echo "no" >&6; }
13659 fi
13660
13661
13662 fi
13663 if test -z "$ac_cv_prog_OTOOL64"; then
13664 ac_ct_OTOOL64=$OTOOL64
13665 # Extract the first word of "otool64", so it can be a program name with args.
13666 set dummy otool64; ac_word=$2
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13668 $as_echo_n "checking for $ac_word... " >&6; }
13669 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13670 $as_echo_n "(cached) " >&6
13671 else
13672 if test -n "$ac_ct_OTOOL64"; then
13673 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13674 else
13675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13676 for as_dir in $PATH
13677 do
13678 IFS=$as_save_IFS
13679 test -z "$as_dir" && as_dir=.
13680 for ac_exec_ext in '' $ac_executable_extensions; do
13681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13682 ac_cv_prog_ac_ct_OTOOL64="otool64"
13683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13684 break 2
13685 fi
13686 done
13687 done
13688 IFS=$as_save_IFS
13689
13690 fi
13691 fi
13692 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13693 if test -n "$ac_ct_OTOOL64"; then
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13695 $as_echo "$ac_ct_OTOOL64" >&6; }
13696 else
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13698 $as_echo "no" >&6; }
13699 fi
13700
13701 if test "x$ac_ct_OTOOL64" = x; then
13702 OTOOL64=":"
13703 else
13704 case $cross_compiling:$ac_tool_warned in
13705 yes:)
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13708 ac_tool_warned=yes ;;
13709 esac
13710 OTOOL64=$ac_ct_OTOOL64
13711 fi
13712 else
13713 OTOOL64="$ac_cv_prog_OTOOL64"
13714 fi
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13743 $as_echo_n "checking for -single_module linker flag... " >&6; }
13744 if ${lt_cv_apple_cc_single_mod+:} false; then :
13745 $as_echo_n "(cached) " >&6
13746 else
13747 lt_cv_apple_cc_single_mod=no
13748 if test -z "${LT_MULTI_MODULE}"; then
13749 # By default we will add the -single_module flag. You can override
13750 # by either setting the environment variable LT_MULTI_MODULE
13751 # non-empty at configure time, or by adding -multi_module to the
13752 # link flags.
13753 rm -rf libconftest.dylib*
13754 echo "int foo(void){return 1;}" > conftest.c
13755 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13756 -dynamiclib -Wl,-single_module conftest.c" >&5
13757 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13758 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13759 _lt_result=$?
13760 # If there is a non-empty error log, and "single_module"
13761 # appears in it, assume the flag caused a linker warning
13762 if test -s conftest.err && $GREP single_module conftest.err; then
13763 cat conftest.err >&5
13764 # Otherwise, if the output was created with a 0 exit code from
13765 # the compiler, it worked.
13766 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13767 lt_cv_apple_cc_single_mod=yes
13768 else
13769 cat conftest.err >&5
13770 fi
13771 rm -rf libconftest.dylib*
13772 rm -f conftest.*
13773 fi
13774 fi
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13776 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13777
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13779 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13780 if ${lt_cv_ld_exported_symbols_list+:} false; then :
13781 $as_echo_n "(cached) " >&6
13782 else
13783 lt_cv_ld_exported_symbols_list=no
13784 save_LDFLAGS=$LDFLAGS
13785 echo "_main" > conftest.sym
13786 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13788 /* end confdefs.h. */
13789
13790 int
13791 main ()
13792 {
13793
13794 ;
13795 return 0;
13796 }
13797 _ACEOF
13798 if ac_fn_c_try_link "$LINENO"; then :
13799 lt_cv_ld_exported_symbols_list=yes
13800 else
13801 lt_cv_ld_exported_symbols_list=no
13802 fi
13803 rm -f core conftest.err conftest.$ac_objext \
13804 conftest$ac_exeext conftest.$ac_ext
13805 LDFLAGS="$save_LDFLAGS"
13806
13807 fi
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13809 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13810
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13812 $as_echo_n "checking for -force_load linker flag... " >&6; }
13813 if ${lt_cv_ld_force_load+:} false; then :
13814 $as_echo_n "(cached) " >&6
13815 else
13816 lt_cv_ld_force_load=no
13817 cat > conftest.c << _LT_EOF
13818 int forced_loaded() { return 2;}
13819 _LT_EOF
13820 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13821 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13822 echo "$AR cru libconftest.a conftest.o" >&5
13823 $AR cru libconftest.a conftest.o 2>&5
13824 echo "$RANLIB libconftest.a" >&5
13825 $RANLIB libconftest.a 2>&5
13826 cat > conftest.c << _LT_EOF
13827 int main() { return 0;}
13828 _LT_EOF
13829 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13830 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13831 _lt_result=$?
13832 if test -s conftest.err && $GREP force_load conftest.err; then
13833 cat conftest.err >&5
13834 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13835 lt_cv_ld_force_load=yes
13836 else
13837 cat conftest.err >&5
13838 fi
13839 rm -f conftest.err libconftest.a conftest conftest.c
13840 rm -rf conftest.dSYM
13841
13842 fi
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13844 $as_echo "$lt_cv_ld_force_load" >&6; }
13845 case $host_os in
13846 rhapsody* | darwin1.[012])
13847 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13848 darwin1.*)
13849 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13850 darwin*) # darwin 5.x on
13851 # if running on 10.5 or later, the deployment target defaults
13852 # to the OS version, if on x86, and 10.4, the deployment
13853 # target defaults to 10.4. Don't you love it?
13854 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13855 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13856 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13857 10.[012]*)
13858 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13859 10.*)
13860 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13861 esac
13862 ;;
13863 esac
13864 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13865 _lt_dar_single_mod='$single_module'
13866 fi
13867 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13868 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13869 else
13870 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13871 fi
13872 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13873 _lt_dsymutil='~$DSYMUTIL $lib || :'
13874 else
13875 _lt_dsymutil=
13876 fi
13877 ;;
13878 esac
13879
13880 for ac_header in dlfcn.h
13881 do :
13882 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13883 "
13884 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13885 cat >>confdefs.h <<_ACEOF
13886 #define HAVE_DLFCN_H 1
13887 _ACEOF
13888
13889 fi
13890
13891 done
13892
13893
13894
13895
13896
13897 # Set options
13898
13899
13900
13901 enable_dlopen=no
13902
13903
13904 enable_win32_dll=no
13905
13906
13907 # Check whether --enable-shared was given.
13908 if test "${enable_shared+set}" = set; then :
13909 enableval=$enable_shared; p=${PACKAGE-default}
13910 case $enableval in
13911 yes) enable_shared=yes ;;
13912 no) enable_shared=no ;;
13913 *)
13914 enable_shared=no
13915 # Look at the argument we got. We use all the common list separators.
13916 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13917 for pkg in $enableval; do
13918 IFS="$lt_save_ifs"
13919 if test "X$pkg" = "X$p"; then
13920 enable_shared=yes
13921 fi
13922 done
13923 IFS="$lt_save_ifs"
13924 ;;
13925 esac
13926 else
13927 enable_shared=yes
13928 fi
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940 # Check whether --with-pic was given.
13941 if test "${with_pic+set}" = set; then :
13942 withval=$with_pic; lt_p=${PACKAGE-default}
13943 case $withval in
13944 yes|no) pic_mode=$withval ;;
13945 *)
13946 pic_mode=default
13947 # Look at the argument we got. We use all the common list separators.
13948 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13949 for lt_pkg in $withval; do
13950 IFS="$lt_save_ifs"
13951 if test "X$lt_pkg" = "X$lt_p"; then
13952 pic_mode=yes
13953 fi
13954 done
13955 IFS="$lt_save_ifs"
13956 ;;
13957 esac
13958 else
13959 pic_mode=default
13960 fi
13961
13962
13963 test -z "$pic_mode" && pic_mode=default
13964
13965
13966
13967
13968
13969
13970
13971 # Check whether --enable-fast-install was given.
13972 if test "${enable_fast_install+set}" = set; then :
13973 enableval=$enable_fast_install; p=${PACKAGE-default}
13974 case $enableval in
13975 yes) enable_fast_install=yes ;;
13976 no) enable_fast_install=no ;;
13977 *)
13978 enable_fast_install=no
13979 # Look at the argument we got. We use all the common list separators.
13980 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13981 for pkg in $enableval; do
13982 IFS="$lt_save_ifs"
13983 if test "X$pkg" = "X$p"; then
13984 enable_fast_install=yes
13985 fi
13986 done
13987 IFS="$lt_save_ifs"
13988 ;;
13989 esac
13990 else
13991 enable_fast_install=yes
13992 fi
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004 # This can be used to rebuild libtool when needed
14005 LIBTOOL_DEPS="$ltmain"
14006
14007 # Always use our own libtool.
14008 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039 test -z "$LN_S" && LN_S="ln -s"
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054 if test -n "${ZSH_VERSION+set}" ; then
14055 setopt NO_GLOB_SUBST
14056 fi
14057
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14059 $as_echo_n "checking for objdir... " >&6; }
14060 if ${lt_cv_objdir+:} false; then :
14061 $as_echo_n "(cached) " >&6
14062 else
14063 rm -f .libs 2>/dev/null
14064 mkdir .libs 2>/dev/null
14065 if test -d .libs; then
14066 lt_cv_objdir=.libs
14067 else
14068 # MS-DOS does not allow filenames that begin with a dot.
14069 lt_cv_objdir=_libs
14070 fi
14071 rmdir .libs 2>/dev/null
14072 fi
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14074 $as_echo "$lt_cv_objdir" >&6; }
14075 objdir=$lt_cv_objdir
14076
14077
14078
14079
14080
14081 cat >>confdefs.h <<_ACEOF
14082 #define LT_OBJDIR "$lt_cv_objdir/"
14083 _ACEOF
14084
14085
14086
14087
14088 case $host_os in
14089 aix3*)
14090 # AIX sometimes has problems with the GCC collect2 program. For some
14091 # reason, if we set the COLLECT_NAMES environment variable, the problems
14092 # vanish in a puff of smoke.
14093 if test "X${COLLECT_NAMES+set}" != Xset; then
14094 COLLECT_NAMES=
14095 export COLLECT_NAMES
14096 fi
14097 ;;
14098 esac
14099
14100 # Global variables:
14101 ofile=libtool
14102 can_build_shared=yes
14103
14104 # All known linkers require a `.a' archive for static linking (except MSVC,
14105 # which needs '.lib').
14106 libext=a
14107
14108 with_gnu_ld="$lt_cv_prog_gnu_ld"
14109
14110 old_CC="$CC"
14111 old_CFLAGS="$CFLAGS"
14112
14113 # Set sane defaults for various variables
14114 test -z "$CC" && CC=cc
14115 test -z "$LTCC" && LTCC=$CC
14116 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14117 test -z "$LD" && LD=ld
14118 test -z "$ac_objext" && ac_objext=o
14119
14120 for cc_temp in $compiler""; do
14121 case $cc_temp in
14122 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14123 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14124 \-*) ;;
14125 *) break;;
14126 esac
14127 done
14128 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14129
14130
14131 # Only perform the check for file, if the check method requires it
14132 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14133 case $deplibs_check_method in
14134 file_magic*)
14135 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14137 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14138 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14139 $as_echo_n "(cached) " >&6
14140 else
14141 case $MAGIC_CMD in
14142 [\\/*] | ?:[\\/]*)
14143 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14144 ;;
14145 *)
14146 lt_save_MAGIC_CMD="$MAGIC_CMD"
14147 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14148 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14149 for ac_dir in $ac_dummy; do
14150 IFS="$lt_save_ifs"
14151 test -z "$ac_dir" && ac_dir=.
14152 if test -f $ac_dir/${ac_tool_prefix}file; then
14153 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14154 if test -n "$file_magic_test_file"; then
14155 case $deplibs_check_method in
14156 "file_magic "*)
14157 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14158 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14159 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14160 $EGREP "$file_magic_regex" > /dev/null; then
14161 :
14162 else
14163 cat <<_LT_EOF 1>&2
14164
14165 *** Warning: the command libtool uses to detect shared libraries,
14166 *** $file_magic_cmd, produces output that libtool cannot recognize.
14167 *** The result is that libtool may fail to recognize shared libraries
14168 *** as such. This will affect the creation of libtool libraries that
14169 *** depend on shared libraries, but programs linked with such libtool
14170 *** libraries will work regardless of this problem. Nevertheless, you
14171 *** may want to report the problem to your system manager and/or to
14172 *** bug-libtool@gnu.org
14173
14174 _LT_EOF
14175 fi ;;
14176 esac
14177 fi
14178 break
14179 fi
14180 done
14181 IFS="$lt_save_ifs"
14182 MAGIC_CMD="$lt_save_MAGIC_CMD"
14183 ;;
14184 esac
14185 fi
14186
14187 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14188 if test -n "$MAGIC_CMD"; then
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14190 $as_echo "$MAGIC_CMD" >&6; }
14191 else
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14193 $as_echo "no" >&6; }
14194 fi
14195
14196
14197
14198
14199
14200 if test -z "$lt_cv_path_MAGIC_CMD"; then
14201 if test -n "$ac_tool_prefix"; then
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14203 $as_echo_n "checking for file... " >&6; }
14204 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14205 $as_echo_n "(cached) " >&6
14206 else
14207 case $MAGIC_CMD in
14208 [\\/*] | ?:[\\/]*)
14209 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14210 ;;
14211 *)
14212 lt_save_MAGIC_CMD="$MAGIC_CMD"
14213 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14214 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14215 for ac_dir in $ac_dummy; do
14216 IFS="$lt_save_ifs"
14217 test -z "$ac_dir" && ac_dir=.
14218 if test -f $ac_dir/file; then
14219 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14220 if test -n "$file_magic_test_file"; then
14221 case $deplibs_check_method in
14222 "file_magic "*)
14223 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14224 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14225 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14226 $EGREP "$file_magic_regex" > /dev/null; then
14227 :
14228 else
14229 cat <<_LT_EOF 1>&2
14230
14231 *** Warning: the command libtool uses to detect shared libraries,
14232 *** $file_magic_cmd, produces output that libtool cannot recognize.
14233 *** The result is that libtool may fail to recognize shared libraries
14234 *** as such. This will affect the creation of libtool libraries that
14235 *** depend on shared libraries, but programs linked with such libtool
14236 *** libraries will work regardless of this problem. Nevertheless, you
14237 *** may want to report the problem to your system manager and/or to
14238 *** bug-libtool@gnu.org
14239
14240 _LT_EOF
14241 fi ;;
14242 esac
14243 fi
14244 break
14245 fi
14246 done
14247 IFS="$lt_save_ifs"
14248 MAGIC_CMD="$lt_save_MAGIC_CMD"
14249 ;;
14250 esac
14251 fi
14252
14253 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14254 if test -n "$MAGIC_CMD"; then
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14256 $as_echo "$MAGIC_CMD" >&6; }
14257 else
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14259 $as_echo "no" >&6; }
14260 fi
14261
14262
14263 else
14264 MAGIC_CMD=:
14265 fi
14266 fi
14267
14268 fi
14269 ;;
14270 esac
14271
14272 # Use C for the default configuration in the libtool script
14273
14274 lt_save_CC="$CC"
14275 ac_ext=c
14276 ac_cpp='$CPP $CPPFLAGS'
14277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14280
14281
14282 # Source file extension for C test sources.
14283 ac_ext=c
14284
14285 # Object file extension for compiled C test sources.
14286 objext=o
14287 objext=$objext
14288
14289 # Code to be used in simple compile tests
14290 lt_simple_compile_test_code="int some_variable = 0;"
14291
14292 # Code to be used in simple link tests
14293 lt_simple_link_test_code='int main(){return(0);}'
14294
14295
14296
14297
14298
14299
14300
14301 # If no C compiler was specified, use CC.
14302 LTCC=${LTCC-"$CC"}
14303
14304 # If no C compiler flags were specified, use CFLAGS.
14305 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14306
14307 # Allow CC to be a program name with arguments.
14308 compiler=$CC
14309
14310 # Save the default compiler, since it gets overwritten when the other
14311 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14312 compiler_DEFAULT=$CC
14313
14314 # save warnings/boilerplate of simple test code
14315 ac_outfile=conftest.$ac_objext
14316 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14317 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14318 _lt_compiler_boilerplate=`cat conftest.err`
14319 $RM conftest*
14320
14321 ac_outfile=conftest.$ac_objext
14322 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14323 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14324 _lt_linker_boilerplate=`cat conftest.err`
14325 $RM -r conftest*
14326
14327
14328 if test -n "$compiler"; then
14329
14330 lt_prog_compiler_no_builtin_flag=
14331
14332 if test "$GCC" = yes; then
14333 case $cc_basename in
14334 nvcc*)
14335 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14336 *)
14337 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14338 esac
14339
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14341 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14342 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14343 $as_echo_n "(cached) " >&6
14344 else
14345 lt_cv_prog_compiler_rtti_exceptions=no
14346 ac_outfile=conftest.$ac_objext
14347 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14348 lt_compiler_flag="-fno-rtti -fno-exceptions"
14349 # Insert the option either (1) after the last *FLAGS variable, or
14350 # (2) before a word containing "conftest.", or (3) at the end.
14351 # Note that $ac_compile itself does not contain backslashes and begins
14352 # with a dollar sign (not a hyphen), so the echo should work correctly.
14353 # The option is referenced via a variable to avoid confusing sed.
14354 lt_compile=`echo "$ac_compile" | $SED \
14355 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14356 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14357 -e 's:$: $lt_compiler_flag:'`
14358 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14359 (eval "$lt_compile" 2>conftest.err)
14360 ac_status=$?
14361 cat conftest.err >&5
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 if (exit $ac_status) && test -s "$ac_outfile"; then
14364 # The compiler can only warn and ignore the option if not recognized
14365 # So say no if there are warnings other than the usual output.
14366 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14367 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14368 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14369 lt_cv_prog_compiler_rtti_exceptions=yes
14370 fi
14371 fi
14372 $RM conftest*
14373
14374 fi
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14376 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14377
14378 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14379 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14380 else
14381 :
14382 fi
14383
14384 fi
14385
14386
14387
14388
14389
14390
14391 lt_prog_compiler_wl=
14392 lt_prog_compiler_pic=
14393 lt_prog_compiler_static=
14394
14395
14396 if test "$GCC" = yes; then
14397 lt_prog_compiler_wl='-Wl,'
14398 lt_prog_compiler_static='-static'
14399
14400 case $host_os in
14401 aix*)
14402 # All AIX code is PIC.
14403 if test "$host_cpu" = ia64; then
14404 # AIX 5 now supports IA64 processor
14405 lt_prog_compiler_static='-Bstatic'
14406 fi
14407 ;;
14408
14409 amigaos*)
14410 case $host_cpu in
14411 powerpc)
14412 # see comment about AmigaOS4 .so support
14413 lt_prog_compiler_pic='-fPIC'
14414 ;;
14415 m68k)
14416 # FIXME: we need at least 68020 code to build shared libraries, but
14417 # adding the `-m68020' flag to GCC prevents building anything better,
14418 # like `-m68040'.
14419 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14420 ;;
14421 esac
14422 ;;
14423
14424 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14425 # PIC is the default for these OSes.
14426 ;;
14427
14428 mingw* | cygwin* | pw32* | os2* | cegcc*)
14429 # This hack is so that the source file can tell whether it is being
14430 # built for inclusion in a dll (and should export symbols for example).
14431 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14432 # (--disable-auto-import) libraries
14433 lt_prog_compiler_pic='-DDLL_EXPORT'
14434 ;;
14435
14436 darwin* | rhapsody*)
14437 # PIC is the default on this platform
14438 # Common symbols not allowed in MH_DYLIB files
14439 lt_prog_compiler_pic='-fno-common'
14440 ;;
14441
14442 haiku*)
14443 # PIC is the default for Haiku.
14444 # The "-static" flag exists, but is broken.
14445 lt_prog_compiler_static=
14446 ;;
14447
14448 hpux*)
14449 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14450 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14451 # sets the default TLS model and affects inlining.
14452 case $host_cpu in
14453 hppa*64*)
14454 # +Z the default
14455 ;;
14456 *)
14457 lt_prog_compiler_pic='-fPIC'
14458 ;;
14459 esac
14460 ;;
14461
14462 interix[3-9]*)
14463 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14464 # Instead, we relocate shared libraries at runtime.
14465 ;;
14466
14467 msdosdjgpp*)
14468 # Just because we use GCC doesn't mean we suddenly get shared libraries
14469 # on systems that don't support them.
14470 lt_prog_compiler_can_build_shared=no
14471 enable_shared=no
14472 ;;
14473
14474 *nto* | *qnx*)
14475 # QNX uses GNU C++, but need to define -shared option too, otherwise
14476 # it will coredump.
14477 lt_prog_compiler_pic='-fPIC -shared'
14478 ;;
14479
14480 sysv4*MP*)
14481 if test -d /usr/nec; then
14482 lt_prog_compiler_pic=-Kconform_pic
14483 fi
14484 ;;
14485
14486 *)
14487 lt_prog_compiler_pic='-fPIC'
14488 ;;
14489 esac
14490
14491 case $cc_basename in
14492 nvcc*) # Cuda Compiler Driver 2.2
14493 lt_prog_compiler_wl='-Xlinker '
14494 if test -n "$lt_prog_compiler_pic"; then
14495 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14496 fi
14497 ;;
14498 esac
14499 else
14500 # PORTME Check for flag to pass linker flags through the system compiler.
14501 case $host_os in
14502 aix*)
14503 lt_prog_compiler_wl='-Wl,'
14504 if test "$host_cpu" = ia64; then
14505 # AIX 5 now supports IA64 processor
14506 lt_prog_compiler_static='-Bstatic'
14507 else
14508 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14509 fi
14510 ;;
14511
14512 mingw* | cygwin* | pw32* | os2* | cegcc*)
14513 # This hack is so that the source file can tell whether it is being
14514 # built for inclusion in a dll (and should export symbols for example).
14515 lt_prog_compiler_pic='-DDLL_EXPORT'
14516 ;;
14517
14518 hpux9* | hpux10* | hpux11*)
14519 lt_prog_compiler_wl='-Wl,'
14520 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14521 # not for PA HP-UX.
14522 case $host_cpu in
14523 hppa*64*|ia64*)
14524 # +Z the default
14525 ;;
14526 *)
14527 lt_prog_compiler_pic='+Z'
14528 ;;
14529 esac
14530 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14531 lt_prog_compiler_static='${wl}-a ${wl}archive'
14532 ;;
14533
14534 irix5* | irix6* | nonstopux*)
14535 lt_prog_compiler_wl='-Wl,'
14536 # PIC (with -KPIC) is the default.
14537 lt_prog_compiler_static='-non_shared'
14538 ;;
14539
14540 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14541 case $cc_basename in
14542 # old Intel for x86_64 which still supported -KPIC.
14543 ecc*)
14544 lt_prog_compiler_wl='-Wl,'
14545 lt_prog_compiler_pic='-KPIC'
14546 lt_prog_compiler_static='-static'
14547 ;;
14548 # icc used to be incompatible with GCC.
14549 # ICC 10 doesn't accept -KPIC any more.
14550 icc* | ifort*)
14551 lt_prog_compiler_wl='-Wl,'
14552 lt_prog_compiler_pic='-fPIC'
14553 lt_prog_compiler_static='-static'
14554 ;;
14555 # Lahey Fortran 8.1.
14556 lf95*)
14557 lt_prog_compiler_wl='-Wl,'
14558 lt_prog_compiler_pic='--shared'
14559 lt_prog_compiler_static='--static'
14560 ;;
14561 nagfor*)
14562 # NAG Fortran compiler
14563 lt_prog_compiler_wl='-Wl,-Wl,,'
14564 lt_prog_compiler_pic='-PIC'
14565 lt_prog_compiler_static='-Bstatic'
14566 ;;
14567 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14568 # Portland Group compilers (*not* the Pentium gcc compiler,
14569 # which looks to be a dead project)
14570 lt_prog_compiler_wl='-Wl,'
14571 lt_prog_compiler_pic='-fpic'
14572 lt_prog_compiler_static='-Bstatic'
14573 ;;
14574 ccc*)
14575 lt_prog_compiler_wl='-Wl,'
14576 # All Alpha code is PIC.
14577 lt_prog_compiler_static='-non_shared'
14578 ;;
14579 xl* | bgxl* | bgf* | mpixl*)
14580 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14581 lt_prog_compiler_wl='-Wl,'
14582 lt_prog_compiler_pic='-qpic'
14583 lt_prog_compiler_static='-qstaticlink'
14584 ;;
14585 *)
14586 case `$CC -V 2>&1 | sed 5q` in
14587 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14588 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14589 lt_prog_compiler_pic='-KPIC'
14590 lt_prog_compiler_static='-Bstatic'
14591 lt_prog_compiler_wl=''
14592 ;;
14593 *Sun\ F* | *Sun*Fortran*)
14594 lt_prog_compiler_pic='-KPIC'
14595 lt_prog_compiler_static='-Bstatic'
14596 lt_prog_compiler_wl='-Qoption ld '
14597 ;;
14598 *Sun\ C*)
14599 # Sun C 5.9
14600 lt_prog_compiler_pic='-KPIC'
14601 lt_prog_compiler_static='-Bstatic'
14602 lt_prog_compiler_wl='-Wl,'
14603 ;;
14604 *Intel*\ [CF]*Compiler*)
14605 lt_prog_compiler_wl='-Wl,'
14606 lt_prog_compiler_pic='-fPIC'
14607 lt_prog_compiler_static='-static'
14608 ;;
14609 *Portland\ Group*)
14610 lt_prog_compiler_wl='-Wl,'
14611 lt_prog_compiler_pic='-fpic'
14612 lt_prog_compiler_static='-Bstatic'
14613 ;;
14614 esac
14615 ;;
14616 esac
14617 ;;
14618
14619 newsos6)
14620 lt_prog_compiler_pic='-KPIC'
14621 lt_prog_compiler_static='-Bstatic'
14622 ;;
14623
14624 *nto* | *qnx*)
14625 # QNX uses GNU C++, but need to define -shared option too, otherwise
14626 # it will coredump.
14627 lt_prog_compiler_pic='-fPIC -shared'
14628 ;;
14629
14630 osf3* | osf4* | osf5*)
14631 lt_prog_compiler_wl='-Wl,'
14632 # All OSF/1 code is PIC.
14633 lt_prog_compiler_static='-non_shared'
14634 ;;
14635
14636 rdos*)
14637 lt_prog_compiler_static='-non_shared'
14638 ;;
14639
14640 solaris*)
14641 lt_prog_compiler_pic='-KPIC'
14642 lt_prog_compiler_static='-Bstatic'
14643 case $cc_basename in
14644 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14645 lt_prog_compiler_wl='-Qoption ld ';;
14646 *)
14647 lt_prog_compiler_wl='-Wl,';;
14648 esac
14649 ;;
14650
14651 sunos4*)
14652 lt_prog_compiler_wl='-Qoption ld '
14653 lt_prog_compiler_pic='-PIC'
14654 lt_prog_compiler_static='-Bstatic'
14655 ;;
14656
14657 sysv4 | sysv4.2uw2* | sysv4.3*)
14658 lt_prog_compiler_wl='-Wl,'
14659 lt_prog_compiler_pic='-KPIC'
14660 lt_prog_compiler_static='-Bstatic'
14661 ;;
14662
14663 sysv4*MP*)
14664 if test -d /usr/nec ;then
14665 lt_prog_compiler_pic='-Kconform_pic'
14666 lt_prog_compiler_static='-Bstatic'
14667 fi
14668 ;;
14669
14670 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14671 lt_prog_compiler_wl='-Wl,'
14672 lt_prog_compiler_pic='-KPIC'
14673 lt_prog_compiler_static='-Bstatic'
14674 ;;
14675
14676 unicos*)
14677 lt_prog_compiler_wl='-Wl,'
14678 lt_prog_compiler_can_build_shared=no
14679 ;;
14680
14681 uts4*)
14682 lt_prog_compiler_pic='-pic'
14683 lt_prog_compiler_static='-Bstatic'
14684 ;;
14685
14686 *)
14687 lt_prog_compiler_can_build_shared=no
14688 ;;
14689 esac
14690 fi
14691
14692 case $host_os in
14693 # For platforms which do not support PIC, -DPIC is meaningless:
14694 *djgpp*)
14695 lt_prog_compiler_pic=
14696 ;;
14697 *)
14698 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14699 ;;
14700 esac
14701
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14703 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14704 if ${lt_cv_prog_compiler_pic+:} false; then :
14705 $as_echo_n "(cached) " >&6
14706 else
14707 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14708 fi
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14710 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
14711 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14712
14713 #
14714 # Check to make sure the PIC flag actually works.
14715 #
14716 if test -n "$lt_prog_compiler_pic"; then
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14718 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14719 if ${lt_cv_prog_compiler_pic_works+:} false; then :
14720 $as_echo_n "(cached) " >&6
14721 else
14722 lt_cv_prog_compiler_pic_works=no
14723 ac_outfile=conftest.$ac_objext
14724 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14725 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14726 # Insert the option either (1) after the last *FLAGS variable, or
14727 # (2) before a word containing "conftest.", or (3) at the end.
14728 # Note that $ac_compile itself does not contain backslashes and begins
14729 # with a dollar sign (not a hyphen), so the echo should work correctly.
14730 # The option is referenced via a variable to avoid confusing sed.
14731 lt_compile=`echo "$ac_compile" | $SED \
14732 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14733 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14734 -e 's:$: $lt_compiler_flag:'`
14735 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14736 (eval "$lt_compile" 2>conftest.err)
14737 ac_status=$?
14738 cat conftest.err >&5
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 if (exit $ac_status) && test -s "$ac_outfile"; then
14741 # The compiler can only warn and ignore the option if not recognized
14742 # So say no if there are warnings other than the usual output.
14743 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14744 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14745 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14746 lt_cv_prog_compiler_pic_works=yes
14747 fi
14748 fi
14749 $RM conftest*
14750
14751 fi
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14753 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14754
14755 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14756 case $lt_prog_compiler_pic in
14757 "" | " "*) ;;
14758 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14759 esac
14760 else
14761 lt_prog_compiler_pic=
14762 lt_prog_compiler_can_build_shared=no
14763 fi
14764
14765 fi
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777 #
14778 # Check to make sure the static flag actually works.
14779 #
14780 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14782 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14783 if ${lt_cv_prog_compiler_static_works+:} false; then :
14784 $as_echo_n "(cached) " >&6
14785 else
14786 lt_cv_prog_compiler_static_works=no
14787 save_LDFLAGS="$LDFLAGS"
14788 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14789 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14790 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14791 # The linker can only warn and ignore the option if not recognized
14792 # So say no if there are warnings
14793 if test -s conftest.err; then
14794 # Append any errors to the config.log.
14795 cat conftest.err 1>&5
14796 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14797 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14798 if diff conftest.exp conftest.er2 >/dev/null; then
14799 lt_cv_prog_compiler_static_works=yes
14800 fi
14801 else
14802 lt_cv_prog_compiler_static_works=yes
14803 fi
14804 fi
14805 $RM -r conftest*
14806 LDFLAGS="$save_LDFLAGS"
14807
14808 fi
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14810 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14811
14812 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14813 :
14814 else
14815 lt_prog_compiler_static=
14816 fi
14817
14818
14819
14820
14821
14822
14823
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14825 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14826 if ${lt_cv_prog_compiler_c_o+:} false; then :
14827 $as_echo_n "(cached) " >&6
14828 else
14829 lt_cv_prog_compiler_c_o=no
14830 $RM -r conftest 2>/dev/null
14831 mkdir conftest
14832 cd conftest
14833 mkdir out
14834 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14835
14836 lt_compiler_flag="-o out/conftest2.$ac_objext"
14837 # Insert the option either (1) after the last *FLAGS variable, or
14838 # (2) before a word containing "conftest.", or (3) at the end.
14839 # Note that $ac_compile itself does not contain backslashes and begins
14840 # with a dollar sign (not a hyphen), so the echo should work correctly.
14841 lt_compile=`echo "$ac_compile" | $SED \
14842 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14843 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14844 -e 's:$: $lt_compiler_flag:'`
14845 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14846 (eval "$lt_compile" 2>out/conftest.err)
14847 ac_status=$?
14848 cat out/conftest.err >&5
14849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14851 then
14852 # The compiler can only warn and ignore the option if not recognized
14853 # So say no if there are warnings
14854 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14855 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14856 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14857 lt_cv_prog_compiler_c_o=yes
14858 fi
14859 fi
14860 chmod u+w . 2>&5
14861 $RM conftest*
14862 # SGI C++ compiler will create directory out/ii_files/ for
14863 # template instantiation
14864 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14865 $RM out/* && rmdir out
14866 cd ..
14867 $RM -r conftest
14868 $RM conftest*
14869
14870 fi
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14872 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14873
14874
14875
14876
14877
14878
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14880 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14881 if ${lt_cv_prog_compiler_c_o+:} false; then :
14882 $as_echo_n "(cached) " >&6
14883 else
14884 lt_cv_prog_compiler_c_o=no
14885 $RM -r conftest 2>/dev/null
14886 mkdir conftest
14887 cd conftest
14888 mkdir out
14889 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14890
14891 lt_compiler_flag="-o out/conftest2.$ac_objext"
14892 # Insert the option either (1) after the last *FLAGS variable, or
14893 # (2) before a word containing "conftest.", or (3) at the end.
14894 # Note that $ac_compile itself does not contain backslashes and begins
14895 # with a dollar sign (not a hyphen), so the echo should work correctly.
14896 lt_compile=`echo "$ac_compile" | $SED \
14897 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14898 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14899 -e 's:$: $lt_compiler_flag:'`
14900 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14901 (eval "$lt_compile" 2>out/conftest.err)
14902 ac_status=$?
14903 cat out/conftest.err >&5
14904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14906 then
14907 # The compiler can only warn and ignore the option if not recognized
14908 # So say no if there are warnings
14909 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14910 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14911 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14912 lt_cv_prog_compiler_c_o=yes
14913 fi
14914 fi
14915 chmod u+w . 2>&5
14916 $RM conftest*
14917 # SGI C++ compiler will create directory out/ii_files/ for
14918 # template instantiation
14919 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14920 $RM out/* && rmdir out
14921 cd ..
14922 $RM -r conftest
14923 $RM conftest*
14924
14925 fi
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14927 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14928
14929
14930
14931
14932 hard_links="nottested"
14933 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14934 # do not overwrite the value of need_locks provided by the user
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14936 $as_echo_n "checking if we can lock with hard links... " >&6; }
14937 hard_links=yes
14938 $RM conftest*
14939 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14940 touch conftest.a
14941 ln conftest.a conftest.b 2>&5 || hard_links=no
14942 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14944 $as_echo "$hard_links" >&6; }
14945 if test "$hard_links" = no; then
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14947 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14948 need_locks=warn
14949 fi
14950 else
14951 need_locks=no
14952 fi
14953
14954
14955
14956
14957
14958
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14960 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14961
14962 runpath_var=
14963 allow_undefined_flag=
14964 always_export_symbols=no
14965 archive_cmds=
14966 archive_expsym_cmds=
14967 compiler_needs_object=no
14968 enable_shared_with_static_runtimes=no
14969 export_dynamic_flag_spec=
14970 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14971 hardcode_automatic=no
14972 hardcode_direct=no
14973 hardcode_direct_absolute=no
14974 hardcode_libdir_flag_spec=
14975 hardcode_libdir_separator=
14976 hardcode_minus_L=no
14977 hardcode_shlibpath_var=unsupported
14978 inherit_rpath=no
14979 link_all_deplibs=unknown
14980 module_cmds=
14981 module_expsym_cmds=
14982 old_archive_from_new_cmds=
14983 old_archive_from_expsyms_cmds=
14984 thread_safe_flag_spec=
14985 whole_archive_flag_spec=
14986 # include_expsyms should be a list of space-separated symbols to be *always*
14987 # included in the symbol list
14988 include_expsyms=
14989 # exclude_expsyms can be an extended regexp of symbols to exclude
14990 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14991 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14992 # as well as any symbol that contains `d'.
14993 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14994 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14995 # platforms (ab)use it in PIC code, but their linkers get confused if
14996 # the symbol is explicitly referenced. Since portable code cannot
14997 # rely on this symbol name, it's probably fine to never include it in
14998 # preloaded symbol tables.
14999 # Exclude shared library initialization/finalization symbols.
15000 extract_expsyms_cmds=
15001
15002 case $host_os in
15003 cygwin* | mingw* | pw32* | cegcc*)
15004 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15005 # When not using gcc, we currently assume that we are using
15006 # Microsoft Visual C++.
15007 if test "$GCC" != yes; then
15008 with_gnu_ld=no
15009 fi
15010 ;;
15011 interix*)
15012 # we just hope/assume this is gcc and not c89 (= MSVC++)
15013 with_gnu_ld=yes
15014 ;;
15015 openbsd*)
15016 with_gnu_ld=no
15017 ;;
15018 esac
15019
15020 ld_shlibs=yes
15021
15022 # On some targets, GNU ld is compatible enough with the native linker
15023 # that we're better off using the native interface for both.
15024 lt_use_gnu_ld_interface=no
15025 if test "$with_gnu_ld" = yes; then
15026 case $host_os in
15027 aix*)
15028 # The AIX port of GNU ld has always aspired to compatibility
15029 # with the native linker. However, as the warning in the GNU ld
15030 # block says, versions before 2.19.5* couldn't really create working
15031 # shared libraries, regardless of the interface used.
15032 case `$LD -v 2>&1` in
15033 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15034 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15035 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15036 *)
15037 lt_use_gnu_ld_interface=yes
15038 ;;
15039 esac
15040 ;;
15041 *)
15042 lt_use_gnu_ld_interface=yes
15043 ;;
15044 esac
15045 fi
15046
15047 if test "$lt_use_gnu_ld_interface" = yes; then
15048 # If archive_cmds runs LD, not CC, wlarc should be empty
15049 wlarc='${wl}'
15050
15051 # Set some defaults for GNU ld with shared library support. These
15052 # are reset later if shared libraries are not supported. Putting them
15053 # here allows them to be overridden if necessary.
15054 runpath_var=LD_RUN_PATH
15055 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15056 export_dynamic_flag_spec='${wl}--export-dynamic'
15057 # ancient GNU ld didn't support --whole-archive et. al.
15058 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15059 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15060 else
15061 whole_archive_flag_spec=
15062 fi
15063 supports_anon_versioning=no
15064 case `$LD -v 2>&1` in
15065 *GNU\ gold*) supports_anon_versioning=yes ;;
15066 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15067 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15068 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15069 *\ 2.11.*) ;; # other 2.11 versions
15070 *) supports_anon_versioning=yes ;;
15071 esac
15072
15073 # See if GNU ld supports shared libraries.
15074 case $host_os in
15075 aix[3-9]*)
15076 # On AIX/PPC, the GNU linker is very broken
15077 if test "$host_cpu" != ia64; then
15078 ld_shlibs=no
15079 cat <<_LT_EOF 1>&2
15080
15081 *** Warning: the GNU linker, at least up to release 2.19, is reported
15082 *** to be unable to reliably create shared libraries on AIX.
15083 *** Therefore, libtool is disabling shared libraries support. If you
15084 *** really care for shared libraries, you may want to install binutils
15085 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15086 *** You will then need to restart the configuration process.
15087
15088 _LT_EOF
15089 fi
15090 ;;
15091
15092 amigaos*)
15093 case $host_cpu in
15094 powerpc)
15095 # see comment about AmigaOS4 .so support
15096 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15097 archive_expsym_cmds=''
15098 ;;
15099 m68k)
15100 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)'
15101 hardcode_libdir_flag_spec='-L$libdir'
15102 hardcode_minus_L=yes
15103 ;;
15104 esac
15105 ;;
15106
15107 beos*)
15108 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15109 allow_undefined_flag=unsupported
15110 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
15111 # support --undefined. This deserves some investigation. FIXME
15112 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15113 else
15114 ld_shlibs=no
15115 fi
15116 ;;
15117
15118 cygwin* | mingw* | pw32* | cegcc*)
15119 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15120 # as there is no search path for DLLs.
15121 hardcode_libdir_flag_spec='-L$libdir'
15122 export_dynamic_flag_spec='${wl}--export-all-symbols'
15123 allow_undefined_flag=unsupported
15124 always_export_symbols=no
15125 enable_shared_with_static_runtimes=yes
15126 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'
15127 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15128
15129 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15130 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15131 # If the export-symbols file already is a .def file (1st line
15132 # is EXPORTS), use it as is; otherwise, prepend...
15133 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15134 cp $export_symbols $output_objdir/$soname.def;
15135 else
15136 echo EXPORTS > $output_objdir/$soname.def;
15137 cat $export_symbols >> $output_objdir/$soname.def;
15138 fi~
15139 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15140 else
15141 ld_shlibs=no
15142 fi
15143 ;;
15144
15145 haiku*)
15146 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15147 link_all_deplibs=yes
15148 ;;
15149
15150 interix[3-9]*)
15151 hardcode_direct=no
15152 hardcode_shlibpath_var=no
15153 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15154 export_dynamic_flag_spec='${wl}-E'
15155 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15156 # Instead, shared libraries are loaded at an image base (0x10000000 by
15157 # default) and relocated if they conflict, which is a slow very memory
15158 # consuming and fragmenting process. To avoid this, we pick a random,
15159 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15160 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15161 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15162 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'
15163 ;;
15164
15165 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15166 tmp_diet=no
15167 if test "$host_os" = linux-dietlibc; then
15168 case $cc_basename in
15169 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15170 esac
15171 fi
15172 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15173 && test "$tmp_diet" = no
15174 then
15175 tmp_addflag=' $pic_flag'
15176 tmp_sharedflag='-shared'
15177 case $cc_basename,$host_cpu in
15178 pgcc*) # Portland Group C compiler
15179 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'
15180 tmp_addflag=' $pic_flag'
15181 ;;
15182 pgf77* | pgf90* | pgf95* | pgfortran*)
15183 # Portland Group f77 and f90 compilers
15184 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'
15185 tmp_addflag=' $pic_flag -Mnomain' ;;
15186 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15187 tmp_addflag=' -i_dynamic' ;;
15188 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15189 tmp_addflag=' -i_dynamic -nofor_main' ;;
15190 ifc* | ifort*) # Intel Fortran compiler
15191 tmp_addflag=' -nofor_main' ;;
15192 lf95*) # Lahey Fortran 8.1
15193 whole_archive_flag_spec=
15194 tmp_sharedflag='--shared' ;;
15195 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15196 tmp_sharedflag='-qmkshrobj'
15197 tmp_addflag= ;;
15198 nvcc*) # Cuda Compiler Driver 2.2
15199 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'
15200 compiler_needs_object=yes
15201 ;;
15202 esac
15203 case `$CC -V 2>&1 | sed 5q` in
15204 *Sun\ C*) # Sun C 5.9
15205 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'
15206 compiler_needs_object=yes
15207 tmp_sharedflag='-G' ;;
15208 *Sun\ F*) # Sun Fortran 8.3
15209 tmp_sharedflag='-G' ;;
15210 esac
15211 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15212
15213 if test "x$supports_anon_versioning" = xyes; then
15214 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15215 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15216 echo "local: *; };" >> $output_objdir/$libname.ver~
15217 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15218 fi
15219
15220 case $cc_basename in
15221 xlf* | bgf* | bgxlf* | mpixlf*)
15222 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15223 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15224 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15225 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15226 if test "x$supports_anon_versioning" = xyes; then
15227 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15228 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15229 echo "local: *; };" >> $output_objdir/$libname.ver~
15230 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15231 fi
15232 ;;
15233 esac
15234 else
15235 ld_shlibs=no
15236 fi
15237 ;;
15238
15239 netbsd*)
15240 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15241 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15242 wlarc=
15243 else
15244 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15245 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15246 fi
15247 ;;
15248
15249 solaris*)
15250 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15251 ld_shlibs=no
15252 cat <<_LT_EOF 1>&2
15253
15254 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15255 *** create shared libraries on Solaris systems. Therefore, libtool
15256 *** is disabling shared libraries support. We urge you to upgrade GNU
15257 *** binutils to release 2.9.1 or newer. Another option is to modify
15258 *** your PATH or compiler configuration so that the native linker is
15259 *** used, and then restart.
15260
15261 _LT_EOF
15262 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15263 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15264 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15265 else
15266 ld_shlibs=no
15267 fi
15268 ;;
15269
15270 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15271 case `$LD -v 2>&1` in
15272 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15273 ld_shlibs=no
15274 cat <<_LT_EOF 1>&2
15275
15276 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15277 *** reliably create shared libraries on SCO systems. Therefore, libtool
15278 *** is disabling shared libraries support. We urge you to upgrade GNU
15279 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15280 *** your PATH or compiler configuration so that the native linker is
15281 *** used, and then restart.
15282
15283 _LT_EOF
15284 ;;
15285 *)
15286 # For security reasons, it is highly recommended that you always
15287 # use absolute paths for naming shared libraries, and exclude the
15288 # DT_RUNPATH tag from executables and libraries. But doing so
15289 # requires that you compile everything twice, which is a pain.
15290 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15291 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15292 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15293 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15294 else
15295 ld_shlibs=no
15296 fi
15297 ;;
15298 esac
15299 ;;
15300
15301 sunos4*)
15302 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15303 wlarc=
15304 hardcode_direct=yes
15305 hardcode_shlibpath_var=no
15306 ;;
15307
15308 *)
15309 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15310 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15311 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15312 else
15313 ld_shlibs=no
15314 fi
15315 ;;
15316 esac
15317
15318 if test "$ld_shlibs" = no; then
15319 runpath_var=
15320 hardcode_libdir_flag_spec=
15321 export_dynamic_flag_spec=
15322 whole_archive_flag_spec=
15323 fi
15324 else
15325 # PORTME fill in a description of your system's linker (not GNU ld)
15326 case $host_os in
15327 aix3*)
15328 allow_undefined_flag=unsupported
15329 always_export_symbols=yes
15330 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'
15331 # Note: this linker hardcodes the directories in LIBPATH if there
15332 # are no directories specified by -L.
15333 hardcode_minus_L=yes
15334 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15335 # Neither direct hardcoding nor static linking is supported with a
15336 # broken collect2.
15337 hardcode_direct=unsupported
15338 fi
15339 ;;
15340
15341 aix[4-9]*)
15342 if test "$host_cpu" = ia64; then
15343 # On IA64, the linker does run time linking by default, so we don't
15344 # have to do anything special.
15345 aix_use_runtimelinking=no
15346 exp_sym_flag='-Bexport'
15347 no_entry_flag=""
15348 else
15349 # If we're using GNU nm, then we don't want the "-C" option.
15350 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15351 # Also, AIX nm treats weak defined symbols like other global
15352 # defined symbols, whereas GNU nm marks them as "W".
15353 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15354 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'
15355 else
15356 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'
15357 fi
15358 aix_use_runtimelinking=no
15359
15360 # Test if we are trying to use run time linking or normal
15361 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15362 # need to do runtime linking.
15363 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15364 for ld_flag in $LDFLAGS; do
15365 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15366 aix_use_runtimelinking=yes
15367 break
15368 fi
15369 done
15370 ;;
15371 esac
15372
15373 exp_sym_flag='-bexport'
15374 no_entry_flag='-bnoentry'
15375 fi
15376
15377 # When large executables or shared objects are built, AIX ld can
15378 # have problems creating the table of contents. If linking a library
15379 # or program results in "error TOC overflow" add -mminimal-toc to
15380 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15381 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15382
15383 archive_cmds=''
15384 hardcode_direct=yes
15385 hardcode_direct_absolute=yes
15386 hardcode_libdir_separator=':'
15387 link_all_deplibs=yes
15388 file_list_spec='${wl}-f,'
15389
15390 if test "$GCC" = yes; then
15391 case $host_os in aix4.[012]|aix4.[012].*)
15392 # We only want to do this on AIX 4.2 and lower, the check
15393 # below for broken collect2 doesn't work under 4.3+
15394 collect2name=`${CC} -print-prog-name=collect2`
15395 if test -f "$collect2name" &&
15396 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15397 then
15398 # We have reworked collect2
15399 :
15400 else
15401 # We have old collect2
15402 hardcode_direct=unsupported
15403 # It fails to find uninstalled libraries when the uninstalled
15404 # path is not listed in the libpath. Setting hardcode_minus_L
15405 # to unsupported forces relinking
15406 hardcode_minus_L=yes
15407 hardcode_libdir_flag_spec='-L$libdir'
15408 hardcode_libdir_separator=
15409 fi
15410 ;;
15411 esac
15412 shared_flag='-shared'
15413 if test "$aix_use_runtimelinking" = yes; then
15414 shared_flag="$shared_flag "'${wl}-G'
15415 fi
15416 else
15417 # not using gcc
15418 if test "$host_cpu" = ia64; then
15419 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15420 # chokes on -Wl,-G. The following line is correct:
15421 shared_flag='-G'
15422 else
15423 if test "$aix_use_runtimelinking" = yes; then
15424 shared_flag='${wl}-G'
15425 else
15426 shared_flag='${wl}-bM:SRE'
15427 fi
15428 fi
15429 fi
15430
15431 export_dynamic_flag_spec='${wl}-bexpall'
15432 # It seems that -bexpall does not export symbols beginning with
15433 # underscore (_), so it is better to generate a list of symbols to export.
15434 always_export_symbols=yes
15435 if test "$aix_use_runtimelinking" = yes; then
15436 # Warning - without using the other runtime loading flags (-brtl),
15437 # -berok will link without error, but may produce a broken library.
15438 allow_undefined_flag='-berok'
15439 # Determine the default libpath from the value encoded in an
15440 # empty executable.
15441 if test "${lt_cv_aix_libpath+set}" = set; then
15442 aix_libpath=$lt_cv_aix_libpath
15443 else
15444 if ${lt_cv_aix_libpath_+:} false; then :
15445 $as_echo_n "(cached) " >&6
15446 else
15447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15448 /* end confdefs.h. */
15449
15450 int
15451 main ()
15452 {
15453
15454 ;
15455 return 0;
15456 }
15457 _ACEOF
15458 if ac_fn_c_try_link "$LINENO"; then :
15459
15460 lt_aix_libpath_sed='
15461 /Import File Strings/,/^$/ {
15462 /^0/ {
15463 s/^0 *\([^ ]*\) *$/\1/
15464 p
15465 }
15466 }'
15467 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15468 # Check for a 64-bit object if we didn't find anything.
15469 if test -z "$lt_cv_aix_libpath_"; then
15470 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15471 fi
15472 fi
15473 rm -f core conftest.err conftest.$ac_objext \
15474 conftest$ac_exeext conftest.$ac_ext
15475 if test -z "$lt_cv_aix_libpath_"; then
15476 lt_cv_aix_libpath_="/usr/lib:/lib"
15477 fi
15478
15479 fi
15480
15481 aix_libpath=$lt_cv_aix_libpath_
15482 fi
15483
15484 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15485 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"
15486 else
15487 if test "$host_cpu" = ia64; then
15488 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15489 allow_undefined_flag="-z nodefs"
15490 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"
15491 else
15492 # Determine the default libpath from the value encoded in an
15493 # empty executable.
15494 if test "${lt_cv_aix_libpath+set}" = set; then
15495 aix_libpath=$lt_cv_aix_libpath
15496 else
15497 if ${lt_cv_aix_libpath_+:} false; then :
15498 $as_echo_n "(cached) " >&6
15499 else
15500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15501 /* end confdefs.h. */
15502
15503 int
15504 main ()
15505 {
15506
15507 ;
15508 return 0;
15509 }
15510 _ACEOF
15511 if ac_fn_c_try_link "$LINENO"; then :
15512
15513 lt_aix_libpath_sed='
15514 /Import File Strings/,/^$/ {
15515 /^0/ {
15516 s/^0 *\([^ ]*\) *$/\1/
15517 p
15518 }
15519 }'
15520 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15521 # Check for a 64-bit object if we didn't find anything.
15522 if test -z "$lt_cv_aix_libpath_"; then
15523 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15524 fi
15525 fi
15526 rm -f core conftest.err conftest.$ac_objext \
15527 conftest$ac_exeext conftest.$ac_ext
15528 if test -z "$lt_cv_aix_libpath_"; then
15529 lt_cv_aix_libpath_="/usr/lib:/lib"
15530 fi
15531
15532 fi
15533
15534 aix_libpath=$lt_cv_aix_libpath_
15535 fi
15536
15537 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15538 # Warning - without using the other run time loading flags,
15539 # -berok will link without error, but may produce a broken library.
15540 no_undefined_flag=' ${wl}-bernotok'
15541 allow_undefined_flag=' ${wl}-berok'
15542 if test "$with_gnu_ld" = yes; then
15543 # We only use this code for GNU lds that support --whole-archive.
15544 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15545 else
15546 # Exported symbols can be pulled into shared objects from archives
15547 whole_archive_flag_spec='$convenience'
15548 fi
15549 archive_cmds_need_lc=yes
15550 # This is similar to how AIX traditionally builds its shared libraries.
15551 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'
15552 fi
15553 fi
15554 ;;
15555
15556 amigaos*)
15557 case $host_cpu in
15558 powerpc)
15559 # see comment about AmigaOS4 .so support
15560 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15561 archive_expsym_cmds=''
15562 ;;
15563 m68k)
15564 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)'
15565 hardcode_libdir_flag_spec='-L$libdir'
15566 hardcode_minus_L=yes
15567 ;;
15568 esac
15569 ;;
15570
15571 bsdi[45]*)
15572 export_dynamic_flag_spec=-rdynamic
15573 ;;
15574
15575 cygwin* | mingw* | pw32* | cegcc*)
15576 # When not using gcc, we currently assume that we are using
15577 # Microsoft Visual C++.
15578 # hardcode_libdir_flag_spec is actually meaningless, as there is
15579 # no search path for DLLs.
15580 case $cc_basename in
15581 cl*)
15582 # Native MSVC
15583 hardcode_libdir_flag_spec=' '
15584 allow_undefined_flag=unsupported
15585 always_export_symbols=yes
15586 file_list_spec='@'
15587 # Tell ltmain to make .lib files, not .a files.
15588 libext=lib
15589 # Tell ltmain to make .dll files, not .so files.
15590 shrext_cmds=".dll"
15591 # FIXME: Setting linknames here is a bad hack.
15592 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15593 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15594 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15595 else
15596 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15597 fi~
15598 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15599 linknames='
15600 # The linker will not automatically build a static lib if we build a DLL.
15601 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15602 enable_shared_with_static_runtimes=yes
15603 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15604 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15605 # Don't use ranlib
15606 old_postinstall_cmds='chmod 644 $oldlib'
15607 postlink_cmds='lt_outputfile="@OUTPUT@"~
15608 lt_tool_outputfile="@TOOL_OUTPUT@"~
15609 case $lt_outputfile in
15610 *.exe|*.EXE) ;;
15611 *)
15612 lt_outputfile="$lt_outputfile.exe"
15613 lt_tool_outputfile="$lt_tool_outputfile.exe"
15614 ;;
15615 esac~
15616 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15617 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15618 $RM "$lt_outputfile.manifest";
15619 fi'
15620 ;;
15621 *)
15622 # Assume MSVC wrapper
15623 hardcode_libdir_flag_spec=' '
15624 allow_undefined_flag=unsupported
15625 # Tell ltmain to make .lib files, not .a files.
15626 libext=lib
15627 # Tell ltmain to make .dll files, not .so files.
15628 shrext_cmds=".dll"
15629 # FIXME: Setting linknames here is a bad hack.
15630 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15631 # The linker will automatically build a .lib file if we build a DLL.
15632 old_archive_from_new_cmds='true'
15633 # FIXME: Should let the user specify the lib program.
15634 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15635 enable_shared_with_static_runtimes=yes
15636 ;;
15637 esac
15638 ;;
15639
15640 darwin* | rhapsody*)
15641
15642
15643 archive_cmds_need_lc=no
15644 hardcode_direct=no
15645 hardcode_automatic=yes
15646 hardcode_shlibpath_var=unsupported
15647 if test "$lt_cv_ld_force_load" = "yes"; then
15648 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\"`'
15649
15650 else
15651 whole_archive_flag_spec=''
15652 fi
15653 link_all_deplibs=yes
15654 allow_undefined_flag="$_lt_dar_allow_undefined"
15655 case $cc_basename in
15656 ifort*) _lt_dar_can_shared=yes ;;
15657 *) _lt_dar_can_shared=$GCC ;;
15658 esac
15659 if test "$_lt_dar_can_shared" = "yes"; then
15660 output_verbose_link_cmd=func_echo_all
15661 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15662 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15663 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}"
15664 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}"
15665
15666 else
15667 ld_shlibs=no
15668 fi
15669
15670 ;;
15671
15672 dgux*)
15673 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15674 hardcode_libdir_flag_spec='-L$libdir'
15675 hardcode_shlibpath_var=no
15676 ;;
15677
15678 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15679 # support. Future versions do this automatically, but an explicit c++rt0.o
15680 # does not break anything, and helps significantly (at the cost of a little
15681 # extra space).
15682 freebsd2.2*)
15683 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15684 hardcode_libdir_flag_spec='-R$libdir'
15685 hardcode_direct=yes
15686 hardcode_shlibpath_var=no
15687 ;;
15688
15689 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15690 freebsd2.*)
15691 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15692 hardcode_direct=yes
15693 hardcode_minus_L=yes
15694 hardcode_shlibpath_var=no
15695 ;;
15696
15697 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15698 freebsd* | dragonfly*)
15699 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15700 hardcode_libdir_flag_spec='-R$libdir'
15701 hardcode_direct=yes
15702 hardcode_shlibpath_var=no
15703 ;;
15704
15705 hpux9*)
15706 if test "$GCC" = yes; then
15707 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'
15708 else
15709 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'
15710 fi
15711 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15712 hardcode_libdir_separator=:
15713 hardcode_direct=yes
15714
15715 # hardcode_minus_L: Not really in the search PATH,
15716 # but as the default location of the library.
15717 hardcode_minus_L=yes
15718 export_dynamic_flag_spec='${wl}-E'
15719 ;;
15720
15721 hpux10*)
15722 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15723 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15724 else
15725 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15726 fi
15727 if test "$with_gnu_ld" = no; then
15728 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15729 hardcode_libdir_separator=:
15730 hardcode_direct=yes
15731 hardcode_direct_absolute=yes
15732 export_dynamic_flag_spec='${wl}-E'
15733 # hardcode_minus_L: Not really in the search PATH,
15734 # but as the default location of the library.
15735 hardcode_minus_L=yes
15736 fi
15737 ;;
15738
15739 hpux11*)
15740 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15741 case $host_cpu in
15742 hppa*64*)
15743 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15744 ;;
15745 ia64*)
15746 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15747 ;;
15748 *)
15749 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15750 ;;
15751 esac
15752 else
15753 case $host_cpu in
15754 hppa*64*)
15755 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15756 ;;
15757 ia64*)
15758 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15759 ;;
15760 *)
15761
15762 # Older versions of the 11.00 compiler do not understand -b yet
15763 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15765 $as_echo_n "checking if $CC understands -b... " >&6; }
15766 if ${lt_cv_prog_compiler__b+:} false; then :
15767 $as_echo_n "(cached) " >&6
15768 else
15769 lt_cv_prog_compiler__b=no
15770 save_LDFLAGS="$LDFLAGS"
15771 LDFLAGS="$LDFLAGS -b"
15772 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15773 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15774 # The linker can only warn and ignore the option if not recognized
15775 # So say no if there are warnings
15776 if test -s conftest.err; then
15777 # Append any errors to the config.log.
15778 cat conftest.err 1>&5
15779 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15780 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15781 if diff conftest.exp conftest.er2 >/dev/null; then
15782 lt_cv_prog_compiler__b=yes
15783 fi
15784 else
15785 lt_cv_prog_compiler__b=yes
15786 fi
15787 fi
15788 $RM -r conftest*
15789 LDFLAGS="$save_LDFLAGS"
15790
15791 fi
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15793 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15794
15795 if test x"$lt_cv_prog_compiler__b" = xyes; then
15796 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15797 else
15798 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15799 fi
15800
15801 ;;
15802 esac
15803 fi
15804 if test "$with_gnu_ld" = no; then
15805 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15806 hardcode_libdir_separator=:
15807
15808 case $host_cpu in
15809 hppa*64*|ia64*)
15810 hardcode_direct=no
15811 hardcode_shlibpath_var=no
15812 ;;
15813 *)
15814 hardcode_direct=yes
15815 hardcode_direct_absolute=yes
15816 export_dynamic_flag_spec='${wl}-E'
15817
15818 # hardcode_minus_L: Not really in the search PATH,
15819 # but as the default location of the library.
15820 hardcode_minus_L=yes
15821 ;;
15822 esac
15823 fi
15824 ;;
15825
15826 irix5* | irix6* | nonstopux*)
15827 if test "$GCC" = yes; then
15828 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'
15829 # Try to use the -exported_symbol ld option, if it does not
15830 # work, assume that -exports_file does not work either and
15831 # implicitly export all symbols.
15832 # This should be the same for all languages, so no per-tag cache variable.
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15834 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15835 if ${lt_cv_irix_exported_symbol+:} false; then :
15836 $as_echo_n "(cached) " >&6
15837 else
15838 save_LDFLAGS="$LDFLAGS"
15839 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15841 /* end confdefs.h. */
15842 int foo (void) { return 0; }
15843 _ACEOF
15844 if ac_fn_c_try_link "$LINENO"; then :
15845 lt_cv_irix_exported_symbol=yes
15846 else
15847 lt_cv_irix_exported_symbol=no
15848 fi
15849 rm -f core conftest.err conftest.$ac_objext \
15850 conftest$ac_exeext conftest.$ac_ext
15851 LDFLAGS="$save_LDFLAGS"
15852 fi
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15854 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
15855 if test "$lt_cv_irix_exported_symbol" = yes; then
15856 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'
15857 fi
15858 else
15859 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'
15860 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'
15861 fi
15862 archive_cmds_need_lc='no'
15863 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15864 hardcode_libdir_separator=:
15865 inherit_rpath=yes
15866 link_all_deplibs=yes
15867 ;;
15868
15869 netbsd*)
15870 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15871 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15872 else
15873 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15874 fi
15875 hardcode_libdir_flag_spec='-R$libdir'
15876 hardcode_direct=yes
15877 hardcode_shlibpath_var=no
15878 ;;
15879
15880 newsos6)
15881 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15882 hardcode_direct=yes
15883 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15884 hardcode_libdir_separator=:
15885 hardcode_shlibpath_var=no
15886 ;;
15887
15888 *nto* | *qnx*)
15889 ;;
15890
15891 openbsd*)
15892 if test -f /usr/libexec/ld.so; then
15893 hardcode_direct=yes
15894 hardcode_shlibpath_var=no
15895 hardcode_direct_absolute=yes
15896 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15897 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15898 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15899 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15900 export_dynamic_flag_spec='${wl}-E'
15901 else
15902 case $host_os in
15903 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15904 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15905 hardcode_libdir_flag_spec='-R$libdir'
15906 ;;
15907 *)
15908 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15909 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15910 ;;
15911 esac
15912 fi
15913 else
15914 ld_shlibs=no
15915 fi
15916 ;;
15917
15918 os2*)
15919 hardcode_libdir_flag_spec='-L$libdir'
15920 hardcode_minus_L=yes
15921 allow_undefined_flag=unsupported
15922 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'
15923 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15924 ;;
15925
15926 osf3*)
15927 if test "$GCC" = yes; then
15928 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15929 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'
15930 else
15931 allow_undefined_flag=' -expect_unresolved \*'
15932 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'
15933 fi
15934 archive_cmds_need_lc='no'
15935 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15936 hardcode_libdir_separator=:
15937 ;;
15938
15939 osf4* | osf5*) # as osf3* with the addition of -msym flag
15940 if test "$GCC" = yes; then
15941 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15942 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'
15943 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15944 else
15945 allow_undefined_flag=' -expect_unresolved \*'
15946 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'
15947 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~
15948 $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'
15949
15950 # Both c and cxx compiler support -rpath directly
15951 hardcode_libdir_flag_spec='-rpath $libdir'
15952 fi
15953 archive_cmds_need_lc='no'
15954 hardcode_libdir_separator=:
15955 ;;
15956
15957 solaris*)
15958 no_undefined_flag=' -z defs'
15959 if test "$GCC" = yes; then
15960 wlarc='${wl}'
15961 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15962 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15963 $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'
15964 else
15965 case `$CC -V 2>&1` in
15966 *"Compilers 5.0"*)
15967 wlarc=''
15968 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15969 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15970 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15971 ;;
15972 *)
15973 wlarc='${wl}'
15974 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15975 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15976 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15977 ;;
15978 esac
15979 fi
15980 hardcode_libdir_flag_spec='-R$libdir'
15981 hardcode_shlibpath_var=no
15982 case $host_os in
15983 solaris2.[0-5] | solaris2.[0-5].*) ;;
15984 *)
15985 # The compiler driver will combine and reorder linker options,
15986 # but understands `-z linker_flag'. GCC discards it without `$wl',
15987 # but is careful enough not to reorder.
15988 # Supported since Solaris 2.6 (maybe 2.5.1?)
15989 if test "$GCC" = yes; then
15990 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15991 else
15992 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15993 fi
15994 ;;
15995 esac
15996 link_all_deplibs=yes
15997 ;;
15998
15999 sunos4*)
16000 if test "x$host_vendor" = xsequent; then
16001 # Use $CC to link under sequent, because it throws in some extra .o
16002 # files that make .init and .fini sections work.
16003 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16004 else
16005 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16006 fi
16007 hardcode_libdir_flag_spec='-L$libdir'
16008 hardcode_direct=yes
16009 hardcode_minus_L=yes
16010 hardcode_shlibpath_var=no
16011 ;;
16012
16013 sysv4)
16014 case $host_vendor in
16015 sni)
16016 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16017 hardcode_direct=yes # is this really true???
16018 ;;
16019 siemens)
16020 ## LD is ld it makes a PLAMLIB
16021 ## CC just makes a GrossModule.
16022 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16023 reload_cmds='$CC -r -o $output$reload_objs'
16024 hardcode_direct=no
16025 ;;
16026 motorola)
16027 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16028 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16029 ;;
16030 esac
16031 runpath_var='LD_RUN_PATH'
16032 hardcode_shlibpath_var=no
16033 ;;
16034
16035 sysv4.3*)
16036 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16037 hardcode_shlibpath_var=no
16038 export_dynamic_flag_spec='-Bexport'
16039 ;;
16040
16041 sysv4*MP*)
16042 if test -d /usr/nec; then
16043 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16044 hardcode_shlibpath_var=no
16045 runpath_var=LD_RUN_PATH
16046 hardcode_runpath_var=yes
16047 ld_shlibs=yes
16048 fi
16049 ;;
16050
16051 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16052 no_undefined_flag='${wl}-z,text'
16053 archive_cmds_need_lc=no
16054 hardcode_shlibpath_var=no
16055 runpath_var='LD_RUN_PATH'
16056
16057 if test "$GCC" = yes; then
16058 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16059 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16060 else
16061 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16062 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16063 fi
16064 ;;
16065
16066 sysv5* | sco3.2v5* | sco5v6*)
16067 # Note: We can NOT use -z defs as we might desire, because we do not
16068 # link with -lc, and that would cause any symbols used from libc to
16069 # always be unresolved, which means just about no library would
16070 # ever link correctly. If we're not using GNU ld we use -z text
16071 # though, which does catch some bad symbols but isn't as heavy-handed
16072 # as -z defs.
16073 no_undefined_flag='${wl}-z,text'
16074 allow_undefined_flag='${wl}-z,nodefs'
16075 archive_cmds_need_lc=no
16076 hardcode_shlibpath_var=no
16077 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16078 hardcode_libdir_separator=':'
16079 link_all_deplibs=yes
16080 export_dynamic_flag_spec='${wl}-Bexport'
16081 runpath_var='LD_RUN_PATH'
16082
16083 if test "$GCC" = yes; then
16084 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16085 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16086 else
16087 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16088 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16089 fi
16090 ;;
16091
16092 uts4*)
16093 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16094 hardcode_libdir_flag_spec='-L$libdir'
16095 hardcode_shlibpath_var=no
16096 ;;
16097
16098 *)
16099 ld_shlibs=no
16100 ;;
16101 esac
16102
16103 if test x$host_vendor = xsni; then
16104 case $host in
16105 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16106 export_dynamic_flag_spec='${wl}-Blargedynsym'
16107 ;;
16108 esac
16109 fi
16110 fi
16111
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16113 $as_echo "$ld_shlibs" >&6; }
16114 test "$ld_shlibs" = no && can_build_shared=no
16115
16116 with_gnu_ld=$with_gnu_ld
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132 #
16133 # Do we need to explicitly link libc?
16134 #
16135 case "x$archive_cmds_need_lc" in
16136 x|xyes)
16137 # Assume -lc should be added
16138 archive_cmds_need_lc=yes
16139
16140 if test "$enable_shared" = yes && test "$GCC" = yes; then
16141 case $archive_cmds in
16142 *'~'*)
16143 # FIXME: we may have to deal with multi-command sequences.
16144 ;;
16145 '$CC '*)
16146 # Test whether the compiler implicitly links with -lc since on some
16147 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16148 # to ld, don't add -lc before -lgcc.
16149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16150 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16151 if ${lt_cv_archive_cmds_need_lc+:} false; then :
16152 $as_echo_n "(cached) " >&6
16153 else
16154 $RM conftest*
16155 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16156
16157 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16158 (eval $ac_compile) 2>&5
16159 ac_status=$?
16160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16161 test $ac_status = 0; } 2>conftest.err; then
16162 soname=conftest
16163 lib=conftest
16164 libobjs=conftest.$ac_objext
16165 deplibs=
16166 wl=$lt_prog_compiler_wl
16167 pic_flag=$lt_prog_compiler_pic
16168 compiler_flags=-v
16169 linker_flags=-v
16170 verstring=
16171 output_objdir=.
16172 libname=conftest
16173 lt_save_allow_undefined_flag=$allow_undefined_flag
16174 allow_undefined_flag=
16175 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16176 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16177 ac_status=$?
16178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16179 test $ac_status = 0; }
16180 then
16181 lt_cv_archive_cmds_need_lc=no
16182 else
16183 lt_cv_archive_cmds_need_lc=yes
16184 fi
16185 allow_undefined_flag=$lt_save_allow_undefined_flag
16186 else
16187 cat conftest.err 1>&5
16188 fi
16189 $RM conftest*
16190
16191 fi
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16193 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16194 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16195 ;;
16196 esac
16197 fi
16198 ;;
16199 esac
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16353 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16354
16355 if test "$GCC" = yes; then
16356 case $host_os in
16357 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16358 *) lt_awk_arg="/^libraries:/" ;;
16359 esac
16360 case $host_os in
16361 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16362 *) lt_sed_strip_eq="s,=/,/,g" ;;
16363 esac
16364 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16365 case $lt_search_path_spec in
16366 *\;*)
16367 # if the path contains ";" then we assume it to be the separator
16368 # otherwise default to the standard path separator (i.e. ":") - it is
16369 # assumed that no part of a normal pathname contains ";" but that should
16370 # okay in the real world where ";" in dirpaths is itself problematic.
16371 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16372 ;;
16373 *)
16374 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16375 ;;
16376 esac
16377 # Ok, now we have the path, separated by spaces, we can step through it
16378 # and add multilib dir if necessary.
16379 lt_tmp_lt_search_path_spec=
16380 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16381 for lt_sys_path in $lt_search_path_spec; do
16382 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16383 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16384 else
16385 test -d "$lt_sys_path" && \
16386 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16387 fi
16388 done
16389 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16390 BEGIN {RS=" "; FS="/|\n";} {
16391 lt_foo="";
16392 lt_count=0;
16393 for (lt_i = NF; lt_i > 0; lt_i--) {
16394 if ($lt_i != "" && $lt_i != ".") {
16395 if ($lt_i == "..") {
16396 lt_count++;
16397 } else {
16398 if (lt_count == 0) {
16399 lt_foo="/" $lt_i lt_foo;
16400 } else {
16401 lt_count--;
16402 }
16403 }
16404 }
16405 }
16406 if (lt_foo != "") { lt_freq[lt_foo]++; }
16407 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16408 }'`
16409 # AWK program above erroneously prepends '/' to C:/dos/paths
16410 # for these hosts.
16411 case $host_os in
16412 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16413 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16414 esac
16415 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16416 else
16417 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16418 fi
16419 library_names_spec=
16420 libname_spec='lib$name'
16421 soname_spec=
16422 shrext_cmds=".so"
16423 postinstall_cmds=
16424 postuninstall_cmds=
16425 finish_cmds=
16426 finish_eval=
16427 shlibpath_var=
16428 shlibpath_overrides_runpath=unknown
16429 version_type=none
16430 dynamic_linker="$host_os ld.so"
16431 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16432 need_lib_prefix=unknown
16433 hardcode_into_libs=no
16434
16435 # when you set need_version to no, make sure it does not cause -set_version
16436 # flags to be left without arguments
16437 need_version=unknown
16438
16439 case $host_os in
16440 aix3*)
16441 version_type=linux # correct to gnu/linux during the next big refactor
16442 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16443 shlibpath_var=LIBPATH
16444
16445 # AIX 3 has no versioning support, so we append a major version to the name.
16446 soname_spec='${libname}${release}${shared_ext}$major'
16447 ;;
16448
16449 aix[4-9]*)
16450 version_type=linux # correct to gnu/linux during the next big refactor
16451 need_lib_prefix=no
16452 need_version=no
16453 hardcode_into_libs=yes
16454 if test "$host_cpu" = ia64; then
16455 # AIX 5 supports IA64
16456 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16457 shlibpath_var=LD_LIBRARY_PATH
16458 else
16459 # With GCC up to 2.95.x, collect2 would create an import file
16460 # for dependence libraries. The import file would start with
16461 # the line `#! .'. This would cause the generated library to
16462 # depend on `.', always an invalid library. This was fixed in
16463 # development snapshots of GCC prior to 3.0.
16464 case $host_os in
16465 aix4 | aix4.[01] | aix4.[01].*)
16466 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16467 echo ' yes '
16468 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16469 :
16470 else
16471 can_build_shared=no
16472 fi
16473 ;;
16474 esac
16475 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16476 # soname into executable. Probably we can add versioning support to
16477 # collect2, so additional links can be useful in future.
16478 if test "$aix_use_runtimelinking" = yes; then
16479 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16480 # instead of lib<name>.a to let people know that these are not
16481 # typical AIX shared libraries.
16482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16483 else
16484 # We preserve .a as extension for shared libraries through AIX4.2
16485 # and later when we are not doing run time linking.
16486 library_names_spec='${libname}${release}.a $libname.a'
16487 soname_spec='${libname}${release}${shared_ext}$major'
16488 fi
16489 shlibpath_var=LIBPATH
16490 fi
16491 ;;
16492
16493 amigaos*)
16494 case $host_cpu in
16495 powerpc)
16496 # Since July 2007 AmigaOS4 officially supports .so libraries.
16497 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16499 ;;
16500 m68k)
16501 library_names_spec='$libname.ixlibrary $libname.a'
16502 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16503 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'
16504 ;;
16505 esac
16506 ;;
16507
16508 beos*)
16509 library_names_spec='${libname}${shared_ext}'
16510 dynamic_linker="$host_os ld.so"
16511 shlibpath_var=LIBRARY_PATH
16512 ;;
16513
16514 bsdi[45]*)
16515 version_type=linux # correct to gnu/linux during the next big refactor
16516 need_version=no
16517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16518 soname_spec='${libname}${release}${shared_ext}$major'
16519 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16520 shlibpath_var=LD_LIBRARY_PATH
16521 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16522 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16523 # the default ld.so.conf also contains /usr/contrib/lib and
16524 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16525 # libtool to hard-code these into programs
16526 ;;
16527
16528 cygwin* | mingw* | pw32* | cegcc*)
16529 version_type=windows
16530 shrext_cmds=".dll"
16531 need_version=no
16532 need_lib_prefix=no
16533
16534 case $GCC,$cc_basename in
16535 yes,*)
16536 # gcc
16537 library_names_spec='$libname.dll.a'
16538 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16539 postinstall_cmds='base_file=`basename \${file}`~
16540 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16541 dldir=$destdir/`dirname \$dlpath`~
16542 test -d \$dldir || mkdir -p \$dldir~
16543 $install_prog $dir/$dlname \$dldir/$dlname~
16544 chmod a+x \$dldir/$dlname~
16545 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16546 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16547 fi'
16548 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16549 dlpath=$dir/\$dldll~
16550 $RM \$dlpath'
16551 shlibpath_overrides_runpath=yes
16552
16553 case $host_os in
16554 cygwin*)
16555 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16556 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16557
16558 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16559 ;;
16560 mingw* | cegcc*)
16561 # MinGW DLLs use traditional 'lib' prefix
16562 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16563 ;;
16564 pw32*)
16565 # pw32 DLLs use 'pw' prefix rather than 'lib'
16566 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16567 ;;
16568 esac
16569 dynamic_linker='Win32 ld.exe'
16570 ;;
16571
16572 *,cl*)
16573 # Native MSVC
16574 libname_spec='$name'
16575 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16576 library_names_spec='${libname}.dll.lib'
16577
16578 case $build_os in
16579 mingw*)
16580 sys_lib_search_path_spec=
16581 lt_save_ifs=$IFS
16582 IFS=';'
16583 for lt_path in $LIB
16584 do
16585 IFS=$lt_save_ifs
16586 # Let DOS variable expansion print the short 8.3 style file name.
16587 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16588 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16589 done
16590 IFS=$lt_save_ifs
16591 # Convert to MSYS style.
16592 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16593 ;;
16594 cygwin*)
16595 # Convert to unix form, then to dos form, then back to unix form
16596 # but this time dos style (no spaces!) so that the unix form looks
16597 # like /cygdrive/c/PROGRA~1:/cygdr...
16598 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16599 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16600 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16601 ;;
16602 *)
16603 sys_lib_search_path_spec="$LIB"
16604 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16605 # It is most probably a Windows format PATH.
16606 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16607 else
16608 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16609 fi
16610 # FIXME: find the short name or the path components, as spaces are
16611 # common. (e.g. "Program Files" -> "PROGRA~1")
16612 ;;
16613 esac
16614
16615 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16616 postinstall_cmds='base_file=`basename \${file}`~
16617 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16618 dldir=$destdir/`dirname \$dlpath`~
16619 test -d \$dldir || mkdir -p \$dldir~
16620 $install_prog $dir/$dlname \$dldir/$dlname'
16621 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16622 dlpath=$dir/\$dldll~
16623 $RM \$dlpath'
16624 shlibpath_overrides_runpath=yes
16625 dynamic_linker='Win32 link.exe'
16626 ;;
16627
16628 *)
16629 # Assume MSVC wrapper
16630 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16631 dynamic_linker='Win32 ld.exe'
16632 ;;
16633 esac
16634 # FIXME: first we should search . and the directory the executable is in
16635 shlibpath_var=PATH
16636 ;;
16637
16638 darwin* | rhapsody*)
16639 dynamic_linker="$host_os dyld"
16640 version_type=darwin
16641 need_lib_prefix=no
16642 need_version=no
16643 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16644 soname_spec='${libname}${release}${major}$shared_ext'
16645 shlibpath_overrides_runpath=yes
16646 shlibpath_var=DYLD_LIBRARY_PATH
16647 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16648
16649 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16650 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16651 ;;
16652
16653 dgux*)
16654 version_type=linux # correct to gnu/linux during the next big refactor
16655 need_lib_prefix=no
16656 need_version=no
16657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16658 soname_spec='${libname}${release}${shared_ext}$major'
16659 shlibpath_var=LD_LIBRARY_PATH
16660 ;;
16661
16662 freebsd* | dragonfly*)
16663 # DragonFly does not have aout. When/if they implement a new
16664 # versioning mechanism, adjust this.
16665 if test -x /usr/bin/objformat; then
16666 objformat=`/usr/bin/objformat`
16667 else
16668 case $host_os in
16669 freebsd[23].*) objformat=aout ;;
16670 *) objformat=elf ;;
16671 esac
16672 fi
16673 # Handle Gentoo/FreeBSD as it was Linux
16674 case $host_vendor in
16675 gentoo)
16676 version_type=linux ;;
16677 *)
16678 version_type=freebsd-$objformat ;;
16679 esac
16680
16681 case $version_type in
16682 freebsd-elf*)
16683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16684 need_version=no
16685 need_lib_prefix=no
16686 ;;
16687 freebsd-*)
16688 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16689 need_version=yes
16690 ;;
16691 linux)
16692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16693 soname_spec='${libname}${release}${shared_ext}$major'
16694 need_lib_prefix=no
16695 need_version=no
16696 ;;
16697 esac
16698 shlibpath_var=LD_LIBRARY_PATH
16699 case $host_os in
16700 freebsd2.*)
16701 shlibpath_overrides_runpath=yes
16702 ;;
16703 freebsd3.[01]* | freebsdelf3.[01]*)
16704 shlibpath_overrides_runpath=yes
16705 hardcode_into_libs=yes
16706 ;;
16707 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16708 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16709 shlibpath_overrides_runpath=no
16710 hardcode_into_libs=yes
16711 ;;
16712 *) # from 4.6 on, and DragonFly
16713 shlibpath_overrides_runpath=yes
16714 hardcode_into_libs=yes
16715 ;;
16716 esac
16717 ;;
16718
16719 gnu*)
16720 version_type=linux # correct to gnu/linux during the next big refactor
16721 need_lib_prefix=no
16722 need_version=no
16723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16724 soname_spec='${libname}${release}${shared_ext}$major'
16725 shlibpath_var=LD_LIBRARY_PATH
16726 shlibpath_overrides_runpath=no
16727 hardcode_into_libs=yes
16728 ;;
16729
16730 haiku*)
16731 version_type=linux # correct to gnu/linux during the next big refactor
16732 need_lib_prefix=no
16733 need_version=no
16734 dynamic_linker="$host_os runtime_loader"
16735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16736 soname_spec='${libname}${release}${shared_ext}$major'
16737 shlibpath_var=LIBRARY_PATH
16738 shlibpath_overrides_runpath=yes
16739 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16740 hardcode_into_libs=yes
16741 ;;
16742
16743 hpux9* | hpux10* | hpux11*)
16744 # Give a soname corresponding to the major version so that dld.sl refuses to
16745 # link against other versions.
16746 version_type=sunos
16747 need_lib_prefix=no
16748 need_version=no
16749 case $host_cpu in
16750 ia64*)
16751 shrext_cmds='.so'
16752 hardcode_into_libs=yes
16753 dynamic_linker="$host_os dld.so"
16754 shlibpath_var=LD_LIBRARY_PATH
16755 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16757 soname_spec='${libname}${release}${shared_ext}$major'
16758 if test "X$HPUX_IA64_MODE" = X32; then
16759 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16760 else
16761 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16762 fi
16763 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16764 ;;
16765 hppa*64*)
16766 shrext_cmds='.sl'
16767 hardcode_into_libs=yes
16768 dynamic_linker="$host_os dld.sl"
16769 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16770 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16772 soname_spec='${libname}${release}${shared_ext}$major'
16773 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16774 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16775 ;;
16776 *)
16777 shrext_cmds='.sl'
16778 dynamic_linker="$host_os dld.sl"
16779 shlibpath_var=SHLIB_PATH
16780 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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 ;;
16784 esac
16785 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16786 postinstall_cmds='chmod 555 $lib'
16787 # or fails outright, so override atomically:
16788 install_override_mode=555
16789 ;;
16790
16791 interix[3-9]*)
16792 version_type=linux # correct to gnu/linux during the next big refactor
16793 need_lib_prefix=no
16794 need_version=no
16795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16796 soname_spec='${libname}${release}${shared_ext}$major'
16797 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16798 shlibpath_var=LD_LIBRARY_PATH
16799 shlibpath_overrides_runpath=no
16800 hardcode_into_libs=yes
16801 ;;
16802
16803 irix5* | irix6* | nonstopux*)
16804 case $host_os in
16805 nonstopux*) version_type=nonstopux ;;
16806 *)
16807 if test "$lt_cv_prog_gnu_ld" = yes; then
16808 version_type=linux # correct to gnu/linux during the next big refactor
16809 else
16810 version_type=irix
16811 fi ;;
16812 esac
16813 need_lib_prefix=no
16814 need_version=no
16815 soname_spec='${libname}${release}${shared_ext}$major'
16816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16817 case $host_os in
16818 irix5* | nonstopux*)
16819 libsuff= shlibsuff=
16820 ;;
16821 *)
16822 case $LD in # libtool.m4 will add one of these switches to LD
16823 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16824 libsuff= shlibsuff= libmagic=32-bit;;
16825 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16826 libsuff=32 shlibsuff=N32 libmagic=N32;;
16827 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16828 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16829 *) libsuff= shlibsuff= libmagic=never-match;;
16830 esac
16831 ;;
16832 esac
16833 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16834 shlibpath_overrides_runpath=no
16835 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16836 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16837 hardcode_into_libs=yes
16838 ;;
16839
16840 # No shared lib support for Linux oldld, aout, or coff.
16841 linux*oldld* | linux*aout* | linux*coff*)
16842 dynamic_linker=no
16843 ;;
16844
16845 # This must be glibc/ELF.
16846 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16847 version_type=linux # correct to gnu/linux during the next big refactor
16848 need_lib_prefix=no
16849 need_version=no
16850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16851 soname_spec='${libname}${release}${shared_ext}$major'
16852 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16853 shlibpath_var=LD_LIBRARY_PATH
16854 shlibpath_overrides_runpath=no
16855
16856 # Some binutils ld are patched to set DT_RUNPATH
16857 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16858 $as_echo_n "(cached) " >&6
16859 else
16860 lt_cv_shlibpath_overrides_runpath=no
16861 save_LDFLAGS=$LDFLAGS
16862 save_libdir=$libdir
16863 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16864 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16866 /* end confdefs.h. */
16867
16868 int
16869 main ()
16870 {
16871
16872 ;
16873 return 0;
16874 }
16875 _ACEOF
16876 if ac_fn_c_try_link "$LINENO"; then :
16877 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16878 lt_cv_shlibpath_overrides_runpath=yes
16879 fi
16880 fi
16881 rm -f core conftest.err conftest.$ac_objext \
16882 conftest$ac_exeext conftest.$ac_ext
16883 LDFLAGS=$save_LDFLAGS
16884 libdir=$save_libdir
16885
16886 fi
16887
16888 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16889
16890 # This implies no fast_install, which is unacceptable.
16891 # Some rework will be needed to allow for fast_install
16892 # before this can be enabled.
16893 hardcode_into_libs=yes
16894
16895 # Append ld.so.conf contents to the search path
16896 if test -f /etc/ld.so.conf; then
16897 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' ' '`
16898 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16899 fi
16900
16901 # We used to test for /lib/ld.so.1 and disable shared libraries on
16902 # powerpc, because MkLinux only supported shared libraries with the
16903 # GNU dynamic linker. Since this was broken with cross compilers,
16904 # most powerpc-linux boxes support dynamic linking these days and
16905 # people can always --disable-shared, the test was removed, and we
16906 # assume the GNU/Linux dynamic linker is in use.
16907 dynamic_linker='GNU/Linux ld.so'
16908 ;;
16909
16910 netbsd*)
16911 version_type=sunos
16912 need_lib_prefix=no
16913 need_version=no
16914 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16916 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16917 dynamic_linker='NetBSD (a.out) ld.so'
16918 else
16919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16920 soname_spec='${libname}${release}${shared_ext}$major'
16921 dynamic_linker='NetBSD ld.elf_so'
16922 fi
16923 shlibpath_var=LD_LIBRARY_PATH
16924 shlibpath_overrides_runpath=yes
16925 hardcode_into_libs=yes
16926 ;;
16927
16928 newsos6)
16929 version_type=linux # correct to gnu/linux during the next big refactor
16930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16931 shlibpath_var=LD_LIBRARY_PATH
16932 shlibpath_overrides_runpath=yes
16933 ;;
16934
16935 *nto* | *qnx*)
16936 version_type=qnx
16937 need_lib_prefix=no
16938 need_version=no
16939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16940 soname_spec='${libname}${release}${shared_ext}$major'
16941 shlibpath_var=LD_LIBRARY_PATH
16942 shlibpath_overrides_runpath=no
16943 hardcode_into_libs=yes
16944 dynamic_linker='ldqnx.so'
16945 ;;
16946
16947 openbsd*)
16948 version_type=sunos
16949 sys_lib_dlsearch_path_spec="/usr/lib"
16950 need_lib_prefix=no
16951 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16952 case $host_os in
16953 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16954 *) need_version=no ;;
16955 esac
16956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16957 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16958 shlibpath_var=LD_LIBRARY_PATH
16959 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16960 case $host_os in
16961 openbsd2.[89] | openbsd2.[89].*)
16962 shlibpath_overrides_runpath=no
16963 ;;
16964 *)
16965 shlibpath_overrides_runpath=yes
16966 ;;
16967 esac
16968 else
16969 shlibpath_overrides_runpath=yes
16970 fi
16971 ;;
16972
16973 os2*)
16974 libname_spec='$name'
16975 shrext_cmds=".dll"
16976 need_lib_prefix=no
16977 library_names_spec='$libname${shared_ext} $libname.a'
16978 dynamic_linker='OS/2 ld.exe'
16979 shlibpath_var=LIBPATH
16980 ;;
16981
16982 osf3* | osf4* | osf5*)
16983 version_type=osf
16984 need_lib_prefix=no
16985 need_version=no
16986 soname_spec='${libname}${release}${shared_ext}$major'
16987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16988 shlibpath_var=LD_LIBRARY_PATH
16989 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16990 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16991 ;;
16992
16993 rdos*)
16994 dynamic_linker=no
16995 ;;
16996
16997 solaris*)
16998 version_type=linux # correct to gnu/linux during the next big refactor
16999 need_lib_prefix=no
17000 need_version=no
17001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17002 soname_spec='${libname}${release}${shared_ext}$major'
17003 shlibpath_var=LD_LIBRARY_PATH
17004 shlibpath_overrides_runpath=yes
17005 hardcode_into_libs=yes
17006 # ldd complains unless libraries are executable
17007 postinstall_cmds='chmod +x $lib'
17008 ;;
17009
17010 sunos4*)
17011 version_type=sunos
17012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17013 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17014 shlibpath_var=LD_LIBRARY_PATH
17015 shlibpath_overrides_runpath=yes
17016 if test "$with_gnu_ld" = yes; then
17017 need_lib_prefix=no
17018 fi
17019 need_version=yes
17020 ;;
17021
17022 sysv4 | sysv4.3*)
17023 version_type=linux # correct to gnu/linux during the next big refactor
17024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17025 soname_spec='${libname}${release}${shared_ext}$major'
17026 shlibpath_var=LD_LIBRARY_PATH
17027 case $host_vendor in
17028 sni)
17029 shlibpath_overrides_runpath=no
17030 need_lib_prefix=no
17031 runpath_var=LD_RUN_PATH
17032 ;;
17033 siemens)
17034 need_lib_prefix=no
17035 ;;
17036 motorola)
17037 need_lib_prefix=no
17038 need_version=no
17039 shlibpath_overrides_runpath=no
17040 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17041 ;;
17042 esac
17043 ;;
17044
17045 sysv4*MP*)
17046 if test -d /usr/nec ;then
17047 version_type=linux # correct to gnu/linux during the next big refactor
17048 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17049 soname_spec='$libname${shared_ext}.$major'
17050 shlibpath_var=LD_LIBRARY_PATH
17051 fi
17052 ;;
17053
17054 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17055 version_type=freebsd-elf
17056 need_lib_prefix=no
17057 need_version=no
17058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17059 soname_spec='${libname}${release}${shared_ext}$major'
17060 shlibpath_var=LD_LIBRARY_PATH
17061 shlibpath_overrides_runpath=yes
17062 hardcode_into_libs=yes
17063 if test "$with_gnu_ld" = yes; then
17064 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17065 else
17066 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17067 case $host_os in
17068 sco3.2v5*)
17069 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17070 ;;
17071 esac
17072 fi
17073 sys_lib_dlsearch_path_spec='/usr/lib'
17074 ;;
17075
17076 tpf*)
17077 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17078 version_type=linux # correct to gnu/linux during the next big refactor
17079 need_lib_prefix=no
17080 need_version=no
17081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17082 shlibpath_var=LD_LIBRARY_PATH
17083 shlibpath_overrides_runpath=no
17084 hardcode_into_libs=yes
17085 ;;
17086
17087 uts4*)
17088 version_type=linux # correct to gnu/linux during the next big refactor
17089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17090 soname_spec='${libname}${release}${shared_ext}$major'
17091 shlibpath_var=LD_LIBRARY_PATH
17092 ;;
17093
17094 *)
17095 dynamic_linker=no
17096 ;;
17097 esac
17098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17099 $as_echo "$dynamic_linker" >&6; }
17100 test "$dynamic_linker" = no && can_build_shared=no
17101
17102 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17103 if test "$GCC" = yes; then
17104 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17105 fi
17106
17107 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17108 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17109 fi
17110 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17111 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17112 fi
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17206 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17207 hardcode_action=
17208 if test -n "$hardcode_libdir_flag_spec" ||
17209 test -n "$runpath_var" ||
17210 test "X$hardcode_automatic" = "Xyes" ; then
17211
17212 # We can hardcode non-existent directories.
17213 if test "$hardcode_direct" != no &&
17214 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17215 # have to relink, otherwise we might link with an installed library
17216 # when we should be linking with a yet-to-be-installed one
17217 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17218 test "$hardcode_minus_L" != no; then
17219 # Linking always hardcodes the temporary library directory.
17220 hardcode_action=relink
17221 else
17222 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17223 hardcode_action=immediate
17224 fi
17225 else
17226 # We cannot hardcode anything, or else we can only hardcode existing
17227 # directories.
17228 hardcode_action=unsupported
17229 fi
17230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17231 $as_echo "$hardcode_action" >&6; }
17232
17233 if test "$hardcode_action" = relink ||
17234 test "$inherit_rpath" = yes; then
17235 # Fast installation is not supported
17236 enable_fast_install=no
17237 elif test "$shlibpath_overrides_runpath" = yes ||
17238 test "$enable_shared" = no; then
17239 # Fast installation is not necessary
17240 enable_fast_install=needless
17241 fi
17242
17243
17244
17245
17246
17247
17248 if test "x$enable_dlopen" != xyes; then
17249 enable_dlopen=unknown
17250 enable_dlopen_self=unknown
17251 enable_dlopen_self_static=unknown
17252 else
17253 lt_cv_dlopen=no
17254 lt_cv_dlopen_libs=
17255
17256 case $host_os in
17257 beos*)
17258 lt_cv_dlopen="load_add_on"
17259 lt_cv_dlopen_libs=
17260 lt_cv_dlopen_self=yes
17261 ;;
17262
17263 mingw* | pw32* | cegcc*)
17264 lt_cv_dlopen="LoadLibrary"
17265 lt_cv_dlopen_libs=
17266 ;;
17267
17268 cygwin*)
17269 lt_cv_dlopen="dlopen"
17270 lt_cv_dlopen_libs=
17271 ;;
17272
17273 darwin*)
17274 # if libdl is installed we need to link against it
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17276 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17277 if ${ac_cv_lib_dl_dlopen+:} false; then :
17278 $as_echo_n "(cached) " >&6
17279 else
17280 ac_check_lib_save_LIBS=$LIBS
17281 LIBS="-ldl $LIBS"
17282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17283 /* end confdefs.h. */
17284
17285 /* Override any GCC internal prototype to avoid an error.
17286 Use char because int might match the return type of a GCC
17287 builtin and then its argument prototype would still apply. */
17288 #ifdef __cplusplus
17289 extern "C"
17290 #endif
17291 char dlopen ();
17292 int
17293 main ()
17294 {
17295 return dlopen ();
17296 ;
17297 return 0;
17298 }
17299 _ACEOF
17300 if ac_fn_c_try_link "$LINENO"; then :
17301 ac_cv_lib_dl_dlopen=yes
17302 else
17303 ac_cv_lib_dl_dlopen=no
17304 fi
17305 rm -f core conftest.err conftest.$ac_objext \
17306 conftest$ac_exeext conftest.$ac_ext
17307 LIBS=$ac_check_lib_save_LIBS
17308 fi
17309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17310 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17311 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17312 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17313 else
17314
17315 lt_cv_dlopen="dyld"
17316 lt_cv_dlopen_libs=
17317 lt_cv_dlopen_self=yes
17318
17319 fi
17320
17321 ;;
17322
17323 *)
17324 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17325 if test "x$ac_cv_func_shl_load" = xyes; then :
17326 lt_cv_dlopen="shl_load"
17327 else
17328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17329 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17330 if ${ac_cv_lib_dld_shl_load+:} false; then :
17331 $as_echo_n "(cached) " >&6
17332 else
17333 ac_check_lib_save_LIBS=$LIBS
17334 LIBS="-ldld $LIBS"
17335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17336 /* end confdefs.h. */
17337
17338 /* Override any GCC internal prototype to avoid an error.
17339 Use char because int might match the return type of a GCC
17340 builtin and then its argument prototype would still apply. */
17341 #ifdef __cplusplus
17342 extern "C"
17343 #endif
17344 char shl_load ();
17345 int
17346 main ()
17347 {
17348 return shl_load ();
17349 ;
17350 return 0;
17351 }
17352 _ACEOF
17353 if ac_fn_c_try_link "$LINENO"; then :
17354 ac_cv_lib_dld_shl_load=yes
17355 else
17356 ac_cv_lib_dld_shl_load=no
17357 fi
17358 rm -f core conftest.err conftest.$ac_objext \
17359 conftest$ac_exeext conftest.$ac_ext
17360 LIBS=$ac_check_lib_save_LIBS
17361 fi
17362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17363 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17364 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17365 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17366 else
17367 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17368 if test "x$ac_cv_func_dlopen" = xyes; then :
17369 lt_cv_dlopen="dlopen"
17370 else
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17372 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17373 if ${ac_cv_lib_dl_dlopen+:} false; then :
17374 $as_echo_n "(cached) " >&6
17375 else
17376 ac_check_lib_save_LIBS=$LIBS
17377 LIBS="-ldl $LIBS"
17378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17379 /* end confdefs.h. */
17380
17381 /* Override any GCC internal prototype to avoid an error.
17382 Use char because int might match the return type of a GCC
17383 builtin and then its argument prototype would still apply. */
17384 #ifdef __cplusplus
17385 extern "C"
17386 #endif
17387 char dlopen ();
17388 int
17389 main ()
17390 {
17391 return dlopen ();
17392 ;
17393 return 0;
17394 }
17395 _ACEOF
17396 if ac_fn_c_try_link "$LINENO"; then :
17397 ac_cv_lib_dl_dlopen=yes
17398 else
17399 ac_cv_lib_dl_dlopen=no
17400 fi
17401 rm -f core conftest.err conftest.$ac_objext \
17402 conftest$ac_exeext conftest.$ac_ext
17403 LIBS=$ac_check_lib_save_LIBS
17404 fi
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17406 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17407 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17408 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17409 else
17410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17411 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17412 if ${ac_cv_lib_svld_dlopen+:} false; then :
17413 $as_echo_n "(cached) " >&6
17414 else
17415 ac_check_lib_save_LIBS=$LIBS
17416 LIBS="-lsvld $LIBS"
17417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17418 /* end confdefs.h. */
17419
17420 /* Override any GCC internal prototype to avoid an error.
17421 Use char because int might match the return type of a GCC
17422 builtin and then its argument prototype would still apply. */
17423 #ifdef __cplusplus
17424 extern "C"
17425 #endif
17426 char dlopen ();
17427 int
17428 main ()
17429 {
17430 return dlopen ();
17431 ;
17432 return 0;
17433 }
17434 _ACEOF
17435 if ac_fn_c_try_link "$LINENO"; then :
17436 ac_cv_lib_svld_dlopen=yes
17437 else
17438 ac_cv_lib_svld_dlopen=no
17439 fi
17440 rm -f core conftest.err conftest.$ac_objext \
17441 conftest$ac_exeext conftest.$ac_ext
17442 LIBS=$ac_check_lib_save_LIBS
17443 fi
17444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17445 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17446 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17447 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17448 else
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17450 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17451 if ${ac_cv_lib_dld_dld_link+:} false; then :
17452 $as_echo_n "(cached) " >&6
17453 else
17454 ac_check_lib_save_LIBS=$LIBS
17455 LIBS="-ldld $LIBS"
17456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17457 /* end confdefs.h. */
17458
17459 /* Override any GCC internal prototype to avoid an error.
17460 Use char because int might match the return type of a GCC
17461 builtin and then its argument prototype would still apply. */
17462 #ifdef __cplusplus
17463 extern "C"
17464 #endif
17465 char dld_link ();
17466 int
17467 main ()
17468 {
17469 return dld_link ();
17470 ;
17471 return 0;
17472 }
17473 _ACEOF
17474 if ac_fn_c_try_link "$LINENO"; then :
17475 ac_cv_lib_dld_dld_link=yes
17476 else
17477 ac_cv_lib_dld_dld_link=no
17478 fi
17479 rm -f core conftest.err conftest.$ac_objext \
17480 conftest$ac_exeext conftest.$ac_ext
17481 LIBS=$ac_check_lib_save_LIBS
17482 fi
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17484 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17485 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17486 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17487 fi
17488
17489
17490 fi
17491
17492
17493 fi
17494
17495
17496 fi
17497
17498
17499 fi
17500
17501
17502 fi
17503
17504 ;;
17505 esac
17506
17507 if test "x$lt_cv_dlopen" != xno; then
17508 enable_dlopen=yes
17509 else
17510 enable_dlopen=no
17511 fi
17512
17513 case $lt_cv_dlopen in
17514 dlopen)
17515 save_CPPFLAGS="$CPPFLAGS"
17516 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17517
17518 save_LDFLAGS="$LDFLAGS"
17519 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17520
17521 save_LIBS="$LIBS"
17522 LIBS="$lt_cv_dlopen_libs $LIBS"
17523
17524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17525 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17526 if ${lt_cv_dlopen_self+:} false; then :
17527 $as_echo_n "(cached) " >&6
17528 else
17529 if test "$cross_compiling" = yes; then :
17530 lt_cv_dlopen_self=cross
17531 else
17532 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17533 lt_status=$lt_dlunknown
17534 cat > conftest.$ac_ext <<_LT_EOF
17535 #line $LINENO "configure"
17536 #include "confdefs.h"
17537
17538 #if HAVE_DLFCN_H
17539 #include <dlfcn.h>
17540 #endif
17541
17542 #include <stdio.h>
17543
17544 #ifdef RTLD_GLOBAL
17545 # define LT_DLGLOBAL RTLD_GLOBAL
17546 #else
17547 # ifdef DL_GLOBAL
17548 # define LT_DLGLOBAL DL_GLOBAL
17549 # else
17550 # define LT_DLGLOBAL 0
17551 # endif
17552 #endif
17553
17554 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17555 find out it does not work in some platform. */
17556 #ifndef LT_DLLAZY_OR_NOW
17557 # ifdef RTLD_LAZY
17558 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17559 # else
17560 # ifdef DL_LAZY
17561 # define LT_DLLAZY_OR_NOW DL_LAZY
17562 # else
17563 # ifdef RTLD_NOW
17564 # define LT_DLLAZY_OR_NOW RTLD_NOW
17565 # else
17566 # ifdef DL_NOW
17567 # define LT_DLLAZY_OR_NOW DL_NOW
17568 # else
17569 # define LT_DLLAZY_OR_NOW 0
17570 # endif
17571 # endif
17572 # endif
17573 # endif
17574 #endif
17575
17576 /* When -fvisbility=hidden is used, assume the code has been annotated
17577 correspondingly for the symbols needed. */
17578 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17579 int fnord () __attribute__((visibility("default")));
17580 #endif
17581
17582 int fnord () { return 42; }
17583 int main ()
17584 {
17585 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17586 int status = $lt_dlunknown;
17587
17588 if (self)
17589 {
17590 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17591 else
17592 {
17593 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17594 else puts (dlerror ());
17595 }
17596 /* dlclose (self); */
17597 }
17598 else
17599 puts (dlerror ());
17600
17601 return status;
17602 }
17603 _LT_EOF
17604 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17605 (eval $ac_link) 2>&5
17606 ac_status=$?
17607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17608 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17609 (./conftest; exit; ) >&5 2>/dev/null
17610 lt_status=$?
17611 case x$lt_status in
17612 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17613 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17614 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17615 esac
17616 else :
17617 # compilation failed
17618 lt_cv_dlopen_self=no
17619 fi
17620 fi
17621 rm -fr conftest*
17622
17623
17624 fi
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17626 $as_echo "$lt_cv_dlopen_self" >&6; }
17627
17628 if test "x$lt_cv_dlopen_self" = xyes; then
17629 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17631 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17632 if ${lt_cv_dlopen_self_static+:} false; then :
17633 $as_echo_n "(cached) " >&6
17634 else
17635 if test "$cross_compiling" = yes; then :
17636 lt_cv_dlopen_self_static=cross
17637 else
17638 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17639 lt_status=$lt_dlunknown
17640 cat > conftest.$ac_ext <<_LT_EOF
17641 #line $LINENO "configure"
17642 #include "confdefs.h"
17643
17644 #if HAVE_DLFCN_H
17645 #include <dlfcn.h>
17646 #endif
17647
17648 #include <stdio.h>
17649
17650 #ifdef RTLD_GLOBAL
17651 # define LT_DLGLOBAL RTLD_GLOBAL
17652 #else
17653 # ifdef DL_GLOBAL
17654 # define LT_DLGLOBAL DL_GLOBAL
17655 # else
17656 # define LT_DLGLOBAL 0
17657 # endif
17658 #endif
17659
17660 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17661 find out it does not work in some platform. */
17662 #ifndef LT_DLLAZY_OR_NOW
17663 # ifdef RTLD_LAZY
17664 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17665 # else
17666 # ifdef DL_LAZY
17667 # define LT_DLLAZY_OR_NOW DL_LAZY
17668 # else
17669 # ifdef RTLD_NOW
17670 # define LT_DLLAZY_OR_NOW RTLD_NOW
17671 # else
17672 # ifdef DL_NOW
17673 # define LT_DLLAZY_OR_NOW DL_NOW
17674 # else
17675 # define LT_DLLAZY_OR_NOW 0
17676 # endif
17677 # endif
17678 # endif
17679 # endif
17680 #endif
17681
17682 /* When -fvisbility=hidden is used, assume the code has been annotated
17683 correspondingly for the symbols needed. */
17684 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17685 int fnord () __attribute__((visibility("default")));
17686 #endif
17687
17688 int fnord () { return 42; }
17689 int main ()
17690 {
17691 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17692 int status = $lt_dlunknown;
17693
17694 if (self)
17695 {
17696 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17697 else
17698 {
17699 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17700 else puts (dlerror ());
17701 }
17702 /* dlclose (self); */
17703 }
17704 else
17705 puts (dlerror ());
17706
17707 return status;
17708 }
17709 _LT_EOF
17710 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17711 (eval $ac_link) 2>&5
17712 ac_status=$?
17713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17714 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17715 (./conftest; exit; ) >&5 2>/dev/null
17716 lt_status=$?
17717 case x$lt_status in
17718 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17719 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17720 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17721 esac
17722 else :
17723 # compilation failed
17724 lt_cv_dlopen_self_static=no
17725 fi
17726 fi
17727 rm -fr conftest*
17728
17729
17730 fi
17731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17732 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17733 fi
17734
17735 CPPFLAGS="$save_CPPFLAGS"
17736 LDFLAGS="$save_LDFLAGS"
17737 LIBS="$save_LIBS"
17738 ;;
17739 esac
17740
17741 case $lt_cv_dlopen_self in
17742 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17743 *) enable_dlopen_self=unknown ;;
17744 esac
17745
17746 case $lt_cv_dlopen_self_static in
17747 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17748 *) enable_dlopen_self_static=unknown ;;
17749 esac
17750 fi
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768 striplib=
17769 old_striplib=
17770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17771 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17772 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17773 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17774 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17776 $as_echo "yes" >&6; }
17777 else
17778 # FIXME - insert some real tests, host_os isn't really good enough
17779 case $host_os in
17780 darwin*)
17781 if test -n "$STRIP" ; then
17782 striplib="$STRIP -x"
17783 old_striplib="$STRIP -S"
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17785 $as_echo "yes" >&6; }
17786 else
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17788 $as_echo "no" >&6; }
17789 fi
17790 ;;
17791 *)
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17793 $as_echo "no" >&6; }
17794 ;;
17795 esac
17796 fi
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809 # Report which library types will actually be built
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17811 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17813 $as_echo "$can_build_shared" >&6; }
17814
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17816 $as_echo_n "checking whether to build shared libraries... " >&6; }
17817 test "$can_build_shared" = "no" && enable_shared=no
17818
17819 # On AIX, shared libraries and static libraries use the same namespace, and
17820 # are all built from PIC.
17821 case $host_os in
17822 aix3*)
17823 test "$enable_shared" = yes && enable_static=no
17824 if test -n "$RANLIB"; then
17825 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17826 postinstall_cmds='$RANLIB $lib'
17827 fi
17828 ;;
17829
17830 aix[4-9]*)
17831 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17832 test "$enable_shared" = yes && enable_static=no
17833 fi
17834 ;;
17835 esac
17836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17837 $as_echo "$enable_shared" >&6; }
17838
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17840 $as_echo_n "checking whether to build static libraries... " >&6; }
17841 # Make sure either enable_shared or enable_static is yes.
17842 test "$enable_shared" = yes || enable_static=yes
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17844 $as_echo "$enable_static" >&6; }
17845
17846
17847
17848
17849 fi
17850 ac_ext=c
17851 ac_cpp='$CPP $CPPFLAGS'
17852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17855
17856 CC="$lt_save_CC"
17857
17858
17859
17860
17861
17862
17863
17864
17865
17866
17867
17868
17869
17870
17871
17872 ac_config_commands="$ac_config_commands libtool"
17873
17874
17875
17876
17877 # Only expand once:
17878
17879
17880
17881
17882
17883 # Define a configure option for an alternate module directory
17884
17885 # Check whether --with-xorg-module-dir was given.
17886 if test "${with_xorg_module_dir+set}" = set; then :
17887 withval=$with_xorg_module_dir; moduledir="$withval"
17888 else
17889 moduledir="$libdir/xorg/modules"
17890 fi
17891
17892
17893 # Store the list of server defined optional extensions in REQUIRED_MODULES
17894
17895
17896 SAVE_CFLAGS="$CFLAGS"
17897 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17899 /* end confdefs.h. */
17900
17901 #include "xorg-server.h"
17902 #if !defined RANDR
17903 #error RANDR not defined
17904 #endif
17905
17906 int
17907 main ()
17908 {
17909
17910 ;
17911 return 0;
17912 }
17913 _ACEOF
17914 if ac_fn_c_try_compile "$LINENO"; then :
17915 _EXT_CHECK=yes
17916 else
17917 _EXT_CHECK=no
17918 fi
17919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17920 CFLAGS="$SAVE_CFLAGS"
17921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
17922 $as_echo_n "checking if RANDR is defined... " >&6; }
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17924 $as_echo "$_EXT_CHECK" >&6; }
17925 if test "$_EXT_CHECK" != no; then
17926 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
17927 fi
17928
17929
17930
17931 SAVE_CFLAGS="$CFLAGS"
17932 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17934 /* end confdefs.h. */
17935
17936 #include "xorg-server.h"
17937 #if !defined RENDER
17938 #error RENDER not defined
17939 #endif
17940
17941 int
17942 main ()
17943 {
17944
17945 ;
17946 return 0;
17947 }
17948 _ACEOF
17949 if ac_fn_c_try_compile "$LINENO"; then :
17950 _EXT_CHECK=yes
17951 else
17952 _EXT_CHECK=no
17953 fi
17954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17955 CFLAGS="$SAVE_CFLAGS"
17956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
17957 $as_echo_n "checking if RENDER is defined... " >&6; }
17958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17959 $as_echo "$_EXT_CHECK" >&6; }
17960 if test "$_EXT_CHECK" != no; then
17961 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
17962 fi
17963
17964
17965
17966 SAVE_CFLAGS="$CFLAGS"
17967 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17969 /* end confdefs.h. */
17970
17971 #include "xorg-server.h"
17972 #if !defined XV
17973 #error XV not defined
17974 #endif
17975
17976 int
17977 main ()
17978 {
17979
17980 ;
17981 return 0;
17982 }
17983 _ACEOF
17984 if ac_fn_c_try_compile "$LINENO"; then :
17985 _EXT_CHECK=yes
17986 else
17987 _EXT_CHECK=no
17988 fi
17989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17990 CFLAGS="$SAVE_CFLAGS"
17991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
17992 $as_echo_n "checking if XV is defined... " >&6; }
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17994 $as_echo "$_EXT_CHECK" >&6; }
17995 if test "$_EXT_CHECK" != no; then
17996 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
17997 fi
17998
17999
18000
18001 SAVE_CFLAGS="$CFLAGS"
18002 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18004 /* end confdefs.h. */
18005
18006 #include "xorg-server.h"
18007 #if !defined DPMSExtension
18008 #error DPMSExtension not defined
18009 #endif
18010
18011 int
18012 main ()
18013 {
18014
18015 ;
18016 return 0;
18017 }
18018 _ACEOF
18019 if ac_fn_c_try_compile "$LINENO"; then :
18020 _EXT_CHECK=yes
18021 else
18022 _EXT_CHECK=no
18023 fi
18024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18025 CFLAGS="$SAVE_CFLAGS"
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
18027 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18029 $as_echo "$_EXT_CHECK" >&6; }
18030 if test "$_EXT_CHECK" != no; then
18031 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
18032 fi
18033
18034
18035 # Obtain compiler/linker options for the driver dependencies
18036
18037 pkg_failed=no
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
18039 $as_echo_n "checking for XORG... " >&6; }
18040
18041 if test -n "$XORG_CFLAGS"; then
18042 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18043 elif test -n "$PKG_CONFIG"; then
18044 if test -n "$PKG_CONFIG" && \
18045 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18046 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
18047 ac_status=$?
18048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18049 test $ac_status = 0; }; then
18050 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18051 test "x$?" != "x0" && pkg_failed=yes
18052 else
18053 pkg_failed=yes
18054 fi
18055 else
18056 pkg_failed=untried
18057 fi
18058 if test -n "$XORG_LIBS"; then
18059 pkg_cv_XORG_LIBS="$XORG_LIBS"
18060 elif test -n "$PKG_CONFIG"; then
18061 if test -n "$PKG_CONFIG" && \
18062 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18063 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
18064 ac_status=$?
18065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18066 test $ac_status = 0; }; then
18067 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18068 test "x$?" != "x0" && pkg_failed=yes
18069 else
18070 pkg_failed=yes
18071 fi
18072 else
18073 pkg_failed=untried
18074 fi
18075
18076
18077
18078 if test $pkg_failed = yes; then
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18080 $as_echo "no" >&6; }
18081
18082 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18083 _pkg_short_errors_supported=yes
18084 else
18085 _pkg_short_errors_supported=no
18086 fi
18087 if test $_pkg_short_errors_supported = yes; then
18088 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18089 else
18090 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18091 fi
18092 # Put the nasty error message in config.log where it belongs
18093 echo "$XORG_PKG_ERRORS" >&5
18094
18095 as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
18096
18097 $XORG_PKG_ERRORS
18098
18099 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18100 installed software in a non-standard prefix.
18101
18102 Alternatively, you may set the environment variables XORG_CFLAGS
18103 and XORG_LIBS to avoid the need to call pkg-config.
18104 See the pkg-config man page for more details." "$LINENO" 5
18105 elif test $pkg_failed = untried; then
18106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18107 $as_echo "no" >&6; }
18108 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18109 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18110 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18111 is in your PATH or set the PKG_CONFIG environment variable to the full
18112 path to pkg-config.
18113
18114 Alternatively, you may set the environment variables XORG_CFLAGS
18115 and XORG_LIBS to avoid the need to call pkg-config.
18116 See the pkg-config man page for more details.
18117
18118 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18119 See \`config.log' for more details" "$LINENO" 5; }
18120 else
18121 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18122 XORG_LIBS=$pkg_cv_XORG_LIBS
18123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18124 $as_echo "yes" >&6; }
18125
18126 fi
18127
18128 # Checks for libraries.
18129 SAVE_CPPFLAGS="$CPPFLAGS"
18130 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
18131 ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
18132 "
18133 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
18134 XSERVER_LIBPCIACCESS=yes
18135 else
18136 XSERVER_LIBPCIACCESS=no
18137 fi
18138
18139 CPPFLAGS="$SAVE_CPPFLAGS"
18140
18141 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18142
18143 pkg_failed=no
18144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18145 $as_echo_n "checking for PCIACCESS... " >&6; }
18146
18147 if test -n "$PCIACCESS_CFLAGS"; then
18148 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18149 elif test -n "$PKG_CONFIG"; then
18150 if test -n "$PKG_CONFIG" && \
18151 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18152 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18153 ac_status=$?
18154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18155 test $ac_status = 0; }; then
18156 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
18157 test "x$?" != "x0" && pkg_failed=yes
18158 else
18159 pkg_failed=yes
18160 fi
18161 else
18162 pkg_failed=untried
18163 fi
18164 if test -n "$PCIACCESS_LIBS"; then
18165 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18166 elif test -n "$PKG_CONFIG"; then
18167 if test -n "$PKG_CONFIG" && \
18168 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18169 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18170 ac_status=$?
18171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18172 test $ac_status = 0; }; then
18173 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
18174 test "x$?" != "x0" && pkg_failed=yes
18175 else
18176 pkg_failed=yes
18177 fi
18178 else
18179 pkg_failed=untried
18180 fi
18181
18182
18183
18184 if test $pkg_failed = yes; then
18185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18186 $as_echo "no" >&6; }
18187
18188 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18189 _pkg_short_errors_supported=yes
18190 else
18191 _pkg_short_errors_supported=no
18192 fi
18193 if test $_pkg_short_errors_supported = yes; then
18194 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18195 else
18196 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18197 fi
18198 # Put the nasty error message in config.log where it belongs
18199 echo "$PCIACCESS_PKG_ERRORS" >&5
18200
18201 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
18202
18203 $PCIACCESS_PKG_ERRORS
18204
18205 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18206 installed software in a non-standard prefix.
18207
18208 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18209 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18210 See the pkg-config man page for more details." "$LINENO" 5
18211 elif test $pkg_failed = untried; then
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18213 $as_echo "no" >&6; }
18214 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18216 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18217 is in your PATH or set the PKG_CONFIG environment variable to the full
18218 path to pkg-config.
18219
18220 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18221 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18222 See the pkg-config man page for more details.
18223
18224 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18225 See \`config.log' for more details" "$LINENO" 5; }
18226 else
18227 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18228 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18230 $as_echo "yes" >&6; }
18231
18232 fi
18233 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
18234 fi
18235 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18236 XSERVER_LIBPCIACCESS_TRUE=
18237 XSERVER_LIBPCIACCESS_FALSE='#'
18238 else
18239 XSERVER_LIBPCIACCESS_TRUE='#'
18240 XSERVER_LIBPCIACCESS_FALSE=
18241 fi
18242
18243
18244 # Check whether --enable-xaa was given.
18245 if test "${enable_xaa+set}" = set; then :
18246 enableval=$enable_xaa; XAA="$enableval"
18247 else
18248 XAA=auto
18249 fi
18250
18251 if test "x$XAA" != xno; then
18252 save_CFLAGS=$CFLAGS
18253 save_CPPFLAGS=$CPPFLAGS
18254 CFLAGS=$XORG_CFLAGS
18255 CPPFLAGS="$XORG_CFLAGS"
18256 for ac_header in xaa.h
18257 do :
18258 ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
18259 if test "x$ac_cv_header_xaa_h" = xyes; then :
18260 cat >>confdefs.h <<_ACEOF
18261 #define HAVE_XAA_H 1
18262 _ACEOF
18263 XAA=yes
18264 else
18265 XAA=no
18266 fi
18267
18268 done
18269
18270 CFLAGS=$save_CFLAGS
18271 CPPFLAGS=$save_CPPFLAGS
18272 fi
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
18274 $as_echo_n "checking whether to include XAA support... " >&6; }
18275 if test "x$XAA" = xyes; then
18276 XAA_TRUE=
18277 XAA_FALSE='#'
18278 else
18279 XAA_TRUE='#'
18280 XAA_FALSE=
18281 fi
18282
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
18284 $as_echo "$XAA" >&6; }
18285
18286
18287
18288 DRIVER_NAME=i740
18289
18290
18291 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
18292
18293 cat >confcache <<\_ACEOF
18294 # This file is a shell script that caches the results of configure
18295 # tests run on this system so they can be shared between configure
18296 # scripts and configure runs, see configure's option --config-cache.
18297 # It is not useful on other systems. If it contains results you don't
18298 # want to keep, you may remove or edit it.
18299 #
18300 # config.status only pays attention to the cache file if you give it
18301 # the --recheck option to rerun configure.
18302 #
18303 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18304 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18305 # following values.
18306
18307 _ACEOF
18308
18309 # The following way of writing the cache mishandles newlines in values,
18310 # but we know of no workaround that is simple, portable, and efficient.
18311 # So, we kill variables containing newlines.
18312 # Ultrix sh set writes to stderr and can't be redirected directly,
18313 # and sets the high bit in the cache file unless we assign to the vars.
18314 (
18315 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18316 eval ac_val=\$$ac_var
18317 case $ac_val in #(
18318 *${as_nl}*)
18319 case $ac_var in #(
18320 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18321 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18322 esac
18323 case $ac_var in #(
18324 _ | IFS | as_nl) ;; #(
18325 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18326 *) { eval $ac_var=; unset $ac_var;} ;;
18327 esac ;;
18328 esac
18329 done
18330
18331 (set) 2>&1 |
18332 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18333 *${as_nl}ac_space=\ *)
18334 # `set' does not quote correctly, so add quotes: double-quote
18335 # substitution turns \\\\ into \\, and sed turns \\ into \.
18336 sed -n \
18337 "s/'/'\\\\''/g;
18338 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18339 ;; #(
18340 *)
18341 # `set' quotes correctly as required by POSIX, so do not add quotes.
18342 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18343 ;;
18344 esac |
18345 sort
18346 ) |
18347 sed '
18348 /^ac_cv_env_/b end
18349 t clear
18350 :clear
18351 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18352 t end
18353 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18354 :end' >>confcache
18355 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18356 if test -w "$cache_file"; then
18357 if test "x$cache_file" != "x/dev/null"; then
18358 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18359 $as_echo "$as_me: updating cache $cache_file" >&6;}
18360 if test ! -f "$cache_file" || test -h "$cache_file"; then
18361 cat confcache >"$cache_file"
18362 else
18363 case $cache_file in #(
18364 */* | ?:*)
18365 mv -f confcache "$cache_file"$$ &&
18366 mv -f "$cache_file"$$ "$cache_file" ;; #(
18367 *)
18368 mv -f confcache "$cache_file" ;;
18369 esac
18370 fi
18371 fi
18372 else
18373 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18374 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18375 fi
18376 fi
18377 rm -f confcache
18378
18379 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18380 # Let make expand exec_prefix.
18381 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18382
18383 DEFS=-DHAVE_CONFIG_H
18384
18385 ac_libobjs=
18386 ac_ltlibobjs=
18387 U=
18388 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18389 # 1. Remove the extension, and $U if already installed.
18390 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18391 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18392 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18393 # will be set to the directory where LIBOBJS objects are built.
18394 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18395 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18396 done
18397 LIBOBJS=$ac_libobjs
18398
18399 LTLIBOBJS=$ac_ltlibobjs
18400
18401
18402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18403 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18404 if test -n "$am_sleep_pid"; then
18405 # Hide warnings about reused PIDs.
18406 wait $am_sleep_pid 2>/dev/null
18407 fi
18408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18409 $as_echo "done" >&6; }
18410 if test -n "$EXEEXT"; then
18411 am__EXEEXT_TRUE=
18412 am__EXEEXT_FALSE='#'
18413 else
18414 am__EXEEXT_TRUE='#'
18415 am__EXEEXT_FALSE=
18416 fi
18417
18418 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18419 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18420 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18421 fi
18422 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18423 as_fn_error $? "conditional \"AMDEP\" was never defined.
18424 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18425 fi
18426 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18427 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18428 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18429 fi
18430 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
18431 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
18432 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18433 fi
18434 if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
18435 as_fn_error $? "conditional \"XAA\" was never defined.
18436 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18437 fi
18438
18439 : "${CONFIG_STATUS=./config.status}"
18440 ac_write_fail=0
18441 ac_clean_files_save=$ac_clean_files
18442 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18443 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18444 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18445 as_write_fail=0
18446 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18447 #! $SHELL
18448 # Generated by $as_me.
18449 # Run this file to recreate the current configuration.
18450 # Compiler output produced by configure, useful for debugging
18451 # configure, is in config.log if it exists.
18452
18453 debug=false
18454 ac_cs_recheck=false
18455 ac_cs_silent=false
18456
18457 SHELL=\${CONFIG_SHELL-$SHELL}
18458 export SHELL
18459 _ASEOF
18460 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18461 ## -------------------- ##
18462 ## M4sh Initialization. ##
18463 ## -------------------- ##
18464
18465 # Be more Bourne compatible
18466 DUALCASE=1; export DUALCASE # for MKS sh
18467 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18468 emulate sh
18469 NULLCMD=:
18470 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18471 # is contrary to our usage. Disable this feature.
18472 alias -g '${1+"$@"}'='"$@"'
18473 setopt NO_GLOB_SUBST
18474 else
18475 case `(set -o) 2>/dev/null` in #(
18476 *posix*) :
18477 set -o posix ;; #(
18478 *) :
18479 ;;
18480 esac
18481 fi
18482
18483
18484 as_nl='
18485 '
18486 export as_nl
18487 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18488 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18489 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18490 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18491 # Prefer a ksh shell builtin over an external printf program on Solaris,
18492 # but without wasting forks for bash or zsh.
18493 if test -z "$BASH_VERSION$ZSH_VERSION" \
18494 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18495 as_echo='print -r --'
18496 as_echo_n='print -rn --'
18497 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18498 as_echo='printf %s\n'
18499 as_echo_n='printf %s'
18500 else
18501 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18502 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18503 as_echo_n='/usr/ucb/echo -n'
18504 else
18505 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18506 as_echo_n_body='eval
18507 arg=$1;
18508 case $arg in #(
18509 *"$as_nl"*)
18510 expr "X$arg" : "X\\(.*\\)$as_nl";
18511 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18512 esac;
18513 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18514 '
18515 export as_echo_n_body
18516 as_echo_n='sh -c $as_echo_n_body as_echo'
18517 fi
18518 export as_echo_body
18519 as_echo='sh -c $as_echo_body as_echo'
18520 fi
18521
18522 # The user is always right.
18523 if test "${PATH_SEPARATOR+set}" != set; then
18524 PATH_SEPARATOR=:
18525 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18526 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18527 PATH_SEPARATOR=';'
18528 }
18529 fi
18530
18531
18532 # IFS
18533 # We need space, tab and new line, in precisely that order. Quoting is
18534 # there to prevent editors from complaining about space-tab.
18535 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18536 # splitting by setting IFS to empty value.)
18537 IFS=" "" $as_nl"
18538
18539 # Find who we are. Look in the path if we contain no directory separator.
18540 as_myself=
18541 case $0 in #((
18542 *[\\/]* ) as_myself=$0 ;;
18543 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18544 for as_dir in $PATH
18545 do
18546 IFS=$as_save_IFS
18547 test -z "$as_dir" && as_dir=.
18548 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18549 done
18550 IFS=$as_save_IFS
18551
18552 ;;
18553 esac
18554 # We did not find ourselves, most probably we were run as `sh COMMAND'
18555 # in which case we are not to be found in the path.
18556 if test "x$as_myself" = x; then
18557 as_myself=$0
18558 fi
18559 if test ! -f "$as_myself"; then
18560 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18561 exit 1
18562 fi
18563
18564 # Unset variables that we do not need and which cause bugs (e.g. in
18565 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18566 # suppresses any "Segmentation fault" message there. '((' could
18567 # trigger a bug in pdksh 5.2.14.
18568 for as_var in BASH_ENV ENV MAIL MAILPATH
18569 do eval test x\${$as_var+set} = xset \
18570 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18571 done
18572 PS1='$ '
18573 PS2='> '
18574 PS4='+ '
18575
18576 # NLS nuisances.
18577 LC_ALL=C
18578 export LC_ALL
18579 LANGUAGE=C
18580 export LANGUAGE
18581
18582 # CDPATH.
18583 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18584
18585
18586 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18587 # ----------------------------------------
18588 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18589 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18590 # script with STATUS, using 1 if that was 0.
18591 as_fn_error ()
18592 {
18593 as_status=$1; test $as_status -eq 0 && as_status=1
18594 if test "$4"; then
18595 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18596 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18597 fi
18598 $as_echo "$as_me: error: $2" >&2
18599 as_fn_exit $as_status
18600 } # as_fn_error
18601
18602
18603 # as_fn_set_status STATUS
18604 # -----------------------
18605 # Set $? to STATUS, without forking.
18606 as_fn_set_status ()
18607 {
18608 return $1
18609 } # as_fn_set_status
18610
18611 # as_fn_exit STATUS
18612 # -----------------
18613 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18614 as_fn_exit ()
18615 {
18616 set +e
18617 as_fn_set_status $1
18618 exit $1
18619 } # as_fn_exit
18620
18621 # as_fn_unset VAR
18622 # ---------------
18623 # Portably unset VAR.
18624 as_fn_unset ()
18625 {
18626 { eval $1=; unset $1;}
18627 }
18628 as_unset=as_fn_unset
18629 # as_fn_append VAR VALUE
18630 # ----------------------
18631 # Append the text in VALUE to the end of the definition contained in VAR. Take
18632 # advantage of any shell optimizations that allow amortized linear growth over
18633 # repeated appends, instead of the typical quadratic growth present in naive
18634 # implementations.
18635 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18636 eval 'as_fn_append ()
18637 {
18638 eval $1+=\$2
18639 }'
18640 else
18641 as_fn_append ()
18642 {
18643 eval $1=\$$1\$2
18644 }
18645 fi # as_fn_append
18646
18647 # as_fn_arith ARG...
18648 # ------------------
18649 # Perform arithmetic evaluation on the ARGs, and store the result in the
18650 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18651 # must be portable across $(()) and expr.
18652 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18653 eval 'as_fn_arith ()
18654 {
18655 as_val=$(( $* ))
18656 }'
18657 else
18658 as_fn_arith ()
18659 {
18660 as_val=`expr "$@" || test $? -eq 1`
18661 }
18662 fi # as_fn_arith
18663
18664
18665 if expr a : '\(a\)' >/dev/null 2>&1 &&
18666 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18667 as_expr=expr
18668 else
18669 as_expr=false
18670 fi
18671
18672 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18673 as_basename=basename
18674 else
18675 as_basename=false
18676 fi
18677
18678 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18679 as_dirname=dirname
18680 else
18681 as_dirname=false
18682 fi
18683
18684 as_me=`$as_basename -- "$0" ||
18685 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18686 X"$0" : 'X\(//\)$' \| \
18687 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18688 $as_echo X/"$0" |
18689 sed '/^.*\/\([^/][^/]*\)\/*$/{
18690 s//\1/
18691 q
18692 }
18693 /^X\/\(\/\/\)$/{
18694 s//\1/
18695 q
18696 }
18697 /^X\/\(\/\).*/{
18698 s//\1/
18699 q
18700 }
18701 s/.*/./; q'`
18702
18703 # Avoid depending upon Character Ranges.
18704 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18705 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18706 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18707 as_cr_digits='0123456789'
18708 as_cr_alnum=$as_cr_Letters$as_cr_digits
18709
18710 ECHO_C= ECHO_N= ECHO_T=
18711 case `echo -n x` in #(((((
18712 -n*)
18713 case `echo 'xy\c'` in
18714 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18715 xy) ECHO_C='\c';;
18716 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18717 ECHO_T=' ';;
18718 esac;;
18719 *)
18720 ECHO_N='-n';;
18721 esac
18722
18723 rm -f conf$$ conf$$.exe conf$$.file
18724 if test -d conf$$.dir; then
18725 rm -f conf$$.dir/conf$$.file
18726 else
18727 rm -f conf$$.dir
18728 mkdir conf$$.dir 2>/dev/null
18729 fi
18730 if (echo >conf$$.file) 2>/dev/null; then
18731 if ln -s conf$$.file conf$$ 2>/dev/null; then
18732 as_ln_s='ln -s'
18733 # ... but there are two gotchas:
18734 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18735 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18736 # In both cases, we have to default to `cp -pR'.
18737 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18738 as_ln_s='cp -pR'
18739 elif ln conf$$.file conf$$ 2>/dev/null; then
18740 as_ln_s=ln
18741 else
18742 as_ln_s='cp -pR'
18743 fi
18744 else
18745 as_ln_s='cp -pR'
18746 fi
18747 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18748 rmdir conf$$.dir 2>/dev/null
18749
18750
18751 # as_fn_mkdir_p
18752 # -------------
18753 # Create "$as_dir" as a directory, including parents if necessary.
18754 as_fn_mkdir_p ()
18755 {
18756
18757 case $as_dir in #(
18758 -*) as_dir=./$as_dir;;
18759 esac
18760 test -d "$as_dir" || eval $as_mkdir_p || {
18761 as_dirs=
18762 while :; do
18763 case $as_dir in #(
18764 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18765 *) as_qdir=$as_dir;;
18766 esac
18767 as_dirs="'$as_qdir' $as_dirs"
18768 as_dir=`$as_dirname -- "$as_dir" ||
18769 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18770 X"$as_dir" : 'X\(//\)[^/]' \| \
18771 X"$as_dir" : 'X\(//\)$' \| \
18772 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18773 $as_echo X"$as_dir" |
18774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18775 s//\1/
18776 q
18777 }
18778 /^X\(\/\/\)[^/].*/{
18779 s//\1/
18780 q
18781 }
18782 /^X\(\/\/\)$/{
18783 s//\1/
18784 q
18785 }
18786 /^X\(\/\).*/{
18787 s//\1/
18788 q
18789 }
18790 s/.*/./; q'`
18791 test -d "$as_dir" && break
18792 done
18793 test -z "$as_dirs" || eval "mkdir $as_dirs"
18794 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18795
18796
18797 } # as_fn_mkdir_p
18798 if mkdir -p . 2>/dev/null; then
18799 as_mkdir_p='mkdir -p "$as_dir"'
18800 else
18801 test -d ./-p && rmdir ./-p
18802 as_mkdir_p=false
18803 fi
18804
18805
18806 # as_fn_executable_p FILE
18807 # -----------------------
18808 # Test if FILE is an executable regular file.
18809 as_fn_executable_p ()
18810 {
18811 test -f "$1" && test -x "$1"
18812 } # as_fn_executable_p
18813 as_test_x='test -x'
18814 as_executable_p=as_fn_executable_p
18815
18816 # Sed expression to map a string onto a valid CPP name.
18817 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18818
18819 # Sed expression to map a string onto a valid variable name.
18820 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18821
18822
18823 exec 6>&1
18824 ## ----------------------------------- ##
18825 ## Main body of $CONFIG_STATUS script. ##
18826 ## ----------------------------------- ##
18827 _ASEOF
18828 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18829
18830 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18831 # Save the log message, to keep $0 and so on meaningful, and to
18832 # report actual input values of CONFIG_FILES etc. instead of their
18833 # values after options handling.
18834 ac_log="
18835 This file was extended by xf86-video-i740 $as_me 1.3.5, which was
18836 generated by GNU Autoconf 2.69. Invocation command line was
18837
18838 CONFIG_FILES = $CONFIG_FILES
18839 CONFIG_HEADERS = $CONFIG_HEADERS
18840 CONFIG_LINKS = $CONFIG_LINKS
18841 CONFIG_COMMANDS = $CONFIG_COMMANDS
18842 $ $0 $@
18843
18844 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18845 "
18846
18847 _ACEOF
18848
18849 case $ac_config_files in *"
18850 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18851 esac
18852
18853 case $ac_config_headers in *"
18854 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18855 esac
18856
18857
18858 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18859 # Files that config.status was made for.
18860 config_files="$ac_config_files"
18861 config_headers="$ac_config_headers"
18862 config_commands="$ac_config_commands"
18863
18864 _ACEOF
18865
18866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18867 ac_cs_usage="\
18868 \`$as_me' instantiates files and other configuration actions
18869 from templates according to the current configuration. Unless the files
18870 and actions are specified as TAGs, all are instantiated by default.
18871
18872 Usage: $0 [OPTION]... [TAG]...
18873
18874 -h, --help print this help, then exit
18875 -V, --version print version number and configuration settings, then exit
18876 --config print configuration, then exit
18877 -q, --quiet, --silent
18878 do not print progress messages
18879 -d, --debug don't remove temporary files
18880 --recheck update $as_me by reconfiguring in the same conditions
18881 --file=FILE[:TEMPLATE]
18882 instantiate the configuration file FILE
18883 --header=FILE[:TEMPLATE]
18884 instantiate the configuration header FILE
18885
18886 Configuration files:
18887 $config_files
18888
18889 Configuration headers:
18890 $config_headers
18891
18892 Configuration commands:
18893 $config_commands
18894
18895 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18896
18897 _ACEOF
18898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18899 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18900 ac_cs_version="\\
18901 xf86-video-i740 config.status 1.3.5
18902 configured by $0, generated by GNU Autoconf 2.69,
18903 with options \\"\$ac_cs_config\\"
18904
18905 Copyright (C) 2012 Free Software Foundation, Inc.
18906 This config.status script is free software; the Free Software Foundation
18907 gives unlimited permission to copy, distribute and modify it."
18908
18909 ac_pwd='$ac_pwd'
18910 srcdir='$srcdir'
18911 INSTALL='$INSTALL'
18912 MKDIR_P='$MKDIR_P'
18913 AWK='$AWK'
18914 test -n "\$AWK" || AWK=awk
18915 _ACEOF
18916
18917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18918 # The default lists apply if the user does not specify any file.
18919 ac_need_defaults=:
18920 while test $# != 0
18921 do
18922 case $1 in
18923 --*=?*)
18924 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18925 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18926 ac_shift=:
18927 ;;
18928 --*=)
18929 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18930 ac_optarg=
18931 ac_shift=:
18932 ;;
18933 *)
18934 ac_option=$1
18935 ac_optarg=$2
18936 ac_shift=shift
18937 ;;
18938 esac
18939
18940 case $ac_option in
18941 # Handling of the options.
18942 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18943 ac_cs_recheck=: ;;
18944 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18945 $as_echo "$ac_cs_version"; exit ;;
18946 --config | --confi | --conf | --con | --co | --c )
18947 $as_echo "$ac_cs_config"; exit ;;
18948 --debug | --debu | --deb | --de | --d | -d )
18949 debug=: ;;
18950 --file | --fil | --fi | --f )
18951 $ac_shift
18952 case $ac_optarg in
18953 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18954 '') as_fn_error $? "missing file argument" ;;
18955 esac
18956 as_fn_append CONFIG_FILES " '$ac_optarg'"
18957 ac_need_defaults=false;;
18958 --header | --heade | --head | --hea )
18959 $ac_shift
18960 case $ac_optarg in
18961 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18962 esac
18963 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18964 ac_need_defaults=false;;
18965 --he | --h)
18966 # Conflict between --help and --header
18967 as_fn_error $? "ambiguous option: \`$1'
18968 Try \`$0 --help' for more information.";;
18969 --help | --hel | -h )
18970 $as_echo "$ac_cs_usage"; exit ;;
18971 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18972 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18973 ac_cs_silent=: ;;
18974
18975 # This is an error.
18976 -*) as_fn_error $? "unrecognized option: \`$1'
18977 Try \`$0 --help' for more information." ;;
18978
18979 *) as_fn_append ac_config_targets " $1"
18980 ac_need_defaults=false ;;
18981
18982 esac
18983 shift
18984 done
18985
18986 ac_configure_extra_args=
18987
18988 if $ac_cs_silent; then
18989 exec 6>/dev/null
18990 ac_configure_extra_args="$ac_configure_extra_args --silent"
18991 fi
18992
18993 _ACEOF
18994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18995 if \$ac_cs_recheck; then
18996 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18997 shift
18998 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18999 CONFIG_SHELL='$SHELL'
19000 export CONFIG_SHELL
19001 exec "\$@"
19002 fi
19003
19004 _ACEOF
19005 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19006 exec 5>>config.log
19007 {
19008 echo
19009 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19010 ## Running $as_me. ##
19011 _ASBOX
19012 $as_echo "$ac_log"
19013 } >&5
19014
19015 _ACEOF
19016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19017 #
19018 # INIT-COMMANDS
19019 #
19020 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19021
19022
19023 # The HP-UX ksh and POSIX shell print the target directory to stdout
19024 # if CDPATH is set.
19025 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19026
19027 sed_quote_subst='$sed_quote_subst'
19028 double_quote_subst='$double_quote_subst'
19029 delay_variable_subst='$delay_variable_subst'
19030 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19031 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19032 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19033 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19034 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19035 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19036 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19037 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19038 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19039 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19040 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19041 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19042 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19043 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19044 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19045 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19046 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19047 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19048 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19049 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19050 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19051 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19052 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19053 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19054 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19055 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19056 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19057 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19058 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19059 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19060 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19061 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19062 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19063 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19064 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19065 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19066 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19067 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19068 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19069 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19070 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19071 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19072 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19073 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19074 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19075 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19076 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19077 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19078 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19079 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19080 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19081 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19082 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19083 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19084 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19085 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19086 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"`'
19087 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19088 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19089 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19090 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19091 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19092 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19093 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19094 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19095 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19096 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19097 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19098 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19099 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19100 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19101 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19102 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19103 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19104 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19105 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19106 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19107 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19108 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19109 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19110 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19111 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19112 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19113 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19114 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19115 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19116 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19117 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19118 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19119 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19120 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19121 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19122 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19123 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19124 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19125 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19126 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19127 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19128 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19129 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19130 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19131 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19132 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19133 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19134 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19135 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19136 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19137 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19138 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19139 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19140 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19141 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19142 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19143 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19144 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19145 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19146 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19147 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19148 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19149 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19150 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19151 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19152 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19153 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19154 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19155 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19156 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19157 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19158 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19159 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19160
19161 LTCC='$LTCC'
19162 LTCFLAGS='$LTCFLAGS'
19163 compiler='$compiler_DEFAULT'
19164
19165 # A function that is used when there is no print builtin or printf.
19166 func_fallback_echo ()
19167 {
19168 eval 'cat <<_LTECHO_EOF
19169 \$1
19170 _LTECHO_EOF'
19171 }
19172
19173 # Quote evaled strings.
19174 for var in SHELL \
19175 ECHO \
19176 PATH_SEPARATOR \
19177 SED \
19178 GREP \
19179 EGREP \
19180 FGREP \
19181 LD \
19182 NM \
19183 LN_S \
19184 lt_SP2NL \
19185 lt_NL2SP \
19186 reload_flag \
19187 OBJDUMP \
19188 deplibs_check_method \
19189 file_magic_cmd \
19190 file_magic_glob \
19191 want_nocaseglob \
19192 DLLTOOL \
19193 sharedlib_from_linklib_cmd \
19194 AR \
19195 AR_FLAGS \
19196 archiver_list_spec \
19197 STRIP \
19198 RANLIB \
19199 CC \
19200 CFLAGS \
19201 compiler \
19202 lt_cv_sys_global_symbol_pipe \
19203 lt_cv_sys_global_symbol_to_cdecl \
19204 lt_cv_sys_global_symbol_to_c_name_address \
19205 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19206 nm_file_list_spec \
19207 lt_prog_compiler_no_builtin_flag \
19208 lt_prog_compiler_pic \
19209 lt_prog_compiler_wl \
19210 lt_prog_compiler_static \
19211 lt_cv_prog_compiler_c_o \
19212 need_locks \
19213 MANIFEST_TOOL \
19214 DSYMUTIL \
19215 NMEDIT \
19216 LIPO \
19217 OTOOL \
19218 OTOOL64 \
19219 shrext_cmds \
19220 export_dynamic_flag_spec \
19221 whole_archive_flag_spec \
19222 compiler_needs_object \
19223 with_gnu_ld \
19224 allow_undefined_flag \
19225 no_undefined_flag \
19226 hardcode_libdir_flag_spec \
19227 hardcode_libdir_separator \
19228 exclude_expsyms \
19229 include_expsyms \
19230 file_list_spec \
19231 variables_saved_for_relink \
19232 libname_spec \
19233 library_names_spec \
19234 soname_spec \
19235 install_override_mode \
19236 finish_eval \
19237 old_striplib \
19238 striplib; do
19239 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19240 *[\\\\\\\`\\"\\\$]*)
19241 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19242 ;;
19243 *)
19244 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19245 ;;
19246 esac
19247 done
19248
19249 # Double-quote double-evaled strings.
19250 for var in reload_cmds \
19251 old_postinstall_cmds \
19252 old_postuninstall_cmds \
19253 old_archive_cmds \
19254 extract_expsyms_cmds \
19255 old_archive_from_new_cmds \
19256 old_archive_from_expsyms_cmds \
19257 archive_cmds \
19258 archive_expsym_cmds \
19259 module_cmds \
19260 module_expsym_cmds \
19261 export_symbols_cmds \
19262 prelink_cmds \
19263 postlink_cmds \
19264 postinstall_cmds \
19265 postuninstall_cmds \
19266 finish_cmds \
19267 sys_lib_search_path_spec \
19268 sys_lib_dlsearch_path_spec; do
19269 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19270 *[\\\\\\\`\\"\\\$]*)
19271 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19272 ;;
19273 *)
19274 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19275 ;;
19276 esac
19277 done
19278
19279 ac_aux_dir='$ac_aux_dir'
19280 xsi_shell='$xsi_shell'
19281 lt_shell_append='$lt_shell_append'
19282
19283 # See if we are running on zsh, and set the options which allow our
19284 # commands through without removal of \ escapes INIT.
19285 if test -n "\${ZSH_VERSION+set}" ; then
19286 setopt NO_GLOB_SUBST
19287 fi
19288
19289
19290 PACKAGE='$PACKAGE'
19291 VERSION='$VERSION'
19292 TIMESTAMP='$TIMESTAMP'
19293 RM='$RM'
19294 ofile='$ofile'
19295
19296
19297
19298
19299 _ACEOF
19300
19301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19302
19303 # Handling of arguments.
19304 for ac_config_target in $ac_config_targets
19305 do
19306 case $ac_config_target in
19307 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19308 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19309 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19310 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19311 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19312 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19313
19314 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19315 esac
19316 done
19317
19318
19319 # If the user did not use the arguments to specify the items to instantiate,
19320 # then the envvar interface is used. Set only those that are not.
19321 # We use the long form for the default assignment because of an extremely
19322 # bizarre bug on SunOS 4.1.3.
19323 if $ac_need_defaults; then
19324 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19325 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19326 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19327 fi
19328
19329 # Have a temporary directory for convenience. Make it in the build tree
19330 # simply because there is no reason against having it here, and in addition,
19331 # creating and moving files from /tmp can sometimes cause problems.
19332 # Hook for its removal unless debugging.
19333 # Note that there is a small window in which the directory will not be cleaned:
19334 # after its creation but before its name has been assigned to `$tmp'.
19335 $debug ||
19336 {
19337 tmp= ac_tmp=
19338 trap 'exit_status=$?
19339 : "${ac_tmp:=$tmp}"
19340 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19341 ' 0
19342 trap 'as_fn_exit 1' 1 2 13 15
19343 }
19344 # Create a (secure) tmp directory for tmp files.
19345
19346 {
19347 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19348 test -d "$tmp"
19349 } ||
19350 {
19351 tmp=./conf$$-$RANDOM
19352 (umask 077 && mkdir "$tmp")
19353 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19354 ac_tmp=$tmp
19355
19356 # Set up the scripts for CONFIG_FILES section.
19357 # No need to generate them if there are no CONFIG_FILES.
19358 # This happens for instance with `./config.status config.h'.
19359 if test -n "$CONFIG_FILES"; then
19360
19361
19362 ac_cr=`echo X | tr X '\015'`
19363 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19364 # But we know of no other shell where ac_cr would be empty at this
19365 # point, so we can use a bashism as a fallback.
19366 if test "x$ac_cr" = x; then
19367 eval ac_cr=\$\'\\r\'
19368 fi
19369 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19370 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19371 ac_cs_awk_cr='\\r'
19372 else
19373 ac_cs_awk_cr=$ac_cr
19374 fi
19375
19376 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19377 _ACEOF
19378
19379
19380 {
19381 echo "cat >conf$$subs.awk <<_ACEOF" &&
19382 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19383 echo "_ACEOF"
19384 } >conf$$subs.sh ||
19385 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19386 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19387 ac_delim='%!_!# '
19388 for ac_last_try in false false false false false :; do
19389 . ./conf$$subs.sh ||
19390 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19391
19392 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19393 if test $ac_delim_n = $ac_delim_num; then
19394 break
19395 elif $ac_last_try; then
19396 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19397 else
19398 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19399 fi
19400 done
19401 rm -f conf$$subs.sh
19402
19403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19404 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19405 _ACEOF
19406 sed -n '
19407 h
19408 s/^/S["/; s/!.*/"]=/
19409 p
19410 g
19411 s/^[^!]*!//
19412 :repl
19413 t repl
19414 s/'"$ac_delim"'$//
19415 t delim
19416 :nl
19417 h
19418 s/\(.\{148\}\)..*/\1/
19419 t more1
19420 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19421 p
19422 n
19423 b repl
19424 :more1
19425 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19426 p
19427 g
19428 s/.\{148\}//
19429 t nl
19430 :delim
19431 h
19432 s/\(.\{148\}\)..*/\1/
19433 t more2
19434 s/["\\]/\\&/g; s/^/"/; s/$/"/
19435 p
19436 b
19437 :more2
19438 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19439 p
19440 g
19441 s/.\{148\}//
19442 t delim
19443 ' <conf$$subs.awk | sed '
19444 /^[^""]/{
19445 N
19446 s/\n//
19447 }
19448 ' >>$CONFIG_STATUS || ac_write_fail=1
19449 rm -f conf$$subs.awk
19450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19451 _ACAWK
19452 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19453 for (key in S) S_is_set[key] = 1
19454 FS = ""
19455
19456 }
19457 {
19458 line = $ 0
19459 nfields = split(line, field, "@")
19460 substed = 0
19461 len = length(field[1])
19462 for (i = 2; i < nfields; i++) {
19463 key = field[i]
19464 keylen = length(key)
19465 if (S_is_set[key]) {
19466 value = S[key]
19467 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19468 len += length(value) + length(field[++i])
19469 substed = 1
19470 } else
19471 len += 1 + keylen
19472 }
19473
19474 print line
19475 }
19476
19477 _ACAWK
19478 _ACEOF
19479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19480 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19481 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19482 else
19483 cat
19484 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19485 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19486 _ACEOF
19487
19488 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19489 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19490 # trailing colons and then remove the whole line if VPATH becomes empty
19491 # (actually we leave an empty line to preserve line numbers).
19492 if test "x$srcdir" = x.; then
19493 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19494 h
19495 s///
19496 s/^/:/
19497 s/[ ]*$/:/
19498 s/:\$(srcdir):/:/g
19499 s/:\${srcdir}:/:/g
19500 s/:@srcdir@:/:/g
19501 s/^:*//
19502 s/:*$//
19503 x
19504 s/\(=[ ]*\).*/\1/
19505 G
19506 s/\n//
19507 s/^[^=]*=[ ]*$//
19508 }'
19509 fi
19510
19511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19512 fi # test -n "$CONFIG_FILES"
19513
19514 # Set up the scripts for CONFIG_HEADERS section.
19515 # No need to generate them if there are no CONFIG_HEADERS.
19516 # This happens for instance with `./config.status Makefile'.
19517 if test -n "$CONFIG_HEADERS"; then
19518 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19519 BEGIN {
19520 _ACEOF
19521
19522 # Transform confdefs.h into an awk script `defines.awk', embedded as
19523 # here-document in config.status, that substitutes the proper values into
19524 # config.h.in to produce config.h.
19525
19526 # Create a delimiter string that does not exist in confdefs.h, to ease
19527 # handling of long lines.
19528 ac_delim='%!_!# '
19529 for ac_last_try in false false :; do
19530 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19531 if test -z "$ac_tt"; then
19532 break
19533 elif $ac_last_try; then
19534 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19535 else
19536 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19537 fi
19538 done
19539
19540 # For the awk script, D is an array of macro values keyed by name,
19541 # likewise P contains macro parameters if any. Preserve backslash
19542 # newline sequences.
19543
19544 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19545 sed -n '
19546 s/.\{148\}/&'"$ac_delim"'/g
19547 t rset
19548 :rset
19549 s/^[ ]*#[ ]*define[ ][ ]*/ /
19550 t def
19551 d
19552 :def
19553 s/\\$//
19554 t bsnl
19555 s/["\\]/\\&/g
19556 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19557 D["\1"]=" \3"/p
19558 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19559 d
19560 :bsnl
19561 s/["\\]/\\&/g
19562 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19563 D["\1"]=" \3\\\\\\n"\\/p
19564 t cont
19565 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19566 t cont
19567 d
19568 :cont
19569 n
19570 s/.\{148\}/&'"$ac_delim"'/g
19571 t clear
19572 :clear
19573 s/\\$//
19574 t bsnlc
19575 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19576 d
19577 :bsnlc
19578 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19579 b cont
19580 ' <confdefs.h | sed '
19581 s/'"$ac_delim"'/"\\\
19582 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19583
19584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19585 for (key in D) D_is_set[key] = 1
19586 FS = ""
19587 }
19588 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19589 line = \$ 0
19590 split(line, arg, " ")
19591 if (arg[1] == "#") {
19592 defundef = arg[2]
19593 mac1 = arg[3]
19594 } else {
19595 defundef = substr(arg[1], 2)
19596 mac1 = arg[2]
19597 }
19598 split(mac1, mac2, "(") #)
19599 macro = mac2[1]
19600 prefix = substr(line, 1, index(line, defundef) - 1)
19601 if (D_is_set[macro]) {
19602 # Preserve the white space surrounding the "#".
19603 print prefix "define", macro P[macro] D[macro]
19604 next
19605 } else {
19606 # Replace #undef with comments. This is necessary, for example,
19607 # in the case of _POSIX_SOURCE, which is predefined and required
19608 # on some systems where configure will not decide to define it.
19609 if (defundef == "undef") {
19610 print "/*", prefix defundef, macro, "*/"
19611 next
19612 }
19613 }
19614 }
19615 { print }
19616 _ACAWK
19617 _ACEOF
19618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19619 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19620 fi # test -n "$CONFIG_HEADERS"
19621
19622
19623 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19624 shift
19625 for ac_tag
19626 do
19627 case $ac_tag in
19628 :[FHLC]) ac_mode=$ac_tag; continue;;
19629 esac
19630 case $ac_mode$ac_tag in
19631 :[FHL]*:*);;
19632 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19633 :[FH]-) ac_tag=-:-;;
19634 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19635 esac
19636 ac_save_IFS=$IFS
19637 IFS=:
19638 set x $ac_tag
19639 IFS=$ac_save_IFS
19640 shift
19641 ac_file=$1
19642 shift
19643
19644 case $ac_mode in
19645 :L) ac_source=$1;;
19646 :[FH])
19647 ac_file_inputs=
19648 for ac_f
19649 do
19650 case $ac_f in
19651 -) ac_f="$ac_tmp/stdin";;
19652 *) # Look for the file first in the build tree, then in the source tree
19653 # (if the path is not absolute). The absolute path cannot be DOS-style,
19654 # because $ac_f cannot contain `:'.
19655 test -f "$ac_f" ||
19656 case $ac_f in
19657 [\\/$]*) false;;
19658 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19659 esac ||
19660 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19661 esac
19662 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19663 as_fn_append ac_file_inputs " '$ac_f'"
19664 done
19665
19666 # Let's still pretend it is `configure' which instantiates (i.e., don't
19667 # use $as_me), people would be surprised to read:
19668 # /* config.h. Generated by config.status. */
19669 configure_input='Generated from '`
19670 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19671 `' by configure.'
19672 if test x"$ac_file" != x-; then
19673 configure_input="$ac_file. $configure_input"
19674 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19675 $as_echo "$as_me: creating $ac_file" >&6;}
19676 fi
19677 # Neutralize special characters interpreted by sed in replacement strings.
19678 case $configure_input in #(
19679 *\&* | *\|* | *\\* )
19680 ac_sed_conf_input=`$as_echo "$configure_input" |
19681 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19682 *) ac_sed_conf_input=$configure_input;;
19683 esac
19684
19685 case $ac_tag in
19686 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19687 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19688 esac
19689 ;;
19690 esac
19691
19692 ac_dir=`$as_dirname -- "$ac_file" ||
19693 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19694 X"$ac_file" : 'X\(//\)[^/]' \| \
19695 X"$ac_file" : 'X\(//\)$' \| \
19696 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19697 $as_echo X"$ac_file" |
19698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19699 s//\1/
19700 q
19701 }
19702 /^X\(\/\/\)[^/].*/{
19703 s//\1/
19704 q
19705 }
19706 /^X\(\/\/\)$/{
19707 s//\1/
19708 q
19709 }
19710 /^X\(\/\).*/{
19711 s//\1/
19712 q
19713 }
19714 s/.*/./; q'`
19715 as_dir="$ac_dir"; as_fn_mkdir_p
19716 ac_builddir=.
19717
19718 case "$ac_dir" in
19719 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19720 *)
19721 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19722 # A ".." for each directory in $ac_dir_suffix.
19723 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19724 case $ac_top_builddir_sub in
19725 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19726 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19727 esac ;;
19728 esac
19729 ac_abs_top_builddir=$ac_pwd
19730 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19731 # for backward compatibility:
19732 ac_top_builddir=$ac_top_build_prefix
19733
19734 case $srcdir in
19735 .) # We are building in place.
19736 ac_srcdir=.
19737 ac_top_srcdir=$ac_top_builddir_sub
19738 ac_abs_top_srcdir=$ac_pwd ;;
19739 [\\/]* | ?:[\\/]* ) # Absolute name.
19740 ac_srcdir=$srcdir$ac_dir_suffix;
19741 ac_top_srcdir=$srcdir
19742 ac_abs_top_srcdir=$srcdir ;;
19743 *) # Relative name.
19744 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19745 ac_top_srcdir=$ac_top_build_prefix$srcdir
19746 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19747 esac
19748 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19749
19750
19751 case $ac_mode in
19752 :F)
19753 #
19754 # CONFIG_FILE
19755 #
19756
19757 case $INSTALL in
19758 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19759 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19760 esac
19761 ac_MKDIR_P=$MKDIR_P
19762 case $MKDIR_P in
19763 [\\/$]* | ?:[\\/]* ) ;;
19764 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19765 esac
19766 _ACEOF
19767
19768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19769 # If the template does not know about datarootdir, expand it.
19770 # FIXME: This hack should be removed a few years after 2.60.
19771 ac_datarootdir_hack=; ac_datarootdir_seen=
19772 ac_sed_dataroot='
19773 /datarootdir/ {
19774 p
19775 q
19776 }
19777 /@datadir@/p
19778 /@docdir@/p
19779 /@infodir@/p
19780 /@localedir@/p
19781 /@mandir@/p'
19782 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19783 *datarootdir*) ac_datarootdir_seen=yes;;
19784 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19786 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19787 _ACEOF
19788 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19789 ac_datarootdir_hack='
19790 s&@datadir@&$datadir&g
19791 s&@docdir@&$docdir&g
19792 s&@infodir@&$infodir&g
19793 s&@localedir@&$localedir&g
19794 s&@mandir@&$mandir&g
19795 s&\\\${datarootdir}&$datarootdir&g' ;;
19796 esac
19797 _ACEOF
19798
19799 # Neutralize VPATH when `$srcdir' = `.'.
19800 # Shell code in configure.ac might set extrasub.
19801 # FIXME: do we really want to maintain this feature?
19802 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19803 ac_sed_extra="$ac_vpsub
19804 $extrasub
19805 _ACEOF
19806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19807 :t
19808 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19809 s|@configure_input@|$ac_sed_conf_input|;t t
19810 s&@top_builddir@&$ac_top_builddir_sub&;t t
19811 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19812 s&@srcdir@&$ac_srcdir&;t t
19813 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19814 s&@top_srcdir@&$ac_top_srcdir&;t t
19815 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19816 s&@builddir@&$ac_builddir&;t t
19817 s&@abs_builddir@&$ac_abs_builddir&;t t
19818 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19819 s&@INSTALL@&$ac_INSTALL&;t t
19820 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19821 $ac_datarootdir_hack
19822 "
19823 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19824 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19825
19826 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19827 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19828 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19829 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19831 which seems to be undefined. Please make sure it is defined" >&5
19832 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19833 which seems to be undefined. Please make sure it is defined" >&2;}
19834
19835 rm -f "$ac_tmp/stdin"
19836 case $ac_file in
19837 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19838 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19839 esac \
19840 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19841 ;;
19842 :H)
19843 #
19844 # CONFIG_HEADER
19845 #
19846 if test x"$ac_file" != x-; then
19847 {
19848 $as_echo "/* $configure_input */" \
19849 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19850 } >"$ac_tmp/config.h" \
19851 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19852 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19853 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19854 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19855 else
19856 rm -f "$ac_file"
19857 mv "$ac_tmp/config.h" "$ac_file" \
19858 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19859 fi
19860 else
19861 $as_echo "/* $configure_input */" \
19862 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19863 || as_fn_error $? "could not create -" "$LINENO" 5
19864 fi
19865 # Compute "$ac_file"'s index in $config_headers.
19866 _am_arg="$ac_file"
19867 _am_stamp_count=1
19868 for _am_header in $config_headers :; do
19869 case $_am_header in
19870 $_am_arg | $_am_arg:* )
19871 break ;;
19872 * )
19873 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19874 esac
19875 done
19876 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19877 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19878 X"$_am_arg" : 'X\(//\)[^/]' \| \
19879 X"$_am_arg" : 'X\(//\)$' \| \
19880 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19881 $as_echo X"$_am_arg" |
19882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19883 s//\1/
19884 q
19885 }
19886 /^X\(\/\/\)[^/].*/{
19887 s//\1/
19888 q
19889 }
19890 /^X\(\/\/\)$/{
19891 s//\1/
19892 q
19893 }
19894 /^X\(\/\).*/{
19895 s//\1/
19896 q
19897 }
19898 s/.*/./; q'`/stamp-h$_am_stamp_count
19899 ;;
19900
19901 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19902 $as_echo "$as_me: executing $ac_file commands" >&6;}
19903 ;;
19904 esac
19905
19906
19907 case $ac_file$ac_mode in
19908 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19909 # Older Autoconf quotes --file arguments for eval, but not when files
19910 # are listed without --file. Let's play safe and only enable the eval
19911 # if we detect the quoting.
19912 case $CONFIG_FILES in
19913 *\'*) eval set x "$CONFIG_FILES" ;;
19914 *) set x $CONFIG_FILES ;;
19915 esac
19916 shift
19917 for mf
19918 do
19919 # Strip MF so we end up with the name of the file.
19920 mf=`echo "$mf" | sed -e 's/:.*$//'`
19921 # Check whether this is an Automake generated Makefile or not.
19922 # We used to match only the files named 'Makefile.in', but
19923 # some people rename them; so instead we look at the file content.
19924 # Grep'ing the first line is not enough: some people post-process
19925 # each Makefile.in and add a new line on top of each file to say so.
19926 # Grep'ing the whole file is not good either: AIX grep has a line
19927 # limit of 2048, but all sed's we know have understand at least 4000.
19928 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19929 dirpart=`$as_dirname -- "$mf" ||
19930 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19931 X"$mf" : 'X\(//\)[^/]' \| \
19932 X"$mf" : 'X\(//\)$' \| \
19933 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19934 $as_echo X"$mf" |
19935 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19936 s//\1/
19937 q
19938 }
19939 /^X\(\/\/\)[^/].*/{
19940 s//\1/
19941 q
19942 }
19943 /^X\(\/\/\)$/{
19944 s//\1/
19945 q
19946 }
19947 /^X\(\/\).*/{
19948 s//\1/
19949 q
19950 }
19951 s/.*/./; q'`
19952 else
19953 continue
19954 fi
19955 # Extract the definition of DEPDIR, am__include, and am__quote
19956 # from the Makefile without running 'make'.
19957 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19958 test -z "$DEPDIR" && continue
19959 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19960 test -z "$am__include" && continue
19961 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19962 # Find all dependency output files, they are included files with
19963 # $(DEPDIR) in their names. We invoke sed twice because it is the
19964 # simplest approach to changing $(DEPDIR) to its actual value in the
19965 # expansion.
19966 for file in `sed -n "
19967 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19968 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19969 # Make sure the directory exists.
19970 test -f "$dirpart/$file" && continue
19971 fdir=`$as_dirname -- "$file" ||
19972 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19973 X"$file" : 'X\(//\)[^/]' \| \
19974 X"$file" : 'X\(//\)$' \| \
19975 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19976 $as_echo X"$file" |
19977 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19978 s//\1/
19979 q
19980 }
19981 /^X\(\/\/\)[^/].*/{
19982 s//\1/
19983 q
19984 }
19985 /^X\(\/\/\)$/{
19986 s//\1/
19987 q
19988 }
19989 /^X\(\/\).*/{
19990 s//\1/
19991 q
19992 }
19993 s/.*/./; q'`
19994 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19995 # echo "creating $dirpart/$file"
19996 echo '# dummy' > "$dirpart/$file"
19997 done
19998 done
19999 }
20000 ;;
20001 "libtool":C)
20002
20003 # See if we are running on zsh, and set the options which allow our
20004 # commands through without removal of \ escapes.
20005 if test -n "${ZSH_VERSION+set}" ; then
20006 setopt NO_GLOB_SUBST
20007 fi
20008
20009 cfgfile="${ofile}T"
20010 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20011 $RM "$cfgfile"
20012
20013 cat <<_LT_EOF >> "$cfgfile"
20014 #! $SHELL
20015
20016 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20017 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20018 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20019 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20020 #
20021 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20022 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20023 # Foundation, Inc.
20024 # Written by Gordon Matzigkeit, 1996
20025 #
20026 # This file is part of GNU Libtool.
20027 #
20028 # GNU Libtool is free software; you can redistribute it and/or
20029 # modify it under the terms of the GNU General Public License as
20030 # published by the Free Software Foundation; either version 2 of
20031 # the License, or (at your option) any later version.
20032 #
20033 # As a special exception to the GNU General Public License,
20034 # if you distribute this file as part of a program or library that
20035 # is built using GNU Libtool, you may include this file under the
20036 # same distribution terms that you use for the rest of that program.
20037 #
20038 # GNU Libtool is distributed in the hope that it will be useful,
20039 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20040 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20041 # GNU General Public License for more details.
20042 #
20043 # You should have received a copy of the GNU General Public License
20044 # along with GNU Libtool; see the file COPYING. If not, a copy
20045 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20046 # obtained by writing to the Free Software Foundation, Inc.,
20047 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20048
20049
20050 # The names of the tagged configurations supported by this script.
20051 available_tags=""
20052
20053 # ### BEGIN LIBTOOL CONFIG
20054
20055 # Whether or not to build static libraries.
20056 build_old_libs=$enable_static
20057
20058 # Which release of libtool.m4 was used?
20059 macro_version=$macro_version
20060 macro_revision=$macro_revision
20061
20062 # Whether or not to build shared libraries.
20063 build_libtool_libs=$enable_shared
20064
20065 # What type of objects to build.
20066 pic_mode=$pic_mode
20067
20068 # Whether or not to optimize for fast installation.
20069 fast_install=$enable_fast_install
20070
20071 # Shell to use when invoking shell scripts.
20072 SHELL=$lt_SHELL
20073
20074 # An echo program that protects backslashes.
20075 ECHO=$lt_ECHO
20076
20077 # The PATH separator for the build system.
20078 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20079
20080 # The host system.
20081 host_alias=$host_alias
20082 host=$host
20083 host_os=$host_os
20084
20085 # The build system.
20086 build_alias=$build_alias
20087 build=$build
20088 build_os=$build_os
20089
20090 # A sed program that does not truncate output.
20091 SED=$lt_SED
20092
20093 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20094 Xsed="\$SED -e 1s/^X//"
20095
20096 # A grep program that handles long lines.
20097 GREP=$lt_GREP
20098
20099 # An ERE matcher.
20100 EGREP=$lt_EGREP
20101
20102 # A literal string matcher.
20103 FGREP=$lt_FGREP
20104
20105 # A BSD- or MS-compatible name lister.
20106 NM=$lt_NM
20107
20108 # Whether we need soft or hard links.
20109 LN_S=$lt_LN_S
20110
20111 # What is the maximum length of a command?
20112 max_cmd_len=$max_cmd_len
20113
20114 # Object file suffix (normally "o").
20115 objext=$ac_objext
20116
20117 # Executable file suffix (normally "").
20118 exeext=$exeext
20119
20120 # whether the shell understands "unset".
20121 lt_unset=$lt_unset
20122
20123 # turn spaces into newlines.
20124 SP2NL=$lt_lt_SP2NL
20125
20126 # turn newlines into spaces.
20127 NL2SP=$lt_lt_NL2SP
20128
20129 # convert \$build file names to \$host format.
20130 to_host_file_cmd=$lt_cv_to_host_file_cmd
20131
20132 # convert \$build files to toolchain format.
20133 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20134
20135 # An object symbol dumper.
20136 OBJDUMP=$lt_OBJDUMP
20137
20138 # Method to check whether dependent libraries are shared objects.
20139 deplibs_check_method=$lt_deplibs_check_method
20140
20141 # Command to use when deplibs_check_method = "file_magic".
20142 file_magic_cmd=$lt_file_magic_cmd
20143
20144 # How to find potential files when deplibs_check_method = "file_magic".
20145 file_magic_glob=$lt_file_magic_glob
20146
20147 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20148 want_nocaseglob=$lt_want_nocaseglob
20149
20150 # DLL creation program.
20151 DLLTOOL=$lt_DLLTOOL
20152
20153 # Command to associate shared and link libraries.
20154 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20155
20156 # The archiver.
20157 AR=$lt_AR
20158
20159 # Flags to create an archive.
20160 AR_FLAGS=$lt_AR_FLAGS
20161
20162 # How to feed a file listing to the archiver.
20163 archiver_list_spec=$lt_archiver_list_spec
20164
20165 # A symbol stripping program.
20166 STRIP=$lt_STRIP
20167
20168 # Commands used to install an old-style archive.
20169 RANLIB=$lt_RANLIB
20170 old_postinstall_cmds=$lt_old_postinstall_cmds
20171 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20172
20173 # Whether to use a lock for old archive extraction.
20174 lock_old_archive_extraction=$lock_old_archive_extraction
20175
20176 # A C compiler.
20177 LTCC=$lt_CC
20178
20179 # LTCC compiler flags.
20180 LTCFLAGS=$lt_CFLAGS
20181
20182 # Take the output of nm and produce a listing of raw symbols and C names.
20183 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20184
20185 # Transform the output of nm in a proper C declaration.
20186 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20187
20188 # Transform the output of nm in a C name address pair.
20189 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20190
20191 # Transform the output of nm in a C name address pair when lib prefix is needed.
20192 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20193
20194 # Specify filename containing input files for \$NM.
20195 nm_file_list_spec=$lt_nm_file_list_spec
20196
20197 # The root where to search for dependent libraries,and in which our libraries should be installed.
20198 lt_sysroot=$lt_sysroot
20199
20200 # The name of the directory that contains temporary libtool files.
20201 objdir=$objdir
20202
20203 # Used to examine libraries when file_magic_cmd begins with "file".
20204 MAGIC_CMD=$MAGIC_CMD
20205
20206 # Must we lock files when doing compilation?
20207 need_locks=$lt_need_locks
20208
20209 # Manifest tool.
20210 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20211
20212 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20213 DSYMUTIL=$lt_DSYMUTIL
20214
20215 # Tool to change global to local symbols on Mac OS X.
20216 NMEDIT=$lt_NMEDIT
20217
20218 # Tool to manipulate fat objects and archives on Mac OS X.
20219 LIPO=$lt_LIPO
20220
20221 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20222 OTOOL=$lt_OTOOL
20223
20224 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20225 OTOOL64=$lt_OTOOL64
20226
20227 # Old archive suffix (normally "a").
20228 libext=$libext
20229
20230 # Shared library suffix (normally ".so").
20231 shrext_cmds=$lt_shrext_cmds
20232
20233 # The commands to extract the exported symbol list from a shared archive.
20234 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20235
20236 # Variables whose values should be saved in libtool wrapper scripts and
20237 # restored at link time.
20238 variables_saved_for_relink=$lt_variables_saved_for_relink
20239
20240 # Do we need the "lib" prefix for modules?
20241 need_lib_prefix=$need_lib_prefix
20242
20243 # Do we need a version for libraries?
20244 need_version=$need_version
20245
20246 # Library versioning type.
20247 version_type=$version_type
20248
20249 # Shared library runtime path variable.
20250 runpath_var=$runpath_var
20251
20252 # Shared library path variable.
20253 shlibpath_var=$shlibpath_var
20254
20255 # Is shlibpath searched before the hard-coded library search path?
20256 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20257
20258 # Format of library name prefix.
20259 libname_spec=$lt_libname_spec
20260
20261 # List of archive names. First name is the real one, the rest are links.
20262 # The last name is the one that the linker finds with -lNAME
20263 library_names_spec=$lt_library_names_spec
20264
20265 # The coded name of the library, if different from the real name.
20266 soname_spec=$lt_soname_spec
20267
20268 # Permission mode override for installation of shared libraries.
20269 install_override_mode=$lt_install_override_mode
20270
20271 # Command to use after installation of a shared archive.
20272 postinstall_cmds=$lt_postinstall_cmds
20273
20274 # Command to use after uninstallation of a shared archive.
20275 postuninstall_cmds=$lt_postuninstall_cmds
20276
20277 # Commands used to finish a libtool library installation in a directory.
20278 finish_cmds=$lt_finish_cmds
20279
20280 # As "finish_cmds", except a single script fragment to be evaled but
20281 # not shown.
20282 finish_eval=$lt_finish_eval
20283
20284 # Whether we should hardcode library paths into libraries.
20285 hardcode_into_libs=$hardcode_into_libs
20286
20287 # Compile-time system search path for libraries.
20288 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20289
20290 # Run-time system search path for libraries.
20291 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20292
20293 # Whether dlopen is supported.
20294 dlopen_support=$enable_dlopen
20295
20296 # Whether dlopen of programs is supported.
20297 dlopen_self=$enable_dlopen_self
20298
20299 # Whether dlopen of statically linked programs is supported.
20300 dlopen_self_static=$enable_dlopen_self_static
20301
20302 # Commands to strip libraries.
20303 old_striplib=$lt_old_striplib
20304 striplib=$lt_striplib
20305
20306
20307 # The linker used to build libraries.
20308 LD=$lt_LD
20309
20310 # How to create reloadable object files.
20311 reload_flag=$lt_reload_flag
20312 reload_cmds=$lt_reload_cmds
20313
20314 # Commands used to build an old-style archive.
20315 old_archive_cmds=$lt_old_archive_cmds
20316
20317 # A language specific compiler.
20318 CC=$lt_compiler
20319
20320 # Is the compiler the GNU compiler?
20321 with_gcc=$GCC
20322
20323 # Compiler flag to turn off builtin functions.
20324 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20325
20326 # Additional compiler flags for building library objects.
20327 pic_flag=$lt_lt_prog_compiler_pic
20328
20329 # How to pass a linker flag through the compiler.
20330 wl=$lt_lt_prog_compiler_wl
20331
20332 # Compiler flag to prevent dynamic linking.
20333 link_static_flag=$lt_lt_prog_compiler_static
20334
20335 # Does compiler simultaneously support -c and -o options?
20336 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20337
20338 # Whether or not to add -lc for building shared libraries.
20339 build_libtool_need_lc=$archive_cmds_need_lc
20340
20341 # Whether or not to disallow shared libs when runtime libs are static.
20342 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20343
20344 # Compiler flag to allow reflexive dlopens.
20345 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20346
20347 # Compiler flag to generate shared objects directly from archives.
20348 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20349
20350 # Whether the compiler copes with passing no objects directly.
20351 compiler_needs_object=$lt_compiler_needs_object
20352
20353 # Create an old-style archive from a shared archive.
20354 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20355
20356 # Create a temporary old-style archive to link instead of a shared archive.
20357 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20358
20359 # Commands used to build a shared archive.
20360 archive_cmds=$lt_archive_cmds
20361 archive_expsym_cmds=$lt_archive_expsym_cmds
20362
20363 # Commands used to build a loadable module if different from building
20364 # a shared archive.
20365 module_cmds=$lt_module_cmds
20366 module_expsym_cmds=$lt_module_expsym_cmds
20367
20368 # Whether we are building with GNU ld or not.
20369 with_gnu_ld=$lt_with_gnu_ld
20370
20371 # Flag that allows shared libraries with undefined symbols to be built.
20372 allow_undefined_flag=$lt_allow_undefined_flag
20373
20374 # Flag that enforces no undefined symbols.
20375 no_undefined_flag=$lt_no_undefined_flag
20376
20377 # Flag to hardcode \$libdir into a binary during linking.
20378 # This must work even if \$libdir does not exist
20379 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20380
20381 # Whether we need a single "-rpath" flag with a separated argument.
20382 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20383
20384 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20385 # DIR into the resulting binary.
20386 hardcode_direct=$hardcode_direct
20387
20388 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20389 # DIR into the resulting binary and the resulting library dependency is
20390 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20391 # library is relocated.
20392 hardcode_direct_absolute=$hardcode_direct_absolute
20393
20394 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20395 # into the resulting binary.
20396 hardcode_minus_L=$hardcode_minus_L
20397
20398 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20399 # into the resulting binary.
20400 hardcode_shlibpath_var=$hardcode_shlibpath_var
20401
20402 # Set to "yes" if building a shared library automatically hardcodes DIR
20403 # into the library and all subsequent libraries and executables linked
20404 # against it.
20405 hardcode_automatic=$hardcode_automatic
20406
20407 # Set to yes if linker adds runtime paths of dependent libraries
20408 # to runtime path list.
20409 inherit_rpath=$inherit_rpath
20410
20411 # Whether libtool must link a program against all its dependency libraries.
20412 link_all_deplibs=$link_all_deplibs
20413
20414 # Set to "yes" if exported symbols are required.
20415 always_export_symbols=$always_export_symbols
20416
20417 # The commands to list exported symbols.
20418 export_symbols_cmds=$lt_export_symbols_cmds
20419
20420 # Symbols that should not be listed in the preloaded symbols.
20421 exclude_expsyms=$lt_exclude_expsyms
20422
20423 # Symbols that must always be exported.
20424 include_expsyms=$lt_include_expsyms
20425
20426 # Commands necessary for linking programs (against libraries) with templates.
20427 prelink_cmds=$lt_prelink_cmds
20428
20429 # Commands necessary for finishing linking programs.
20430 postlink_cmds=$lt_postlink_cmds
20431
20432 # Specify filename containing input files.
20433 file_list_spec=$lt_file_list_spec
20434
20435 # How to hardcode a shared library path into an executable.
20436 hardcode_action=$hardcode_action
20437
20438 # ### END LIBTOOL CONFIG
20439
20440 _LT_EOF
20441
20442 case $host_os in
20443 aix3*)
20444 cat <<\_LT_EOF >> "$cfgfile"
20445 # AIX sometimes has problems with the GCC collect2 program. For some
20446 # reason, if we set the COLLECT_NAMES environment variable, the problems
20447 # vanish in a puff of smoke.
20448 if test "X${COLLECT_NAMES+set}" != Xset; then
20449 COLLECT_NAMES=
20450 export COLLECT_NAMES
20451 fi
20452 _LT_EOF
20453 ;;
20454 esac
20455
20456
20457 ltmain="$ac_aux_dir/ltmain.sh"
20458
20459
20460 # We use sed instead of cat because bash on DJGPP gets confused if
20461 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20462 # text mode, it properly converts lines to CR/LF. This bash problem
20463 # is reportedly fixed, but why not run on old versions too?
20464 sed '$q' "$ltmain" >> "$cfgfile" \
20465 || (rm -f "$cfgfile"; exit 1)
20466
20467 if test x"$xsi_shell" = xyes; then
20468 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20469 func_dirname ()\
20470 {\
20471 \ case ${1} in\
20472 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20473 \ * ) func_dirname_result="${3}" ;;\
20474 \ esac\
20475 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20476 && mv -f "$cfgfile.tmp" "$cfgfile" \
20477 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20478 test 0 -eq $? || _lt_function_replace_fail=:
20479
20480
20481 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20482 func_basename ()\
20483 {\
20484 \ func_basename_result="${1##*/}"\
20485 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20486 && mv -f "$cfgfile.tmp" "$cfgfile" \
20487 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20488 test 0 -eq $? || _lt_function_replace_fail=:
20489
20490
20491 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20492 func_dirname_and_basename ()\
20493 {\
20494 \ case ${1} in\
20495 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20496 \ * ) func_dirname_result="${3}" ;;\
20497 \ esac\
20498 \ func_basename_result="${1##*/}"\
20499 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20500 && mv -f "$cfgfile.tmp" "$cfgfile" \
20501 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20502 test 0 -eq $? || _lt_function_replace_fail=:
20503
20504
20505 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20506 func_stripname ()\
20507 {\
20508 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20509 \ # positional parameters, so assign one to ordinary parameter first.\
20510 \ func_stripname_result=${3}\
20511 \ func_stripname_result=${func_stripname_result#"${1}"}\
20512 \ func_stripname_result=${func_stripname_result%"${2}"}\
20513 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20514 && mv -f "$cfgfile.tmp" "$cfgfile" \
20515 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20516 test 0 -eq $? || _lt_function_replace_fail=:
20517
20518
20519 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20520 func_split_long_opt ()\
20521 {\
20522 \ func_split_long_opt_name=${1%%=*}\
20523 \ func_split_long_opt_arg=${1#*=}\
20524 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20525 && mv -f "$cfgfile.tmp" "$cfgfile" \
20526 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20527 test 0 -eq $? || _lt_function_replace_fail=:
20528
20529
20530 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20531 func_split_short_opt ()\
20532 {\
20533 \ func_split_short_opt_arg=${1#??}\
20534 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20535 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20536 && mv -f "$cfgfile.tmp" "$cfgfile" \
20537 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20538 test 0 -eq $? || _lt_function_replace_fail=:
20539
20540
20541 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20542 func_lo2o ()\
20543 {\
20544 \ case ${1} in\
20545 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20546 \ *) func_lo2o_result=${1} ;;\
20547 \ esac\
20548 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20549 && mv -f "$cfgfile.tmp" "$cfgfile" \
20550 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20551 test 0 -eq $? || _lt_function_replace_fail=:
20552
20553
20554 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20555 func_xform ()\
20556 {\
20557 func_xform_result=${1%.*}.lo\
20558 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20559 && mv -f "$cfgfile.tmp" "$cfgfile" \
20560 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20561 test 0 -eq $? || _lt_function_replace_fail=:
20562
20563
20564 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20565 func_arith ()\
20566 {\
20567 func_arith_result=$(( $* ))\
20568 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20569 && mv -f "$cfgfile.tmp" "$cfgfile" \
20570 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20571 test 0 -eq $? || _lt_function_replace_fail=:
20572
20573
20574 sed -e '/^func_len ()$/,/^} # func_len /c\
20575 func_len ()\
20576 {\
20577 func_len_result=${#1}\
20578 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20579 && mv -f "$cfgfile.tmp" "$cfgfile" \
20580 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20581 test 0 -eq $? || _lt_function_replace_fail=:
20582
20583 fi
20584
20585 if test x"$lt_shell_append" = xyes; then
20586 sed -e '/^func_append ()$/,/^} # func_append /c\
20587 func_append ()\
20588 {\
20589 eval "${1}+=\\${2}"\
20590 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20591 && mv -f "$cfgfile.tmp" "$cfgfile" \
20592 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20593 test 0 -eq $? || _lt_function_replace_fail=:
20594
20595
20596 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20597 func_append_quoted ()\
20598 {\
20599 \ func_quote_for_eval "${2}"\
20600 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20601 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20602 && mv -f "$cfgfile.tmp" "$cfgfile" \
20603 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20604 test 0 -eq $? || _lt_function_replace_fail=:
20605
20606
20607 # Save a `func_append' function call where possible by direct use of '+='
20608 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20609 && mv -f "$cfgfile.tmp" "$cfgfile" \
20610 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20611 test 0 -eq $? || _lt_function_replace_fail=:
20612 else
20613 # Save a `func_append' function call even when '+=' is not available
20614 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20615 && mv -f "$cfgfile.tmp" "$cfgfile" \
20616 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20617 test 0 -eq $? || _lt_function_replace_fail=:
20618 fi
20619
20620 if test x"$_lt_function_replace_fail" = x":"; then
20621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20622 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20623 fi
20624
20625
20626 mv -f "$cfgfile" "$ofile" ||
20627 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20628 chmod +x "$ofile"
20629
20630 ;;
20631
20632 esac
20633 done # for ac_tag
20634
20635
20636 as_fn_exit 0
20637 _ACEOF
20638 ac_clean_files=$ac_clean_files_save
20639
20640 test $ac_write_fail = 0 ||
20641 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20642
20643
20644 # configure is writing to config.log, and then calls config.status.
20645 # config.status does its own redirection, appending to config.log.
20646 # Unfortunately, on DOS this fails, as config.log is still kept open
20647 # by configure, so config.status won't be able to write to it; its
20648 # output is simply discarded. So we exec the FD to /dev/null,
20649 # effectively closing config.log, so it can be properly (re)opened and
20650 # appended to by config.status. When coming back to configure, we
20651 # need to make the FD available again.
20652 if test "$no_create" != yes; then
20653 ac_cs_success=:
20654 ac_config_status_args=
20655 test "$silent" = yes &&
20656 ac_config_status_args="$ac_config_status_args --quiet"
20657 exec 5>/dev/null
20658 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20659 exec 5>>config.log
20660 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20661 # would make configure fail if this is the last instruction.
20662 $ac_cs_success || as_fn_exit 1
20663 fi
20664 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20666 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20667 fi
20668
20669