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-sis 0.10.8.
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-sis'
593 PACKAGE_TARNAME='xf86-video-sis'
594 PACKAGE_VERSION='0.10.8'
595 PACKAGE_STRING='xf86-video-sis 0.10.8'
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 XSERVER_LIBPCIACCESS_FALSE
643 XSERVER_LIBPCIACCESS_TRUE
644 PCIACCESS_LIBS
645 PCIACCESS_CFLAGS
646 XAA_FALSE
647 XAA_TRUE
648 DRI_LIBS
649 DRI_CFLAGS
650 DRI_FALSE
651 DRI_TRUE
652 HAVE_XEXTPROTO_71_FALSE
653 HAVE_XEXTPROTO_71_TRUE
654 XEXT_LIBS
655 XEXT_CFLAGS
656 XORG_LIBS
657 XORG_CFLAGS
658 LT_SYS_LIBRARY_PATH
659 OTOOL64
660 OTOOL
661 LIPO
662 NMEDIT
663 DSYMUTIL
664 MANIFEST_TOOL
665 RANLIB
666 ac_ct_AR
667 AR
668 DLLTOOL
669 OBJDUMP
670 LN_S
671 NM
672 ac_ct_DUMPBIN
673 DUMPBIN
674 LD
675 FGREP
676 LIBTOOL
677 AM_BACKSLASH
678 AM_DEFAULT_VERBOSITY
679 AM_DEFAULT_V
680 AM_V
681 MAN_SUBSTS
682 XORG_MAN_PAGE
683 ADMIN_MAN_DIR
684 DRIVER_MAN_DIR
685 MISC_MAN_DIR
686 FILE_MAN_DIR
687 LIB_MAN_DIR
688 APP_MAN_DIR
689 ADMIN_MAN_SUFFIX
690 DRIVER_MAN_SUFFIX
691 MISC_MAN_SUFFIX
692 FILE_MAN_SUFFIX
693 LIB_MAN_SUFFIX
694 APP_MAN_SUFFIX
695 SED
696 host_os
697 host_vendor
698 host_cpu
699 host
700 build_os
701 build_vendor
702 build_cpu
703 build
704 INSTALL_CMD
705 PKG_CONFIG_LIBDIR
706 PKG_CONFIG_PATH
707 PKG_CONFIG
708 CHANGELOG_CMD
709 STRICT_CFLAGS
710 CWARNFLAGS
711 BASE_CFLAGS
712 EGREP
713 GREP
714 CPP
715 am__fastdepCC_FALSE
716 am__fastdepCC_TRUE
717 CCDEPMODE
718 am__nodep
719 AMDEPBACKSLASH
720 AMDEP_FALSE
721 AMDEP_TRUE
722 am__quote
723 am__include
724 DEPDIR
725 OBJEXT
726 EXEEXT
727 ac_ct_CC
728 CPPFLAGS
729 LDFLAGS
730 CFLAGS
731 CC
732 MAINT
733 MAINTAINER_MODE_FALSE
734 MAINTAINER_MODE_TRUE
735 am__untar
736 am__tar
737 AMTAR
738 am__leading_dot
739 SET_MAKE
740 AWK
741 mkdir_p
742 MKDIR_P
743 INSTALL_STRIP_PROGRAM
744 STRIP
745 install_sh
746 MAKEINFO
747 AUTOHEADER
748 AUTOMAKE
749 AUTOCONF
750 ACLOCAL
751 VERSION
752 PACKAGE
753 CYGPATH_W
754 am__isrc
755 INSTALL_DATA
756 INSTALL_SCRIPT
757 INSTALL_PROGRAM
758 target_alias
759 host_alias
760 build_alias
761 LIBS
762 ECHO_T
763 ECHO_N
764 ECHO_C
765 DEFS
766 mandir
767 localedir
768 libdir
769 psdir
770 pdfdir
771 dvidir
772 htmldir
773 infodir
774 docdir
775 oldincludedir
776 includedir
777 localstatedir
778 sharedstatedir
779 sysconfdir
780 datadir
781 datarootdir
782 libexecdir
783 sbindir
784 bindir
785 program_transform_name
786 prefix
787 exec_prefix
788 PACKAGE_URL
789 PACKAGE_BUGREPORT
790 PACKAGE_STRING
791 PACKAGE_VERSION
792 PACKAGE_TARNAME
793 PACKAGE_NAME
794 PATH_SEPARATOR
795 SHELL'
796 ac_subst_files=''
797 ac_user_opts='
798 enable_option_checking
799 enable_maintainer_mode
800 enable_dependency_tracking
801 enable_selective_werror
802 enable_strict_compilation
803 enable_silent_rules
804 enable_static
805 enable_shared
806 with_pic
807 enable_fast_install
808 with_aix_soname
809 with_gnu_ld
810 with_sysroot
811 enable_libtool_lock
812 with_xorg_module_dir
813 enable_dri
814 enable_xaa
815 '
816 ac_precious_vars='build_alias
817 host_alias
818 target_alias
819 CC
820 CFLAGS
821 LDFLAGS
822 LIBS
823 CPPFLAGS
824 CPP
825 PKG_CONFIG
826 PKG_CONFIG_PATH
827 PKG_CONFIG_LIBDIR
828 LT_SYS_LIBRARY_PATH
829 XORG_CFLAGS
830 XORG_LIBS
831 XEXT_CFLAGS
832 XEXT_LIBS
833 DRI_CFLAGS
834 DRI_LIBS
835 PCIACCESS_CFLAGS
836 PCIACCESS_LIBS'
837
838
839 # Initialize some variables set by options.
840 ac_init_help=
841 ac_init_version=false
842 ac_unrecognized_opts=
843 ac_unrecognized_sep=
844 # The variables have the same names as the options, with
845 # dashes changed to underlines.
846 cache_file=/dev/null
847 exec_prefix=NONE
848 no_create=
849 no_recursion=
850 prefix=NONE
851 program_prefix=NONE
852 program_suffix=NONE
853 program_transform_name=s,x,x,
854 silent=
855 site=
856 srcdir=
857 verbose=
858 x_includes=NONE
859 x_libraries=NONE
860
861 # Installation directory options.
862 # These are left unexpanded so users can "make install exec_prefix=/foo"
863 # and all the variables that are supposed to be based on exec_prefix
864 # by default will actually change.
865 # Use braces instead of parens because sh, perl, etc. also accept them.
866 # (The list follows the same order as the GNU Coding Standards.)
867 bindir='${exec_prefix}/bin'
868 sbindir='${exec_prefix}/sbin'
869 libexecdir='${exec_prefix}/libexec'
870 datarootdir='${prefix}/share'
871 datadir='${datarootdir}'
872 sysconfdir='${prefix}/etc'
873 sharedstatedir='${prefix}/com'
874 localstatedir='${prefix}/var'
875 includedir='${prefix}/include'
876 oldincludedir='/usr/include'
877 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
878 infodir='${datarootdir}/info'
879 htmldir='${docdir}'
880 dvidir='${docdir}'
881 pdfdir='${docdir}'
882 psdir='${docdir}'
883 libdir='${exec_prefix}/lib'
884 localedir='${datarootdir}/locale'
885 mandir='${datarootdir}/man'
886
887 ac_prev=
888 ac_dashdash=
889 for ac_option
890 do
891 # If the previous option needs an argument, assign it.
892 if test -n "$ac_prev"; then
893 eval $ac_prev=\$ac_option
894 ac_prev=
895 continue
896 fi
897
898 case $ac_option in
899 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
900 *=) ac_optarg= ;;
901 *) ac_optarg=yes ;;
902 esac
903
904 # Accept the important Cygnus configure options, so we can diagnose typos.
905
906 case $ac_dashdash$ac_option in
907 --)
908 ac_dashdash=yes ;;
909
910 -bindir | --bindir | --bindi | --bind | --bin | --bi)
911 ac_prev=bindir ;;
912 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
913 bindir=$ac_optarg ;;
914
915 -build | --build | --buil | --bui | --bu)
916 ac_prev=build_alias ;;
917 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
918 build_alias=$ac_optarg ;;
919
920 -cache-file | --cache-file | --cache-fil | --cache-fi \
921 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
922 ac_prev=cache_file ;;
923 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
924 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
925 cache_file=$ac_optarg ;;
926
927 --config-cache | -C)
928 cache_file=config.cache ;;
929
930 -datadir | --datadir | --datadi | --datad)
931 ac_prev=datadir ;;
932 -datadir=* | --datadir=* | --datadi=* | --datad=*)
933 datadir=$ac_optarg ;;
934
935 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
936 | --dataroo | --dataro | --datar)
937 ac_prev=datarootdir ;;
938 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
939 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
940 datarootdir=$ac_optarg ;;
941
942 -disable-* | --disable-*)
943 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946 as_fn_error $? "invalid feature name: $ac_useropt"
947 ac_useropt_orig=$ac_useropt
948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
950 *"
951 "enable_$ac_useropt"
952 "*) ;;
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
954 ac_unrecognized_sep=', ';;
955 esac
956 eval enable_$ac_useropt=no ;;
957
958 -docdir | --docdir | --docdi | --doc | --do)
959 ac_prev=docdir ;;
960 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
961 docdir=$ac_optarg ;;
962
963 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
964 ac_prev=dvidir ;;
965 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
966 dvidir=$ac_optarg ;;
967
968 -enable-* | --enable-*)
969 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
970 # Reject names that are not valid shell variable names.
971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972 as_fn_error $? "invalid feature name: $ac_useropt"
973 ac_useropt_orig=$ac_useropt
974 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975 case $ac_user_opts in
976 *"
977 "enable_$ac_useropt"
978 "*) ;;
979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
980 ac_unrecognized_sep=', ';;
981 esac
982 eval enable_$ac_useropt=\$ac_optarg ;;
983
984 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
985 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
986 | --exec | --exe | --ex)
987 ac_prev=exec_prefix ;;
988 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
989 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
990 | --exec=* | --exe=* | --ex=*)
991 exec_prefix=$ac_optarg ;;
992
993 -gas | --gas | --ga | --g)
994 # Obsolete; use --with-gas.
995 with_gas=yes ;;
996
997 -help | --help | --hel | --he | -h)
998 ac_init_help=long ;;
999 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1000 ac_init_help=recursive ;;
1001 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1002 ac_init_help=short ;;
1003
1004 -host | --host | --hos | --ho)
1005 ac_prev=host_alias ;;
1006 -host=* | --host=* | --hos=* | --ho=*)
1007 host_alias=$ac_optarg ;;
1008
1009 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1010 ac_prev=htmldir ;;
1011 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1012 | --ht=*)
1013 htmldir=$ac_optarg ;;
1014
1015 -includedir | --includedir | --includedi | --included | --include \
1016 | --includ | --inclu | --incl | --inc)
1017 ac_prev=includedir ;;
1018 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1019 | --includ=* | --inclu=* | --incl=* | --inc=*)
1020 includedir=$ac_optarg ;;
1021
1022 -infodir | --infodir | --infodi | --infod | --info | --inf)
1023 ac_prev=infodir ;;
1024 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1025 infodir=$ac_optarg ;;
1026
1027 -libdir | --libdir | --libdi | --libd)
1028 ac_prev=libdir ;;
1029 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1030 libdir=$ac_optarg ;;
1031
1032 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1033 | --libexe | --libex | --libe)
1034 ac_prev=libexecdir ;;
1035 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1036 | --libexe=* | --libex=* | --libe=*)
1037 libexecdir=$ac_optarg ;;
1038
1039 -localedir | --localedir | --localedi | --localed | --locale)
1040 ac_prev=localedir ;;
1041 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1042 localedir=$ac_optarg ;;
1043
1044 -localstatedir | --localstatedir | --localstatedi | --localstated \
1045 | --localstate | --localstat | --localsta | --localst | --locals)
1046 ac_prev=localstatedir ;;
1047 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1048 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1049 localstatedir=$ac_optarg ;;
1050
1051 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1052 ac_prev=mandir ;;
1053 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1054 mandir=$ac_optarg ;;
1055
1056 -nfp | --nfp | --nf)
1057 # Obsolete; use --without-fp.
1058 with_fp=no ;;
1059
1060 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1061 | --no-cr | --no-c | -n)
1062 no_create=yes ;;
1063
1064 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1065 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1066 no_recursion=yes ;;
1067
1068 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1069 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1070 | --oldin | --oldi | --old | --ol | --o)
1071 ac_prev=oldincludedir ;;
1072 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1073 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1074 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1075 oldincludedir=$ac_optarg ;;
1076
1077 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1078 ac_prev=prefix ;;
1079 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1080 prefix=$ac_optarg ;;
1081
1082 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1083 | --program-pre | --program-pr | --program-p)
1084 ac_prev=program_prefix ;;
1085 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1086 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1087 program_prefix=$ac_optarg ;;
1088
1089 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1090 | --program-suf | --program-su | --program-s)
1091 ac_prev=program_suffix ;;
1092 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1093 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1094 program_suffix=$ac_optarg ;;
1095
1096 -program-transform-name | --program-transform-name \
1097 | --program-transform-nam | --program-transform-na \
1098 | --program-transform-n | --program-transform- \
1099 | --program-transform | --program-transfor \
1100 | --program-transfo | --program-transf \
1101 | --program-trans | --program-tran \
1102 | --progr-tra | --program-tr | --program-t)
1103 ac_prev=program_transform_name ;;
1104 -program-transform-name=* | --program-transform-name=* \
1105 | --program-transform-nam=* | --program-transform-na=* \
1106 | --program-transform-n=* | --program-transform-=* \
1107 | --program-transform=* | --program-transfor=* \
1108 | --program-transfo=* | --program-transf=* \
1109 | --program-trans=* | --program-tran=* \
1110 | --progr-tra=* | --program-tr=* | --program-t=*)
1111 program_transform_name=$ac_optarg ;;
1112
1113 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1114 ac_prev=pdfdir ;;
1115 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1116 pdfdir=$ac_optarg ;;
1117
1118 -psdir | --psdir | --psdi | --psd | --ps)
1119 ac_prev=psdir ;;
1120 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1121 psdir=$ac_optarg ;;
1122
1123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1124 | -silent | --silent | --silen | --sile | --sil)
1125 silent=yes ;;
1126
1127 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1128 ac_prev=sbindir ;;
1129 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1130 | --sbi=* | --sb=*)
1131 sbindir=$ac_optarg ;;
1132
1133 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1134 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1135 | --sharedst | --shareds | --shared | --share | --shar \
1136 | --sha | --sh)
1137 ac_prev=sharedstatedir ;;
1138 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1139 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1140 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1141 | --sha=* | --sh=*)
1142 sharedstatedir=$ac_optarg ;;
1143
1144 -site | --site | --sit)
1145 ac_prev=site ;;
1146 -site=* | --site=* | --sit=*)
1147 site=$ac_optarg ;;
1148
1149 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1150 ac_prev=srcdir ;;
1151 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1152 srcdir=$ac_optarg ;;
1153
1154 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1155 | --syscon | --sysco | --sysc | --sys | --sy)
1156 ac_prev=sysconfdir ;;
1157 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1158 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1159 sysconfdir=$ac_optarg ;;
1160
1161 -target | --target | --targe | --targ | --tar | --ta | --t)
1162 ac_prev=target_alias ;;
1163 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1164 target_alias=$ac_optarg ;;
1165
1166 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1167 verbose=yes ;;
1168
1169 -version | --version | --versio | --versi | --vers | -V)
1170 ac_init_version=: ;;
1171
1172 -with-* | --with-*)
1173 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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--with-$ac_useropt_orig"
1184 ac_unrecognized_sep=', ';;
1185 esac
1186 eval with_$ac_useropt=\$ac_optarg ;;
1187
1188 -without-* | --without-*)
1189 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192 as_fn_error $? "invalid package name: $ac_useropt"
1193 ac_useropt_orig=$ac_useropt
1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1196 *"
1197 "with_$ac_useropt"
1198 "*) ;;
1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1200 ac_unrecognized_sep=', ';;
1201 esac
1202 eval with_$ac_useropt=no ;;
1203
1204 --x)
1205 # Obsolete; use --with-x.
1206 with_x=yes ;;
1207
1208 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1209 | --x-incl | --x-inc | --x-in | --x-i)
1210 ac_prev=x_includes ;;
1211 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1212 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1213 x_includes=$ac_optarg ;;
1214
1215 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1216 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1217 ac_prev=x_libraries ;;
1218 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1219 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1220 x_libraries=$ac_optarg ;;
1221
1222 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1223 Try \`$0 --help' for more information"
1224 ;;
1225
1226 *=*)
1227 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1228 # Reject names that are not valid shell variable names.
1229 case $ac_envvar in #(
1230 '' | [0-9]* | *[!_$as_cr_alnum]* )
1231 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1232 esac
1233 eval $ac_envvar=\$ac_optarg
1234 export $ac_envvar ;;
1235
1236 *)
1237 # FIXME: should be removed in autoconf 3.0.
1238 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1239 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1240 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1241 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1242 ;;
1243
1244 esac
1245 done
1246
1247 if test -n "$ac_prev"; then
1248 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1249 as_fn_error $? "missing argument to $ac_option"
1250 fi
1251
1252 if test -n "$ac_unrecognized_opts"; then
1253 case $enable_option_checking in
1254 no) ;;
1255 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1256 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1257 esac
1258 fi
1259
1260 # Check all directory arguments for consistency.
1261 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1262 datadir sysconfdir sharedstatedir localstatedir includedir \
1263 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1264 libdir localedir mandir
1265 do
1266 eval ac_val=\$$ac_var
1267 # Remove trailing slashes.
1268 case $ac_val in
1269 */ )
1270 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1271 eval $ac_var=\$ac_val;;
1272 esac
1273 # Be sure to have absolute directory names.
1274 case $ac_val in
1275 [\\/$]* | ?:[\\/]* ) continue;;
1276 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1277 esac
1278 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1279 done
1280
1281 # There might be people who depend on the old broken behavior: `$host'
1282 # used to hold the argument of --host etc.
1283 # FIXME: To remove some day.
1284 build=$build_alias
1285 host=$host_alias
1286 target=$target_alias
1287
1288 # FIXME: To remove some day.
1289 if test "x$host_alias" != x; then
1290 if test "x$build_alias" = x; then
1291 cross_compiling=maybe
1292 elif test "x$build_alias" != "x$host_alias"; then
1293 cross_compiling=yes
1294 fi
1295 fi
1296
1297 ac_tool_prefix=
1298 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1299
1300 test "$silent" = yes && exec 6>/dev/null
1301
1302
1303 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1304 ac_ls_di=`ls -di .` &&
1305 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1306 as_fn_error $? "working directory cannot be determined"
1307 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1308 as_fn_error $? "pwd does not report name of working directory"
1309
1310
1311 # Find the source files, if location was not specified.
1312 if test -z "$srcdir"; then
1313 ac_srcdir_defaulted=yes
1314 # Try the directory containing this script, then the parent directory.
1315 ac_confdir=`$as_dirname -- "$as_myself" ||
1316 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1317 X"$as_myself" : 'X\(//\)[^/]' \| \
1318 X"$as_myself" : 'X\(//\)$' \| \
1319 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1320 $as_echo X"$as_myself" |
1321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1322 s//\1/
1323 q
1324 }
1325 /^X\(\/\/\)[^/].*/{
1326 s//\1/
1327 q
1328 }
1329 /^X\(\/\/\)$/{
1330 s//\1/
1331 q
1332 }
1333 /^X\(\/\).*/{
1334 s//\1/
1335 q
1336 }
1337 s/.*/./; q'`
1338 srcdir=$ac_confdir
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1340 srcdir=..
1341 fi
1342 else
1343 ac_srcdir_defaulted=no
1344 fi
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1346 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1347 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1348 fi
1349 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1350 ac_abs_confdir=`(
1351 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1352 pwd)`
1353 # When building in place, set srcdir=.
1354 if test "$ac_abs_confdir" = "$ac_pwd"; then
1355 srcdir=.
1356 fi
1357 # Remove unnecessary trailing slashes from srcdir.
1358 # Double slashes in file names in object file debugging info
1359 # mess up M-x gdb in Emacs.
1360 case $srcdir in
1361 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1362 esac
1363 for ac_var in $ac_precious_vars; do
1364 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1365 eval ac_env_${ac_var}_value=\$${ac_var}
1366 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1368 done
1369
1370 #
1371 # Report the --help message.
1372 #
1373 if test "$ac_init_help" = "long"; then
1374 # Omit some internal or obsolete options to make the list less imposing.
1375 # This message is too long to be a string in the A/UX 3.1 sh.
1376 cat <<_ACEOF
1377 \`configure' configures xf86-video-sis 0.10.8 to adapt to many kinds of systems.
1378
1379 Usage: $0 [OPTION]... [VAR=VALUE]...
1380
1381 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1382 VAR=VALUE. See below for descriptions of some of the useful variables.
1383
1384 Defaults for the options are specified in brackets.
1385
1386 Configuration:
1387 -h, --help display this help and exit
1388 --help=short display options specific to this package
1389 --help=recursive display the short help of all the included packages
1390 -V, --version display version information and exit
1391 -q, --quiet, --silent do not print \`checking ...' messages
1392 --cache-file=FILE cache test results in FILE [disabled]
1393 -C, --config-cache alias for \`--cache-file=config.cache'
1394 -n, --no-create do not create output files
1395 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1396
1397 Installation directories:
1398 --prefix=PREFIX install architecture-independent files in PREFIX
1399 [$ac_default_prefix]
1400 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1401 [PREFIX]
1402
1403 By default, \`make install' will install all the files in
1404 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1405 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1406 for instance \`--prefix=\$HOME'.
1407
1408 For better control, use the options below.
1409
1410 Fine tuning of the installation directories:
1411 --bindir=DIR user executables [EPREFIX/bin]
1412 --sbindir=DIR system admin executables [EPREFIX/sbin]
1413 --libexecdir=DIR program executables [EPREFIX/libexec]
1414 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1415 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1416 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1417 --libdir=DIR object code libraries [EPREFIX/lib]
1418 --includedir=DIR C header files [PREFIX/include]
1419 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1420 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1421 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1422 --infodir=DIR info documentation [DATAROOTDIR/info]
1423 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1424 --mandir=DIR man documentation [DATAROOTDIR/man]
1425 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-sis]
1426 --htmldir=DIR html documentation [DOCDIR]
1427 --dvidir=DIR dvi documentation [DOCDIR]
1428 --pdfdir=DIR pdf documentation [DOCDIR]
1429 --psdir=DIR ps documentation [DOCDIR]
1430 _ACEOF
1431
1432 cat <<\_ACEOF
1433
1434 Program names:
1435 --program-prefix=PREFIX prepend PREFIX to installed program names
1436 --program-suffix=SUFFIX append SUFFIX to installed program names
1437 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1438
1439 System types:
1440 --build=BUILD configure for building on BUILD [guessed]
1441 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1442 _ACEOF
1443 fi
1444
1445 if test -n "$ac_init_help"; then
1446 case $ac_init_help in
1447 short | recursive ) echo "Configuration of xf86-video-sis 0.10.8:";;
1448 esac
1449 cat <<\_ACEOF
1450
1451 Optional Features:
1452 --disable-option-checking ignore unrecognized --enable/--with options
1453 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1454 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1455 --enable-maintainer-mode enable make rules and dependencies not useful
1456 (and sometimes confusing) to the casual installer
1457 --disable-dependency-tracking speeds up one-time build
1458 --enable-dependency-tracking do not reject slow dependency extractors
1459 --disable-selective-werror
1460 Turn off selective compiler errors. (default:
1461 enabled)
1462 --enable-strict-compilation
1463 Enable all warnings from compiler and make them
1464 errors (default: disabled)
1465 --enable-silent-rules less verbose build output (undo: `make V=1')
1466 --disable-silent-rules verbose build output (undo: `make V=0')
1467 --enable-static[=PKGS] build static libraries [default=no]
1468 --enable-shared[=PKGS] build shared libraries [default=yes]
1469 --enable-fast-install[=PKGS]
1470 optimize for fast installation [default=yes]
1471 --disable-libtool-lock avoid locking (might break parallel builds)
1472 --disable-dri Disable DRI support [[default=auto]]
1473 --enable-xaa Enable legacy X Acceleration Architecture (XAA)
1474 [default=auto]
1475
1476 Optional Packages:
1477 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1478 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1479 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1480 both]
1481 --with-aix-soname=aix|svr4|both
1482 shared library versioning (aka "SONAME") variant to
1483 provide on AIX, [default=aix].
1484 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1485 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1486 compiler's sysroot if not specified).
1487 --with-xorg-module-dir=DIR
1488 Default xorg module directory
1489 [[default=$libdir/xorg/modules]]
1490
1491 Some influential environment variables:
1492 CC C compiler command
1493 CFLAGS C compiler flags
1494 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1495 nonstandard directory <lib dir>
1496 LIBS libraries to pass to the linker, e.g. -l<library>
1497 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1498 you have headers in a nonstandard directory <include dir>
1499 CPP C preprocessor
1500 PKG_CONFIG path to pkg-config utility
1501 PKG_CONFIG_PATH
1502 directories to add to pkg-config's search path
1503 PKG_CONFIG_LIBDIR
1504 path overriding pkg-config's built-in search path
1505 LT_SYS_LIBRARY_PATH
1506 User-defined run-time library search path.
1507 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1508 XORG_LIBS linker flags for XORG, overriding pkg-config
1509 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1510 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1511 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config
1512 DRI_LIBS linker flags for DRI, overriding pkg-config
1513 PCIACCESS_CFLAGS
1514 C compiler flags for PCIACCESS, overriding pkg-config
1515 PCIACCESS_LIBS
1516 linker flags for PCIACCESS, overriding pkg-config
1517
1518 Use these variables to override the choices made by `configure' or to help
1519 it to find libraries and programs with nonstandard names/locations.
1520
1521 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1522 _ACEOF
1523 ac_status=$?
1524 fi
1525
1526 if test "$ac_init_help" = "recursive"; then
1527 # If there are subdirs, report their specific --help.
1528 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1529 test -d "$ac_dir" ||
1530 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1531 continue
1532 ac_builddir=.
1533
1534 case "$ac_dir" in
1535 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536 *)
1537 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1538 # A ".." for each directory in $ac_dir_suffix.
1539 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1540 case $ac_top_builddir_sub in
1541 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1543 esac ;;
1544 esac
1545 ac_abs_top_builddir=$ac_pwd
1546 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1547 # for backward compatibility:
1548 ac_top_builddir=$ac_top_build_prefix
1549
1550 case $srcdir in
1551 .) # We are building in place.
1552 ac_srcdir=.
1553 ac_top_srcdir=$ac_top_builddir_sub
1554 ac_abs_top_srcdir=$ac_pwd ;;
1555 [\\/]* | ?:[\\/]* ) # Absolute name.
1556 ac_srcdir=$srcdir$ac_dir_suffix;
1557 ac_top_srcdir=$srcdir
1558 ac_abs_top_srcdir=$srcdir ;;
1559 *) # Relative name.
1560 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1561 ac_top_srcdir=$ac_top_build_prefix$srcdir
1562 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1563 esac
1564 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1565
1566 cd "$ac_dir" || { ac_status=$?; continue; }
1567 # Check for guested configure.
1568 if test -f "$ac_srcdir/configure.gnu"; then
1569 echo &&
1570 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1571 elif test -f "$ac_srcdir/configure"; then
1572 echo &&
1573 $SHELL "$ac_srcdir/configure" --help=recursive
1574 else
1575 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1576 fi || ac_status=$?
1577 cd "$ac_pwd" || { ac_status=$?; break; }
1578 done
1579 fi
1580
1581 test -n "$ac_init_help" && exit $ac_status
1582 if $ac_init_version; then
1583 cat <<\_ACEOF
1584 xf86-video-sis configure 0.10.8
1585 generated by GNU Autoconf 2.69
1586
1587 Copyright (C) 2012 Free Software Foundation, Inc.
1588 This configure script is free software; the Free Software Foundation
1589 gives unlimited permission to copy, distribute and modify it.
1590 _ACEOF
1591 exit
1592 fi
1593
1594 ## ------------------------ ##
1595 ## Autoconf initialization. ##
1596 ## ------------------------ ##
1597
1598 # ac_fn_c_try_compile LINENO
1599 # --------------------------
1600 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1601 ac_fn_c_try_compile ()
1602 {
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 rm -f conftest.$ac_objext
1605 if { { ac_try="$ac_compile"
1606 case "(($ac_try" in
1607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608 *) ac_try_echo=$ac_try;;
1609 esac
1610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611 $as_echo "$ac_try_echo"; } >&5
1612 (eval "$ac_compile") 2>conftest.err
1613 ac_status=$?
1614 if test -s conftest.err; then
1615 grep -v '^ *+' conftest.err >conftest.er1
1616 cat conftest.er1 >&5
1617 mv -f conftest.er1 conftest.err
1618 fi
1619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620 test $ac_status = 0; } && {
1621 test -z "$ac_c_werror_flag" ||
1622 test ! -s conftest.err
1623 } && test -s conftest.$ac_objext; then :
1624 ac_retval=0
1625 else
1626 $as_echo "$as_me: failed program was:" >&5
1627 sed 's/^/| /' conftest.$ac_ext >&5
1628
1629 ac_retval=1
1630 fi
1631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632 as_fn_set_status $ac_retval
1633
1634 } # ac_fn_c_try_compile
1635
1636 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1637 # ---------------------------------------------
1638 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1639 # accordingly.
1640 ac_fn_c_check_decl ()
1641 {
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 as_decl_name=`echo $2|sed 's/ *(.*//'`
1644 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1646 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1647 if eval \${$3+:} false; then :
1648 $as_echo_n "(cached) " >&6
1649 else
1650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1651 /* end confdefs.h. */
1652 $4
1653 int
1654 main ()
1655 {
1656 #ifndef $as_decl_name
1657 #ifdef __cplusplus
1658 (void) $as_decl_use;
1659 #else
1660 (void) $as_decl_name;
1661 #endif
1662 #endif
1663
1664 ;
1665 return 0;
1666 }
1667 _ACEOF
1668 if ac_fn_c_try_compile "$LINENO"; then :
1669 eval "$3=yes"
1670 else
1671 eval "$3=no"
1672 fi
1673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1674 fi
1675 eval ac_res=\$$3
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1677 $as_echo "$ac_res" >&6; }
1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679
1680 } # ac_fn_c_check_decl
1681
1682 # ac_fn_c_try_cpp LINENO
1683 # ----------------------
1684 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1685 ac_fn_c_try_cpp ()
1686 {
1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688 if { { ac_try="$ac_cpp conftest.$ac_ext"
1689 case "(($ac_try" in
1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691 *) ac_try_echo=$ac_try;;
1692 esac
1693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694 $as_echo "$ac_try_echo"; } >&5
1695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1696 ac_status=$?
1697 if test -s conftest.err; then
1698 grep -v '^ *+' conftest.err >conftest.er1
1699 cat conftest.er1 >&5
1700 mv -f conftest.er1 conftest.err
1701 fi
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; } > conftest.i && {
1704 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1705 test ! -s conftest.err
1706 }; then :
1707 ac_retval=0
1708 else
1709 $as_echo "$as_me: failed program was:" >&5
1710 sed 's/^/| /' conftest.$ac_ext >&5
1711
1712 ac_retval=1
1713 fi
1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715 as_fn_set_status $ac_retval
1716
1717 } # ac_fn_c_try_cpp
1718
1719 # ac_fn_c_try_run LINENO
1720 # ----------------------
1721 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1722 # that executables *can* be run.
1723 ac_fn_c_try_run ()
1724 {
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 if { { ac_try="$ac_link"
1727 case "(($ac_try" in
1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729 *) ac_try_echo=$ac_try;;
1730 esac
1731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732 $as_echo "$ac_try_echo"; } >&5
1733 (eval "$ac_link") 2>&5
1734 ac_status=$?
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1737 { { case "(($ac_try" in
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1740 esac
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_try") 2>&5
1744 ac_status=$?
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; }; }; then :
1747 ac_retval=0
1748 else
1749 $as_echo "$as_me: program exited with status $ac_status" >&5
1750 $as_echo "$as_me: failed program was:" >&5
1751 sed 's/^/| /' conftest.$ac_ext >&5
1752
1753 ac_retval=$ac_status
1754 fi
1755 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757 as_fn_set_status $ac_retval
1758
1759 } # ac_fn_c_try_run
1760
1761 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1762 # -------------------------------------------------------
1763 # Tests whether HEADER exists and can be compiled using the include files in
1764 # INCLUDES, setting the cache variable VAR accordingly.
1765 ac_fn_c_check_header_compile ()
1766 {
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1769 $as_echo_n "checking for $2... " >&6; }
1770 if eval \${$3+:} false; then :
1771 $as_echo_n "(cached) " >&6
1772 else
1773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774 /* end confdefs.h. */
1775 $4
1776 #include <$2>
1777 _ACEOF
1778 if ac_fn_c_try_compile "$LINENO"; then :
1779 eval "$3=yes"
1780 else
1781 eval "$3=no"
1782 fi
1783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1784 fi
1785 eval ac_res=\$$3
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787 $as_echo "$ac_res" >&6; }
1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789
1790 } # ac_fn_c_check_header_compile
1791
1792 # ac_fn_c_try_link LINENO
1793 # -----------------------
1794 # Try to link conftest.$ac_ext, and return whether this succeeded.
1795 ac_fn_c_try_link ()
1796 {
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 rm -f conftest.$ac_objext conftest$ac_exeext
1799 if { { ac_try="$ac_link"
1800 case "(($ac_try" in
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1803 esac
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_link") 2>conftest.err
1807 ac_status=$?
1808 if test -s conftest.err; then
1809 grep -v '^ *+' conftest.err >conftest.er1
1810 cat conftest.er1 >&5
1811 mv -f conftest.er1 conftest.err
1812 fi
1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814 test $ac_status = 0; } && {
1815 test -z "$ac_c_werror_flag" ||
1816 test ! -s conftest.err
1817 } && test -s conftest$ac_exeext && {
1818 test "$cross_compiling" = yes ||
1819 test -x conftest$ac_exeext
1820 }; then :
1821 ac_retval=0
1822 else
1823 $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1825
1826 ac_retval=1
1827 fi
1828 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1829 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1830 # interfere with the next link command; also delete a directory that is
1831 # left behind by Apple's compiler. We do this before executing the actions.
1832 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1833 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834 as_fn_set_status $ac_retval
1835
1836 } # ac_fn_c_try_link
1837
1838 # ac_fn_c_check_func LINENO FUNC VAR
1839 # ----------------------------------
1840 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1841 ac_fn_c_check_func ()
1842 {
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1845 $as_echo_n "checking for $2... " >&6; }
1846 if eval \${$3+:} false; then :
1847 $as_echo_n "(cached) " >&6
1848 else
1849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850 /* end confdefs.h. */
1851 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1853 #define $2 innocuous_$2
1854
1855 /* System header to define __stub macros and hopefully few prototypes,
1856 which can conflict with char $2 (); below.
1857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1858 <limits.h> exists even on freestanding compilers. */
1859
1860 #ifdef __STDC__
1861 # include <limits.h>
1862 #else
1863 # include <assert.h>
1864 #endif
1865
1866 #undef $2
1867
1868 /* Override any GCC internal prototype to avoid an error.
1869 Use char because int might match the return type of a GCC
1870 builtin and then its argument prototype would still apply. */
1871 #ifdef __cplusplus
1872 extern "C"
1873 #endif
1874 char $2 ();
1875 /* The GNU C library defines this for functions which it implements
1876 to always fail with ENOSYS. Some functions are actually named
1877 something starting with __ and the normal name is an alias. */
1878 #if defined __stub_$2 || defined __stub___$2
1879 choke me
1880 #endif
1881
1882 int
1883 main ()
1884 {
1885 return $2 ();
1886 ;
1887 return 0;
1888 }
1889 _ACEOF
1890 if ac_fn_c_try_link "$LINENO"; then :
1891 eval "$3=yes"
1892 else
1893 eval "$3=no"
1894 fi
1895 rm -f core conftest.err conftest.$ac_objext \
1896 conftest$ac_exeext conftest.$ac_ext
1897 fi
1898 eval ac_res=\$$3
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1900 $as_echo "$ac_res" >&6; }
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902
1903 } # ac_fn_c_check_func
1904
1905 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1906 # -------------------------------------------------------
1907 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1908 # the include files in INCLUDES and setting the cache variable VAR
1909 # accordingly.
1910 ac_fn_c_check_header_mongrel ()
1911 {
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 if eval \${$3+:} false; then :
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1915 $as_echo_n "checking for $2... " >&6; }
1916 if eval \${$3+:} false; then :
1917 $as_echo_n "(cached) " >&6
1918 fi
1919 eval ac_res=\$$3
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1921 $as_echo "$ac_res" >&6; }
1922 else
1923 # Is the header compilable?
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1925 $as_echo_n "checking $2 usability... " >&6; }
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h. */
1928 $4
1929 #include <$2>
1930 _ACEOF
1931 if ac_fn_c_try_compile "$LINENO"; then :
1932 ac_header_compiler=yes
1933 else
1934 ac_header_compiler=no
1935 fi
1936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1938 $as_echo "$ac_header_compiler" >&6; }
1939
1940 # Is the header present?
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1942 $as_echo_n "checking $2 presence... " >&6; }
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1945 #include <$2>
1946 _ACEOF
1947 if ac_fn_c_try_cpp "$LINENO"; then :
1948 ac_header_preproc=yes
1949 else
1950 ac_header_preproc=no
1951 fi
1952 rm -f conftest.err conftest.i conftest.$ac_ext
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1954 $as_echo "$ac_header_preproc" >&6; }
1955
1956 # So? What about this header?
1957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1958 yes:no: )
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1960 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1962 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1963 ;;
1964 no:yes:* )
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1966 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1968 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1970 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1972 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1974 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1975 ( $as_echo "## ---------------------------------------------------------------------- ##
1976 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1977 ## ---------------------------------------------------------------------- ##"
1978 ) | sed "s/^/$as_me: WARNING: /" >&2
1979 ;;
1980 esac
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1982 $as_echo_n "checking for $2... " >&6; }
1983 if eval \${$3+:} false; then :
1984 $as_echo_n "(cached) " >&6
1985 else
1986 eval "$3=\$ac_header_compiler"
1987 fi
1988 eval ac_res=\$$3
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990 $as_echo "$ac_res" >&6; }
1991 fi
1992 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1993
1994 } # ac_fn_c_check_header_mongrel
1995 cat >config.log <<_ACEOF
1996 This file contains any messages produced by compilers while
1997 running configure, to aid debugging if configure makes a mistake.
1998
1999 It was created by xf86-video-sis $as_me 0.10.8, which was
2000 generated by GNU Autoconf 2.69. Invocation command line was
2001
2002 $ $0 $@
2003
2004 _ACEOF
2005 exec 5>>config.log
2006 {
2007 cat <<_ASUNAME
2008 ## --------- ##
2009 ## Platform. ##
2010 ## --------- ##
2011
2012 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2013 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2014 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2015 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2016 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2017
2018 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2019 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2020
2021 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2022 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2023 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2024 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2025 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2026 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2027 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2028
2029 _ASUNAME
2030
2031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032 for as_dir in $PATH
2033 do
2034 IFS=$as_save_IFS
2035 test -z "$as_dir" && as_dir=.
2036 $as_echo "PATH: $as_dir"
2037 done
2038 IFS=$as_save_IFS
2039
2040 } >&5
2041
2042 cat >&5 <<_ACEOF
2043
2044
2045 ## ----------- ##
2046 ## Core tests. ##
2047 ## ----------- ##
2048
2049 _ACEOF
2050
2051
2052 # Keep a trace of the command line.
2053 # Strip out --no-create and --no-recursion so they do not pile up.
2054 # Strip out --silent because we don't want to record it for future runs.
2055 # Also quote any args containing shell meta-characters.
2056 # Make two passes to allow for proper duplicate-argument suppression.
2057 ac_configure_args=
2058 ac_configure_args0=
2059 ac_configure_args1=
2060 ac_must_keep_next=false
2061 for ac_pass in 1 2
2062 do
2063 for ac_arg
2064 do
2065 case $ac_arg in
2066 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2068 | -silent | --silent | --silen | --sile | --sil)
2069 continue ;;
2070 *\'*)
2071 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2072 esac
2073 case $ac_pass in
2074 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2075 2)
2076 as_fn_append ac_configure_args1 " '$ac_arg'"
2077 if test $ac_must_keep_next = true; then
2078 ac_must_keep_next=false # Got value, back to normal.
2079 else
2080 case $ac_arg in
2081 *=* | --config-cache | -C | -disable-* | --disable-* \
2082 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2083 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2084 | -with-* | --with-* | -without-* | --without-* | --x)
2085 case "$ac_configure_args0 " in
2086 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2087 esac
2088 ;;
2089 -* ) ac_must_keep_next=true ;;
2090 esac
2091 fi
2092 as_fn_append ac_configure_args " '$ac_arg'"
2093 ;;
2094 esac
2095 done
2096 done
2097 { ac_configure_args0=; unset ac_configure_args0;}
2098 { ac_configure_args1=; unset ac_configure_args1;}
2099
2100 # When interrupted or exit'd, cleanup temporary files, and complete
2101 # config.log. We remove comments because anyway the quotes in there
2102 # would cause problems or look ugly.
2103 # WARNING: Use '\'' to represent an apostrophe within the trap.
2104 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2105 trap 'exit_status=$?
2106 # Save into config.log some information that might help in debugging.
2107 {
2108 echo
2109
2110 $as_echo "## ---------------- ##
2111 ## Cache variables. ##
2112 ## ---------------- ##"
2113 echo
2114 # The following way of writing the cache mishandles newlines in values,
2115 (
2116 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2117 eval ac_val=\$$ac_var
2118 case $ac_val in #(
2119 *${as_nl}*)
2120 case $ac_var in #(
2121 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2122 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2123 esac
2124 case $ac_var in #(
2125 _ | IFS | as_nl) ;; #(
2126 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2127 *) { eval $ac_var=; unset $ac_var;} ;;
2128 esac ;;
2129 esac
2130 done
2131 (set) 2>&1 |
2132 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2133 *${as_nl}ac_space=\ *)
2134 sed -n \
2135 "s/'\''/'\''\\\\'\'''\''/g;
2136 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2137 ;; #(
2138 *)
2139 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2140 ;;
2141 esac |
2142 sort
2143 )
2144 echo
2145
2146 $as_echo "## ----------------- ##
2147 ## Output variables. ##
2148 ## ----------------- ##"
2149 echo
2150 for ac_var in $ac_subst_vars
2151 do
2152 eval ac_val=\$$ac_var
2153 case $ac_val in
2154 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2155 esac
2156 $as_echo "$ac_var='\''$ac_val'\''"
2157 done | sort
2158 echo
2159
2160 if test -n "$ac_subst_files"; then
2161 $as_echo "## ------------------- ##
2162 ## File substitutions. ##
2163 ## ------------------- ##"
2164 echo
2165 for ac_var in $ac_subst_files
2166 do
2167 eval ac_val=\$$ac_var
2168 case $ac_val in
2169 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2170 esac
2171 $as_echo "$ac_var='\''$ac_val'\''"
2172 done | sort
2173 echo
2174 fi
2175
2176 if test -s confdefs.h; then
2177 $as_echo "## ----------- ##
2178 ## confdefs.h. ##
2179 ## ----------- ##"
2180 echo
2181 cat confdefs.h
2182 echo
2183 fi
2184 test "$ac_signal" != 0 &&
2185 $as_echo "$as_me: caught signal $ac_signal"
2186 $as_echo "$as_me: exit $exit_status"
2187 } >&5
2188 rm -f core *.core core.conftest.* &&
2189 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2190 exit $exit_status
2191 ' 0
2192 for ac_signal in 1 2 13 15; do
2193 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2194 done
2195 ac_signal=0
2196
2197 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2198 rm -f -r conftest* confdefs.h
2199
2200 $as_echo "/* confdefs.h */" > confdefs.h
2201
2202 # Predefined preprocessor variables.
2203
2204 cat >>confdefs.h <<_ACEOF
2205 #define PACKAGE_NAME "$PACKAGE_NAME"
2206 _ACEOF
2207
2208 cat >>confdefs.h <<_ACEOF
2209 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2210 _ACEOF
2211
2212 cat >>confdefs.h <<_ACEOF
2213 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2214 _ACEOF
2215
2216 cat >>confdefs.h <<_ACEOF
2217 #define PACKAGE_STRING "$PACKAGE_STRING"
2218 _ACEOF
2219
2220 cat >>confdefs.h <<_ACEOF
2221 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2222 _ACEOF
2223
2224 cat >>confdefs.h <<_ACEOF
2225 #define PACKAGE_URL "$PACKAGE_URL"
2226 _ACEOF
2227
2228
2229 # Let the site file select an alternate cache file if it wants to.
2230 # Prefer an explicitly selected file to automatically selected ones.
2231 ac_site_file1=NONE
2232 ac_site_file2=NONE
2233 if test -n "$CONFIG_SITE"; then
2234 # We do not want a PATH search for config.site.
2235 case $CONFIG_SITE in #((
2236 -*) ac_site_file1=./$CONFIG_SITE;;
2237 */*) ac_site_file1=$CONFIG_SITE;;
2238 *) ac_site_file1=./$CONFIG_SITE;;
2239 esac
2240 elif test "x$prefix" != xNONE; then
2241 ac_site_file1=$prefix/share/config.site
2242 ac_site_file2=$prefix/etc/config.site
2243 else
2244 ac_site_file1=$ac_default_prefix/share/config.site
2245 ac_site_file2=$ac_default_prefix/etc/config.site
2246 fi
2247 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2248 do
2249 test "x$ac_site_file" = xNONE && continue
2250 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2252 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2253 sed 's/^/| /' "$ac_site_file" >&5
2254 . "$ac_site_file" \
2255 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2257 as_fn_error $? "failed to load site script $ac_site_file
2258 See \`config.log' for more details" "$LINENO" 5; }
2259 fi
2260 done
2261
2262 if test -r "$cache_file"; then
2263 # Some versions of bash will fail to source /dev/null (special files
2264 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2265 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2267 $as_echo "$as_me: loading cache $cache_file" >&6;}
2268 case $cache_file in
2269 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2270 *) . "./$cache_file";;
2271 esac
2272 fi
2273 else
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2275 $as_echo "$as_me: creating cache $cache_file" >&6;}
2276 >$cache_file
2277 fi
2278
2279 # Check that the precious variables saved in the cache have kept the same
2280 # value.
2281 ac_cache_corrupted=false
2282 for ac_var in $ac_precious_vars; do
2283 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2284 eval ac_new_set=\$ac_env_${ac_var}_set
2285 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2286 eval ac_new_val=\$ac_env_${ac_var}_value
2287 case $ac_old_set,$ac_new_set in
2288 set,)
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2290 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2291 ac_cache_corrupted=: ;;
2292 ,set)
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2294 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2295 ac_cache_corrupted=: ;;
2296 ,);;
2297 *)
2298 if test "x$ac_old_val" != "x$ac_new_val"; then
2299 # differences in whitespace do not lead to failure.
2300 ac_old_val_w=`echo x $ac_old_val`
2301 ac_new_val_w=`echo x $ac_new_val`
2302 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2304 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2305 ac_cache_corrupted=:
2306 else
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2308 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2309 eval $ac_var=\$ac_old_val
2310 fi
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2312 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2314 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2315 fi;;
2316 esac
2317 # Pass precious variables to config.status.
2318 if test "$ac_new_set" = set; then
2319 case $ac_new_val in
2320 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2321 *) ac_arg=$ac_var=$ac_new_val ;;
2322 esac
2323 case " $ac_configure_args " in
2324 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2325 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2326 esac
2327 fi
2328 done
2329 if $ac_cache_corrupted; then
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2333 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2334 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2335 fi
2336 ## -------------------- ##
2337 ## Main body of script. ##
2338 ## -------------------- ##
2339
2340 ac_ext=c
2341 ac_cpp='$CPP $CPPFLAGS'
2342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2345
2346
2347
2348 ac_config_headers="$ac_config_headers config.h"
2349
2350 ac_aux_dir=
2351 for ac_dir in . "$srcdir"/.; do
2352 if test -f "$ac_dir/install-sh"; then
2353 ac_aux_dir=$ac_dir
2354 ac_install_sh="$ac_aux_dir/install-sh -c"
2355 break
2356 elif test -f "$ac_dir/install.sh"; then
2357 ac_aux_dir=$ac_dir
2358 ac_install_sh="$ac_aux_dir/install.sh -c"
2359 break
2360 elif test -f "$ac_dir/shtool"; then
2361 ac_aux_dir=$ac_dir
2362 ac_install_sh="$ac_aux_dir/shtool install -c"
2363 break
2364 fi
2365 done
2366 if test -z "$ac_aux_dir"; then
2367 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2368 fi
2369
2370 # These three variables are undocumented and unsupported,
2371 # and are intended to be withdrawn in a future Autoconf release.
2372 # They can cause serious problems if a builder's source tree is in a directory
2373 # whose full name contains unusual characters.
2374 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2375 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2376 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2377
2378
2379
2380 # Initialize Automake
2381 am__api_version='1.11'
2382
2383 # Find a good install program. We prefer a C program (faster),
2384 # so one script is as good as another. But avoid the broken or
2385 # incompatible versions:
2386 # SysV /etc/install, /usr/sbin/install
2387 # SunOS /usr/etc/install
2388 # IRIX /sbin/install
2389 # AIX /bin/install
2390 # AmigaOS /C/install, which installs bootblocks on floppy discs
2391 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2392 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2393 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2394 # OS/2's system install, which has a completely different semantic
2395 # ./install, which can be erroneously created by make from ./install.sh.
2396 # Reject install programs that cannot install multiple files.
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2398 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2399 if test -z "$INSTALL"; then
2400 if ${ac_cv_path_install+:} false; then :
2401 $as_echo_n "(cached) " >&6
2402 else
2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404 for as_dir in $PATH
2405 do
2406 IFS=$as_save_IFS
2407 test -z "$as_dir" && as_dir=.
2408 # Account for people who put trailing slashes in PATH elements.
2409 case $as_dir/ in #((
2410 ./ | .// | /[cC]/* | \
2411 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2412 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2413 /usr/ucb/* ) ;;
2414 *)
2415 # OSF1 and SCO ODT 3.0 have their own names for install.
2416 # Don't use installbsd from OSF since it installs stuff as root
2417 # by default.
2418 for ac_prog in ginstall scoinst install; do
2419 for ac_exec_ext in '' $ac_executable_extensions; do
2420 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2421 if test $ac_prog = install &&
2422 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2423 # AIX install. It has an incompatible calling convention.
2424 :
2425 elif test $ac_prog = install &&
2426 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2427 # program-specific install script used by HP pwplus--don't use.
2428 :
2429 else
2430 rm -rf conftest.one conftest.two conftest.dir
2431 echo one > conftest.one
2432 echo two > conftest.two
2433 mkdir conftest.dir
2434 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2435 test -s conftest.one && test -s conftest.two &&
2436 test -s conftest.dir/conftest.one &&
2437 test -s conftest.dir/conftest.two
2438 then
2439 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2440 break 3
2441 fi
2442 fi
2443 fi
2444 done
2445 done
2446 ;;
2447 esac
2448
2449 done
2450 IFS=$as_save_IFS
2451
2452 rm -rf conftest.one conftest.two conftest.dir
2453
2454 fi
2455 if test "${ac_cv_path_install+set}" = set; then
2456 INSTALL=$ac_cv_path_install
2457 else
2458 # As a last resort, use the slow shell script. Don't cache a
2459 # value for INSTALL within a source directory, because that will
2460 # break other packages using the cache if that directory is
2461 # removed, or if the value is a relative name.
2462 INSTALL=$ac_install_sh
2463 fi
2464 fi
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2466 $as_echo "$INSTALL" >&6; }
2467
2468 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2469 # It thinks the first close brace ends the variable substitution.
2470 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2471
2472 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2473
2474 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2475
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2477 $as_echo_n "checking whether build environment is sane... " >&6; }
2478 # Just in case
2479 sleep 1
2480 echo timestamp > conftest.file
2481 # Reject unsafe characters in $srcdir or the absolute working directory
2482 # name. Accept space and tab only in the latter.
2483 am_lf='
2484 '
2485 case `pwd` in
2486 *[\\\"\#\$\&\'\`$am_lf]*)
2487 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2488 esac
2489 case $srcdir in
2490 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2491 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2492 esac
2493
2494 # Do `set' in a subshell so we don't clobber the current shell's
2495 # arguments. Must try -L first in case configure is actually a
2496 # symlink; some systems play weird games with the mod time of symlinks
2497 # (eg FreeBSD returns the mod time of the symlink's containing
2498 # directory).
2499 if (
2500 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2501 if test "$*" = "X"; then
2502 # -L didn't work.
2503 set X `ls -t "$srcdir/configure" conftest.file`
2504 fi
2505 rm -f conftest.file
2506 if test "$*" != "X $srcdir/configure conftest.file" \
2507 && test "$*" != "X conftest.file $srcdir/configure"; then
2508
2509 # If neither matched, then we have a broken ls. This can happen
2510 # if, for instance, CONFIG_SHELL is bash and it inherits a
2511 # broken ls alias from the environment. This has actually
2512 # happened. Such a system could not be considered "sane".
2513 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2514 alias in your environment" "$LINENO" 5
2515 fi
2516
2517 test "$2" = conftest.file
2518 )
2519 then
2520 # Ok.
2521 :
2522 else
2523 as_fn_error $? "newly created file is older than distributed files!
2524 Check your system clock" "$LINENO" 5
2525 fi
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2527 $as_echo "yes" >&6; }
2528 test "$program_prefix" != NONE &&
2529 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2530 # Use a double $ so make ignores it.
2531 test "$program_suffix" != NONE &&
2532 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2533 # Double any \ or $.
2534 # By default was `s,x,x', remove it if useless.
2535 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2536 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2537
2538 # expand $ac_aux_dir to an absolute path
2539 am_aux_dir=`cd $ac_aux_dir && pwd`
2540
2541 if test x"${MISSING+set}" != xset; then
2542 case $am_aux_dir in
2543 *\ * | *\ *)
2544 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2545 *)
2546 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2547 esac
2548 fi
2549 # Use eval to expand $SHELL
2550 if eval "$MISSING --run true"; then
2551 am_missing_run="$MISSING --run "
2552 else
2553 am_missing_run=
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2555 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2556 fi
2557
2558 if test x"${install_sh}" != xset; then
2559 case $am_aux_dir in
2560 *\ * | *\ *)
2561 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2562 *)
2563 install_sh="\${SHELL} $am_aux_dir/install-sh"
2564 esac
2565 fi
2566
2567 # Installed binaries are usually stripped using `strip' when the user
2568 # run `make install-strip'. However `strip' might not be the right
2569 # tool to use in cross-compilation environments, therefore Automake
2570 # will honor the `STRIP' environment variable to overrule this program.
2571 if test "$cross_compiling" != no; then
2572 if test -n "$ac_tool_prefix"; then
2573 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2574 set dummy ${ac_tool_prefix}strip; ac_word=$2
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2576 $as_echo_n "checking for $ac_word... " >&6; }
2577 if ${ac_cv_prog_STRIP+:} false; then :
2578 $as_echo_n "(cached) " >&6
2579 else
2580 if test -n "$STRIP"; then
2581 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2582 else
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584 for as_dir in $PATH
2585 do
2586 IFS=$as_save_IFS
2587 test -z "$as_dir" && as_dir=.
2588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2590 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2592 break 2
2593 fi
2594 done
2595 done
2596 IFS=$as_save_IFS
2597
2598 fi
2599 fi
2600 STRIP=$ac_cv_prog_STRIP
2601 if test -n "$STRIP"; then
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2603 $as_echo "$STRIP" >&6; }
2604 else
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2606 $as_echo "no" >&6; }
2607 fi
2608
2609
2610 fi
2611 if test -z "$ac_cv_prog_STRIP"; then
2612 ac_ct_STRIP=$STRIP
2613 # Extract the first word of "strip", so it can be a program name with args.
2614 set dummy strip; ac_word=$2
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2616 $as_echo_n "checking for $ac_word... " >&6; }
2617 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2618 $as_echo_n "(cached) " >&6
2619 else
2620 if test -n "$ac_ct_STRIP"; then
2621 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2622 else
2623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624 for as_dir in $PATH
2625 do
2626 IFS=$as_save_IFS
2627 test -z "$as_dir" && as_dir=.
2628 for ac_exec_ext in '' $ac_executable_extensions; do
2629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2630 ac_cv_prog_ac_ct_STRIP="strip"
2631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2632 break 2
2633 fi
2634 done
2635 done
2636 IFS=$as_save_IFS
2637
2638 fi
2639 fi
2640 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2641 if test -n "$ac_ct_STRIP"; then
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2643 $as_echo "$ac_ct_STRIP" >&6; }
2644 else
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2646 $as_echo "no" >&6; }
2647 fi
2648
2649 if test "x$ac_ct_STRIP" = x; then
2650 STRIP=":"
2651 else
2652 case $cross_compiling:$ac_tool_warned in
2653 yes:)
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2655 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2656 ac_tool_warned=yes ;;
2657 esac
2658 STRIP=$ac_ct_STRIP
2659 fi
2660 else
2661 STRIP="$ac_cv_prog_STRIP"
2662 fi
2663
2664 fi
2665 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2666
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2668 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2669 if test -z "$MKDIR_P"; then
2670 if ${ac_cv_path_mkdir+:} false; then :
2671 $as_echo_n "(cached) " >&6
2672 else
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2675 do
2676 IFS=$as_save_IFS
2677 test -z "$as_dir" && as_dir=.
2678 for ac_prog in mkdir gmkdir; do
2679 for ac_exec_ext in '' $ac_executable_extensions; do
2680 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2681 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2682 'mkdir (GNU coreutils) '* | \
2683 'mkdir (coreutils) '* | \
2684 'mkdir (fileutils) '4.1*)
2685 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2686 break 3;;
2687 esac
2688 done
2689 done
2690 done
2691 IFS=$as_save_IFS
2692
2693 fi
2694
2695 test -d ./--version && rmdir ./--version
2696 if test "${ac_cv_path_mkdir+set}" = set; then
2697 MKDIR_P="$ac_cv_path_mkdir -p"
2698 else
2699 # As a last resort, use the slow shell script. Don't cache a
2700 # value for MKDIR_P within a source directory, because that will
2701 # break other packages using the cache if that directory is
2702 # removed, or if the value is a relative name.
2703 MKDIR_P="$ac_install_sh -d"
2704 fi
2705 fi
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2707 $as_echo "$MKDIR_P" >&6; }
2708
2709 mkdir_p="$MKDIR_P"
2710 case $mkdir_p in
2711 [\\/$]* | ?:[\\/]*) ;;
2712 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2713 esac
2714
2715 for ac_prog in gawk mawk nawk awk
2716 do
2717 # Extract the first word of "$ac_prog", so it can be a program name with args.
2718 set dummy $ac_prog; ac_word=$2
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2720 $as_echo_n "checking for $ac_word... " >&6; }
2721 if ${ac_cv_prog_AWK+:} false; then :
2722 $as_echo_n "(cached) " >&6
2723 else
2724 if test -n "$AWK"; then
2725 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2726 else
2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728 for as_dir in $PATH
2729 do
2730 IFS=$as_save_IFS
2731 test -z "$as_dir" && as_dir=.
2732 for ac_exec_ext in '' $ac_executable_extensions; do
2733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2734 ac_cv_prog_AWK="$ac_prog"
2735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2736 break 2
2737 fi
2738 done
2739 done
2740 IFS=$as_save_IFS
2741
2742 fi
2743 fi
2744 AWK=$ac_cv_prog_AWK
2745 if test -n "$AWK"; then
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2747 $as_echo "$AWK" >&6; }
2748 else
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2750 $as_echo "no" >&6; }
2751 fi
2752
2753
2754 test -n "$AWK" && break
2755 done
2756
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2758 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2759 set x ${MAKE-make}
2760 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2761 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2762 $as_echo_n "(cached) " >&6
2763 else
2764 cat >conftest.make <<\_ACEOF
2765 SHELL = /bin/sh
2766 all:
2767 @echo '@@@%%%=$(MAKE)=@@@%%%'
2768 _ACEOF
2769 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2770 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2771 *@@@%%%=?*=@@@%%%*)
2772 eval ac_cv_prog_make_${ac_make}_set=yes;;
2773 *)
2774 eval ac_cv_prog_make_${ac_make}_set=no;;
2775 esac
2776 rm -f conftest.make
2777 fi
2778 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2780 $as_echo "yes" >&6; }
2781 SET_MAKE=
2782 else
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784 $as_echo "no" >&6; }
2785 SET_MAKE="MAKE=${MAKE-make}"
2786 fi
2787
2788 rm -rf .tst 2>/dev/null
2789 mkdir .tst 2>/dev/null
2790 if test -d .tst; then
2791 am__leading_dot=.
2792 else
2793 am__leading_dot=_
2794 fi
2795 rmdir .tst 2>/dev/null
2796
2797 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2798 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2799 # is not polluted with repeated "-I."
2800 am__isrc=' -I$(srcdir)'
2801 # test to see if srcdir already configured
2802 if test -f $srcdir/config.status; then
2803 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2804 fi
2805 fi
2806
2807 # test whether we have cygpath
2808 if test -z "$CYGPATH_W"; then
2809 if (cygpath --version) >/dev/null 2>/dev/null; then
2810 CYGPATH_W='cygpath -w'
2811 else
2812 CYGPATH_W=echo
2813 fi
2814 fi
2815
2816
2817 # Define the identity of the package.
2818 PACKAGE='xf86-video-sis'
2819 VERSION='0.10.8'
2820
2821
2822 cat >>confdefs.h <<_ACEOF
2823 #define PACKAGE "$PACKAGE"
2824 _ACEOF
2825
2826
2827 cat >>confdefs.h <<_ACEOF
2828 #define VERSION "$VERSION"
2829 _ACEOF
2830
2831 # Some tools Automake needs.
2832
2833 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2834
2835
2836 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2837
2838
2839 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2840
2841
2842 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2843
2844
2845 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2846
2847 # We need awk for the "check" target. The system "awk" is bad on
2848 # some platforms.
2849 # Always define AMTAR for backward compatibility. Yes, it's still used
2850 # in the wild :-( We should find a proper way to deprecate it ...
2851 AMTAR='$${TAR-tar}'
2852
2853 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2854
2855
2856
2857
2858
2859
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2861 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2862 # Check whether --enable-maintainer-mode was given.
2863 if test "${enable_maintainer_mode+set}" = set; then :
2864 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2865 else
2866 USE_MAINTAINER_MODE=no
2867 fi
2868
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2870 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2871 if test $USE_MAINTAINER_MODE = yes; then
2872 MAINTAINER_MODE_TRUE=
2873 MAINTAINER_MODE_FALSE='#'
2874 else
2875 MAINTAINER_MODE_TRUE='#'
2876 MAINTAINER_MODE_FALSE=
2877 fi
2878
2879 MAINT=$MAINTAINER_MODE_TRUE
2880
2881
2882
2883 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895 DEPDIR="${am__leading_dot}deps"
2896
2897 ac_config_commands="$ac_config_commands depfiles"
2898
2899
2900 am_make=${MAKE-make}
2901 cat > confinc << 'END'
2902 am__doit:
2903 @echo this is the am__doit target
2904 .PHONY: am__doit
2905 END
2906 # If we don't find an include directive, just comment out the code.
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2908 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2909 am__include="#"
2910 am__quote=
2911 _am_result=none
2912 # First try GNU make style include.
2913 echo "include confinc" > confmf
2914 # Ignore all kinds of additional output from `make'.
2915 case `$am_make -s -f confmf 2> /dev/null` in #(
2916 *the\ am__doit\ target*)
2917 am__include=include
2918 am__quote=
2919 _am_result=GNU
2920 ;;
2921 esac
2922 # Now try BSD make style include.
2923 if test "$am__include" = "#"; then
2924 echo '.include "confinc"' > confmf
2925 case `$am_make -s -f confmf 2> /dev/null` in #(
2926 *the\ am__doit\ target*)
2927 am__include=.include
2928 am__quote="\""
2929 _am_result=BSD
2930 ;;
2931 esac
2932 fi
2933
2934
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2936 $as_echo "$_am_result" >&6; }
2937 rm -f confinc confmf
2938
2939 # Check whether --enable-dependency-tracking was given.
2940 if test "${enable_dependency_tracking+set}" = set; then :
2941 enableval=$enable_dependency_tracking;
2942 fi
2943
2944 if test "x$enable_dependency_tracking" != xno; then
2945 am_depcomp="$ac_aux_dir/depcomp"
2946 AMDEPBACKSLASH='\'
2947 am__nodep='_no'
2948 fi
2949 if test "x$enable_dependency_tracking" != xno; then
2950 AMDEP_TRUE=
2951 AMDEP_FALSE='#'
2952 else
2953 AMDEP_TRUE='#'
2954 AMDEP_FALSE=
2955 fi
2956
2957
2958 ac_ext=c
2959 ac_cpp='$CPP $CPPFLAGS'
2960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2963 if test -n "$ac_tool_prefix"; then
2964 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2965 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2967 $as_echo_n "checking for $ac_word... " >&6; }
2968 if ${ac_cv_prog_CC+:} false; then :
2969 $as_echo_n "(cached) " >&6
2970 else
2971 if test -n "$CC"; then
2972 ac_cv_prog_CC="$CC" # Let the user override the test.
2973 else
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 for as_dir in $PATH
2976 do
2977 IFS=$as_save_IFS
2978 test -z "$as_dir" && as_dir=.
2979 for ac_exec_ext in '' $ac_executable_extensions; do
2980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2981 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2983 break 2
2984 fi
2985 done
2986 done
2987 IFS=$as_save_IFS
2988
2989 fi
2990 fi
2991 CC=$ac_cv_prog_CC
2992 if test -n "$CC"; then
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2994 $as_echo "$CC" >&6; }
2995 else
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2997 $as_echo "no" >&6; }
2998 fi
2999
3000
3001 fi
3002 if test -z "$ac_cv_prog_CC"; then
3003 ac_ct_CC=$CC
3004 # Extract the first word of "gcc", so it can be a program name with args.
3005 set dummy gcc; ac_word=$2
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3007 $as_echo_n "checking for $ac_word... " >&6; }
3008 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3009 $as_echo_n "(cached) " >&6
3010 else
3011 if test -n "$ac_ct_CC"; then
3012 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3013 else
3014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015 for as_dir in $PATH
3016 do
3017 IFS=$as_save_IFS
3018 test -z "$as_dir" && as_dir=.
3019 for ac_exec_ext in '' $ac_executable_extensions; do
3020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3021 ac_cv_prog_ac_ct_CC="gcc"
3022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3023 break 2
3024 fi
3025 done
3026 done
3027 IFS=$as_save_IFS
3028
3029 fi
3030 fi
3031 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3032 if test -n "$ac_ct_CC"; then
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3034 $as_echo "$ac_ct_CC" >&6; }
3035 else
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3037 $as_echo "no" >&6; }
3038 fi
3039
3040 if test "x$ac_ct_CC" = x; then
3041 CC=""
3042 else
3043 case $cross_compiling:$ac_tool_warned in
3044 yes:)
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3047 ac_tool_warned=yes ;;
3048 esac
3049 CC=$ac_ct_CC
3050 fi
3051 else
3052 CC="$ac_cv_prog_CC"
3053 fi
3054
3055 if test -z "$CC"; then
3056 if test -n "$ac_tool_prefix"; then
3057 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3058 set dummy ${ac_tool_prefix}cc; ac_word=$2
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3060 $as_echo_n "checking for $ac_word... " >&6; }
3061 if ${ac_cv_prog_CC+:} false; then :
3062 $as_echo_n "(cached) " >&6
3063 else
3064 if test -n "$CC"; then
3065 ac_cv_prog_CC="$CC" # Let the user override the test.
3066 else
3067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068 for as_dir in $PATH
3069 do
3070 IFS=$as_save_IFS
3071 test -z "$as_dir" && as_dir=.
3072 for ac_exec_ext in '' $ac_executable_extensions; do
3073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3074 ac_cv_prog_CC="${ac_tool_prefix}cc"
3075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3076 break 2
3077 fi
3078 done
3079 done
3080 IFS=$as_save_IFS
3081
3082 fi
3083 fi
3084 CC=$ac_cv_prog_CC
3085 if test -n "$CC"; then
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3087 $as_echo "$CC" >&6; }
3088 else
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3090 $as_echo "no" >&6; }
3091 fi
3092
3093
3094 fi
3095 fi
3096 if test -z "$CC"; then
3097 # Extract the first word of "cc", so it can be a program name with args.
3098 set dummy cc; ac_word=$2
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3100 $as_echo_n "checking for $ac_word... " >&6; }
3101 if ${ac_cv_prog_CC+:} false; then :
3102 $as_echo_n "(cached) " >&6
3103 else
3104 if test -n "$CC"; then
3105 ac_cv_prog_CC="$CC" # Let the user override the test.
3106 else
3107 ac_prog_rejected=no
3108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 for as_dir in $PATH
3110 do
3111 IFS=$as_save_IFS
3112 test -z "$as_dir" && as_dir=.
3113 for ac_exec_ext in '' $ac_executable_extensions; do
3114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3115 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3116 ac_prog_rejected=yes
3117 continue
3118 fi
3119 ac_cv_prog_CC="cc"
3120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3121 break 2
3122 fi
3123 done
3124 done
3125 IFS=$as_save_IFS
3126
3127 if test $ac_prog_rejected = yes; then
3128 # We found a bogon in the path, so make sure we never use it.
3129 set dummy $ac_cv_prog_CC
3130 shift
3131 if test $# != 0; then
3132 # We chose a different compiler from the bogus one.
3133 # However, it has the same basename, so the bogon will be chosen
3134 # first if we set CC to just the basename; use the full file name.
3135 shift
3136 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3137 fi
3138 fi
3139 fi
3140 fi
3141 CC=$ac_cv_prog_CC
3142 if test -n "$CC"; then
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3144 $as_echo "$CC" >&6; }
3145 else
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147 $as_echo "no" >&6; }
3148 fi
3149
3150
3151 fi
3152 if test -z "$CC"; then
3153 if test -n "$ac_tool_prefix"; then
3154 for ac_prog in cl.exe
3155 do
3156 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3157 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3159 $as_echo_n "checking for $ac_word... " >&6; }
3160 if ${ac_cv_prog_CC+:} false; then :
3161 $as_echo_n "(cached) " >&6
3162 else
3163 if test -n "$CC"; then
3164 ac_cv_prog_CC="$CC" # Let the user override the test.
3165 else
3166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167 for as_dir in $PATH
3168 do
3169 IFS=$as_save_IFS
3170 test -z "$as_dir" && as_dir=.
3171 for ac_exec_ext in '' $ac_executable_extensions; do
3172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3173 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3175 break 2
3176 fi
3177 done
3178 done
3179 IFS=$as_save_IFS
3180
3181 fi
3182 fi
3183 CC=$ac_cv_prog_CC
3184 if test -n "$CC"; then
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3186 $as_echo "$CC" >&6; }
3187 else
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3189 $as_echo "no" >&6; }
3190 fi
3191
3192
3193 test -n "$CC" && break
3194 done
3195 fi
3196 if test -z "$CC"; then
3197 ac_ct_CC=$CC
3198 for ac_prog in cl.exe
3199 do
3200 # Extract the first word of "$ac_prog", so it can be a program name with args.
3201 set dummy $ac_prog; ac_word=$2
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3203 $as_echo_n "checking for $ac_word... " >&6; }
3204 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3205 $as_echo_n "(cached) " >&6
3206 else
3207 if test -n "$ac_ct_CC"; then
3208 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3209 else
3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 for as_dir in $PATH
3212 do
3213 IFS=$as_save_IFS
3214 test -z "$as_dir" && as_dir=.
3215 for ac_exec_ext in '' $ac_executable_extensions; do
3216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3217 ac_cv_prog_ac_ct_CC="$ac_prog"
3218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3219 break 2
3220 fi
3221 done
3222 done
3223 IFS=$as_save_IFS
3224
3225 fi
3226 fi
3227 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3228 if test -n "$ac_ct_CC"; then
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3230 $as_echo "$ac_ct_CC" >&6; }
3231 else
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3233 $as_echo "no" >&6; }
3234 fi
3235
3236
3237 test -n "$ac_ct_CC" && break
3238 done
3239
3240 if test "x$ac_ct_CC" = x; then
3241 CC=""
3242 else
3243 case $cross_compiling:$ac_tool_warned in
3244 yes:)
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3247 ac_tool_warned=yes ;;
3248 esac
3249 CC=$ac_ct_CC
3250 fi
3251 fi
3252
3253 fi
3254
3255
3256 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3258 as_fn_error $? "no acceptable C compiler found in \$PATH
3259 See \`config.log' for more details" "$LINENO" 5; }
3260
3261 # Provide some information about the compiler.
3262 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3263 set X $ac_compile
3264 ac_compiler=$2
3265 for ac_option in --version -v -V -qversion; do
3266 { { ac_try="$ac_compiler $ac_option >&5"
3267 case "(($ac_try" in
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3270 esac
3271 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3272 $as_echo "$ac_try_echo"; } >&5
3273 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3274 ac_status=$?
3275 if test -s conftest.err; then
3276 sed '10a\
3277 ... rest of stderr output deleted ...
3278 10q' conftest.err >conftest.er1
3279 cat conftest.er1 >&5
3280 fi
3281 rm -f conftest.er1 conftest.err
3282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3283 test $ac_status = 0; }
3284 done
3285
3286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3287 /* end confdefs.h. */
3288
3289 int
3290 main ()
3291 {
3292
3293 ;
3294 return 0;
3295 }
3296 _ACEOF
3297 ac_clean_files_save=$ac_clean_files
3298 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3299 # Try to create an executable without -o first, disregard a.out.
3300 # It will help us diagnose broken compilers, and finding out an intuition
3301 # of exeext.
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3303 $as_echo_n "checking whether the C compiler works... " >&6; }
3304 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3305
3306 # The possible output files:
3307 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3308
3309 ac_rmfiles=
3310 for ac_file in $ac_files
3311 do
3312 case $ac_file in
3313 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3314 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3315 esac
3316 done
3317 rm -f $ac_rmfiles
3318
3319 if { { ac_try="$ac_link_default"
3320 case "(($ac_try" in
3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3323 esac
3324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3325 $as_echo "$ac_try_echo"; } >&5
3326 (eval "$ac_link_default") 2>&5
3327 ac_status=$?
3328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3329 test $ac_status = 0; }; then :
3330 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3331 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3332 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3333 # so that the user can short-circuit this test for compilers unknown to
3334 # Autoconf.
3335 for ac_file in $ac_files ''
3336 do
3337 test -f "$ac_file" || continue
3338 case $ac_file in
3339 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3340 ;;
3341 [ab].out )
3342 # We found the default executable, but exeext='' is most
3343 # certainly right.
3344 break;;
3345 *.* )
3346 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3347 then :; else
3348 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3349 fi
3350 # We set ac_cv_exeext here because the later test for it is not
3351 # safe: cross compilers may not add the suffix if given an `-o'
3352 # argument, so we may need to know it at that point already.
3353 # Even if this section looks crufty: it has the advantage of
3354 # actually working.
3355 break;;
3356 * )
3357 break;;
3358 esac
3359 done
3360 test "$ac_cv_exeext" = no && ac_cv_exeext=
3361
3362 else
3363 ac_file=''
3364 fi
3365 if test -z "$ac_file"; then :
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3367 $as_echo "no" >&6; }
3368 $as_echo "$as_me: failed program was:" >&5
3369 sed 's/^/| /' conftest.$ac_ext >&5
3370
3371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3373 as_fn_error 77 "C compiler cannot create executables
3374 See \`config.log' for more details" "$LINENO" 5; }
3375 else
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3377 $as_echo "yes" >&6; }
3378 fi
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3380 $as_echo_n "checking for C compiler default output file name... " >&6; }
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3382 $as_echo "$ac_file" >&6; }
3383 ac_exeext=$ac_cv_exeext
3384
3385 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3386 ac_clean_files=$ac_clean_files_save
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3388 $as_echo_n "checking for suffix of executables... " >&6; }
3389 if { { ac_try="$ac_link"
3390 case "(($ac_try" in
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3393 esac
3394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3395 $as_echo "$ac_try_echo"; } >&5
3396 (eval "$ac_link") 2>&5
3397 ac_status=$?
3398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3399 test $ac_status = 0; }; then :
3400 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3401 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3402 # work properly (i.e., refer to `conftest.exe'), while it won't with
3403 # `rm'.
3404 for ac_file in conftest.exe conftest conftest.*; do
3405 test -f "$ac_file" || continue
3406 case $ac_file in
3407 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3408 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3409 break;;
3410 * ) break;;
3411 esac
3412 done
3413 else
3414 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3416 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3417 See \`config.log' for more details" "$LINENO" 5; }
3418 fi
3419 rm -f conftest conftest$ac_cv_exeext
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3421 $as_echo "$ac_cv_exeext" >&6; }
3422
3423 rm -f conftest.$ac_ext
3424 EXEEXT=$ac_cv_exeext
3425 ac_exeext=$EXEEXT
3426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427 /* end confdefs.h. */
3428 #include <stdio.h>
3429 int
3430 main ()
3431 {
3432 FILE *f = fopen ("conftest.out", "w");
3433 return ferror (f) || fclose (f) != 0;
3434
3435 ;
3436 return 0;
3437 }
3438 _ACEOF
3439 ac_clean_files="$ac_clean_files conftest.out"
3440 # Check that the compiler produces executables we can run. If not, either
3441 # the compiler is broken, or we cross compile.
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3443 $as_echo_n "checking whether we are cross compiling... " >&6; }
3444 if test "$cross_compiling" != yes; then
3445 { { ac_try="$ac_link"
3446 case "(($ac_try" in
3447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448 *) ac_try_echo=$ac_try;;
3449 esac
3450 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3451 $as_echo "$ac_try_echo"; } >&5
3452 (eval "$ac_link") 2>&5
3453 ac_status=$?
3454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3455 test $ac_status = 0; }
3456 if { ac_try='./conftest$ac_cv_exeext'
3457 { { case "(($ac_try" in
3458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459 *) ac_try_echo=$ac_try;;
3460 esac
3461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3462 $as_echo "$ac_try_echo"; } >&5
3463 (eval "$ac_try") 2>&5
3464 ac_status=$?
3465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3466 test $ac_status = 0; }; }; then
3467 cross_compiling=no
3468 else
3469 if test "$cross_compiling" = maybe; then
3470 cross_compiling=yes
3471 else
3472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3474 as_fn_error $? "cannot run C compiled programs.
3475 If you meant to cross compile, use \`--host'.
3476 See \`config.log' for more details" "$LINENO" 5; }
3477 fi
3478 fi
3479 fi
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3481 $as_echo "$cross_compiling" >&6; }
3482
3483 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3484 ac_clean_files=$ac_clean_files_save
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3486 $as_echo_n "checking for suffix of object files... " >&6; }
3487 if ${ac_cv_objext+:} false; then :
3488 $as_echo_n "(cached) " >&6
3489 else
3490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3491 /* end confdefs.h. */
3492
3493 int
3494 main ()
3495 {
3496
3497 ;
3498 return 0;
3499 }
3500 _ACEOF
3501 rm -f conftest.o conftest.obj
3502 if { { ac_try="$ac_compile"
3503 case "(($ac_try" in
3504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505 *) ac_try_echo=$ac_try;;
3506 esac
3507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3508 $as_echo "$ac_try_echo"; } >&5
3509 (eval "$ac_compile") 2>&5
3510 ac_status=$?
3511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3512 test $ac_status = 0; }; then :
3513 for ac_file in conftest.o conftest.obj conftest.*; do
3514 test -f "$ac_file" || continue;
3515 case $ac_file in
3516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3517 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3518 break;;
3519 esac
3520 done
3521 else
3522 $as_echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.$ac_ext >&5
3524
3525 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3527 as_fn_error $? "cannot compute suffix of object files: cannot compile
3528 See \`config.log' for more details" "$LINENO" 5; }
3529 fi
3530 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3531 fi
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3533 $as_echo "$ac_cv_objext" >&6; }
3534 OBJEXT=$ac_cv_objext
3535 ac_objext=$OBJEXT
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3537 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3538 if ${ac_cv_c_compiler_gnu+:} false; then :
3539 $as_echo_n "(cached) " >&6
3540 else
3541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542 /* end confdefs.h. */
3543
3544 int
3545 main ()
3546 {
3547 #ifndef __GNUC__
3548 choke me
3549 #endif
3550
3551 ;
3552 return 0;
3553 }
3554 _ACEOF
3555 if ac_fn_c_try_compile "$LINENO"; then :
3556 ac_compiler_gnu=yes
3557 else
3558 ac_compiler_gnu=no
3559 fi
3560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3561 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3562
3563 fi
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3565 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3566 if test $ac_compiler_gnu = yes; then
3567 GCC=yes
3568 else
3569 GCC=
3570 fi
3571 ac_test_CFLAGS=${CFLAGS+set}
3572 ac_save_CFLAGS=$CFLAGS
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3574 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3575 if ${ac_cv_prog_cc_g+:} false; then :
3576 $as_echo_n "(cached) " >&6
3577 else
3578 ac_save_c_werror_flag=$ac_c_werror_flag
3579 ac_c_werror_flag=yes
3580 ac_cv_prog_cc_g=no
3581 CFLAGS="-g"
3582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583 /* end confdefs.h. */
3584
3585 int
3586 main ()
3587 {
3588
3589 ;
3590 return 0;
3591 }
3592 _ACEOF
3593 if ac_fn_c_try_compile "$LINENO"; then :
3594 ac_cv_prog_cc_g=yes
3595 else
3596 CFLAGS=""
3597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598 /* end confdefs.h. */
3599
3600 int
3601 main ()
3602 {
3603
3604 ;
3605 return 0;
3606 }
3607 _ACEOF
3608 if ac_fn_c_try_compile "$LINENO"; then :
3609
3610 else
3611 ac_c_werror_flag=$ac_save_c_werror_flag
3612 CFLAGS="-g"
3613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614 /* end confdefs.h. */
3615
3616 int
3617 main ()
3618 {
3619
3620 ;
3621 return 0;
3622 }
3623 _ACEOF
3624 if ac_fn_c_try_compile "$LINENO"; then :
3625 ac_cv_prog_cc_g=yes
3626 fi
3627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3628 fi
3629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3630 fi
3631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3632 ac_c_werror_flag=$ac_save_c_werror_flag
3633 fi
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3635 $as_echo "$ac_cv_prog_cc_g" >&6; }
3636 if test "$ac_test_CFLAGS" = set; then
3637 CFLAGS=$ac_save_CFLAGS
3638 elif test $ac_cv_prog_cc_g = yes; then
3639 if test "$GCC" = yes; then
3640 CFLAGS="-g -O2"
3641 else
3642 CFLAGS="-g"
3643 fi
3644 else
3645 if test "$GCC" = yes; then
3646 CFLAGS="-O2"
3647 else
3648 CFLAGS=
3649 fi
3650 fi
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3652 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3653 if ${ac_cv_prog_cc_c89+:} false; then :
3654 $as_echo_n "(cached) " >&6
3655 else
3656 ac_cv_prog_cc_c89=no
3657 ac_save_CC=$CC
3658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659 /* end confdefs.h. */
3660 #include <stdarg.h>
3661 #include <stdio.h>
3662 struct stat;
3663 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3664 struct buf { int x; };
3665 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3666 static char *e (p, i)
3667 char **p;
3668 int i;
3669 {
3670 return p[i];
3671 }
3672 static char *f (char * (*g) (char **, int), char **p, ...)
3673 {
3674 char *s;
3675 va_list v;
3676 va_start (v,p);
3677 s = g (p, va_arg (v,int));
3678 va_end (v);
3679 return s;
3680 }
3681
3682 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3683 function prototypes and stuff, but not '\xHH' hex character constants.
3684 These don't provoke an error unfortunately, instead are silently treated
3685 as 'x'. The following induces an error, until -std is added to get
3686 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3687 array size at least. It's necessary to write '\x00'==0 to get something
3688 that's true only with -std. */
3689 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3690
3691 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3692 inside strings and character constants. */
3693 #define FOO(x) 'x'
3694 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3695
3696 int test (int i, double x);
3697 struct s1 {int (*f) (int a);};
3698 struct s2 {int (*f) (double a);};
3699 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3700 int argc;
3701 char **argv;
3702 int
3703 main ()
3704 {
3705 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3706 ;
3707 return 0;
3708 }
3709 _ACEOF
3710 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3711 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3712 do
3713 CC="$ac_save_CC $ac_arg"
3714 if ac_fn_c_try_compile "$LINENO"; then :
3715 ac_cv_prog_cc_c89=$ac_arg
3716 fi
3717 rm -f core conftest.err conftest.$ac_objext
3718 test "x$ac_cv_prog_cc_c89" != "xno" && break
3719 done
3720 rm -f conftest.$ac_ext
3721 CC=$ac_save_CC
3722
3723 fi
3724 # AC_CACHE_VAL
3725 case "x$ac_cv_prog_cc_c89" in
3726 x)
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3728 $as_echo "none needed" >&6; } ;;
3729 xno)
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3731 $as_echo "unsupported" >&6; } ;;
3732 *)
3733 CC="$CC $ac_cv_prog_cc_c89"
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3735 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3736 esac
3737 if test "x$ac_cv_prog_cc_c89" != xno; then :
3738
3739 fi
3740
3741 ac_ext=c
3742 ac_cpp='$CPP $CPPFLAGS'
3743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3746
3747 depcc="$CC" am_compiler_list=
3748
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3750 $as_echo_n "checking dependency style of $depcc... " >&6; }
3751 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3752 $as_echo_n "(cached) " >&6
3753 else
3754 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3755 # We make a subdir and do the tests there. Otherwise we can end up
3756 # making bogus files that we don't know about and never remove. For
3757 # instance it was reported that on HP-UX the gcc test will end up
3758 # making a dummy file named `D' -- because `-MD' means `put the output
3759 # in D'.
3760 rm -rf conftest.dir
3761 mkdir conftest.dir
3762 # Copy depcomp to subdir because otherwise we won't find it if we're
3763 # using a relative directory.
3764 cp "$am_depcomp" conftest.dir
3765 cd conftest.dir
3766 # We will build objects and dependencies in a subdirectory because
3767 # it helps to detect inapplicable dependency modes. For instance
3768 # both Tru64's cc and ICC support -MD to output dependencies as a
3769 # side effect of compilation, but ICC will put the dependencies in
3770 # the current directory while Tru64 will put them in the object
3771 # directory.
3772 mkdir sub
3773
3774 am_cv_CC_dependencies_compiler_type=none
3775 if test "$am_compiler_list" = ""; then
3776 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3777 fi
3778 am__universal=false
3779 case " $depcc " in #(
3780 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3781 esac
3782
3783 for depmode in $am_compiler_list; do
3784 # Setup a source with many dependencies, because some compilers
3785 # like to wrap large dependency lists on column 80 (with \), and
3786 # we should not choose a depcomp mode which is confused by this.
3787 #
3788 # We need to recreate these files for each test, as the compiler may
3789 # overwrite some of them when testing with obscure command lines.
3790 # This happens at least with the AIX C compiler.
3791 : > sub/conftest.c
3792 for i in 1 2 3 4 5 6; do
3793 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3794 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3795 # Solaris 8's {/usr,}/bin/sh.
3796 touch sub/conftst$i.h
3797 done
3798 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3799
3800 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3801 # mode. It turns out that the SunPro C++ compiler does not properly
3802 # handle `-M -o', and we need to detect this. Also, some Intel
3803 # versions had trouble with output in subdirs
3804 am__obj=sub/conftest.${OBJEXT-o}
3805 am__minus_obj="-o $am__obj"
3806 case $depmode in
3807 gcc)
3808 # This depmode causes a compiler race in universal mode.
3809 test "$am__universal" = false || continue
3810 ;;
3811 nosideeffect)
3812 # after this tag, mechanisms are not by side-effect, so they'll
3813 # only be used when explicitly requested
3814 if test "x$enable_dependency_tracking" = xyes; then
3815 continue
3816 else
3817 break
3818 fi
3819 ;;
3820 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3821 # This compiler won't grok `-c -o', but also, the minuso test has
3822 # not run yet. These depmodes are late enough in the game, and
3823 # so weak that their functioning should not be impacted.
3824 am__obj=conftest.${OBJEXT-o}
3825 am__minus_obj=
3826 ;;
3827 none) break ;;
3828 esac
3829 if depmode=$depmode \
3830 source=sub/conftest.c object=$am__obj \
3831 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3832 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3833 >/dev/null 2>conftest.err &&
3834 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3835 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3836 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3837 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3838 # icc doesn't choke on unknown options, it will just issue warnings
3839 # or remarks (even with -Werror). So we grep stderr for any message
3840 # that says an option was ignored or not supported.
3841 # When given -MP, icc 7.0 and 7.1 complain thusly:
3842 # icc: Command line warning: ignoring option '-M'; no argument required
3843 # The diagnosis changed in icc 8.0:
3844 # icc: Command line remark: option '-MP' not supported
3845 if (grep 'ignoring option' conftest.err ||
3846 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3847 am_cv_CC_dependencies_compiler_type=$depmode
3848 break
3849 fi
3850 fi
3851 done
3852
3853 cd ..
3854 rm -rf conftest.dir
3855 else
3856 am_cv_CC_dependencies_compiler_type=none
3857 fi
3858
3859 fi
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3861 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3862 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3863
3864 if
3865 test "x$enable_dependency_tracking" != xno \
3866 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3867 am__fastdepCC_TRUE=
3868 am__fastdepCC_FALSE='#'
3869 else
3870 am__fastdepCC_TRUE='#'
3871 am__fastdepCC_FALSE=
3872 fi
3873
3874
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3876 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3877 if ${ac_cv_prog_cc_c99+:} false; then :
3878 $as_echo_n "(cached) " >&6
3879 else
3880 ac_cv_prog_cc_c99=no
3881 ac_save_CC=$CC
3882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883 /* end confdefs.h. */
3884 #include <stdarg.h>
3885 #include <stdbool.h>
3886 #include <stdlib.h>
3887 #include <wchar.h>
3888 #include <stdio.h>
3889
3890 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3891 #define debug(...) fprintf (stderr, __VA_ARGS__)
3892 #define showlist(...) puts (#__VA_ARGS__)
3893 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3894 static void
3895 test_varargs_macros (void)
3896 {
3897 int x = 1234;
3898 int y = 5678;
3899 debug ("Flag");
3900 debug ("X = %d\n", x);
3901 showlist (The first, second, and third items.);
3902 report (x>y, "x is %d but y is %d", x, y);
3903 }
3904
3905 // Check long long types.
3906 #define BIG64 18446744073709551615ull
3907 #define BIG32 4294967295ul
3908 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3909 #if !BIG_OK
3910 your preprocessor is broken;
3911 #endif
3912 #if BIG_OK
3913 #else
3914 your preprocessor is broken;
3915 #endif
3916 static long long int bignum = -9223372036854775807LL;
3917 static unsigned long long int ubignum = BIG64;
3918
3919 struct incomplete_array
3920 {
3921 int datasize;
3922 double data[];
3923 };
3924
3925 struct named_init {
3926 int number;
3927 const wchar_t *name;
3928 double average;
3929 };
3930
3931 typedef const char *ccp;
3932
3933 static inline int
3934 test_restrict (ccp restrict text)
3935 {
3936 // See if C++-style comments work.
3937 // Iterate through items via the restricted pointer.
3938 // Also check for declarations in for loops.
3939 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3940 continue;
3941 return 0;
3942 }
3943
3944 // Check varargs and va_copy.
3945 static void
3946 test_varargs (const char *format, ...)
3947 {
3948 va_list args;
3949 va_start (args, format);
3950 va_list args_copy;
3951 va_copy (args_copy, args);
3952
3953 const char *str;
3954 int number;
3955 float fnumber;
3956
3957 while (*format)
3958 {
3959 switch (*format++)
3960 {
3961 case 's': // string
3962 str = va_arg (args_copy, const char *);
3963 break;
3964 case 'd': // int
3965 number = va_arg (args_copy, int);
3966 break;
3967 case 'f': // float
3968 fnumber = va_arg (args_copy, double);
3969 break;
3970 default:
3971 break;
3972 }
3973 }
3974 va_end (args_copy);
3975 va_end (args);
3976 }
3977
3978 int
3979 main ()
3980 {
3981
3982 // Check bool.
3983 _Bool success = false;
3984
3985 // Check restrict.
3986 if (test_restrict ("String literal") == 0)
3987 success = true;
3988 char *restrict newvar = "Another string";
3989
3990 // Check varargs.
3991 test_varargs ("s, d' f .", "string", 65, 34.234);
3992 test_varargs_macros ();
3993
3994 // Check flexible array members.
3995 struct incomplete_array *ia =
3996 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3997 ia->datasize = 10;
3998 for (int i = 0; i < ia->datasize; ++i)
3999 ia->data[i] = i * 1.234;
4000
4001 // Check named initializers.
4002 struct named_init ni = {
4003 .number = 34,
4004 .name = L"Test wide string",
4005 .average = 543.34343,
4006 };
4007
4008 ni.number = 58;
4009
4010 int dynamic_array[ni.number];
4011 dynamic_array[ni.number - 1] = 543;
4012
4013 // work around unused variable warnings
4014 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4015 || dynamic_array[ni.number - 1] != 543);
4016
4017 ;
4018 return 0;
4019 }
4020 _ACEOF
4021 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4022 do
4023 CC="$ac_save_CC $ac_arg"
4024 if ac_fn_c_try_compile "$LINENO"; then :
4025 ac_cv_prog_cc_c99=$ac_arg
4026 fi
4027 rm -f core conftest.err conftest.$ac_objext
4028 test "x$ac_cv_prog_cc_c99" != "xno" && break
4029 done
4030 rm -f conftest.$ac_ext
4031 CC=$ac_save_CC
4032
4033 fi
4034 # AC_CACHE_VAL
4035 case "x$ac_cv_prog_cc_c99" in
4036 x)
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4038 $as_echo "none needed" >&6; } ;;
4039 xno)
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4041 $as_echo "unsupported" >&6; } ;;
4042 *)
4043 CC="$CC $ac_cv_prog_cc_c99"
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4045 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4046 esac
4047 if test "x$ac_cv_prog_cc_c99" != xno; then :
4048
4049 fi
4050
4051
4052
4053 ac_ext=c
4054 ac_cpp='$CPP $CPPFLAGS'
4055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4059 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4060 # On Suns, sometimes $CPP names a directory.
4061 if test -n "$CPP" && test -d "$CPP"; then
4062 CPP=
4063 fi
4064 if test -z "$CPP"; then
4065 if ${ac_cv_prog_CPP+:} false; then :
4066 $as_echo_n "(cached) " >&6
4067 else
4068 # Double quotes because CPP needs to be expanded
4069 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4070 do
4071 ac_preproc_ok=false
4072 for ac_c_preproc_warn_flag in '' yes
4073 do
4074 # Use a header file that comes with gcc, so configuring glibc
4075 # with a fresh cross-compiler works.
4076 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4077 # <limits.h> exists even on freestanding compilers.
4078 # On the NeXT, cc -E runs the code through the compiler's parser,
4079 # not just through cpp. "Syntax error" is here to catch this case.
4080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081 /* end confdefs.h. */
4082 #ifdef __STDC__
4083 # include <limits.h>
4084 #else
4085 # include <assert.h>
4086 #endif
4087 Syntax error
4088 _ACEOF
4089 if ac_fn_c_try_cpp "$LINENO"; then :
4090
4091 else
4092 # Broken: fails on valid input.
4093 continue
4094 fi
4095 rm -f conftest.err conftest.i conftest.$ac_ext
4096
4097 # OK, works on sane cases. Now check whether nonexistent headers
4098 # can be detected and how.
4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h. */
4101 #include <ac_nonexistent.h>
4102 _ACEOF
4103 if ac_fn_c_try_cpp "$LINENO"; then :
4104 # Broken: success on invalid input.
4105 continue
4106 else
4107 # Passes both tests.
4108 ac_preproc_ok=:
4109 break
4110 fi
4111 rm -f conftest.err conftest.i conftest.$ac_ext
4112
4113 done
4114 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4115 rm -f conftest.i conftest.err conftest.$ac_ext
4116 if $ac_preproc_ok; then :
4117 break
4118 fi
4119
4120 done
4121 ac_cv_prog_CPP=$CPP
4122
4123 fi
4124 CPP=$ac_cv_prog_CPP
4125 else
4126 ac_cv_prog_CPP=$CPP
4127 fi
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4129 $as_echo "$CPP" >&6; }
4130 ac_preproc_ok=false
4131 for ac_c_preproc_warn_flag in '' yes
4132 do
4133 # Use a header file that comes with gcc, so configuring glibc
4134 # with a fresh cross-compiler works.
4135 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4136 # <limits.h> exists even on freestanding compilers.
4137 # On the NeXT, cc -E runs the code through the compiler's parser,
4138 # not just through cpp. "Syntax error" is here to catch this case.
4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140 /* end confdefs.h. */
4141 #ifdef __STDC__
4142 # include <limits.h>
4143 #else
4144 # include <assert.h>
4145 #endif
4146 Syntax error
4147 _ACEOF
4148 if ac_fn_c_try_cpp "$LINENO"; then :
4149
4150 else
4151 # Broken: fails on valid input.
4152 continue
4153 fi
4154 rm -f conftest.err conftest.i conftest.$ac_ext
4155
4156 # OK, works on sane cases. Now check whether nonexistent headers
4157 # can be detected and how.
4158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159 /* end confdefs.h. */
4160 #include <ac_nonexistent.h>
4161 _ACEOF
4162 if ac_fn_c_try_cpp "$LINENO"; then :
4163 # Broken: success on invalid input.
4164 continue
4165 else
4166 # Passes both tests.
4167 ac_preproc_ok=:
4168 break
4169 fi
4170 rm -f conftest.err conftest.i conftest.$ac_ext
4171
4172 done
4173 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4174 rm -f conftest.i conftest.err conftest.$ac_ext
4175 if $ac_preproc_ok; then :
4176
4177 else
4178 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4179 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4180 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4181 See \`config.log' for more details" "$LINENO" 5; }
4182 fi
4183
4184 ac_ext=c
4185 ac_cpp='$CPP $CPPFLAGS'
4186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4189
4190
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4192 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4193 if ${ac_cv_path_GREP+:} false; then :
4194 $as_echo_n "(cached) " >&6
4195 else
4196 if test -z "$GREP"; then
4197 ac_path_GREP_found=false
4198 # Loop through the user's path and test for each of PROGNAME-LIST
4199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4201 do
4202 IFS=$as_save_IFS
4203 test -z "$as_dir" && as_dir=.
4204 for ac_prog in grep ggrep; do
4205 for ac_exec_ext in '' $ac_executable_extensions; do
4206 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4207 as_fn_executable_p "$ac_path_GREP" || continue
4208 # Check for GNU ac_path_GREP and select it if it is found.
4209 # Check for GNU $ac_path_GREP
4210 case `"$ac_path_GREP" --version 2>&1` in
4211 *GNU*)
4212 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4213 *)
4214 ac_count=0
4215 $as_echo_n 0123456789 >"conftest.in"
4216 while :
4217 do
4218 cat "conftest.in" "conftest.in" >"conftest.tmp"
4219 mv "conftest.tmp" "conftest.in"
4220 cp "conftest.in" "conftest.nl"
4221 $as_echo 'GREP' >> "conftest.nl"
4222 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4223 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4224 as_fn_arith $ac_count + 1 && ac_count=$as_val
4225 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4226 # Best one so far, save it but keep looking for a better one
4227 ac_cv_path_GREP="$ac_path_GREP"
4228 ac_path_GREP_max=$ac_count
4229 fi
4230 # 10*(2^10) chars as input seems more than enough
4231 test $ac_count -gt 10 && break
4232 done
4233 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4234 esac
4235
4236 $ac_path_GREP_found && break 3
4237 done
4238 done
4239 done
4240 IFS=$as_save_IFS
4241 if test -z "$ac_cv_path_GREP"; then
4242 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4243 fi
4244 else
4245 ac_cv_path_GREP=$GREP
4246 fi
4247
4248 fi
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4250 $as_echo "$ac_cv_path_GREP" >&6; }
4251 GREP="$ac_cv_path_GREP"
4252
4253
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4255 $as_echo_n "checking for egrep... " >&6; }
4256 if ${ac_cv_path_EGREP+:} false; then :
4257 $as_echo_n "(cached) " >&6
4258 else
4259 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4260 then ac_cv_path_EGREP="$GREP -E"
4261 else
4262 if test -z "$EGREP"; then
4263 ac_path_EGREP_found=false
4264 # Loop through the user's path and test for each of PROGNAME-LIST
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4267 do
4268 IFS=$as_save_IFS
4269 test -z "$as_dir" && as_dir=.
4270 for ac_prog in egrep; do
4271 for ac_exec_ext in '' $ac_executable_extensions; do
4272 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4273 as_fn_executable_p "$ac_path_EGREP" || continue
4274 # Check for GNU ac_path_EGREP and select it if it is found.
4275 # Check for GNU $ac_path_EGREP
4276 case `"$ac_path_EGREP" --version 2>&1` in
4277 *GNU*)
4278 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4279 *)
4280 ac_count=0
4281 $as_echo_n 0123456789 >"conftest.in"
4282 while :
4283 do
4284 cat "conftest.in" "conftest.in" >"conftest.tmp"
4285 mv "conftest.tmp" "conftest.in"
4286 cp "conftest.in" "conftest.nl"
4287 $as_echo 'EGREP' >> "conftest.nl"
4288 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4289 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4290 as_fn_arith $ac_count + 1 && ac_count=$as_val
4291 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4292 # Best one so far, save it but keep looking for a better one
4293 ac_cv_path_EGREP="$ac_path_EGREP"
4294 ac_path_EGREP_max=$ac_count
4295 fi
4296 # 10*(2^10) chars as input seems more than enough
4297 test $ac_count -gt 10 && break
4298 done
4299 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4300 esac
4301
4302 $ac_path_EGREP_found && break 3
4303 done
4304 done
4305 done
4306 IFS=$as_save_IFS
4307 if test -z "$ac_cv_path_EGREP"; then
4308 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4309 fi
4310 else
4311 ac_cv_path_EGREP=$EGREP
4312 fi
4313
4314 fi
4315 fi
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4317 $as_echo "$ac_cv_path_EGREP" >&6; }
4318 EGREP="$ac_cv_path_EGREP"
4319
4320
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4322 $as_echo_n "checking for ANSI C header files... " >&6; }
4323 if ${ac_cv_header_stdc+:} false; then :
4324 $as_echo_n "(cached) " >&6
4325 else
4326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4327 /* end confdefs.h. */
4328 #include <stdlib.h>
4329 #include <stdarg.h>
4330 #include <string.h>
4331 #include <float.h>
4332
4333 int
4334 main ()
4335 {
4336
4337 ;
4338 return 0;
4339 }
4340 _ACEOF
4341 if ac_fn_c_try_compile "$LINENO"; then :
4342 ac_cv_header_stdc=yes
4343 else
4344 ac_cv_header_stdc=no
4345 fi
4346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4347
4348 if test $ac_cv_header_stdc = yes; then
4349 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h. */
4352 #include <string.h>
4353
4354 _ACEOF
4355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4356 $EGREP "memchr" >/dev/null 2>&1; then :
4357
4358 else
4359 ac_cv_header_stdc=no
4360 fi
4361 rm -f conftest*
4362
4363 fi
4364
4365 if test $ac_cv_header_stdc = yes; then
4366 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368 /* end confdefs.h. */
4369 #include <stdlib.h>
4370
4371 _ACEOF
4372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4373 $EGREP "free" >/dev/null 2>&1; then :
4374
4375 else
4376 ac_cv_header_stdc=no
4377 fi
4378 rm -f conftest*
4379
4380 fi
4381
4382 if test $ac_cv_header_stdc = yes; then
4383 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4384 if test "$cross_compiling" = yes; then :
4385 :
4386 else
4387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4388 /* end confdefs.h. */
4389 #include <ctype.h>
4390 #include <stdlib.h>
4391 #if ((' ' & 0x0FF) == 0x020)
4392 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4393 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4394 #else
4395 # define ISLOWER(c) \
4396 (('a' <= (c) && (c) <= 'i') \
4397 || ('j' <= (c) && (c) <= 'r') \
4398 || ('s' <= (c) && (c) <= 'z'))
4399 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4400 #endif
4401
4402 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4403 int
4404 main ()
4405 {
4406 int i;
4407 for (i = 0; i < 256; i++)
4408 if (XOR (islower (i), ISLOWER (i))
4409 || toupper (i) != TOUPPER (i))
4410 return 2;
4411 return 0;
4412 }
4413 _ACEOF
4414 if ac_fn_c_try_run "$LINENO"; then :
4415
4416 else
4417 ac_cv_header_stdc=no
4418 fi
4419 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4420 conftest.$ac_objext conftest.beam conftest.$ac_ext
4421 fi
4422
4423 fi
4424 fi
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4426 $as_echo "$ac_cv_header_stdc" >&6; }
4427 if test $ac_cv_header_stdc = yes; then
4428
4429 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4430
4431 fi
4432
4433 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4434 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4435 inttypes.h stdint.h unistd.h
4436 do :
4437 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4438 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4439 "
4440 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4441 cat >>confdefs.h <<_ACEOF
4442 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4443 _ACEOF
4444
4445 fi
4446
4447 done
4448
4449
4450
4451
4452
4453
4454 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4455 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4456 CLANGCC="yes"
4457 else
4458 CLANGCC="no"
4459 fi
4460
4461 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4462 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4463 INTELCC="yes"
4464 else
4465 INTELCC="no"
4466 fi
4467
4468 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4469 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4470 SUNCC="yes"
4471 else
4472 SUNCC="no"
4473 fi
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4484 if test -n "$ac_tool_prefix"; then
4485 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4486 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4488 $as_echo_n "checking for $ac_word... " >&6; }
4489 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4490 $as_echo_n "(cached) " >&6
4491 else
4492 case $PKG_CONFIG in
4493 [\\/]* | ?:[\\/]*)
4494 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4495 ;;
4496 *)
4497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4498 for as_dir in $PATH
4499 do
4500 IFS=$as_save_IFS
4501 test -z "$as_dir" && as_dir=.
4502 for ac_exec_ext in '' $ac_executable_extensions; do
4503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4504 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4506 break 2
4507 fi
4508 done
4509 done
4510 IFS=$as_save_IFS
4511
4512 ;;
4513 esac
4514 fi
4515 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4516 if test -n "$PKG_CONFIG"; then
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4518 $as_echo "$PKG_CONFIG" >&6; }
4519 else
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4521 $as_echo "no" >&6; }
4522 fi
4523
4524
4525 fi
4526 if test -z "$ac_cv_path_PKG_CONFIG"; then
4527 ac_pt_PKG_CONFIG=$PKG_CONFIG
4528 # Extract the first word of "pkg-config", so it can be a program name with args.
4529 set dummy pkg-config; ac_word=$2
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4531 $as_echo_n "checking for $ac_word... " >&6; }
4532 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4533 $as_echo_n "(cached) " >&6
4534 else
4535 case $ac_pt_PKG_CONFIG in
4536 [\\/]* | ?:[\\/]*)
4537 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4538 ;;
4539 *)
4540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4541 for as_dir in $PATH
4542 do
4543 IFS=$as_save_IFS
4544 test -z "$as_dir" && as_dir=.
4545 for ac_exec_ext in '' $ac_executable_extensions; do
4546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4547 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4549 break 2
4550 fi
4551 done
4552 done
4553 IFS=$as_save_IFS
4554
4555 ;;
4556 esac
4557 fi
4558 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4559 if test -n "$ac_pt_PKG_CONFIG"; then
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4561 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4562 else
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4564 $as_echo "no" >&6; }
4565 fi
4566
4567 if test "x$ac_pt_PKG_CONFIG" = x; then
4568 PKG_CONFIG=""
4569 else
4570 case $cross_compiling:$ac_tool_warned in
4571 yes:)
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4574 ac_tool_warned=yes ;;
4575 esac
4576 PKG_CONFIG=$ac_pt_PKG_CONFIG
4577 fi
4578 else
4579 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4580 fi
4581
4582 fi
4583 if test -n "$PKG_CONFIG"; then
4584 _pkg_min_version=0.9.0
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4586 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4587 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4589 $as_echo "yes" >&6; }
4590 else
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4592 $as_echo "no" >&6; }
4593 PKG_CONFIG=""
4594 fi
4595 fi
4596 # Make sure we can run config.sub.
4597 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4598 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4599
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4601 $as_echo_n "checking build system type... " >&6; }
4602 if ${ac_cv_build+:} false; then :
4603 $as_echo_n "(cached) " >&6
4604 else
4605 ac_build_alias=$build_alias
4606 test "x$ac_build_alias" = x &&
4607 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4608 test "x$ac_build_alias" = x &&
4609 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4610 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4611 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4612
4613 fi
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4615 $as_echo "$ac_cv_build" >&6; }
4616 case $ac_cv_build in
4617 *-*-*) ;;
4618 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4619 esac
4620 build=$ac_cv_build
4621 ac_save_IFS=$IFS; IFS='-'
4622 set x $ac_cv_build
4623 shift
4624 build_cpu=$1
4625 build_vendor=$2
4626 shift; shift
4627 # Remember, the first character of IFS is used to create $*,
4628 # except with old shells:
4629 build_os=$*
4630 IFS=$ac_save_IFS
4631 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4632
4633
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4635 $as_echo_n "checking host system type... " >&6; }
4636 if ${ac_cv_host+:} false; then :
4637 $as_echo_n "(cached) " >&6
4638 else
4639 if test "x$host_alias" = x; then
4640 ac_cv_host=$ac_cv_build
4641 else
4642 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4643 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4644 fi
4645
4646 fi
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4648 $as_echo "$ac_cv_host" >&6; }
4649 case $ac_cv_host in
4650 *-*-*) ;;
4651 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4652 esac
4653 host=$ac_cv_host
4654 ac_save_IFS=$IFS; IFS='-'
4655 set x $ac_cv_host
4656 shift
4657 host_cpu=$1
4658 host_vendor=$2
4659 shift; shift
4660 # Remember, the first character of IFS is used to create $*,
4661 # except with old shells:
4662 host_os=$*
4663 IFS=$ac_save_IFS
4664 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4665
4666
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4668 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4669 if ${ac_cv_path_SED+:} false; then :
4670 $as_echo_n "(cached) " >&6
4671 else
4672 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4673 for ac_i in 1 2 3 4 5 6 7; do
4674 ac_script="$ac_script$as_nl$ac_script"
4675 done
4676 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4677 { ac_script=; unset ac_script;}
4678 if test -z "$SED"; then
4679 ac_path_SED_found=false
4680 # Loop through the user's path and test for each of PROGNAME-LIST
4681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682 for as_dir in $PATH
4683 do
4684 IFS=$as_save_IFS
4685 test -z "$as_dir" && as_dir=.
4686 for ac_prog in sed gsed; do
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4689 as_fn_executable_p "$ac_path_SED" || continue
4690 # Check for GNU ac_path_SED and select it if it is found.
4691 # Check for GNU $ac_path_SED
4692 case `"$ac_path_SED" --version 2>&1` in
4693 *GNU*)
4694 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4695 *)
4696 ac_count=0
4697 $as_echo_n 0123456789 >"conftest.in"
4698 while :
4699 do
4700 cat "conftest.in" "conftest.in" >"conftest.tmp"
4701 mv "conftest.tmp" "conftest.in"
4702 cp "conftest.in" "conftest.nl"
4703 $as_echo '' >> "conftest.nl"
4704 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4705 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4706 as_fn_arith $ac_count + 1 && ac_count=$as_val
4707 if test $ac_count -gt ${ac_path_SED_max-0}; then
4708 # Best one so far, save it but keep looking for a better one
4709 ac_cv_path_SED="$ac_path_SED"
4710 ac_path_SED_max=$ac_count
4711 fi
4712 # 10*(2^10) chars as input seems more than enough
4713 test $ac_count -gt 10 && break
4714 done
4715 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4716 esac
4717
4718 $ac_path_SED_found && break 3
4719 done
4720 done
4721 done
4722 IFS=$as_save_IFS
4723 if test -z "$ac_cv_path_SED"; then
4724 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4725 fi
4726 else
4727 ac_cv_path_SED=$SED
4728 fi
4729
4730 fi
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4732 $as_echo "$ac_cv_path_SED" >&6; }
4733 SED="$ac_cv_path_SED"
4734 rm -f conftest.sed
4735
4736
4737
4738
4739
4740
4741 # Check whether --enable-selective-werror was given.
4742 if test "${enable_selective_werror+set}" = set; then :
4743 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4744 else
4745 SELECTIVE_WERROR=yes
4746 fi
4747
4748
4749
4750
4751
4752 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4753 if test "x$SUNCC" = "xyes"; then
4754 BASE_CFLAGS="-v"
4755 else
4756 BASE_CFLAGS=""
4757 fi
4758
4759 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773 xorg_testset_save_CFLAGS="$CFLAGS"
4774
4775 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4776 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4778 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4779 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4780 $as_echo_n "(cached) " >&6
4781 else
4782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4783 /* end confdefs.h. */
4784 int i;
4785 _ACEOF
4786 if ac_fn_c_try_compile "$LINENO"; then :
4787 xorg_cv_cc_flag_unknown_warning_option=yes
4788 else
4789 xorg_cv_cc_flag_unknown_warning_option=no
4790 fi
4791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4792 fi
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4794 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4795 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4796 CFLAGS="$xorg_testset_save_CFLAGS"
4797 fi
4798
4799 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4801 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4802 fi
4803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4805 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4806 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4807 $as_echo_n "(cached) " >&6
4808 else
4809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4810 /* end confdefs.h. */
4811 int i;
4812 _ACEOF
4813 if ac_fn_c_try_compile "$LINENO"; then :
4814 xorg_cv_cc_flag_unused_command_line_argument=yes
4815 else
4816 xorg_cv_cc_flag_unused_command_line_argument=no
4817 fi
4818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4819 fi
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4821 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4822 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4823 CFLAGS="$xorg_testset_save_CFLAGS"
4824 fi
4825
4826 found="no"
4827
4828 if test $found = "no" ; then
4829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4830 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4831 fi
4832
4833 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4835 fi
4836
4837 CFLAGS="$CFLAGS -Wall"
4838
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4840 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4841 cacheid=xorg_cv_cc_flag__Wall
4842 if eval \${$cacheid+:} 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 int
4849 main ()
4850 {
4851
4852 ;
4853 return 0;
4854 }
4855 _ACEOF
4856 if ac_fn_c_try_link "$LINENO"; then :
4857 eval $cacheid=yes
4858 else
4859 eval $cacheid=no
4860 fi
4861 rm -f core conftest.err conftest.$ac_objext \
4862 conftest$ac_exeext conftest.$ac_ext
4863 fi
4864
4865
4866 CFLAGS="$xorg_testset_save_CFLAGS"
4867
4868 eval supported=\$$cacheid
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4870 $as_echo "$supported" >&6; }
4871 if test "$supported" = "yes" ; then
4872 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4873 found="yes"
4874 fi
4875 fi
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891 xorg_testset_save_CFLAGS="$CFLAGS"
4892
4893 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4896 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4897 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4898 $as_echo_n "(cached) " >&6
4899 else
4900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4901 /* end confdefs.h. */
4902 int i;
4903 _ACEOF
4904 if ac_fn_c_try_compile "$LINENO"; then :
4905 xorg_cv_cc_flag_unknown_warning_option=yes
4906 else
4907 xorg_cv_cc_flag_unknown_warning_option=no
4908 fi
4909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4910 fi
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4912 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4913 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4914 CFLAGS="$xorg_testset_save_CFLAGS"
4915 fi
4916
4917 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4918 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4919 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4920 fi
4921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4923 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4924 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4925 $as_echo_n "(cached) " >&6
4926 else
4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h. */
4929 int i;
4930 _ACEOF
4931 if ac_fn_c_try_compile "$LINENO"; then :
4932 xorg_cv_cc_flag_unused_command_line_argument=yes
4933 else
4934 xorg_cv_cc_flag_unused_command_line_argument=no
4935 fi
4936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4937 fi
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4939 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4940 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4941 CFLAGS="$xorg_testset_save_CFLAGS"
4942 fi
4943
4944 found="no"
4945
4946 if test $found = "no" ; then
4947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4948 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4949 fi
4950
4951 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4953 fi
4954
4955 CFLAGS="$CFLAGS -Wpointer-arith"
4956
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4958 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4959 cacheid=xorg_cv_cc_flag__Wpointer_arith
4960 if eval \${$cacheid+:} 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 int
4967 main ()
4968 {
4969
4970 ;
4971 return 0;
4972 }
4973 _ACEOF
4974 if ac_fn_c_try_link "$LINENO"; then :
4975 eval $cacheid=yes
4976 else
4977 eval $cacheid=no
4978 fi
4979 rm -f core conftest.err conftest.$ac_objext \
4980 conftest$ac_exeext conftest.$ac_ext
4981 fi
4982
4983
4984 CFLAGS="$xorg_testset_save_CFLAGS"
4985
4986 eval supported=\$$cacheid
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4988 $as_echo "$supported" >&6; }
4989 if test "$supported" = "yes" ; then
4990 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4991 found="yes"
4992 fi
4993 fi
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009 xorg_testset_save_CFLAGS="$CFLAGS"
5010
5011 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5012 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5014 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5015 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5016 $as_echo_n "(cached) " >&6
5017 else
5018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5019 /* end confdefs.h. */
5020 int i;
5021 _ACEOF
5022 if ac_fn_c_try_compile "$LINENO"; then :
5023 xorg_cv_cc_flag_unknown_warning_option=yes
5024 else
5025 xorg_cv_cc_flag_unknown_warning_option=no
5026 fi
5027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5028 fi
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5030 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5031 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5032 CFLAGS="$xorg_testset_save_CFLAGS"
5033 fi
5034
5035 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5037 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5038 fi
5039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5041 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5042 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5043 $as_echo_n "(cached) " >&6
5044 else
5045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5046 /* end confdefs.h. */
5047 int i;
5048 _ACEOF
5049 if ac_fn_c_try_compile "$LINENO"; then :
5050 xorg_cv_cc_flag_unused_command_line_argument=yes
5051 else
5052 xorg_cv_cc_flag_unused_command_line_argument=no
5053 fi
5054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5055 fi
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5057 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5058 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5059 CFLAGS="$xorg_testset_save_CFLAGS"
5060 fi
5061
5062 found="no"
5063
5064 if test $found = "no" ; then
5065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5066 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5067 fi
5068
5069 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5071 fi
5072
5073 CFLAGS="$CFLAGS -Wmissing-declarations"
5074
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5076 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5077 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5078 if eval \${$cacheid+:} 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 int
5085 main ()
5086 {
5087
5088 ;
5089 return 0;
5090 }
5091 _ACEOF
5092 if ac_fn_c_try_link "$LINENO"; then :
5093 eval $cacheid=yes
5094 else
5095 eval $cacheid=no
5096 fi
5097 rm -f core conftest.err conftest.$ac_objext \
5098 conftest$ac_exeext conftest.$ac_ext
5099 fi
5100
5101
5102 CFLAGS="$xorg_testset_save_CFLAGS"
5103
5104 eval supported=\$$cacheid
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5106 $as_echo "$supported" >&6; }
5107 if test "$supported" = "yes" ; then
5108 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5109 found="yes"
5110 fi
5111 fi
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127 xorg_testset_save_CFLAGS="$CFLAGS"
5128
5129 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5130 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5132 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5133 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5134 $as_echo_n "(cached) " >&6
5135 else
5136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5137 /* end confdefs.h. */
5138 int i;
5139 _ACEOF
5140 if ac_fn_c_try_compile "$LINENO"; then :
5141 xorg_cv_cc_flag_unknown_warning_option=yes
5142 else
5143 xorg_cv_cc_flag_unknown_warning_option=no
5144 fi
5145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5146 fi
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5148 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5149 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5150 CFLAGS="$xorg_testset_save_CFLAGS"
5151 fi
5152
5153 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5155 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5156 fi
5157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5159 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5160 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5161 $as_echo_n "(cached) " >&6
5162 else
5163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5164 /* end confdefs.h. */
5165 int i;
5166 _ACEOF
5167 if ac_fn_c_try_compile "$LINENO"; then :
5168 xorg_cv_cc_flag_unused_command_line_argument=yes
5169 else
5170 xorg_cv_cc_flag_unused_command_line_argument=no
5171 fi
5172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5173 fi
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5175 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5176 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5177 CFLAGS="$xorg_testset_save_CFLAGS"
5178 fi
5179
5180 found="no"
5181
5182 if test $found = "no" ; then
5183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5184 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5185 fi
5186
5187 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5189 fi
5190
5191 CFLAGS="$CFLAGS -Wformat=2"
5192
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5194 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5195 cacheid=xorg_cv_cc_flag__Wformat_2
5196 if eval \${$cacheid+:} false; then :
5197 $as_echo_n "(cached) " >&6
5198 else
5199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5200 /* end confdefs.h. */
5201 int i;
5202 int
5203 main ()
5204 {
5205
5206 ;
5207 return 0;
5208 }
5209 _ACEOF
5210 if ac_fn_c_try_link "$LINENO"; then :
5211 eval $cacheid=yes
5212 else
5213 eval $cacheid=no
5214 fi
5215 rm -f core conftest.err conftest.$ac_objext \
5216 conftest$ac_exeext conftest.$ac_ext
5217 fi
5218
5219
5220 CFLAGS="$xorg_testset_save_CFLAGS"
5221
5222 eval supported=\$$cacheid
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5224 $as_echo "$supported" >&6; }
5225 if test "$supported" = "yes" ; then
5226 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5227 found="yes"
5228 fi
5229 fi
5230
5231 if test $found = "no" ; then
5232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5234 fi
5235
5236 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5238 fi
5239
5240 CFLAGS="$CFLAGS -Wformat"
5241
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5243 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5244 cacheid=xorg_cv_cc_flag__Wformat
5245 if eval \${$cacheid+:} false; then :
5246 $as_echo_n "(cached) " >&6
5247 else
5248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5249 /* end confdefs.h. */
5250 int i;
5251 int
5252 main ()
5253 {
5254
5255 ;
5256 return 0;
5257 }
5258 _ACEOF
5259 if ac_fn_c_try_link "$LINENO"; then :
5260 eval $cacheid=yes
5261 else
5262 eval $cacheid=no
5263 fi
5264 rm -f core conftest.err conftest.$ac_objext \
5265 conftest$ac_exeext conftest.$ac_ext
5266 fi
5267
5268
5269 CFLAGS="$xorg_testset_save_CFLAGS"
5270
5271 eval supported=\$$cacheid
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5273 $as_echo "$supported" >&6; }
5274 if test "$supported" = "yes" ; then
5275 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5276 found="yes"
5277 fi
5278 fi
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296 xorg_testset_save_CFLAGS="$CFLAGS"
5297
5298 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5299 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5301 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5302 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5303 $as_echo_n "(cached) " >&6
5304 else
5305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5306 /* end confdefs.h. */
5307 int i;
5308 _ACEOF
5309 if ac_fn_c_try_compile "$LINENO"; then :
5310 xorg_cv_cc_flag_unknown_warning_option=yes
5311 else
5312 xorg_cv_cc_flag_unknown_warning_option=no
5313 fi
5314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5315 fi
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5317 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5318 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5319 CFLAGS="$xorg_testset_save_CFLAGS"
5320 fi
5321
5322 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5324 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5325 fi
5326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5328 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5329 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5330 $as_echo_n "(cached) " >&6
5331 else
5332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333 /* end confdefs.h. */
5334 int i;
5335 _ACEOF
5336 if ac_fn_c_try_compile "$LINENO"; then :
5337 xorg_cv_cc_flag_unused_command_line_argument=yes
5338 else
5339 xorg_cv_cc_flag_unused_command_line_argument=no
5340 fi
5341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5342 fi
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5344 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5345 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5346 CFLAGS="$xorg_testset_save_CFLAGS"
5347 fi
5348
5349 found="no"
5350
5351 if test $found = "no" ; then
5352 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5353 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5354 fi
5355
5356 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5358 fi
5359
5360 CFLAGS="$CFLAGS -Wstrict-prototypes"
5361
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5363 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5364 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5365 if eval \${$cacheid+:} 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 int
5372 main ()
5373 {
5374
5375 ;
5376 return 0;
5377 }
5378 _ACEOF
5379 if ac_fn_c_try_link "$LINENO"; then :
5380 eval $cacheid=yes
5381 else
5382 eval $cacheid=no
5383 fi
5384 rm -f core conftest.err conftest.$ac_objext \
5385 conftest$ac_exeext conftest.$ac_ext
5386 fi
5387
5388
5389 CFLAGS="$xorg_testset_save_CFLAGS"
5390
5391 eval supported=\$$cacheid
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5393 $as_echo "$supported" >&6; }
5394 if test "$supported" = "yes" ; then
5395 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5396 found="yes"
5397 fi
5398 fi
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414 xorg_testset_save_CFLAGS="$CFLAGS"
5415
5416 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5417 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5419 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5420 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5421 $as_echo_n "(cached) " >&6
5422 else
5423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5424 /* end confdefs.h. */
5425 int i;
5426 _ACEOF
5427 if ac_fn_c_try_compile "$LINENO"; then :
5428 xorg_cv_cc_flag_unknown_warning_option=yes
5429 else
5430 xorg_cv_cc_flag_unknown_warning_option=no
5431 fi
5432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5433 fi
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5435 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5436 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5437 CFLAGS="$xorg_testset_save_CFLAGS"
5438 fi
5439
5440 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5441 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5442 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5443 fi
5444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5446 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5447 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5448 $as_echo_n "(cached) " >&6
5449 else
5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h. */
5452 int i;
5453 _ACEOF
5454 if ac_fn_c_try_compile "$LINENO"; then :
5455 xorg_cv_cc_flag_unused_command_line_argument=yes
5456 else
5457 xorg_cv_cc_flag_unused_command_line_argument=no
5458 fi
5459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5460 fi
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5462 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5463 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5464 CFLAGS="$xorg_testset_save_CFLAGS"
5465 fi
5466
5467 found="no"
5468
5469 if test $found = "no" ; then
5470 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5471 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5472 fi
5473
5474 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5476 fi
5477
5478 CFLAGS="$CFLAGS -Wmissing-prototypes"
5479
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5481 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5482 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5483 if eval \${$cacheid+:} 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 int
5490 main ()
5491 {
5492
5493 ;
5494 return 0;
5495 }
5496 _ACEOF
5497 if ac_fn_c_try_link "$LINENO"; then :
5498 eval $cacheid=yes
5499 else
5500 eval $cacheid=no
5501 fi
5502 rm -f core conftest.err conftest.$ac_objext \
5503 conftest$ac_exeext conftest.$ac_ext
5504 fi
5505
5506
5507 CFLAGS="$xorg_testset_save_CFLAGS"
5508
5509 eval supported=\$$cacheid
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5511 $as_echo "$supported" >&6; }
5512 if test "$supported" = "yes" ; then
5513 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5514 found="yes"
5515 fi
5516 fi
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532 xorg_testset_save_CFLAGS="$CFLAGS"
5533
5534 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5535 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5537 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5538 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5539 $as_echo_n "(cached) " >&6
5540 else
5541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5542 /* end confdefs.h. */
5543 int i;
5544 _ACEOF
5545 if ac_fn_c_try_compile "$LINENO"; then :
5546 xorg_cv_cc_flag_unknown_warning_option=yes
5547 else
5548 xorg_cv_cc_flag_unknown_warning_option=no
5549 fi
5550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5551 fi
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5553 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5554 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5555 CFLAGS="$xorg_testset_save_CFLAGS"
5556 fi
5557
5558 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5561 fi
5562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5564 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5565 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5566 $as_echo_n "(cached) " >&6
5567 else
5568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5569 /* end confdefs.h. */
5570 int i;
5571 _ACEOF
5572 if ac_fn_c_try_compile "$LINENO"; then :
5573 xorg_cv_cc_flag_unused_command_line_argument=yes
5574 else
5575 xorg_cv_cc_flag_unused_command_line_argument=no
5576 fi
5577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5578 fi
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5580 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5581 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5582 CFLAGS="$xorg_testset_save_CFLAGS"
5583 fi
5584
5585 found="no"
5586
5587 if test $found = "no" ; then
5588 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5589 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5590 fi
5591
5592 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5594 fi
5595
5596 CFLAGS="$CFLAGS -Wnested-externs"
5597
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5599 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5600 cacheid=xorg_cv_cc_flag__Wnested_externs
5601 if eval \${$cacheid+:} 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 int
5608 main ()
5609 {
5610
5611 ;
5612 return 0;
5613 }
5614 _ACEOF
5615 if ac_fn_c_try_link "$LINENO"; then :
5616 eval $cacheid=yes
5617 else
5618 eval $cacheid=no
5619 fi
5620 rm -f core conftest.err conftest.$ac_objext \
5621 conftest$ac_exeext conftest.$ac_ext
5622 fi
5623
5624
5625 CFLAGS="$xorg_testset_save_CFLAGS"
5626
5627 eval supported=\$$cacheid
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5629 $as_echo "$supported" >&6; }
5630 if test "$supported" = "yes" ; then
5631 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5632 found="yes"
5633 fi
5634 fi
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650 xorg_testset_save_CFLAGS="$CFLAGS"
5651
5652 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5653 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5655 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5656 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5657 $as_echo_n "(cached) " >&6
5658 else
5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660 /* end confdefs.h. */
5661 int i;
5662 _ACEOF
5663 if ac_fn_c_try_compile "$LINENO"; then :
5664 xorg_cv_cc_flag_unknown_warning_option=yes
5665 else
5666 xorg_cv_cc_flag_unknown_warning_option=no
5667 fi
5668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5669 fi
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5671 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5672 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5673 CFLAGS="$xorg_testset_save_CFLAGS"
5674 fi
5675
5676 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5678 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5679 fi
5680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5682 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5683 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5684 $as_echo_n "(cached) " >&6
5685 else
5686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5687 /* end confdefs.h. */
5688 int i;
5689 _ACEOF
5690 if ac_fn_c_try_compile "$LINENO"; then :
5691 xorg_cv_cc_flag_unused_command_line_argument=yes
5692 else
5693 xorg_cv_cc_flag_unused_command_line_argument=no
5694 fi
5695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5696 fi
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5698 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5699 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5700 CFLAGS="$xorg_testset_save_CFLAGS"
5701 fi
5702
5703 found="no"
5704
5705 if test $found = "no" ; then
5706 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5707 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5708 fi
5709
5710 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5712 fi
5713
5714 CFLAGS="$CFLAGS -Wbad-function-cast"
5715
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5717 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5718 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5719 if eval \${$cacheid+:} 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 int
5726 main ()
5727 {
5728
5729 ;
5730 return 0;
5731 }
5732 _ACEOF
5733 if ac_fn_c_try_link "$LINENO"; then :
5734 eval $cacheid=yes
5735 else
5736 eval $cacheid=no
5737 fi
5738 rm -f core conftest.err conftest.$ac_objext \
5739 conftest$ac_exeext conftest.$ac_ext
5740 fi
5741
5742
5743 CFLAGS="$xorg_testset_save_CFLAGS"
5744
5745 eval supported=\$$cacheid
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5747 $as_echo "$supported" >&6; }
5748 if test "$supported" = "yes" ; then
5749 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5750 found="yes"
5751 fi
5752 fi
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768 xorg_testset_save_CFLAGS="$CFLAGS"
5769
5770 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5771 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5773 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5774 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5775 $as_echo_n "(cached) " >&6
5776 else
5777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5778 /* end confdefs.h. */
5779 int i;
5780 _ACEOF
5781 if ac_fn_c_try_compile "$LINENO"; then :
5782 xorg_cv_cc_flag_unknown_warning_option=yes
5783 else
5784 xorg_cv_cc_flag_unknown_warning_option=no
5785 fi
5786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5787 fi
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5789 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5790 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5791 CFLAGS="$xorg_testset_save_CFLAGS"
5792 fi
5793
5794 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5795 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5796 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5797 fi
5798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5800 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5801 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5802 $as_echo_n "(cached) " >&6
5803 else
5804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5805 /* end confdefs.h. */
5806 int i;
5807 _ACEOF
5808 if ac_fn_c_try_compile "$LINENO"; then :
5809 xorg_cv_cc_flag_unused_command_line_argument=yes
5810 else
5811 xorg_cv_cc_flag_unused_command_line_argument=no
5812 fi
5813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5814 fi
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5816 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5817 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5818 CFLAGS="$xorg_testset_save_CFLAGS"
5819 fi
5820
5821 found="no"
5822
5823 if test $found = "no" ; then
5824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5825 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5826 fi
5827
5828 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5829 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5830 fi
5831
5832 CFLAGS="$CFLAGS -Wold-style-definition"
5833
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5835 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5836 cacheid=xorg_cv_cc_flag__Wold_style_definition
5837 if eval \${$cacheid+:} 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 int
5844 main ()
5845 {
5846
5847 ;
5848 return 0;
5849 }
5850 _ACEOF
5851 if ac_fn_c_try_link "$LINENO"; then :
5852 eval $cacheid=yes
5853 else
5854 eval $cacheid=no
5855 fi
5856 rm -f core conftest.err conftest.$ac_objext \
5857 conftest$ac_exeext conftest.$ac_ext
5858 fi
5859
5860
5861 CFLAGS="$xorg_testset_save_CFLAGS"
5862
5863 eval supported=\$$cacheid
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5865 $as_echo "$supported" >&6; }
5866 if test "$supported" = "yes" ; then
5867 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5868 found="yes"
5869 fi
5870 fi
5871
5872 if test $found = "no" ; then
5873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5874 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5875 fi
5876
5877 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5879 fi
5880
5881 CFLAGS="$CFLAGS -fd"
5882
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5884 $as_echo_n "checking if $CC supports -fd... " >&6; }
5885 cacheid=xorg_cv_cc_flag__fd
5886 if eval \${$cacheid+:} false; then :
5887 $as_echo_n "(cached) " >&6
5888 else
5889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890 /* end confdefs.h. */
5891 int i;
5892 int
5893 main ()
5894 {
5895
5896 ;
5897 return 0;
5898 }
5899 _ACEOF
5900 if ac_fn_c_try_link "$LINENO"; then :
5901 eval $cacheid=yes
5902 else
5903 eval $cacheid=no
5904 fi
5905 rm -f core conftest.err conftest.$ac_objext \
5906 conftest$ac_exeext conftest.$ac_ext
5907 fi
5908
5909
5910 CFLAGS="$xorg_testset_save_CFLAGS"
5911
5912 eval supported=\$$cacheid
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5914 $as_echo "$supported" >&6; }
5915 if test "$supported" = "yes" ; then
5916 BASE_CFLAGS="$BASE_CFLAGS -fd"
5917 found="yes"
5918 fi
5919 fi
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935 xorg_testset_save_CFLAGS="$CFLAGS"
5936
5937 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5938 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5940 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5941 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5942 $as_echo_n "(cached) " >&6
5943 else
5944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5945 /* end confdefs.h. */
5946 int i;
5947 _ACEOF
5948 if ac_fn_c_try_compile "$LINENO"; then :
5949 xorg_cv_cc_flag_unknown_warning_option=yes
5950 else
5951 xorg_cv_cc_flag_unknown_warning_option=no
5952 fi
5953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5954 fi
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5956 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5957 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5958 CFLAGS="$xorg_testset_save_CFLAGS"
5959 fi
5960
5961 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5963 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5964 fi
5965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5967 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5968 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5969 $as_echo_n "(cached) " >&6
5970 else
5971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5972 /* end confdefs.h. */
5973 int i;
5974 _ACEOF
5975 if ac_fn_c_try_compile "$LINENO"; then :
5976 xorg_cv_cc_flag_unused_command_line_argument=yes
5977 else
5978 xorg_cv_cc_flag_unused_command_line_argument=no
5979 fi
5980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5981 fi
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5983 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5984 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5985 CFLAGS="$xorg_testset_save_CFLAGS"
5986 fi
5987
5988 found="no"
5989
5990 if test $found = "no" ; then
5991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5993 fi
5994
5995 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5997 fi
5998
5999 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6000
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6002 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6003 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6004 if eval \${$cacheid+:} 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 int
6011 main ()
6012 {
6013
6014 ;
6015 return 0;
6016 }
6017 _ACEOF
6018 if ac_fn_c_try_link "$LINENO"; then :
6019 eval $cacheid=yes
6020 else
6021 eval $cacheid=no
6022 fi
6023 rm -f core conftest.err conftest.$ac_objext \
6024 conftest$ac_exeext conftest.$ac_ext
6025 fi
6026
6027
6028 CFLAGS="$xorg_testset_save_CFLAGS"
6029
6030 eval supported=\$$cacheid
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6032 $as_echo "$supported" >&6; }
6033 if test "$supported" = "yes" ; then
6034 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6035 found="yes"
6036 fi
6037 fi
6038
6039
6040
6041
6042
6043 # This chunk adds additional warnings that could catch undesired effects.
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057 xorg_testset_save_CFLAGS="$CFLAGS"
6058
6059 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6060 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6062 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6063 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6064 $as_echo_n "(cached) " >&6
6065 else
6066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6067 /* end confdefs.h. */
6068 int i;
6069 _ACEOF
6070 if ac_fn_c_try_compile "$LINENO"; then :
6071 xorg_cv_cc_flag_unknown_warning_option=yes
6072 else
6073 xorg_cv_cc_flag_unknown_warning_option=no
6074 fi
6075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6076 fi
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6078 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6079 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6080 CFLAGS="$xorg_testset_save_CFLAGS"
6081 fi
6082
6083 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6084 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6086 fi
6087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6089 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6090 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6091 $as_echo_n "(cached) " >&6
6092 else
6093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6094 /* end confdefs.h. */
6095 int i;
6096 _ACEOF
6097 if ac_fn_c_try_compile "$LINENO"; then :
6098 xorg_cv_cc_flag_unused_command_line_argument=yes
6099 else
6100 xorg_cv_cc_flag_unused_command_line_argument=no
6101 fi
6102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6103 fi
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6105 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6106 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6107 CFLAGS="$xorg_testset_save_CFLAGS"
6108 fi
6109
6110 found="no"
6111
6112 if test $found = "no" ; then
6113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6114 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6115 fi
6116
6117 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6119 fi
6120
6121 CFLAGS="$CFLAGS -Wunused"
6122
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6124 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6125 cacheid=xorg_cv_cc_flag__Wunused
6126 if eval \${$cacheid+:} 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 int
6133 main ()
6134 {
6135
6136 ;
6137 return 0;
6138 }
6139 _ACEOF
6140 if ac_fn_c_try_link "$LINENO"; then :
6141 eval $cacheid=yes
6142 else
6143 eval $cacheid=no
6144 fi
6145 rm -f core conftest.err conftest.$ac_objext \
6146 conftest$ac_exeext conftest.$ac_ext
6147 fi
6148
6149
6150 CFLAGS="$xorg_testset_save_CFLAGS"
6151
6152 eval supported=\$$cacheid
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6154 $as_echo "$supported" >&6; }
6155 if test "$supported" = "yes" ; then
6156 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6157 found="yes"
6158 fi
6159 fi
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175 xorg_testset_save_CFLAGS="$CFLAGS"
6176
6177 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6178 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6180 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6181 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6182 $as_echo_n "(cached) " >&6
6183 else
6184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6185 /* end confdefs.h. */
6186 int i;
6187 _ACEOF
6188 if ac_fn_c_try_compile "$LINENO"; then :
6189 xorg_cv_cc_flag_unknown_warning_option=yes
6190 else
6191 xorg_cv_cc_flag_unknown_warning_option=no
6192 fi
6193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6194 fi
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6196 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6197 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6198 CFLAGS="$xorg_testset_save_CFLAGS"
6199 fi
6200
6201 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6204 fi
6205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6207 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6208 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6209 $as_echo_n "(cached) " >&6
6210 else
6211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6212 /* end confdefs.h. */
6213 int i;
6214 _ACEOF
6215 if ac_fn_c_try_compile "$LINENO"; then :
6216 xorg_cv_cc_flag_unused_command_line_argument=yes
6217 else
6218 xorg_cv_cc_flag_unused_command_line_argument=no
6219 fi
6220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6221 fi
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6223 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6224 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6225 CFLAGS="$xorg_testset_save_CFLAGS"
6226 fi
6227
6228 found="no"
6229
6230 if test $found = "no" ; then
6231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6232 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6233 fi
6234
6235 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6237 fi
6238
6239 CFLAGS="$CFLAGS -Wuninitialized"
6240
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6242 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6243 cacheid=xorg_cv_cc_flag__Wuninitialized
6244 if eval \${$cacheid+:} 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 int
6251 main ()
6252 {
6253
6254 ;
6255 return 0;
6256 }
6257 _ACEOF
6258 if ac_fn_c_try_link "$LINENO"; then :
6259 eval $cacheid=yes
6260 else
6261 eval $cacheid=no
6262 fi
6263 rm -f core conftest.err conftest.$ac_objext \
6264 conftest$ac_exeext conftest.$ac_ext
6265 fi
6266
6267
6268 CFLAGS="$xorg_testset_save_CFLAGS"
6269
6270 eval supported=\$$cacheid
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6272 $as_echo "$supported" >&6; }
6273 if test "$supported" = "yes" ; then
6274 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6275 found="yes"
6276 fi
6277 fi
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293 xorg_testset_save_CFLAGS="$CFLAGS"
6294
6295 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6296 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6298 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6299 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6300 $as_echo_n "(cached) " >&6
6301 else
6302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6303 /* end confdefs.h. */
6304 int i;
6305 _ACEOF
6306 if ac_fn_c_try_compile "$LINENO"; then :
6307 xorg_cv_cc_flag_unknown_warning_option=yes
6308 else
6309 xorg_cv_cc_flag_unknown_warning_option=no
6310 fi
6311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6312 fi
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6314 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6315 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6316 CFLAGS="$xorg_testset_save_CFLAGS"
6317 fi
6318
6319 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6320 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6321 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6322 fi
6323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6325 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6326 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6327 $as_echo_n "(cached) " >&6
6328 else
6329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6330 /* end confdefs.h. */
6331 int i;
6332 _ACEOF
6333 if ac_fn_c_try_compile "$LINENO"; then :
6334 xorg_cv_cc_flag_unused_command_line_argument=yes
6335 else
6336 xorg_cv_cc_flag_unused_command_line_argument=no
6337 fi
6338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6339 fi
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6341 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6342 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6343 CFLAGS="$xorg_testset_save_CFLAGS"
6344 fi
6345
6346 found="no"
6347
6348 if test $found = "no" ; then
6349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6350 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6351 fi
6352
6353 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6355 fi
6356
6357 CFLAGS="$CFLAGS -Wshadow"
6358
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6360 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6361 cacheid=xorg_cv_cc_flag__Wshadow
6362 if eval \${$cacheid+:} 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 int
6369 main ()
6370 {
6371
6372 ;
6373 return 0;
6374 }
6375 _ACEOF
6376 if ac_fn_c_try_link "$LINENO"; then :
6377 eval $cacheid=yes
6378 else
6379 eval $cacheid=no
6380 fi
6381 rm -f core conftest.err conftest.$ac_objext \
6382 conftest$ac_exeext conftest.$ac_ext
6383 fi
6384
6385
6386 CFLAGS="$xorg_testset_save_CFLAGS"
6387
6388 eval supported=\$$cacheid
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6390 $as_echo "$supported" >&6; }
6391 if test "$supported" = "yes" ; then
6392 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6393 found="yes"
6394 fi
6395 fi
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411 xorg_testset_save_CFLAGS="$CFLAGS"
6412
6413 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6414 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6416 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6417 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6418 $as_echo_n "(cached) " >&6
6419 else
6420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6421 /* end confdefs.h. */
6422 int i;
6423 _ACEOF
6424 if ac_fn_c_try_compile "$LINENO"; then :
6425 xorg_cv_cc_flag_unknown_warning_option=yes
6426 else
6427 xorg_cv_cc_flag_unknown_warning_option=no
6428 fi
6429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6430 fi
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6432 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6433 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6434 CFLAGS="$xorg_testset_save_CFLAGS"
6435 fi
6436
6437 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6439 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6440 fi
6441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6443 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6444 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6445 $as_echo_n "(cached) " >&6
6446 else
6447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6448 /* end confdefs.h. */
6449 int i;
6450 _ACEOF
6451 if ac_fn_c_try_compile "$LINENO"; then :
6452 xorg_cv_cc_flag_unused_command_line_argument=yes
6453 else
6454 xorg_cv_cc_flag_unused_command_line_argument=no
6455 fi
6456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6457 fi
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6459 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6460 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6461 CFLAGS="$xorg_testset_save_CFLAGS"
6462 fi
6463
6464 found="no"
6465
6466 if test $found = "no" ; then
6467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6468 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6469 fi
6470
6471 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6473 fi
6474
6475 CFLAGS="$CFLAGS -Wmissing-noreturn"
6476
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6478 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6479 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6480 if eval \${$cacheid+:} 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 int
6487 main ()
6488 {
6489
6490 ;
6491 return 0;
6492 }
6493 _ACEOF
6494 if ac_fn_c_try_link "$LINENO"; then :
6495 eval $cacheid=yes
6496 else
6497 eval $cacheid=no
6498 fi
6499 rm -f core conftest.err conftest.$ac_objext \
6500 conftest$ac_exeext conftest.$ac_ext
6501 fi
6502
6503
6504 CFLAGS="$xorg_testset_save_CFLAGS"
6505
6506 eval supported=\$$cacheid
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6508 $as_echo "$supported" >&6; }
6509 if test "$supported" = "yes" ; then
6510 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6511 found="yes"
6512 fi
6513 fi
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529 xorg_testset_save_CFLAGS="$CFLAGS"
6530
6531 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6532 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6534 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6535 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6536 $as_echo_n "(cached) " >&6
6537 else
6538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6539 /* end confdefs.h. */
6540 int i;
6541 _ACEOF
6542 if ac_fn_c_try_compile "$LINENO"; then :
6543 xorg_cv_cc_flag_unknown_warning_option=yes
6544 else
6545 xorg_cv_cc_flag_unknown_warning_option=no
6546 fi
6547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6548 fi
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6550 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6551 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6552 CFLAGS="$xorg_testset_save_CFLAGS"
6553 fi
6554
6555 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6556 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6557 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6558 fi
6559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6561 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6562 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6563 $as_echo_n "(cached) " >&6
6564 else
6565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6566 /* end confdefs.h. */
6567 int i;
6568 _ACEOF
6569 if ac_fn_c_try_compile "$LINENO"; then :
6570 xorg_cv_cc_flag_unused_command_line_argument=yes
6571 else
6572 xorg_cv_cc_flag_unused_command_line_argument=no
6573 fi
6574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6575 fi
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6577 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6578 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6579 CFLAGS="$xorg_testset_save_CFLAGS"
6580 fi
6581
6582 found="no"
6583
6584 if test $found = "no" ; then
6585 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6586 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6587 fi
6588
6589 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6591 fi
6592
6593 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6594
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6596 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6597 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6598 if eval \${$cacheid+:} 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 int
6605 main ()
6606 {
6607
6608 ;
6609 return 0;
6610 }
6611 _ACEOF
6612 if ac_fn_c_try_link "$LINENO"; then :
6613 eval $cacheid=yes
6614 else
6615 eval $cacheid=no
6616 fi
6617 rm -f core conftest.err conftest.$ac_objext \
6618 conftest$ac_exeext conftest.$ac_ext
6619 fi
6620
6621
6622 CFLAGS="$xorg_testset_save_CFLAGS"
6623
6624 eval supported=\$$cacheid
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6626 $as_echo "$supported" >&6; }
6627 if test "$supported" = "yes" ; then
6628 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6629 found="yes"
6630 fi
6631 fi
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647 xorg_testset_save_CFLAGS="$CFLAGS"
6648
6649 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6650 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6652 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6653 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6654 $as_echo_n "(cached) " >&6
6655 else
6656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6657 /* end confdefs.h. */
6658 int i;
6659 _ACEOF
6660 if ac_fn_c_try_compile "$LINENO"; then :
6661 xorg_cv_cc_flag_unknown_warning_option=yes
6662 else
6663 xorg_cv_cc_flag_unknown_warning_option=no
6664 fi
6665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6666 fi
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6668 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6669 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6670 CFLAGS="$xorg_testset_save_CFLAGS"
6671 fi
6672
6673 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6675 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6676 fi
6677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6679 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6680 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6681 $as_echo_n "(cached) " >&6
6682 else
6683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6684 /* end confdefs.h. */
6685 int i;
6686 _ACEOF
6687 if ac_fn_c_try_compile "$LINENO"; then :
6688 xorg_cv_cc_flag_unused_command_line_argument=yes
6689 else
6690 xorg_cv_cc_flag_unused_command_line_argument=no
6691 fi
6692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6693 fi
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6695 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6696 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6697 CFLAGS="$xorg_testset_save_CFLAGS"
6698 fi
6699
6700 found="no"
6701
6702 if test $found = "no" ; then
6703 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6704 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6705 fi
6706
6707 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6709 fi
6710
6711 CFLAGS="$CFLAGS -Wredundant-decls"
6712
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6714 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6715 cacheid=xorg_cv_cc_flag__Wredundant_decls
6716 if eval \${$cacheid+:} 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 int
6723 main ()
6724 {
6725
6726 ;
6727 return 0;
6728 }
6729 _ACEOF
6730 if ac_fn_c_try_link "$LINENO"; then :
6731 eval $cacheid=yes
6732 else
6733 eval $cacheid=no
6734 fi
6735 rm -f core conftest.err conftest.$ac_objext \
6736 conftest$ac_exeext conftest.$ac_ext
6737 fi
6738
6739
6740 CFLAGS="$xorg_testset_save_CFLAGS"
6741
6742 eval supported=\$$cacheid
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6744 $as_echo "$supported" >&6; }
6745 if test "$supported" = "yes" ; then
6746 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6747 found="yes"
6748 fi
6749 fi
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765 xorg_testset_save_CFLAGS="$CFLAGS"
6766
6767 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6768 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6770 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6771 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6772 $as_echo_n "(cached) " >&6
6773 else
6774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6775 /* end confdefs.h. */
6776 int i;
6777 _ACEOF
6778 if ac_fn_c_try_compile "$LINENO"; then :
6779 xorg_cv_cc_flag_unknown_warning_option=yes
6780 else
6781 xorg_cv_cc_flag_unknown_warning_option=no
6782 fi
6783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6784 fi
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6786 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6787 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6788 CFLAGS="$xorg_testset_save_CFLAGS"
6789 fi
6790
6791 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6792 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6793 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6794 fi
6795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6797 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6798 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6799 $as_echo_n "(cached) " >&6
6800 else
6801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6802 /* end confdefs.h. */
6803 int i;
6804 _ACEOF
6805 if ac_fn_c_try_compile "$LINENO"; then :
6806 xorg_cv_cc_flag_unused_command_line_argument=yes
6807 else
6808 xorg_cv_cc_flag_unused_command_line_argument=no
6809 fi
6810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6811 fi
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6813 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6814 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6815 CFLAGS="$xorg_testset_save_CFLAGS"
6816 fi
6817
6818 found="no"
6819
6820 if test $found = "no" ; then
6821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6822 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6823 fi
6824
6825 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6827 fi
6828
6829 CFLAGS="$CFLAGS -Wlogical-op"
6830
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6832 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6833 cacheid=xorg_cv_cc_flag__Wlogical_op
6834 if eval \${$cacheid+:} 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 int
6841 main ()
6842 {
6843
6844 ;
6845 return 0;
6846 }
6847 _ACEOF
6848 if ac_fn_c_try_link "$LINENO"; then :
6849 eval $cacheid=yes
6850 else
6851 eval $cacheid=no
6852 fi
6853 rm -f core conftest.err conftest.$ac_objext \
6854 conftest$ac_exeext conftest.$ac_ext
6855 fi
6856
6857
6858 CFLAGS="$xorg_testset_save_CFLAGS"
6859
6860 eval supported=\$$cacheid
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6862 $as_echo "$supported" >&6; }
6863 if test "$supported" = "yes" ; then
6864 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6865 found="yes"
6866 fi
6867 fi
6868
6869
6870
6871 # These are currently disabled because they are noisy. They will be enabled
6872 # in the future once the codebase is sufficiently modernized to silence
6873 # them. For now, I don't want them to drown out the other warnings.
6874 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6875 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6876 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6877
6878 # Turn some warnings into errors, so we don't accidently get successful builds
6879 # when there are problems that should be fixed.
6880
6881 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895 xorg_testset_save_CFLAGS="$CFLAGS"
6896
6897 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6898 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6900 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6901 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6902 $as_echo_n "(cached) " >&6
6903 else
6904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6905 /* end confdefs.h. */
6906 int i;
6907 _ACEOF
6908 if ac_fn_c_try_compile "$LINENO"; then :
6909 xorg_cv_cc_flag_unknown_warning_option=yes
6910 else
6911 xorg_cv_cc_flag_unknown_warning_option=no
6912 fi
6913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6914 fi
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6916 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6917 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6918 CFLAGS="$xorg_testset_save_CFLAGS"
6919 fi
6920
6921 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6923 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6924 fi
6925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6927 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6928 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6929 $as_echo_n "(cached) " >&6
6930 else
6931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6932 /* end confdefs.h. */
6933 int i;
6934 _ACEOF
6935 if ac_fn_c_try_compile "$LINENO"; then :
6936 xorg_cv_cc_flag_unused_command_line_argument=yes
6937 else
6938 xorg_cv_cc_flag_unused_command_line_argument=no
6939 fi
6940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6941 fi
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6943 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6944 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6945 CFLAGS="$xorg_testset_save_CFLAGS"
6946 fi
6947
6948 found="no"
6949
6950 if test $found = "no" ; then
6951 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6952 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6953 fi
6954
6955 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6957 fi
6958
6959 CFLAGS="$CFLAGS -Werror=implicit"
6960
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6962 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6963 cacheid=xorg_cv_cc_flag__Werror_implicit
6964 if eval \${$cacheid+:} 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 int
6971 main ()
6972 {
6973
6974 ;
6975 return 0;
6976 }
6977 _ACEOF
6978 if ac_fn_c_try_link "$LINENO"; then :
6979 eval $cacheid=yes
6980 else
6981 eval $cacheid=no
6982 fi
6983 rm -f core conftest.err conftest.$ac_objext \
6984 conftest$ac_exeext conftest.$ac_ext
6985 fi
6986
6987
6988 CFLAGS="$xorg_testset_save_CFLAGS"
6989
6990 eval supported=\$$cacheid
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6992 $as_echo "$supported" >&6; }
6993 if test "$supported" = "yes" ; then
6994 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6995 found="yes"
6996 fi
6997 fi
6998
6999 if test $found = "no" ; then
7000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7001 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7002 fi
7003
7004 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7006 fi
7007
7008 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7009
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7011 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7012 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7013 if eval \${$cacheid+:} false; then :
7014 $as_echo_n "(cached) " >&6
7015 else
7016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7017 /* end confdefs.h. */
7018 int i;
7019 int
7020 main ()
7021 {
7022
7023 ;
7024 return 0;
7025 }
7026 _ACEOF
7027 if ac_fn_c_try_link "$LINENO"; then :
7028 eval $cacheid=yes
7029 else
7030 eval $cacheid=no
7031 fi
7032 rm -f core conftest.err conftest.$ac_objext \
7033 conftest$ac_exeext conftest.$ac_ext
7034 fi
7035
7036
7037 CFLAGS="$xorg_testset_save_CFLAGS"
7038
7039 eval supported=\$$cacheid
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7041 $as_echo "$supported" >&6; }
7042 if test "$supported" = "yes" ; then
7043 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7044 found="yes"
7045 fi
7046 fi
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062 xorg_testset_save_CFLAGS="$CFLAGS"
7063
7064 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7065 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7067 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7068 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7069 $as_echo_n "(cached) " >&6
7070 else
7071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7072 /* end confdefs.h. */
7073 int i;
7074 _ACEOF
7075 if ac_fn_c_try_compile "$LINENO"; then :
7076 xorg_cv_cc_flag_unknown_warning_option=yes
7077 else
7078 xorg_cv_cc_flag_unknown_warning_option=no
7079 fi
7080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7081 fi
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7083 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7084 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7085 CFLAGS="$xorg_testset_save_CFLAGS"
7086 fi
7087
7088 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7090 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7091 fi
7092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7094 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7095 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7096 $as_echo_n "(cached) " >&6
7097 else
7098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7099 /* end confdefs.h. */
7100 int i;
7101 _ACEOF
7102 if ac_fn_c_try_compile "$LINENO"; then :
7103 xorg_cv_cc_flag_unused_command_line_argument=yes
7104 else
7105 xorg_cv_cc_flag_unused_command_line_argument=no
7106 fi
7107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7108 fi
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7110 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7111 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7112 CFLAGS="$xorg_testset_save_CFLAGS"
7113 fi
7114
7115 found="no"
7116
7117 if test $found = "no" ; then
7118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7120 fi
7121
7122 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7124 fi
7125
7126 CFLAGS="$CFLAGS -Werror=nonnull"
7127
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7129 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7130 cacheid=xorg_cv_cc_flag__Werror_nonnull
7131 if eval \${$cacheid+:} 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 int
7138 main ()
7139 {
7140
7141 ;
7142 return 0;
7143 }
7144 _ACEOF
7145 if ac_fn_c_try_link "$LINENO"; then :
7146 eval $cacheid=yes
7147 else
7148 eval $cacheid=no
7149 fi
7150 rm -f core conftest.err conftest.$ac_objext \
7151 conftest$ac_exeext conftest.$ac_ext
7152 fi
7153
7154
7155 CFLAGS="$xorg_testset_save_CFLAGS"
7156
7157 eval supported=\$$cacheid
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7159 $as_echo "$supported" >&6; }
7160 if test "$supported" = "yes" ; then
7161 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7162 found="yes"
7163 fi
7164 fi
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180 xorg_testset_save_CFLAGS="$CFLAGS"
7181
7182 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7183 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7185 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7186 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7187 $as_echo_n "(cached) " >&6
7188 else
7189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7190 /* end confdefs.h. */
7191 int i;
7192 _ACEOF
7193 if ac_fn_c_try_compile "$LINENO"; then :
7194 xorg_cv_cc_flag_unknown_warning_option=yes
7195 else
7196 xorg_cv_cc_flag_unknown_warning_option=no
7197 fi
7198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7199 fi
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7201 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7202 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7203 CFLAGS="$xorg_testset_save_CFLAGS"
7204 fi
7205
7206 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7208 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7209 fi
7210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7212 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7213 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7214 $as_echo_n "(cached) " >&6
7215 else
7216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7217 /* end confdefs.h. */
7218 int i;
7219 _ACEOF
7220 if ac_fn_c_try_compile "$LINENO"; then :
7221 xorg_cv_cc_flag_unused_command_line_argument=yes
7222 else
7223 xorg_cv_cc_flag_unused_command_line_argument=no
7224 fi
7225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7226 fi
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7228 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7229 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7230 CFLAGS="$xorg_testset_save_CFLAGS"
7231 fi
7232
7233 found="no"
7234
7235 if test $found = "no" ; then
7236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7238 fi
7239
7240 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7242 fi
7243
7244 CFLAGS="$CFLAGS -Werror=init-self"
7245
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7247 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7248 cacheid=xorg_cv_cc_flag__Werror_init_self
7249 if eval \${$cacheid+:} 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 int
7256 main ()
7257 {
7258
7259 ;
7260 return 0;
7261 }
7262 _ACEOF
7263 if ac_fn_c_try_link "$LINENO"; then :
7264 eval $cacheid=yes
7265 else
7266 eval $cacheid=no
7267 fi
7268 rm -f core conftest.err conftest.$ac_objext \
7269 conftest$ac_exeext conftest.$ac_ext
7270 fi
7271
7272
7273 CFLAGS="$xorg_testset_save_CFLAGS"
7274
7275 eval supported=\$$cacheid
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7277 $as_echo "$supported" >&6; }
7278 if test "$supported" = "yes" ; then
7279 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7280 found="yes"
7281 fi
7282 fi
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298 xorg_testset_save_CFLAGS="$CFLAGS"
7299
7300 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7301 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7303 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7304 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7305 $as_echo_n "(cached) " >&6
7306 else
7307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308 /* end confdefs.h. */
7309 int i;
7310 _ACEOF
7311 if ac_fn_c_try_compile "$LINENO"; then :
7312 xorg_cv_cc_flag_unknown_warning_option=yes
7313 else
7314 xorg_cv_cc_flag_unknown_warning_option=no
7315 fi
7316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7317 fi
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7319 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7320 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7321 CFLAGS="$xorg_testset_save_CFLAGS"
7322 fi
7323
7324 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7326 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7327 fi
7328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7330 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7331 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7332 $as_echo_n "(cached) " >&6
7333 else
7334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7335 /* end confdefs.h. */
7336 int i;
7337 _ACEOF
7338 if ac_fn_c_try_compile "$LINENO"; then :
7339 xorg_cv_cc_flag_unused_command_line_argument=yes
7340 else
7341 xorg_cv_cc_flag_unused_command_line_argument=no
7342 fi
7343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7344 fi
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7346 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7347 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7348 CFLAGS="$xorg_testset_save_CFLAGS"
7349 fi
7350
7351 found="no"
7352
7353 if test $found = "no" ; then
7354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7355 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7356 fi
7357
7358 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7360 fi
7361
7362 CFLAGS="$CFLAGS -Werror=main"
7363
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7365 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7366 cacheid=xorg_cv_cc_flag__Werror_main
7367 if eval \${$cacheid+:} 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 int
7374 main ()
7375 {
7376
7377 ;
7378 return 0;
7379 }
7380 _ACEOF
7381 if ac_fn_c_try_link "$LINENO"; then :
7382 eval $cacheid=yes
7383 else
7384 eval $cacheid=no
7385 fi
7386 rm -f core conftest.err conftest.$ac_objext \
7387 conftest$ac_exeext conftest.$ac_ext
7388 fi
7389
7390
7391 CFLAGS="$xorg_testset_save_CFLAGS"
7392
7393 eval supported=\$$cacheid
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7395 $as_echo "$supported" >&6; }
7396 if test "$supported" = "yes" ; then
7397 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7398 found="yes"
7399 fi
7400 fi
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416 xorg_testset_save_CFLAGS="$CFLAGS"
7417
7418 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7419 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7421 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7422 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7423 $as_echo_n "(cached) " >&6
7424 else
7425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7426 /* end confdefs.h. */
7427 int i;
7428 _ACEOF
7429 if ac_fn_c_try_compile "$LINENO"; then :
7430 xorg_cv_cc_flag_unknown_warning_option=yes
7431 else
7432 xorg_cv_cc_flag_unknown_warning_option=no
7433 fi
7434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7435 fi
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7437 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7438 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7439 CFLAGS="$xorg_testset_save_CFLAGS"
7440 fi
7441
7442 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7445 fi
7446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7448 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7449 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7450 $as_echo_n "(cached) " >&6
7451 else
7452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7453 /* end confdefs.h. */
7454 int i;
7455 _ACEOF
7456 if ac_fn_c_try_compile "$LINENO"; then :
7457 xorg_cv_cc_flag_unused_command_line_argument=yes
7458 else
7459 xorg_cv_cc_flag_unused_command_line_argument=no
7460 fi
7461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7462 fi
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7464 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7465 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7466 CFLAGS="$xorg_testset_save_CFLAGS"
7467 fi
7468
7469 found="no"
7470
7471 if test $found = "no" ; then
7472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7473 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7474 fi
7475
7476 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7478 fi
7479
7480 CFLAGS="$CFLAGS -Werror=missing-braces"
7481
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7483 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7484 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7485 if eval \${$cacheid+:} 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 int
7492 main ()
7493 {
7494
7495 ;
7496 return 0;
7497 }
7498 _ACEOF
7499 if ac_fn_c_try_link "$LINENO"; then :
7500 eval $cacheid=yes
7501 else
7502 eval $cacheid=no
7503 fi
7504 rm -f core conftest.err conftest.$ac_objext \
7505 conftest$ac_exeext conftest.$ac_ext
7506 fi
7507
7508
7509 CFLAGS="$xorg_testset_save_CFLAGS"
7510
7511 eval supported=\$$cacheid
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7513 $as_echo "$supported" >&6; }
7514 if test "$supported" = "yes" ; then
7515 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7516 found="yes"
7517 fi
7518 fi
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534 xorg_testset_save_CFLAGS="$CFLAGS"
7535
7536 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7537 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7539 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7540 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7541 $as_echo_n "(cached) " >&6
7542 else
7543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7544 /* end confdefs.h. */
7545 int i;
7546 _ACEOF
7547 if ac_fn_c_try_compile "$LINENO"; then :
7548 xorg_cv_cc_flag_unknown_warning_option=yes
7549 else
7550 xorg_cv_cc_flag_unknown_warning_option=no
7551 fi
7552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7553 fi
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7555 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7556 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7557 CFLAGS="$xorg_testset_save_CFLAGS"
7558 fi
7559
7560 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7563 fi
7564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7566 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7567 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7568 $as_echo_n "(cached) " >&6
7569 else
7570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7571 /* end confdefs.h. */
7572 int i;
7573 _ACEOF
7574 if ac_fn_c_try_compile "$LINENO"; then :
7575 xorg_cv_cc_flag_unused_command_line_argument=yes
7576 else
7577 xorg_cv_cc_flag_unused_command_line_argument=no
7578 fi
7579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7580 fi
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7582 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7583 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7584 CFLAGS="$xorg_testset_save_CFLAGS"
7585 fi
7586
7587 found="no"
7588
7589 if test $found = "no" ; then
7590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7591 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7592 fi
7593
7594 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7596 fi
7597
7598 CFLAGS="$CFLAGS -Werror=sequence-point"
7599
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7601 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7602 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7603 if eval \${$cacheid+:} 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 int
7610 main ()
7611 {
7612
7613 ;
7614 return 0;
7615 }
7616 _ACEOF
7617 if ac_fn_c_try_link "$LINENO"; then :
7618 eval $cacheid=yes
7619 else
7620 eval $cacheid=no
7621 fi
7622 rm -f core conftest.err conftest.$ac_objext \
7623 conftest$ac_exeext conftest.$ac_ext
7624 fi
7625
7626
7627 CFLAGS="$xorg_testset_save_CFLAGS"
7628
7629 eval supported=\$$cacheid
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7631 $as_echo "$supported" >&6; }
7632 if test "$supported" = "yes" ; then
7633 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7634 found="yes"
7635 fi
7636 fi
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652 xorg_testset_save_CFLAGS="$CFLAGS"
7653
7654 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7655 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7657 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7658 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7659 $as_echo_n "(cached) " >&6
7660 else
7661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7662 /* end confdefs.h. */
7663 int i;
7664 _ACEOF
7665 if ac_fn_c_try_compile "$LINENO"; then :
7666 xorg_cv_cc_flag_unknown_warning_option=yes
7667 else
7668 xorg_cv_cc_flag_unknown_warning_option=no
7669 fi
7670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7671 fi
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7673 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7674 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7675 CFLAGS="$xorg_testset_save_CFLAGS"
7676 fi
7677
7678 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7680 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7681 fi
7682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7684 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7685 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7686 $as_echo_n "(cached) " >&6
7687 else
7688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689 /* end confdefs.h. */
7690 int i;
7691 _ACEOF
7692 if ac_fn_c_try_compile "$LINENO"; then :
7693 xorg_cv_cc_flag_unused_command_line_argument=yes
7694 else
7695 xorg_cv_cc_flag_unused_command_line_argument=no
7696 fi
7697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7698 fi
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7700 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7701 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7702 CFLAGS="$xorg_testset_save_CFLAGS"
7703 fi
7704
7705 found="no"
7706
7707 if test $found = "no" ; then
7708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7709 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7710 fi
7711
7712 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7714 fi
7715
7716 CFLAGS="$CFLAGS -Werror=return-type"
7717
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7719 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7720 cacheid=xorg_cv_cc_flag__Werror_return_type
7721 if eval \${$cacheid+:} 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 int
7728 main ()
7729 {
7730
7731 ;
7732 return 0;
7733 }
7734 _ACEOF
7735 if ac_fn_c_try_link "$LINENO"; then :
7736 eval $cacheid=yes
7737 else
7738 eval $cacheid=no
7739 fi
7740 rm -f core conftest.err conftest.$ac_objext \
7741 conftest$ac_exeext conftest.$ac_ext
7742 fi
7743
7744
7745 CFLAGS="$xorg_testset_save_CFLAGS"
7746
7747 eval supported=\$$cacheid
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7749 $as_echo "$supported" >&6; }
7750 if test "$supported" = "yes" ; then
7751 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7752 found="yes"
7753 fi
7754 fi
7755
7756 if test $found = "no" ; then
7757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7758 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7759 fi
7760
7761 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7763 fi
7764
7765 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7766
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7768 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7769 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7770 if eval \${$cacheid+:} false; then :
7771 $as_echo_n "(cached) " >&6
7772 else
7773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7774 /* end confdefs.h. */
7775 int i;
7776 int
7777 main ()
7778 {
7779
7780 ;
7781 return 0;
7782 }
7783 _ACEOF
7784 if ac_fn_c_try_link "$LINENO"; then :
7785 eval $cacheid=yes
7786 else
7787 eval $cacheid=no
7788 fi
7789 rm -f core conftest.err conftest.$ac_objext \
7790 conftest$ac_exeext conftest.$ac_ext
7791 fi
7792
7793
7794 CFLAGS="$xorg_testset_save_CFLAGS"
7795
7796 eval supported=\$$cacheid
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7798 $as_echo "$supported" >&6; }
7799 if test "$supported" = "yes" ; then
7800 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7801 found="yes"
7802 fi
7803 fi
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819 xorg_testset_save_CFLAGS="$CFLAGS"
7820
7821 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7822 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7824 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7825 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7826 $as_echo_n "(cached) " >&6
7827 else
7828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7829 /* end confdefs.h. */
7830 int i;
7831 _ACEOF
7832 if ac_fn_c_try_compile "$LINENO"; then :
7833 xorg_cv_cc_flag_unknown_warning_option=yes
7834 else
7835 xorg_cv_cc_flag_unknown_warning_option=no
7836 fi
7837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7838 fi
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7840 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7841 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7842 CFLAGS="$xorg_testset_save_CFLAGS"
7843 fi
7844
7845 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7846 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7847 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7848 fi
7849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7851 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7852 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7853 $as_echo_n "(cached) " >&6
7854 else
7855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7856 /* end confdefs.h. */
7857 int i;
7858 _ACEOF
7859 if ac_fn_c_try_compile "$LINENO"; then :
7860 xorg_cv_cc_flag_unused_command_line_argument=yes
7861 else
7862 xorg_cv_cc_flag_unused_command_line_argument=no
7863 fi
7864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7865 fi
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7867 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7868 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7869 CFLAGS="$xorg_testset_save_CFLAGS"
7870 fi
7871
7872 found="no"
7873
7874 if test $found = "no" ; then
7875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7876 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7877 fi
7878
7879 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7881 fi
7882
7883 CFLAGS="$CFLAGS -Werror=trigraphs"
7884
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7886 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7887 cacheid=xorg_cv_cc_flag__Werror_trigraphs
7888 if eval \${$cacheid+:} 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 int
7895 main ()
7896 {
7897
7898 ;
7899 return 0;
7900 }
7901 _ACEOF
7902 if ac_fn_c_try_link "$LINENO"; then :
7903 eval $cacheid=yes
7904 else
7905 eval $cacheid=no
7906 fi
7907 rm -f core conftest.err conftest.$ac_objext \
7908 conftest$ac_exeext conftest.$ac_ext
7909 fi
7910
7911
7912 CFLAGS="$xorg_testset_save_CFLAGS"
7913
7914 eval supported=\$$cacheid
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7916 $as_echo "$supported" >&6; }
7917 if test "$supported" = "yes" ; then
7918 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7919 found="yes"
7920 fi
7921 fi
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937 xorg_testset_save_CFLAGS="$CFLAGS"
7938
7939 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7940 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7942 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7943 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7944 $as_echo_n "(cached) " >&6
7945 else
7946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7947 /* end confdefs.h. */
7948 int i;
7949 _ACEOF
7950 if ac_fn_c_try_compile "$LINENO"; then :
7951 xorg_cv_cc_flag_unknown_warning_option=yes
7952 else
7953 xorg_cv_cc_flag_unknown_warning_option=no
7954 fi
7955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7956 fi
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7958 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7959 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7960 CFLAGS="$xorg_testset_save_CFLAGS"
7961 fi
7962
7963 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7965 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7966 fi
7967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7969 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7970 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7971 $as_echo_n "(cached) " >&6
7972 else
7973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7974 /* end confdefs.h. */
7975 int i;
7976 _ACEOF
7977 if ac_fn_c_try_compile "$LINENO"; then :
7978 xorg_cv_cc_flag_unused_command_line_argument=yes
7979 else
7980 xorg_cv_cc_flag_unused_command_line_argument=no
7981 fi
7982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7983 fi
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7985 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7986 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7987 CFLAGS="$xorg_testset_save_CFLAGS"
7988 fi
7989
7990 found="no"
7991
7992 if test $found = "no" ; then
7993 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7994 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7995 fi
7996
7997 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7999 fi
8000
8001 CFLAGS="$CFLAGS -Werror=array-bounds"
8002
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8004 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8005 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8006 if eval \${$cacheid+:} 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 int
8013 main ()
8014 {
8015
8016 ;
8017 return 0;
8018 }
8019 _ACEOF
8020 if ac_fn_c_try_link "$LINENO"; then :
8021 eval $cacheid=yes
8022 else
8023 eval $cacheid=no
8024 fi
8025 rm -f core conftest.err conftest.$ac_objext \
8026 conftest$ac_exeext conftest.$ac_ext
8027 fi
8028
8029
8030 CFLAGS="$xorg_testset_save_CFLAGS"
8031
8032 eval supported=\$$cacheid
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8034 $as_echo "$supported" >&6; }
8035 if test "$supported" = "yes" ; then
8036 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8037 found="yes"
8038 fi
8039 fi
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055 xorg_testset_save_CFLAGS="$CFLAGS"
8056
8057 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8058 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8060 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8061 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8062 $as_echo_n "(cached) " >&6
8063 else
8064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8065 /* end confdefs.h. */
8066 int i;
8067 _ACEOF
8068 if ac_fn_c_try_compile "$LINENO"; then :
8069 xorg_cv_cc_flag_unknown_warning_option=yes
8070 else
8071 xorg_cv_cc_flag_unknown_warning_option=no
8072 fi
8073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8074 fi
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8076 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8077 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8078 CFLAGS="$xorg_testset_save_CFLAGS"
8079 fi
8080
8081 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8083 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8084 fi
8085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8087 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8088 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8089 $as_echo_n "(cached) " >&6
8090 else
8091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8092 /* end confdefs.h. */
8093 int i;
8094 _ACEOF
8095 if ac_fn_c_try_compile "$LINENO"; then :
8096 xorg_cv_cc_flag_unused_command_line_argument=yes
8097 else
8098 xorg_cv_cc_flag_unused_command_line_argument=no
8099 fi
8100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8101 fi
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8103 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8104 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8105 CFLAGS="$xorg_testset_save_CFLAGS"
8106 fi
8107
8108 found="no"
8109
8110 if test $found = "no" ; then
8111 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8112 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8113 fi
8114
8115 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8117 fi
8118
8119 CFLAGS="$CFLAGS -Werror=write-strings"
8120
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8122 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8123 cacheid=xorg_cv_cc_flag__Werror_write_strings
8124 if eval \${$cacheid+:} 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 int
8131 main ()
8132 {
8133
8134 ;
8135 return 0;
8136 }
8137 _ACEOF
8138 if ac_fn_c_try_link "$LINENO"; then :
8139 eval $cacheid=yes
8140 else
8141 eval $cacheid=no
8142 fi
8143 rm -f core conftest.err conftest.$ac_objext \
8144 conftest$ac_exeext conftest.$ac_ext
8145 fi
8146
8147
8148 CFLAGS="$xorg_testset_save_CFLAGS"
8149
8150 eval supported=\$$cacheid
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8152 $as_echo "$supported" >&6; }
8153 if test "$supported" = "yes" ; then
8154 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8155 found="yes"
8156 fi
8157 fi
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173 xorg_testset_save_CFLAGS="$CFLAGS"
8174
8175 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8176 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8178 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8179 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8180 $as_echo_n "(cached) " >&6
8181 else
8182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8183 /* end confdefs.h. */
8184 int i;
8185 _ACEOF
8186 if ac_fn_c_try_compile "$LINENO"; then :
8187 xorg_cv_cc_flag_unknown_warning_option=yes
8188 else
8189 xorg_cv_cc_flag_unknown_warning_option=no
8190 fi
8191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8192 fi
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8194 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8195 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8196 CFLAGS="$xorg_testset_save_CFLAGS"
8197 fi
8198
8199 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8200 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8201 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8202 fi
8203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8205 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8206 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8207 $as_echo_n "(cached) " >&6
8208 else
8209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8210 /* end confdefs.h. */
8211 int i;
8212 _ACEOF
8213 if ac_fn_c_try_compile "$LINENO"; then :
8214 xorg_cv_cc_flag_unused_command_line_argument=yes
8215 else
8216 xorg_cv_cc_flag_unused_command_line_argument=no
8217 fi
8218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8219 fi
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8221 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8222 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8223 CFLAGS="$xorg_testset_save_CFLAGS"
8224 fi
8225
8226 found="no"
8227
8228 if test $found = "no" ; then
8229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8230 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8231 fi
8232
8233 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8235 fi
8236
8237 CFLAGS="$CFLAGS -Werror=address"
8238
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8240 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8241 cacheid=xorg_cv_cc_flag__Werror_address
8242 if eval \${$cacheid+:} 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 int
8249 main ()
8250 {
8251
8252 ;
8253 return 0;
8254 }
8255 _ACEOF
8256 if ac_fn_c_try_link "$LINENO"; then :
8257 eval $cacheid=yes
8258 else
8259 eval $cacheid=no
8260 fi
8261 rm -f core conftest.err conftest.$ac_objext \
8262 conftest$ac_exeext conftest.$ac_ext
8263 fi
8264
8265
8266 CFLAGS="$xorg_testset_save_CFLAGS"
8267
8268 eval supported=\$$cacheid
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8270 $as_echo "$supported" >&6; }
8271 if test "$supported" = "yes" ; then
8272 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8273 found="yes"
8274 fi
8275 fi
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291 xorg_testset_save_CFLAGS="$CFLAGS"
8292
8293 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8294 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8296 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8297 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8298 $as_echo_n "(cached) " >&6
8299 else
8300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8301 /* end confdefs.h. */
8302 int i;
8303 _ACEOF
8304 if ac_fn_c_try_compile "$LINENO"; then :
8305 xorg_cv_cc_flag_unknown_warning_option=yes
8306 else
8307 xorg_cv_cc_flag_unknown_warning_option=no
8308 fi
8309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8310 fi
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8312 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8313 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8314 CFLAGS="$xorg_testset_save_CFLAGS"
8315 fi
8316
8317 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8319 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8320 fi
8321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8323 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8324 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8325 $as_echo_n "(cached) " >&6
8326 else
8327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8328 /* end confdefs.h. */
8329 int i;
8330 _ACEOF
8331 if ac_fn_c_try_compile "$LINENO"; then :
8332 xorg_cv_cc_flag_unused_command_line_argument=yes
8333 else
8334 xorg_cv_cc_flag_unused_command_line_argument=no
8335 fi
8336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8337 fi
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8339 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8340 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8341 CFLAGS="$xorg_testset_save_CFLAGS"
8342 fi
8343
8344 found="no"
8345
8346 if test $found = "no" ; then
8347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8348 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8349 fi
8350
8351 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8353 fi
8354
8355 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8356
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8358 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8359 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8360 if eval \${$cacheid+:} 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 int
8367 main ()
8368 {
8369
8370 ;
8371 return 0;
8372 }
8373 _ACEOF
8374 if ac_fn_c_try_link "$LINENO"; then :
8375 eval $cacheid=yes
8376 else
8377 eval $cacheid=no
8378 fi
8379 rm -f core conftest.err conftest.$ac_objext \
8380 conftest$ac_exeext conftest.$ac_ext
8381 fi
8382
8383
8384 CFLAGS="$xorg_testset_save_CFLAGS"
8385
8386 eval supported=\$$cacheid
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8388 $as_echo "$supported" >&6; }
8389 if test "$supported" = "yes" ; then
8390 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8391 found="yes"
8392 fi
8393 fi
8394
8395 if test $found = "no" ; then
8396 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8397 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8398 fi
8399
8400 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8402 fi
8403
8404 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8405
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8407 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8408 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8409 if eval \${$cacheid+:} false; then :
8410 $as_echo_n "(cached) " >&6
8411 else
8412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8413 /* end confdefs.h. */
8414 int i;
8415 int
8416 main ()
8417 {
8418
8419 ;
8420 return 0;
8421 }
8422 _ACEOF
8423 if ac_fn_c_try_link "$LINENO"; then :
8424 eval $cacheid=yes
8425 else
8426 eval $cacheid=no
8427 fi
8428 rm -f core conftest.err conftest.$ac_objext \
8429 conftest$ac_exeext conftest.$ac_ext
8430 fi
8431
8432
8433 CFLAGS="$xorg_testset_save_CFLAGS"
8434
8435 eval supported=\$$cacheid
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8437 $as_echo "$supported" >&6; }
8438 if test "$supported" = "yes" ; then
8439 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8440 found="yes"
8441 fi
8442 fi
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458 xorg_testset_save_CFLAGS="$CFLAGS"
8459
8460 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8461 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8463 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8464 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8465 $as_echo_n "(cached) " >&6
8466 else
8467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8468 /* end confdefs.h. */
8469 int i;
8470 _ACEOF
8471 if ac_fn_c_try_compile "$LINENO"; then :
8472 xorg_cv_cc_flag_unknown_warning_option=yes
8473 else
8474 xorg_cv_cc_flag_unknown_warning_option=no
8475 fi
8476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8477 fi
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8479 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8480 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8481 CFLAGS="$xorg_testset_save_CFLAGS"
8482 fi
8483
8484 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8486 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8487 fi
8488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8490 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8491 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8492 $as_echo_n "(cached) " >&6
8493 else
8494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8495 /* end confdefs.h. */
8496 int i;
8497 _ACEOF
8498 if ac_fn_c_try_compile "$LINENO"; then :
8499 xorg_cv_cc_flag_unused_command_line_argument=yes
8500 else
8501 xorg_cv_cc_flag_unused_command_line_argument=no
8502 fi
8503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8504 fi
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8506 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8507 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8508 CFLAGS="$xorg_testset_save_CFLAGS"
8509 fi
8510
8511 found="no"
8512
8513 if test $found = "no" ; then
8514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8515 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8516 fi
8517
8518 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8520 fi
8521
8522 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8523
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8525 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8526 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8527 if eval \${$cacheid+:} 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 int
8534 main ()
8535 {
8536
8537 ;
8538 return 0;
8539 }
8540 _ACEOF
8541 if ac_fn_c_try_link "$LINENO"; then :
8542 eval $cacheid=yes
8543 else
8544 eval $cacheid=no
8545 fi
8546 rm -f core conftest.err conftest.$ac_objext \
8547 conftest$ac_exeext conftest.$ac_ext
8548 fi
8549
8550
8551 CFLAGS="$xorg_testset_save_CFLAGS"
8552
8553 eval supported=\$$cacheid
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8555 $as_echo "$supported" >&6; }
8556 if test "$supported" = "yes" ; then
8557 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8558 found="yes"
8559 fi
8560 fi
8561
8562 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8563 else
8564 { $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
8565 $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;}
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579 xorg_testset_save_CFLAGS="$CFLAGS"
8580
8581 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8584 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8585 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8586 $as_echo_n "(cached) " >&6
8587 else
8588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8589 /* end confdefs.h. */
8590 int i;
8591 _ACEOF
8592 if ac_fn_c_try_compile "$LINENO"; then :
8593 xorg_cv_cc_flag_unknown_warning_option=yes
8594 else
8595 xorg_cv_cc_flag_unknown_warning_option=no
8596 fi
8597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8598 fi
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8600 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8601 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8602 CFLAGS="$xorg_testset_save_CFLAGS"
8603 fi
8604
8605 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8606 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8608 fi
8609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8611 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8612 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8613 $as_echo_n "(cached) " >&6
8614 else
8615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8616 /* end confdefs.h. */
8617 int i;
8618 _ACEOF
8619 if ac_fn_c_try_compile "$LINENO"; then :
8620 xorg_cv_cc_flag_unused_command_line_argument=yes
8621 else
8622 xorg_cv_cc_flag_unused_command_line_argument=no
8623 fi
8624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8625 fi
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8627 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8628 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8629 CFLAGS="$xorg_testset_save_CFLAGS"
8630 fi
8631
8632 found="no"
8633
8634 if test $found = "no" ; then
8635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8636 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8637 fi
8638
8639 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8641 fi
8642
8643 CFLAGS="$CFLAGS -Wimplicit"
8644
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8646 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8647 cacheid=xorg_cv_cc_flag__Wimplicit
8648 if eval \${$cacheid+:} 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 int
8655 main ()
8656 {
8657
8658 ;
8659 return 0;
8660 }
8661 _ACEOF
8662 if ac_fn_c_try_link "$LINENO"; then :
8663 eval $cacheid=yes
8664 else
8665 eval $cacheid=no
8666 fi
8667 rm -f core conftest.err conftest.$ac_objext \
8668 conftest$ac_exeext conftest.$ac_ext
8669 fi
8670
8671
8672 CFLAGS="$xorg_testset_save_CFLAGS"
8673
8674 eval supported=\$$cacheid
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8676 $as_echo "$supported" >&6; }
8677 if test "$supported" = "yes" ; then
8678 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8679 found="yes"
8680 fi
8681 fi
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697 xorg_testset_save_CFLAGS="$CFLAGS"
8698
8699 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8700 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8702 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8703 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8704 $as_echo_n "(cached) " >&6
8705 else
8706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8707 /* end confdefs.h. */
8708 int i;
8709 _ACEOF
8710 if ac_fn_c_try_compile "$LINENO"; then :
8711 xorg_cv_cc_flag_unknown_warning_option=yes
8712 else
8713 xorg_cv_cc_flag_unknown_warning_option=no
8714 fi
8715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8716 fi
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8718 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8719 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8720 CFLAGS="$xorg_testset_save_CFLAGS"
8721 fi
8722
8723 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8726 fi
8727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8729 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8730 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8731 $as_echo_n "(cached) " >&6
8732 else
8733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8734 /* end confdefs.h. */
8735 int i;
8736 _ACEOF
8737 if ac_fn_c_try_compile "$LINENO"; then :
8738 xorg_cv_cc_flag_unused_command_line_argument=yes
8739 else
8740 xorg_cv_cc_flag_unused_command_line_argument=no
8741 fi
8742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8743 fi
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8745 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8746 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8747 CFLAGS="$xorg_testset_save_CFLAGS"
8748 fi
8749
8750 found="no"
8751
8752 if test $found = "no" ; then
8753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8754 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8755 fi
8756
8757 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8759 fi
8760
8761 CFLAGS="$CFLAGS -Wnonnull"
8762
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8764 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8765 cacheid=xorg_cv_cc_flag__Wnonnull
8766 if eval \${$cacheid+:} 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 int
8773 main ()
8774 {
8775
8776 ;
8777 return 0;
8778 }
8779 _ACEOF
8780 if ac_fn_c_try_link "$LINENO"; then :
8781 eval $cacheid=yes
8782 else
8783 eval $cacheid=no
8784 fi
8785 rm -f core conftest.err conftest.$ac_objext \
8786 conftest$ac_exeext conftest.$ac_ext
8787 fi
8788
8789
8790 CFLAGS="$xorg_testset_save_CFLAGS"
8791
8792 eval supported=\$$cacheid
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8794 $as_echo "$supported" >&6; }
8795 if test "$supported" = "yes" ; then
8796 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8797 found="yes"
8798 fi
8799 fi
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815 xorg_testset_save_CFLAGS="$CFLAGS"
8816
8817 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8818 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8820 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8821 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8822 $as_echo_n "(cached) " >&6
8823 else
8824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8825 /* end confdefs.h. */
8826 int i;
8827 _ACEOF
8828 if ac_fn_c_try_compile "$LINENO"; then :
8829 xorg_cv_cc_flag_unknown_warning_option=yes
8830 else
8831 xorg_cv_cc_flag_unknown_warning_option=no
8832 fi
8833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8834 fi
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8836 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8837 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8838 CFLAGS="$xorg_testset_save_CFLAGS"
8839 fi
8840
8841 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8843 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8844 fi
8845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8847 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8848 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8849 $as_echo_n "(cached) " >&6
8850 else
8851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8852 /* end confdefs.h. */
8853 int i;
8854 _ACEOF
8855 if ac_fn_c_try_compile "$LINENO"; then :
8856 xorg_cv_cc_flag_unused_command_line_argument=yes
8857 else
8858 xorg_cv_cc_flag_unused_command_line_argument=no
8859 fi
8860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8861 fi
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8863 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8864 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8865 CFLAGS="$xorg_testset_save_CFLAGS"
8866 fi
8867
8868 found="no"
8869
8870 if test $found = "no" ; then
8871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8872 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8873 fi
8874
8875 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8877 fi
8878
8879 CFLAGS="$CFLAGS -Winit-self"
8880
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8882 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8883 cacheid=xorg_cv_cc_flag__Winit_self
8884 if eval \${$cacheid+:} 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 int
8891 main ()
8892 {
8893
8894 ;
8895 return 0;
8896 }
8897 _ACEOF
8898 if ac_fn_c_try_link "$LINENO"; then :
8899 eval $cacheid=yes
8900 else
8901 eval $cacheid=no
8902 fi
8903 rm -f core conftest.err conftest.$ac_objext \
8904 conftest$ac_exeext conftest.$ac_ext
8905 fi
8906
8907
8908 CFLAGS="$xorg_testset_save_CFLAGS"
8909
8910 eval supported=\$$cacheid
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8912 $as_echo "$supported" >&6; }
8913 if test "$supported" = "yes" ; then
8914 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8915 found="yes"
8916 fi
8917 fi
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933 xorg_testset_save_CFLAGS="$CFLAGS"
8934
8935 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8936 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8938 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8939 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8940 $as_echo_n "(cached) " >&6
8941 else
8942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8943 /* end confdefs.h. */
8944 int i;
8945 _ACEOF
8946 if ac_fn_c_try_compile "$LINENO"; then :
8947 xorg_cv_cc_flag_unknown_warning_option=yes
8948 else
8949 xorg_cv_cc_flag_unknown_warning_option=no
8950 fi
8951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8952 fi
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8954 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8955 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8956 CFLAGS="$xorg_testset_save_CFLAGS"
8957 fi
8958
8959 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8961 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8962 fi
8963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8965 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8966 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8967 $as_echo_n "(cached) " >&6
8968 else
8969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8970 /* end confdefs.h. */
8971 int i;
8972 _ACEOF
8973 if ac_fn_c_try_compile "$LINENO"; then :
8974 xorg_cv_cc_flag_unused_command_line_argument=yes
8975 else
8976 xorg_cv_cc_flag_unused_command_line_argument=no
8977 fi
8978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8979 fi
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8981 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8982 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8983 CFLAGS="$xorg_testset_save_CFLAGS"
8984 fi
8985
8986 found="no"
8987
8988 if test $found = "no" ; then
8989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8990 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8991 fi
8992
8993 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8995 fi
8996
8997 CFLAGS="$CFLAGS -Wmain"
8998
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9000 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
9001 cacheid=xorg_cv_cc_flag__Wmain
9002 if eval \${$cacheid+:} 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 int
9009 main ()
9010 {
9011
9012 ;
9013 return 0;
9014 }
9015 _ACEOF
9016 if ac_fn_c_try_link "$LINENO"; then :
9017 eval $cacheid=yes
9018 else
9019 eval $cacheid=no
9020 fi
9021 rm -f core conftest.err conftest.$ac_objext \
9022 conftest$ac_exeext conftest.$ac_ext
9023 fi
9024
9025
9026 CFLAGS="$xorg_testset_save_CFLAGS"
9027
9028 eval supported=\$$cacheid
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9030 $as_echo "$supported" >&6; }
9031 if test "$supported" = "yes" ; then
9032 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9033 found="yes"
9034 fi
9035 fi
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051 xorg_testset_save_CFLAGS="$CFLAGS"
9052
9053 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9054 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9056 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9057 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9058 $as_echo_n "(cached) " >&6
9059 else
9060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9061 /* end confdefs.h. */
9062 int i;
9063 _ACEOF
9064 if ac_fn_c_try_compile "$LINENO"; then :
9065 xorg_cv_cc_flag_unknown_warning_option=yes
9066 else
9067 xorg_cv_cc_flag_unknown_warning_option=no
9068 fi
9069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9070 fi
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9072 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9073 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9074 CFLAGS="$xorg_testset_save_CFLAGS"
9075 fi
9076
9077 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9080 fi
9081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9083 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9084 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9085 $as_echo_n "(cached) " >&6
9086 else
9087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9088 /* end confdefs.h. */
9089 int i;
9090 _ACEOF
9091 if ac_fn_c_try_compile "$LINENO"; then :
9092 xorg_cv_cc_flag_unused_command_line_argument=yes
9093 else
9094 xorg_cv_cc_flag_unused_command_line_argument=no
9095 fi
9096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9097 fi
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9099 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9100 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9101 CFLAGS="$xorg_testset_save_CFLAGS"
9102 fi
9103
9104 found="no"
9105
9106 if test $found = "no" ; then
9107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9108 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9109 fi
9110
9111 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9113 fi
9114
9115 CFLAGS="$CFLAGS -Wmissing-braces"
9116
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9118 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9119 cacheid=xorg_cv_cc_flag__Wmissing_braces
9120 if eval \${$cacheid+:} 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 int
9127 main ()
9128 {
9129
9130 ;
9131 return 0;
9132 }
9133 _ACEOF
9134 if ac_fn_c_try_link "$LINENO"; then :
9135 eval $cacheid=yes
9136 else
9137 eval $cacheid=no
9138 fi
9139 rm -f core conftest.err conftest.$ac_objext \
9140 conftest$ac_exeext conftest.$ac_ext
9141 fi
9142
9143
9144 CFLAGS="$xorg_testset_save_CFLAGS"
9145
9146 eval supported=\$$cacheid
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9148 $as_echo "$supported" >&6; }
9149 if test "$supported" = "yes" ; then
9150 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9151 found="yes"
9152 fi
9153 fi
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169 xorg_testset_save_CFLAGS="$CFLAGS"
9170
9171 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9172 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9174 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9175 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9176 $as_echo_n "(cached) " >&6
9177 else
9178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9179 /* end confdefs.h. */
9180 int i;
9181 _ACEOF
9182 if ac_fn_c_try_compile "$LINENO"; then :
9183 xorg_cv_cc_flag_unknown_warning_option=yes
9184 else
9185 xorg_cv_cc_flag_unknown_warning_option=no
9186 fi
9187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9188 fi
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9190 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9191 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9192 CFLAGS="$xorg_testset_save_CFLAGS"
9193 fi
9194
9195 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9198 fi
9199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9201 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9202 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9203 $as_echo_n "(cached) " >&6
9204 else
9205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9206 /* end confdefs.h. */
9207 int i;
9208 _ACEOF
9209 if ac_fn_c_try_compile "$LINENO"; then :
9210 xorg_cv_cc_flag_unused_command_line_argument=yes
9211 else
9212 xorg_cv_cc_flag_unused_command_line_argument=no
9213 fi
9214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9215 fi
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9217 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9218 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9219 CFLAGS="$xorg_testset_save_CFLAGS"
9220 fi
9221
9222 found="no"
9223
9224 if test $found = "no" ; then
9225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9227 fi
9228
9229 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9231 fi
9232
9233 CFLAGS="$CFLAGS -Wsequence-point"
9234
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9236 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9237 cacheid=xorg_cv_cc_flag__Wsequence_point
9238 if eval \${$cacheid+:} 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 int
9245 main ()
9246 {
9247
9248 ;
9249 return 0;
9250 }
9251 _ACEOF
9252 if ac_fn_c_try_link "$LINENO"; then :
9253 eval $cacheid=yes
9254 else
9255 eval $cacheid=no
9256 fi
9257 rm -f core conftest.err conftest.$ac_objext \
9258 conftest$ac_exeext conftest.$ac_ext
9259 fi
9260
9261
9262 CFLAGS="$xorg_testset_save_CFLAGS"
9263
9264 eval supported=\$$cacheid
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9266 $as_echo "$supported" >&6; }
9267 if test "$supported" = "yes" ; then
9268 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9269 found="yes"
9270 fi
9271 fi
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287 xorg_testset_save_CFLAGS="$CFLAGS"
9288
9289 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9290 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9292 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9293 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9294 $as_echo_n "(cached) " >&6
9295 else
9296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9297 /* end confdefs.h. */
9298 int i;
9299 _ACEOF
9300 if ac_fn_c_try_compile "$LINENO"; then :
9301 xorg_cv_cc_flag_unknown_warning_option=yes
9302 else
9303 xorg_cv_cc_flag_unknown_warning_option=no
9304 fi
9305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9306 fi
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9308 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9309 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9310 CFLAGS="$xorg_testset_save_CFLAGS"
9311 fi
9312
9313 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9315 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9316 fi
9317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9319 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9320 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9321 $as_echo_n "(cached) " >&6
9322 else
9323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9324 /* end confdefs.h. */
9325 int i;
9326 _ACEOF
9327 if ac_fn_c_try_compile "$LINENO"; then :
9328 xorg_cv_cc_flag_unused_command_line_argument=yes
9329 else
9330 xorg_cv_cc_flag_unused_command_line_argument=no
9331 fi
9332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9333 fi
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9335 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9336 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9337 CFLAGS="$xorg_testset_save_CFLAGS"
9338 fi
9339
9340 found="no"
9341
9342 if test $found = "no" ; then
9343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9344 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9345 fi
9346
9347 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9349 fi
9350
9351 CFLAGS="$CFLAGS -Wreturn-type"
9352
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9354 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9355 cacheid=xorg_cv_cc_flag__Wreturn_type
9356 if eval \${$cacheid+:} 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 int
9363 main ()
9364 {
9365
9366 ;
9367 return 0;
9368 }
9369 _ACEOF
9370 if ac_fn_c_try_link "$LINENO"; then :
9371 eval $cacheid=yes
9372 else
9373 eval $cacheid=no
9374 fi
9375 rm -f core conftest.err conftest.$ac_objext \
9376 conftest$ac_exeext conftest.$ac_ext
9377 fi
9378
9379
9380 CFLAGS="$xorg_testset_save_CFLAGS"
9381
9382 eval supported=\$$cacheid
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9384 $as_echo "$supported" >&6; }
9385 if test "$supported" = "yes" ; then
9386 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9387 found="yes"
9388 fi
9389 fi
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405 xorg_testset_save_CFLAGS="$CFLAGS"
9406
9407 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9408 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9410 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9411 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9412 $as_echo_n "(cached) " >&6
9413 else
9414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9415 /* end confdefs.h. */
9416 int i;
9417 _ACEOF
9418 if ac_fn_c_try_compile "$LINENO"; then :
9419 xorg_cv_cc_flag_unknown_warning_option=yes
9420 else
9421 xorg_cv_cc_flag_unknown_warning_option=no
9422 fi
9423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9424 fi
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9426 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9427 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9428 CFLAGS="$xorg_testset_save_CFLAGS"
9429 fi
9430
9431 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9433 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9434 fi
9435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9437 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9438 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9439 $as_echo_n "(cached) " >&6
9440 else
9441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9442 /* end confdefs.h. */
9443 int i;
9444 _ACEOF
9445 if ac_fn_c_try_compile "$LINENO"; then :
9446 xorg_cv_cc_flag_unused_command_line_argument=yes
9447 else
9448 xorg_cv_cc_flag_unused_command_line_argument=no
9449 fi
9450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9451 fi
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9453 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9454 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9455 CFLAGS="$xorg_testset_save_CFLAGS"
9456 fi
9457
9458 found="no"
9459
9460 if test $found = "no" ; then
9461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9462 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9463 fi
9464
9465 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9467 fi
9468
9469 CFLAGS="$CFLAGS -Wtrigraphs"
9470
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9472 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9473 cacheid=xorg_cv_cc_flag__Wtrigraphs
9474 if eval \${$cacheid+:} 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 int
9481 main ()
9482 {
9483
9484 ;
9485 return 0;
9486 }
9487 _ACEOF
9488 if ac_fn_c_try_link "$LINENO"; then :
9489 eval $cacheid=yes
9490 else
9491 eval $cacheid=no
9492 fi
9493 rm -f core conftest.err conftest.$ac_objext \
9494 conftest$ac_exeext conftest.$ac_ext
9495 fi
9496
9497
9498 CFLAGS="$xorg_testset_save_CFLAGS"
9499
9500 eval supported=\$$cacheid
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9502 $as_echo "$supported" >&6; }
9503 if test "$supported" = "yes" ; then
9504 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9505 found="yes"
9506 fi
9507 fi
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523 xorg_testset_save_CFLAGS="$CFLAGS"
9524
9525 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9526 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9528 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9529 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9530 $as_echo_n "(cached) " >&6
9531 else
9532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9533 /* end confdefs.h. */
9534 int i;
9535 _ACEOF
9536 if ac_fn_c_try_compile "$LINENO"; then :
9537 xorg_cv_cc_flag_unknown_warning_option=yes
9538 else
9539 xorg_cv_cc_flag_unknown_warning_option=no
9540 fi
9541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9542 fi
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9544 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9545 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9546 CFLAGS="$xorg_testset_save_CFLAGS"
9547 fi
9548
9549 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9551 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9552 fi
9553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9555 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9556 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9557 $as_echo_n "(cached) " >&6
9558 else
9559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9560 /* end confdefs.h. */
9561 int i;
9562 _ACEOF
9563 if ac_fn_c_try_compile "$LINENO"; then :
9564 xorg_cv_cc_flag_unused_command_line_argument=yes
9565 else
9566 xorg_cv_cc_flag_unused_command_line_argument=no
9567 fi
9568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9569 fi
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9571 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9572 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9573 CFLAGS="$xorg_testset_save_CFLAGS"
9574 fi
9575
9576 found="no"
9577
9578 if test $found = "no" ; then
9579 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9580 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9581 fi
9582
9583 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9585 fi
9586
9587 CFLAGS="$CFLAGS -Warray-bounds"
9588
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9590 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9591 cacheid=xorg_cv_cc_flag__Warray_bounds
9592 if eval \${$cacheid+:} 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 int
9599 main ()
9600 {
9601
9602 ;
9603 return 0;
9604 }
9605 _ACEOF
9606 if ac_fn_c_try_link "$LINENO"; then :
9607 eval $cacheid=yes
9608 else
9609 eval $cacheid=no
9610 fi
9611 rm -f core conftest.err conftest.$ac_objext \
9612 conftest$ac_exeext conftest.$ac_ext
9613 fi
9614
9615
9616 CFLAGS="$xorg_testset_save_CFLAGS"
9617
9618 eval supported=\$$cacheid
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9620 $as_echo "$supported" >&6; }
9621 if test "$supported" = "yes" ; then
9622 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9623 found="yes"
9624 fi
9625 fi
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641 xorg_testset_save_CFLAGS="$CFLAGS"
9642
9643 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9644 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9646 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9647 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9648 $as_echo_n "(cached) " >&6
9649 else
9650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9651 /* end confdefs.h. */
9652 int i;
9653 _ACEOF
9654 if ac_fn_c_try_compile "$LINENO"; then :
9655 xorg_cv_cc_flag_unknown_warning_option=yes
9656 else
9657 xorg_cv_cc_flag_unknown_warning_option=no
9658 fi
9659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9660 fi
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9662 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9663 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9664 CFLAGS="$xorg_testset_save_CFLAGS"
9665 fi
9666
9667 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9669 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9670 fi
9671 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9673 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9674 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9675 $as_echo_n "(cached) " >&6
9676 else
9677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9678 /* end confdefs.h. */
9679 int i;
9680 _ACEOF
9681 if ac_fn_c_try_compile "$LINENO"; then :
9682 xorg_cv_cc_flag_unused_command_line_argument=yes
9683 else
9684 xorg_cv_cc_flag_unused_command_line_argument=no
9685 fi
9686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9687 fi
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9689 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9690 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9691 CFLAGS="$xorg_testset_save_CFLAGS"
9692 fi
9693
9694 found="no"
9695
9696 if test $found = "no" ; then
9697 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9698 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9699 fi
9700
9701 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9703 fi
9704
9705 CFLAGS="$CFLAGS -Wwrite-strings"
9706
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9708 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9709 cacheid=xorg_cv_cc_flag__Wwrite_strings
9710 if eval \${$cacheid+:} 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 int
9717 main ()
9718 {
9719
9720 ;
9721 return 0;
9722 }
9723 _ACEOF
9724 if ac_fn_c_try_link "$LINENO"; then :
9725 eval $cacheid=yes
9726 else
9727 eval $cacheid=no
9728 fi
9729 rm -f core conftest.err conftest.$ac_objext \
9730 conftest$ac_exeext conftest.$ac_ext
9731 fi
9732
9733
9734 CFLAGS="$xorg_testset_save_CFLAGS"
9735
9736 eval supported=\$$cacheid
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9738 $as_echo "$supported" >&6; }
9739 if test "$supported" = "yes" ; then
9740 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9741 found="yes"
9742 fi
9743 fi
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759 xorg_testset_save_CFLAGS="$CFLAGS"
9760
9761 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9762 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9764 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9765 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9766 $as_echo_n "(cached) " >&6
9767 else
9768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9769 /* end confdefs.h. */
9770 int i;
9771 _ACEOF
9772 if ac_fn_c_try_compile "$LINENO"; then :
9773 xorg_cv_cc_flag_unknown_warning_option=yes
9774 else
9775 xorg_cv_cc_flag_unknown_warning_option=no
9776 fi
9777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9778 fi
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9780 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9781 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9782 CFLAGS="$xorg_testset_save_CFLAGS"
9783 fi
9784
9785 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9787 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9788 fi
9789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9791 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9792 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9793 $as_echo_n "(cached) " >&6
9794 else
9795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9796 /* end confdefs.h. */
9797 int i;
9798 _ACEOF
9799 if ac_fn_c_try_compile "$LINENO"; then :
9800 xorg_cv_cc_flag_unused_command_line_argument=yes
9801 else
9802 xorg_cv_cc_flag_unused_command_line_argument=no
9803 fi
9804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9805 fi
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9807 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9808 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9809 CFLAGS="$xorg_testset_save_CFLAGS"
9810 fi
9811
9812 found="no"
9813
9814 if test $found = "no" ; then
9815 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9816 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9817 fi
9818
9819 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9821 fi
9822
9823 CFLAGS="$CFLAGS -Waddress"
9824
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9826 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9827 cacheid=xorg_cv_cc_flag__Waddress
9828 if eval \${$cacheid+:} 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 int
9835 main ()
9836 {
9837
9838 ;
9839 return 0;
9840 }
9841 _ACEOF
9842 if ac_fn_c_try_link "$LINENO"; then :
9843 eval $cacheid=yes
9844 else
9845 eval $cacheid=no
9846 fi
9847 rm -f core conftest.err conftest.$ac_objext \
9848 conftest$ac_exeext conftest.$ac_ext
9849 fi
9850
9851
9852 CFLAGS="$xorg_testset_save_CFLAGS"
9853
9854 eval supported=\$$cacheid
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9856 $as_echo "$supported" >&6; }
9857 if test "$supported" = "yes" ; then
9858 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9859 found="yes"
9860 fi
9861 fi
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877 xorg_testset_save_CFLAGS="$CFLAGS"
9878
9879 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9880 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9882 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9883 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9884 $as_echo_n "(cached) " >&6
9885 else
9886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9887 /* end confdefs.h. */
9888 int i;
9889 _ACEOF
9890 if ac_fn_c_try_compile "$LINENO"; then :
9891 xorg_cv_cc_flag_unknown_warning_option=yes
9892 else
9893 xorg_cv_cc_flag_unknown_warning_option=no
9894 fi
9895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9896 fi
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9898 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9899 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9900 CFLAGS="$xorg_testset_save_CFLAGS"
9901 fi
9902
9903 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9904 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9905 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9906 fi
9907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9909 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9910 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9911 $as_echo_n "(cached) " >&6
9912 else
9913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9914 /* end confdefs.h. */
9915 int i;
9916 _ACEOF
9917 if ac_fn_c_try_compile "$LINENO"; then :
9918 xorg_cv_cc_flag_unused_command_line_argument=yes
9919 else
9920 xorg_cv_cc_flag_unused_command_line_argument=no
9921 fi
9922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9923 fi
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9925 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9926 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9927 CFLAGS="$xorg_testset_save_CFLAGS"
9928 fi
9929
9930 found="no"
9931
9932 if test $found = "no" ; then
9933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9934 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9935 fi
9936
9937 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9939 fi
9940
9941 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9942
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9944 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9945 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9946 if eval \${$cacheid+:} 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 int
9953 main ()
9954 {
9955
9956 ;
9957 return 0;
9958 }
9959 _ACEOF
9960 if ac_fn_c_try_link "$LINENO"; then :
9961 eval $cacheid=yes
9962 else
9963 eval $cacheid=no
9964 fi
9965 rm -f core conftest.err conftest.$ac_objext \
9966 conftest$ac_exeext conftest.$ac_ext
9967 fi
9968
9969
9970 CFLAGS="$xorg_testset_save_CFLAGS"
9971
9972 eval supported=\$$cacheid
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9974 $as_echo "$supported" >&6; }
9975 if test "$supported" = "yes" ; then
9976 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9977 found="yes"
9978 fi
9979 fi
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995 xorg_testset_save_CFLAGS="$CFLAGS"
9996
9997 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9998 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10000 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10001 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10002 $as_echo_n "(cached) " >&6
10003 else
10004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10005 /* end confdefs.h. */
10006 int i;
10007 _ACEOF
10008 if ac_fn_c_try_compile "$LINENO"; then :
10009 xorg_cv_cc_flag_unknown_warning_option=yes
10010 else
10011 xorg_cv_cc_flag_unknown_warning_option=no
10012 fi
10013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10014 fi
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10016 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10017 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10018 CFLAGS="$xorg_testset_save_CFLAGS"
10019 fi
10020
10021 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10023 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10024 fi
10025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10027 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10028 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10029 $as_echo_n "(cached) " >&6
10030 else
10031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10032 /* end confdefs.h. */
10033 int i;
10034 _ACEOF
10035 if ac_fn_c_try_compile "$LINENO"; then :
10036 xorg_cv_cc_flag_unused_command_line_argument=yes
10037 else
10038 xorg_cv_cc_flag_unused_command_line_argument=no
10039 fi
10040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10041 fi
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10043 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10044 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10045 CFLAGS="$xorg_testset_save_CFLAGS"
10046 fi
10047
10048 found="no"
10049
10050 if test $found = "no" ; then
10051 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10052 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10053 fi
10054
10055 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10056 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10057 fi
10058
10059 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10060
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10062 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10063 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10064 if eval \${$cacheid+:} 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 int
10071 main ()
10072 {
10073
10074 ;
10075 return 0;
10076 }
10077 _ACEOF
10078 if ac_fn_c_try_link "$LINENO"; then :
10079 eval $cacheid=yes
10080 else
10081 eval $cacheid=no
10082 fi
10083 rm -f core conftest.err conftest.$ac_objext \
10084 conftest$ac_exeext conftest.$ac_ext
10085 fi
10086
10087
10088 CFLAGS="$xorg_testset_save_CFLAGS"
10089
10090 eval supported=\$$cacheid
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10092 $as_echo "$supported" >&6; }
10093 if test "$supported" = "yes" ; then
10094 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10095 found="yes"
10096 fi
10097 fi
10098
10099
10100 fi
10101
10102
10103
10104
10105
10106
10107
10108 CWARNFLAGS="$BASE_CFLAGS"
10109 if test "x$GCC" = xyes ; then
10110 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10111 fi
10112
10113
10114
10115
10116
10117
10118
10119
10120 # Check whether --enable-strict-compilation was given.
10121 if test "${enable_strict_compilation+set}" = set; then :
10122 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10123 else
10124 STRICT_COMPILE=no
10125 fi
10126
10127
10128
10129
10130
10131
10132 STRICT_CFLAGS=""
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146 xorg_testset_save_CFLAGS="$CFLAGS"
10147
10148 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10149 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10151 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10152 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10153 $as_echo_n "(cached) " >&6
10154 else
10155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10156 /* end confdefs.h. */
10157 int i;
10158 _ACEOF
10159 if ac_fn_c_try_compile "$LINENO"; then :
10160 xorg_cv_cc_flag_unknown_warning_option=yes
10161 else
10162 xorg_cv_cc_flag_unknown_warning_option=no
10163 fi
10164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10165 fi
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10167 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10168 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10169 CFLAGS="$xorg_testset_save_CFLAGS"
10170 fi
10171
10172 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10174 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10175 fi
10176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10178 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10179 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10180 $as_echo_n "(cached) " >&6
10181 else
10182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10183 /* end confdefs.h. */
10184 int i;
10185 _ACEOF
10186 if ac_fn_c_try_compile "$LINENO"; then :
10187 xorg_cv_cc_flag_unused_command_line_argument=yes
10188 else
10189 xorg_cv_cc_flag_unused_command_line_argument=no
10190 fi
10191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10192 fi
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10194 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10195 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10196 CFLAGS="$xorg_testset_save_CFLAGS"
10197 fi
10198
10199 found="no"
10200
10201 if test $found = "no" ; then
10202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10204 fi
10205
10206 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10208 fi
10209
10210 CFLAGS="$CFLAGS -pedantic"
10211
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10213 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10214 cacheid=xorg_cv_cc_flag__pedantic
10215 if eval \${$cacheid+:} 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 int
10222 main ()
10223 {
10224
10225 ;
10226 return 0;
10227 }
10228 _ACEOF
10229 if ac_fn_c_try_link "$LINENO"; then :
10230 eval $cacheid=yes
10231 else
10232 eval $cacheid=no
10233 fi
10234 rm -f core conftest.err conftest.$ac_objext \
10235 conftest$ac_exeext conftest.$ac_ext
10236 fi
10237
10238
10239 CFLAGS="$xorg_testset_save_CFLAGS"
10240
10241 eval supported=\$$cacheid
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10243 $as_echo "$supported" >&6; }
10244 if test "$supported" = "yes" ; then
10245 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10246 found="yes"
10247 fi
10248 fi
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264 xorg_testset_save_CFLAGS="$CFLAGS"
10265
10266 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10267 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10269 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10270 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10271 $as_echo_n "(cached) " >&6
10272 else
10273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10274 /* end confdefs.h. */
10275 int i;
10276 _ACEOF
10277 if ac_fn_c_try_compile "$LINENO"; then :
10278 xorg_cv_cc_flag_unknown_warning_option=yes
10279 else
10280 xorg_cv_cc_flag_unknown_warning_option=no
10281 fi
10282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10283 fi
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10285 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10286 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10287 CFLAGS="$xorg_testset_save_CFLAGS"
10288 fi
10289
10290 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10291 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10292 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10293 fi
10294 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10296 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10297 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10298 $as_echo_n "(cached) " >&6
10299 else
10300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10301 /* end confdefs.h. */
10302 int i;
10303 _ACEOF
10304 if ac_fn_c_try_compile "$LINENO"; then :
10305 xorg_cv_cc_flag_unused_command_line_argument=yes
10306 else
10307 xorg_cv_cc_flag_unused_command_line_argument=no
10308 fi
10309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10310 fi
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10312 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10313 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10314 CFLAGS="$xorg_testset_save_CFLAGS"
10315 fi
10316
10317 found="no"
10318
10319 if test $found = "no" ; then
10320 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10321 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10322 fi
10323
10324 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10326 fi
10327
10328 CFLAGS="$CFLAGS -Werror"
10329
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10331 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10332 cacheid=xorg_cv_cc_flag__Werror
10333 if eval \${$cacheid+:} 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 int
10340 main ()
10341 {
10342
10343 ;
10344 return 0;
10345 }
10346 _ACEOF
10347 if ac_fn_c_try_link "$LINENO"; then :
10348 eval $cacheid=yes
10349 else
10350 eval $cacheid=no
10351 fi
10352 rm -f core conftest.err conftest.$ac_objext \
10353 conftest$ac_exeext conftest.$ac_ext
10354 fi
10355
10356
10357 CFLAGS="$xorg_testset_save_CFLAGS"
10358
10359 eval supported=\$$cacheid
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10361 $as_echo "$supported" >&6; }
10362 if test "$supported" = "yes" ; then
10363 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10364 found="yes"
10365 fi
10366 fi
10367
10368 if test $found = "no" ; then
10369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10370 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10371 fi
10372
10373 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10375 fi
10376
10377 CFLAGS="$CFLAGS -errwarn"
10378
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10380 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10381 cacheid=xorg_cv_cc_flag__errwarn
10382 if eval \${$cacheid+:} false; then :
10383 $as_echo_n "(cached) " >&6
10384 else
10385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10386 /* end confdefs.h. */
10387 int i;
10388 int
10389 main ()
10390 {
10391
10392 ;
10393 return 0;
10394 }
10395 _ACEOF
10396 if ac_fn_c_try_link "$LINENO"; then :
10397 eval $cacheid=yes
10398 else
10399 eval $cacheid=no
10400 fi
10401 rm -f core conftest.err conftest.$ac_objext \
10402 conftest$ac_exeext conftest.$ac_ext
10403 fi
10404
10405
10406 CFLAGS="$xorg_testset_save_CFLAGS"
10407
10408 eval supported=\$$cacheid
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10410 $as_echo "$supported" >&6; }
10411 if test "$supported" = "yes" ; then
10412 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10413 found="yes"
10414 fi
10415 fi
10416
10417
10418
10419 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10420 # activate it with -Werror, so we add it here explicitly.
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434 xorg_testset_save_CFLAGS="$CFLAGS"
10435
10436 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10437 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10439 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10440 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10441 $as_echo_n "(cached) " >&6
10442 else
10443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10444 /* end confdefs.h. */
10445 int i;
10446 _ACEOF
10447 if ac_fn_c_try_compile "$LINENO"; then :
10448 xorg_cv_cc_flag_unknown_warning_option=yes
10449 else
10450 xorg_cv_cc_flag_unknown_warning_option=no
10451 fi
10452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10453 fi
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10455 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10456 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10457 CFLAGS="$xorg_testset_save_CFLAGS"
10458 fi
10459
10460 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10462 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10463 fi
10464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10466 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10467 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10468 $as_echo_n "(cached) " >&6
10469 else
10470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10471 /* end confdefs.h. */
10472 int i;
10473 _ACEOF
10474 if ac_fn_c_try_compile "$LINENO"; then :
10475 xorg_cv_cc_flag_unused_command_line_argument=yes
10476 else
10477 xorg_cv_cc_flag_unused_command_line_argument=no
10478 fi
10479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10480 fi
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10482 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10483 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10484 CFLAGS="$xorg_testset_save_CFLAGS"
10485 fi
10486
10487 found="no"
10488
10489 if test $found = "no" ; then
10490 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10491 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10492 fi
10493
10494 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10495 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10496 fi
10497
10498 CFLAGS="$CFLAGS -Werror=attributes"
10499
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10501 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10502 cacheid=xorg_cv_cc_flag__Werror_attributes
10503 if eval \${$cacheid+:} 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 int
10510 main ()
10511 {
10512
10513 ;
10514 return 0;
10515 }
10516 _ACEOF
10517 if ac_fn_c_try_link "$LINENO"; then :
10518 eval $cacheid=yes
10519 else
10520 eval $cacheid=no
10521 fi
10522 rm -f core conftest.err conftest.$ac_objext \
10523 conftest$ac_exeext conftest.$ac_ext
10524 fi
10525
10526
10527 CFLAGS="$xorg_testset_save_CFLAGS"
10528
10529 eval supported=\$$cacheid
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10531 $as_echo "$supported" >&6; }
10532 if test "$supported" = "yes" ; then
10533 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10534 found="yes"
10535 fi
10536 fi
10537
10538
10539
10540 if test "x$STRICT_COMPILE" = "xyes"; then
10541 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10542 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10543 fi
10544
10545
10546
10547
10548
10549
10550 cat >>confdefs.h <<_ACEOF
10551 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10552 _ACEOF
10553
10554 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10555 if test "x$PVM" = "x"; then
10556 PVM="0"
10557 fi
10558
10559 cat >>confdefs.h <<_ACEOF
10560 #define PACKAGE_VERSION_MINOR $PVM
10561 _ACEOF
10562
10563 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10564 if test "x$PVP" = "x"; then
10565 PVP="0"
10566 fi
10567
10568 cat >>confdefs.h <<_ACEOF
10569 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10570 _ACEOF
10571
10572
10573
10574 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10575 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10576 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10577 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10578
10579
10580
10581
10582 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10583 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10584 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10585 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10586 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10587
10588
10589
10590
10591
10592
10593 if test x$APP_MAN_SUFFIX = x ; then
10594 APP_MAN_SUFFIX=1
10595 fi
10596 if test x$APP_MAN_DIR = x ; then
10597 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10598 fi
10599
10600 if test x$LIB_MAN_SUFFIX = x ; then
10601 LIB_MAN_SUFFIX=3
10602 fi
10603 if test x$LIB_MAN_DIR = x ; then
10604 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10605 fi
10606
10607 if test x$FILE_MAN_SUFFIX = x ; then
10608 case $host_os in
10609 solaris*) FILE_MAN_SUFFIX=4 ;;
10610 *) FILE_MAN_SUFFIX=5 ;;
10611 esac
10612 fi
10613 if test x$FILE_MAN_DIR = x ; then
10614 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10615 fi
10616
10617 if test x$MISC_MAN_SUFFIX = x ; then
10618 case $host_os in
10619 solaris*) MISC_MAN_SUFFIX=5 ;;
10620 *) MISC_MAN_SUFFIX=7 ;;
10621 esac
10622 fi
10623 if test x$MISC_MAN_DIR = x ; then
10624 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10625 fi
10626
10627 if test x$DRIVER_MAN_SUFFIX = x ; then
10628 case $host_os in
10629 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10630 *) DRIVER_MAN_SUFFIX=4 ;;
10631 esac
10632 fi
10633 if test x$DRIVER_MAN_DIR = x ; then
10634 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10635 fi
10636
10637 if test x$ADMIN_MAN_SUFFIX = x ; then
10638 case $host_os in
10639 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10640 *) ADMIN_MAN_SUFFIX=8 ;;
10641 esac
10642 fi
10643 if test x$ADMIN_MAN_DIR = x ; then
10644 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10645 fi
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661 XORG_MAN_PAGE="X Version 11"
10662
10663 MAN_SUBSTS="\
10664 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10665 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10666 -e 's|__xservername__|Xorg|g' \
10667 -e 's|__xconfigfile__|xorg.conf|g' \
10668 -e 's|__projectroot__|\$(prefix)|g' \
10669 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10670 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10671 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10672 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10673 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10674 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10675 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10676
10677
10678
10679 # Check whether --enable-silent-rules was given.
10680 if test "${enable_silent_rules+set}" = set; then :
10681 enableval=$enable_silent_rules;
10682 fi
10683
10684 case $enable_silent_rules in
10685 yes) AM_DEFAULT_VERBOSITY=0;;
10686 no) AM_DEFAULT_VERBOSITY=1;;
10687 *) AM_DEFAULT_VERBOSITY=0;;
10688 esac
10689 am_make=${MAKE-make}
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10691 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10692 if ${am_cv_make_support_nested_variables+:} false; then :
10693 $as_echo_n "(cached) " >&6
10694 else
10695 if $as_echo 'TRUE=$(BAR$(V))
10696 BAR0=false
10697 BAR1=true
10698 V=1
10699 am__doit:
10700 @$(TRUE)
10701 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10702 am_cv_make_support_nested_variables=yes
10703 else
10704 am_cv_make_support_nested_variables=no
10705 fi
10706 fi
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10708 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10709 if test $am_cv_make_support_nested_variables = yes; then
10710 AM_V='$(V)'
10711 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10712 else
10713 AM_V=$AM_DEFAULT_VERBOSITY
10714 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10715 fi
10716 AM_BACKSLASH='\'
10717
10718
10719
10720 # Initialize libtool
10721 # Check whether --enable-static was given.
10722 if test "${enable_static+set}" = set; then :
10723 enableval=$enable_static; p=${PACKAGE-default}
10724 case $enableval in
10725 yes) enable_static=yes ;;
10726 no) enable_static=no ;;
10727 *)
10728 enable_static=no
10729 # Look at the argument we got. We use all the common list separators.
10730 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10731 for pkg in $enableval; do
10732 IFS=$lt_save_ifs
10733 if test "X$pkg" = "X$p"; then
10734 enable_static=yes
10735 fi
10736 done
10737 IFS=$lt_save_ifs
10738 ;;
10739 esac
10740 else
10741 enable_static=no
10742 fi
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752 case `pwd` in
10753 *\ * | *\ *)
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10755 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10756 esac
10757
10758
10759
10760 macro_version='2.4.6'
10761 macro_revision='2.4.6'
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775 ltmain=$ac_aux_dir/ltmain.sh
10776
10777 # Backslashify metacharacters that are still active within
10778 # double-quoted strings.
10779 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10780
10781 # Same as above, but do not quote variable references.
10782 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10783
10784 # Sed substitution to delay expansion of an escaped shell variable in a
10785 # double_quote_subst'ed string.
10786 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10787
10788 # Sed substitution to delay expansion of an escaped single quote.
10789 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10790
10791 # Sed substitution to avoid accidental globbing in evaled expressions
10792 no_glob_subst='s/\*/\\\*/g'
10793
10794 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10795 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10796 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10797
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10799 $as_echo_n "checking how to print strings... " >&6; }
10800 # Test print first, because it will be a builtin if present.
10801 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10802 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10803 ECHO='print -r --'
10804 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10805 ECHO='printf %s\n'
10806 else
10807 # Use this function as a fallback that always works.
10808 func_fallback_echo ()
10809 {
10810 eval 'cat <<_LTECHO_EOF
10811 $1
10812 _LTECHO_EOF'
10813 }
10814 ECHO='func_fallback_echo'
10815 fi
10816
10817 # func_echo_all arg...
10818 # Invoke $ECHO with all args, space-separated.
10819 func_echo_all ()
10820 {
10821 $ECHO ""
10822 }
10823
10824 case $ECHO in
10825 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10826 $as_echo "printf" >&6; } ;;
10827 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10828 $as_echo "print -r" >&6; } ;;
10829 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10830 $as_echo "cat" >&6; } ;;
10831 esac
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10847 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
10848 if ${ac_cv_path_SED+:} false; then :
10849 $as_echo_n "(cached) " >&6
10850 else
10851 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10852 for ac_i in 1 2 3 4 5 6 7; do
10853 ac_script="$ac_script$as_nl$ac_script"
10854 done
10855 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10856 { ac_script=; unset ac_script;}
10857 if test -z "$SED"; then
10858 ac_path_SED_found=false
10859 # Loop through the user's path and test for each of PROGNAME-LIST
10860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10861 for as_dir in $PATH
10862 do
10863 IFS=$as_save_IFS
10864 test -z "$as_dir" && as_dir=.
10865 for ac_prog in sed gsed; do
10866 for ac_exec_ext in '' $ac_executable_extensions; do
10867 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10868 as_fn_executable_p "$ac_path_SED" || continue
10869 # Check for GNU ac_path_SED and select it if it is found.
10870 # Check for GNU $ac_path_SED
10871 case `"$ac_path_SED" --version 2>&1` in
10872 *GNU*)
10873 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10874 *)
10875 ac_count=0
10876 $as_echo_n 0123456789 >"conftest.in"
10877 while :
10878 do
10879 cat "conftest.in" "conftest.in" >"conftest.tmp"
10880 mv "conftest.tmp" "conftest.in"
10881 cp "conftest.in" "conftest.nl"
10882 $as_echo '' >> "conftest.nl"
10883 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10884 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10885 as_fn_arith $ac_count + 1 && ac_count=$as_val
10886 if test $ac_count -gt ${ac_path_SED_max-0}; then
10887 # Best one so far, save it but keep looking for a better one
10888 ac_cv_path_SED="$ac_path_SED"
10889 ac_path_SED_max=$ac_count
10890 fi
10891 # 10*(2^10) chars as input seems more than enough
10892 test $ac_count -gt 10 && break
10893 done
10894 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10895 esac
10896
10897 $ac_path_SED_found && break 3
10898 done
10899 done
10900 done
10901 IFS=$as_save_IFS
10902 if test -z "$ac_cv_path_SED"; then
10903 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10904 fi
10905 else
10906 ac_cv_path_SED=$SED
10907 fi
10908
10909 fi
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10911 $as_echo "$ac_cv_path_SED" >&6; }
10912 SED="$ac_cv_path_SED"
10913 rm -f conftest.sed
10914
10915 test -z "$SED" && SED=sed
10916 Xsed="$SED -e 1s/^X//"
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10929 $as_echo_n "checking for fgrep... " >&6; }
10930 if ${ac_cv_path_FGREP+:} false; then :
10931 $as_echo_n "(cached) " >&6
10932 else
10933 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10934 then ac_cv_path_FGREP="$GREP -F"
10935 else
10936 if test -z "$FGREP"; then
10937 ac_path_FGREP_found=false
10938 # Loop through the user's path and test for each of PROGNAME-LIST
10939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10940 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10941 do
10942 IFS=$as_save_IFS
10943 test -z "$as_dir" && as_dir=.
10944 for ac_prog in fgrep; do
10945 for ac_exec_ext in '' $ac_executable_extensions; do
10946 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10947 as_fn_executable_p "$ac_path_FGREP" || continue
10948 # Check for GNU ac_path_FGREP and select it if it is found.
10949 # Check for GNU $ac_path_FGREP
10950 case `"$ac_path_FGREP" --version 2>&1` in
10951 *GNU*)
10952 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10953 *)
10954 ac_count=0
10955 $as_echo_n 0123456789 >"conftest.in"
10956 while :
10957 do
10958 cat "conftest.in" "conftest.in" >"conftest.tmp"
10959 mv "conftest.tmp" "conftest.in"
10960 cp "conftest.in" "conftest.nl"
10961 $as_echo 'FGREP' >> "conftest.nl"
10962 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10963 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10964 as_fn_arith $ac_count + 1 && ac_count=$as_val
10965 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10966 # Best one so far, save it but keep looking for a better one
10967 ac_cv_path_FGREP="$ac_path_FGREP"
10968 ac_path_FGREP_max=$ac_count
10969 fi
10970 # 10*(2^10) chars as input seems more than enough
10971 test $ac_count -gt 10 && break
10972 done
10973 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10974 esac
10975
10976 $ac_path_FGREP_found && break 3
10977 done
10978 done
10979 done
10980 IFS=$as_save_IFS
10981 if test -z "$ac_cv_path_FGREP"; then
10982 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10983 fi
10984 else
10985 ac_cv_path_FGREP=$FGREP
10986 fi
10987
10988 fi
10989 fi
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
10991 $as_echo "$ac_cv_path_FGREP" >&6; }
10992 FGREP="$ac_cv_path_FGREP"
10993
10994
10995 test -z "$GREP" && GREP=grep
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015 # Check whether --with-gnu-ld was given.
11016 if test "${with_gnu_ld+set}" = set; then :
11017 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11018 else
11019 with_gnu_ld=no
11020 fi
11021
11022 ac_prog=ld
11023 if test yes = "$GCC"; then
11024 # Check if gcc -print-prog-name=ld gives a path.
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11026 $as_echo_n "checking for ld used by $CC... " >&6; }
11027 case $host in
11028 *-*-mingw*)
11029 # gcc leaves a trailing carriage return, which upsets mingw
11030 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11031 *)
11032 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11033 esac
11034 case $ac_prog in
11035 # Accept absolute paths.
11036 [\\/]* | ?:[\\/]*)
11037 re_direlt='/[^/][^/]*/\.\./'
11038 # Canonicalize the pathname of ld
11039 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11040 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11041 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11042 done
11043 test -z "$LD" && LD=$ac_prog
11044 ;;
11045 "")
11046 # If it fails, then pretend we aren't using GCC.
11047 ac_prog=ld
11048 ;;
11049 *)
11050 # If it is relative, then search for the first ld in PATH.
11051 with_gnu_ld=unknown
11052 ;;
11053 esac
11054 elif test yes = "$with_gnu_ld"; then
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11056 $as_echo_n "checking for GNU ld... " >&6; }
11057 else
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11059 $as_echo_n "checking for non-GNU ld... " >&6; }
11060 fi
11061 if ${lt_cv_path_LD+:} false; then :
11062 $as_echo_n "(cached) " >&6
11063 else
11064 if test -z "$LD"; then
11065 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11066 for ac_dir in $PATH; do
11067 IFS=$lt_save_ifs
11068 test -z "$ac_dir" && ac_dir=.
11069 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11070 lt_cv_path_LD=$ac_dir/$ac_prog
11071 # Check to see if the program is GNU ld. I'd rather use --version,
11072 # but apparently some variants of GNU ld only accept -v.
11073 # Break only if it was the GNU/non-GNU ld that we prefer.
11074 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11075 *GNU* | *'with BFD'*)
11076 test no != "$with_gnu_ld" && break
11077 ;;
11078 *)
11079 test yes != "$with_gnu_ld" && break
11080 ;;
11081 esac
11082 fi
11083 done
11084 IFS=$lt_save_ifs
11085 else
11086 lt_cv_path_LD=$LD # Let the user override the test with a path.
11087 fi
11088 fi
11089
11090 LD=$lt_cv_path_LD
11091 if test -n "$LD"; then
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11093 $as_echo "$LD" >&6; }
11094 else
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11096 $as_echo "no" >&6; }
11097 fi
11098 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11100 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11101 if ${lt_cv_prog_gnu_ld+:} false; then :
11102 $as_echo_n "(cached) " >&6
11103 else
11104 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11105 case `$LD -v 2>&1 </dev/null` in
11106 *GNU* | *'with BFD'*)
11107 lt_cv_prog_gnu_ld=yes
11108 ;;
11109 *)
11110 lt_cv_prog_gnu_ld=no
11111 ;;
11112 esac
11113 fi
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11115 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11116 with_gnu_ld=$lt_cv_prog_gnu_ld
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11127 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11128 if ${lt_cv_path_NM+:} false; then :
11129 $as_echo_n "(cached) " >&6
11130 else
11131 if test -n "$NM"; then
11132 # Let the user override the test.
11133 lt_cv_path_NM=$NM
11134 else
11135 lt_nm_to_check=${ac_tool_prefix}nm
11136 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11137 lt_nm_to_check="$lt_nm_to_check nm"
11138 fi
11139 for lt_tmp_nm in $lt_nm_to_check; do
11140 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11141 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11142 IFS=$lt_save_ifs
11143 test -z "$ac_dir" && ac_dir=.
11144 tmp_nm=$ac_dir/$lt_tmp_nm
11145 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11146 # Check to see if the nm accepts a BSD-compat flag.
11147 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11148 # nm: unknown option "B" ignored
11149 # Tru64's nm complains that /dev/null is an invalid object file
11150 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11151 case $build_os in
11152 mingw*) lt_bad_file=conftest.nm/nofile ;;
11153 *) lt_bad_file=/dev/null ;;
11154 esac
11155 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
11156 *$lt_bad_file* | *'Invalid file or object type'*)
11157 lt_cv_path_NM="$tmp_nm -B"
11158 break 2
11159 ;;
11160 *)
11161 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11162 */dev/null*)
11163 lt_cv_path_NM="$tmp_nm -p"
11164 break 2
11165 ;;
11166 *)
11167 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11168 continue # so that we can try to find one that supports BSD flags
11169 ;;
11170 esac
11171 ;;
11172 esac
11173 fi
11174 done
11175 IFS=$lt_save_ifs
11176 done
11177 : ${lt_cv_path_NM=no}
11178 fi
11179 fi
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11181 $as_echo "$lt_cv_path_NM" >&6; }
11182 if test no != "$lt_cv_path_NM"; then
11183 NM=$lt_cv_path_NM
11184 else
11185 # Didn't find any BSD compatible name lister, look for dumpbin.
11186 if test -n "$DUMPBIN"; then :
11187 # Let the user override the test.
11188 else
11189 if test -n "$ac_tool_prefix"; then
11190 for ac_prog in dumpbin "link -dump"
11191 do
11192 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11193 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11195 $as_echo_n "checking for $ac_word... " >&6; }
11196 if ${ac_cv_prog_DUMPBIN+:} false; then :
11197 $as_echo_n "(cached) " >&6
11198 else
11199 if test -n "$DUMPBIN"; then
11200 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11201 else
11202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11203 for as_dir in $PATH
11204 do
11205 IFS=$as_save_IFS
11206 test -z "$as_dir" && as_dir=.
11207 for ac_exec_ext in '' $ac_executable_extensions; do
11208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11209 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11211 break 2
11212 fi
11213 done
11214 done
11215 IFS=$as_save_IFS
11216
11217 fi
11218 fi
11219 DUMPBIN=$ac_cv_prog_DUMPBIN
11220 if test -n "$DUMPBIN"; then
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11222 $as_echo "$DUMPBIN" >&6; }
11223 else
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11225 $as_echo "no" >&6; }
11226 fi
11227
11228
11229 test -n "$DUMPBIN" && break
11230 done
11231 fi
11232 if test -z "$DUMPBIN"; then
11233 ac_ct_DUMPBIN=$DUMPBIN
11234 for ac_prog in dumpbin "link -dump"
11235 do
11236 # Extract the first word of "$ac_prog", so it can be a program name with args.
11237 set dummy $ac_prog; ac_word=$2
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11239 $as_echo_n "checking for $ac_word... " >&6; }
11240 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11241 $as_echo_n "(cached) " >&6
11242 else
11243 if test -n "$ac_ct_DUMPBIN"; then
11244 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11245 else
11246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11247 for as_dir in $PATH
11248 do
11249 IFS=$as_save_IFS
11250 test -z "$as_dir" && as_dir=.
11251 for ac_exec_ext in '' $ac_executable_extensions; do
11252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11253 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11255 break 2
11256 fi
11257 done
11258 done
11259 IFS=$as_save_IFS
11260
11261 fi
11262 fi
11263 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11264 if test -n "$ac_ct_DUMPBIN"; then
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11266 $as_echo "$ac_ct_DUMPBIN" >&6; }
11267 else
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11269 $as_echo "no" >&6; }
11270 fi
11271
11272
11273 test -n "$ac_ct_DUMPBIN" && break
11274 done
11275
11276 if test "x$ac_ct_DUMPBIN" = x; then
11277 DUMPBIN=":"
11278 else
11279 case $cross_compiling:$ac_tool_warned in
11280 yes:)
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11283 ac_tool_warned=yes ;;
11284 esac
11285 DUMPBIN=$ac_ct_DUMPBIN
11286 fi
11287 fi
11288
11289 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
11290 *COFF*)
11291 DUMPBIN="$DUMPBIN -symbols -headers"
11292 ;;
11293 *)
11294 DUMPBIN=:
11295 ;;
11296 esac
11297 fi
11298
11299 if test : != "$DUMPBIN"; then
11300 NM=$DUMPBIN
11301 fi
11302 fi
11303 test -z "$NM" && NM=nm
11304
11305
11306
11307
11308
11309
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11311 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11312 if ${lt_cv_nm_interface+:} false; then :
11313 $as_echo_n "(cached) " >&6
11314 else
11315 lt_cv_nm_interface="BSD nm"
11316 echo "int some_variable = 0;" > conftest.$ac_ext
11317 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11318 (eval "$ac_compile" 2>conftest.err)
11319 cat conftest.err >&5
11320 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11321 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11322 cat conftest.err >&5
11323 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11324 cat conftest.out >&5
11325 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11326 lt_cv_nm_interface="MS dumpbin"
11327 fi
11328 rm -f conftest*
11329 fi
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11331 $as_echo "$lt_cv_nm_interface" >&6; }
11332
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11334 $as_echo_n "checking whether ln -s works... " >&6; }
11335 LN_S=$as_ln_s
11336 if test "$LN_S" = "ln -s"; then
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11338 $as_echo "yes" >&6; }
11339 else
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11341 $as_echo "no, using $LN_S" >&6; }
11342 fi
11343
11344 # find the maximum length of command line arguments
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11346 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11347 if ${lt_cv_sys_max_cmd_len+:} false; then :
11348 $as_echo_n "(cached) " >&6
11349 else
11350 i=0
11351 teststring=ABCD
11352
11353 case $build_os in
11354 msdosdjgpp*)
11355 # On DJGPP, this test can blow up pretty badly due to problems in libc
11356 # (any single argument exceeding 2000 bytes causes a buffer overrun
11357 # during glob expansion). Even if it were fixed, the result of this
11358 # check would be larger than it should be.
11359 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11360 ;;
11361
11362 gnu*)
11363 # Under GNU Hurd, this test is not required because there is
11364 # no limit to the length of command line arguments.
11365 # Libtool will interpret -1 as no limit whatsoever
11366 lt_cv_sys_max_cmd_len=-1;
11367 ;;
11368
11369 cygwin* | mingw* | cegcc*)
11370 # On Win9x/ME, this test blows up -- it succeeds, but takes
11371 # about 5 minutes as the teststring grows exponentially.
11372 # Worse, since 9x/ME are not pre-emptively multitasking,
11373 # you end up with a "frozen" computer, even though with patience
11374 # the test eventually succeeds (with a max line length of 256k).
11375 # Instead, let's just punt: use the minimum linelength reported by
11376 # all of the supported platforms: 8192 (on NT/2K/XP).
11377 lt_cv_sys_max_cmd_len=8192;
11378 ;;
11379
11380 mint*)
11381 # On MiNT this can take a long time and run out of memory.
11382 lt_cv_sys_max_cmd_len=8192;
11383 ;;
11384
11385 amigaos*)
11386 # On AmigaOS with pdksh, this test takes hours, literally.
11387 # So we just punt and use a minimum line length of 8192.
11388 lt_cv_sys_max_cmd_len=8192;
11389 ;;
11390
11391 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
11392 # This has been around since 386BSD, at least. Likely further.
11393 if test -x /sbin/sysctl; then
11394 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11395 elif test -x /usr/sbin/sysctl; then
11396 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11397 else
11398 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11399 fi
11400 # And add a safety zone
11401 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11402 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11403 ;;
11404
11405 interix*)
11406 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11407 lt_cv_sys_max_cmd_len=196608
11408 ;;
11409
11410 os2*)
11411 # The test takes a long time on OS/2.
11412 lt_cv_sys_max_cmd_len=8192
11413 ;;
11414
11415 osf*)
11416 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11417 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11418 # nice to cause kernel panics so lets avoid the loop below.
11419 # First set a reasonable default.
11420 lt_cv_sys_max_cmd_len=16384
11421 #
11422 if test -x /sbin/sysconfig; then
11423 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11424 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11425 esac
11426 fi
11427 ;;
11428 sco3.2v5*)
11429 lt_cv_sys_max_cmd_len=102400
11430 ;;
11431 sysv5* | sco5v6* | sysv4.2uw2*)
11432 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11433 if test -n "$kargmax"; then
11434 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11435 else
11436 lt_cv_sys_max_cmd_len=32768
11437 fi
11438 ;;
11439 *)
11440 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11441 if test -n "$lt_cv_sys_max_cmd_len" && \
11442 test undefined != "$lt_cv_sys_max_cmd_len"; then
11443 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11444 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11445 else
11446 # Make teststring a little bigger before we do anything with it.
11447 # a 1K string should be a reasonable start.
11448 for i in 1 2 3 4 5 6 7 8; do
11449 teststring=$teststring$teststring
11450 done
11451 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11452 # If test is not a shell built-in, we'll probably end up computing a
11453 # maximum length that is only half of the actual maximum length, but
11454 # we can't tell.
11455 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
11456 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11457 test 17 != "$i" # 1/2 MB should be enough
11458 do
11459 i=`expr $i + 1`
11460 teststring=$teststring$teststring
11461 done
11462 # Only check the string length outside the loop.
11463 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11464 teststring=
11465 # Add a significant safety factor because C++ compilers can tack on
11466 # massive amounts of additional arguments before passing them to the
11467 # linker. It appears as though 1/2 is a usable value.
11468 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11469 fi
11470 ;;
11471 esac
11472
11473 fi
11474
11475 if test -n "$lt_cv_sys_max_cmd_len"; then
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11477 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11478 else
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11480 $as_echo "none" >&6; }
11481 fi
11482 max_cmd_len=$lt_cv_sys_max_cmd_len
11483
11484
11485
11486
11487
11488
11489 : ${CP="cp -f"}
11490 : ${MV="mv -f"}
11491 : ${RM="rm -f"}
11492
11493 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11494 lt_unset=unset
11495 else
11496 lt_unset=false
11497 fi
11498
11499
11500
11501
11502
11503 # test EBCDIC or ASCII
11504 case `echo X|tr X '\101'` in
11505 A) # ASCII based system
11506 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11507 lt_SP2NL='tr \040 \012'
11508 lt_NL2SP='tr \015\012 \040\040'
11509 ;;
11510 *) # EBCDIC based system
11511 lt_SP2NL='tr \100 \n'
11512 lt_NL2SP='tr \r\n \100\100'
11513 ;;
11514 esac
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11525 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11526 if ${lt_cv_to_host_file_cmd+:} false; then :
11527 $as_echo_n "(cached) " >&6
11528 else
11529 case $host in
11530 *-*-mingw* )
11531 case $build in
11532 *-*-mingw* ) # actually msys
11533 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11534 ;;
11535 *-*-cygwin* )
11536 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11537 ;;
11538 * ) # otherwise, assume *nix
11539 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11540 ;;
11541 esac
11542 ;;
11543 *-*-cygwin* )
11544 case $build in
11545 *-*-mingw* ) # actually msys
11546 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11547 ;;
11548 *-*-cygwin* )
11549 lt_cv_to_host_file_cmd=func_convert_file_noop
11550 ;;
11551 * ) # otherwise, assume *nix
11552 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11553 ;;
11554 esac
11555 ;;
11556 * ) # unhandled hosts (and "normal" native builds)
11557 lt_cv_to_host_file_cmd=func_convert_file_noop
11558 ;;
11559 esac
11560
11561 fi
11562
11563 to_host_file_cmd=$lt_cv_to_host_file_cmd
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11565 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
11566
11567
11568
11569
11570
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11572 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11573 if ${lt_cv_to_tool_file_cmd+:} false; then :
11574 $as_echo_n "(cached) " >&6
11575 else
11576 #assume ordinary cross tools, or native build.
11577 lt_cv_to_tool_file_cmd=func_convert_file_noop
11578 case $host in
11579 *-*-mingw* )
11580 case $build in
11581 *-*-mingw* ) # actually msys
11582 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11583 ;;
11584 esac
11585 ;;
11586 esac
11587
11588 fi
11589
11590 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11592 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11593
11594
11595
11596
11597
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11599 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11600 if ${lt_cv_ld_reload_flag+:} false; then :
11601 $as_echo_n "(cached) " >&6
11602 else
11603 lt_cv_ld_reload_flag='-r'
11604 fi
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11606 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11607 reload_flag=$lt_cv_ld_reload_flag
11608 case $reload_flag in
11609 "" | " "*) ;;
11610 *) reload_flag=" $reload_flag" ;;
11611 esac
11612 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11613 case $host_os in
11614 cygwin* | mingw* | pw32* | cegcc*)
11615 if test yes != "$GCC"; then
11616 reload_cmds=false
11617 fi
11618 ;;
11619 darwin*)
11620 if test yes = "$GCC"; then
11621 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
11622 else
11623 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11624 fi
11625 ;;
11626 esac
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636 if test -n "$ac_tool_prefix"; then
11637 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11638 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11640 $as_echo_n "checking for $ac_word... " >&6; }
11641 if ${ac_cv_prog_OBJDUMP+:} false; then :
11642 $as_echo_n "(cached) " >&6
11643 else
11644 if test -n "$OBJDUMP"; then
11645 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11646 else
11647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11648 for as_dir in $PATH
11649 do
11650 IFS=$as_save_IFS
11651 test -z "$as_dir" && as_dir=.
11652 for ac_exec_ext in '' $ac_executable_extensions; do
11653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11654 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11656 break 2
11657 fi
11658 done
11659 done
11660 IFS=$as_save_IFS
11661
11662 fi
11663 fi
11664 OBJDUMP=$ac_cv_prog_OBJDUMP
11665 if test -n "$OBJDUMP"; then
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11667 $as_echo "$OBJDUMP" >&6; }
11668 else
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11670 $as_echo "no" >&6; }
11671 fi
11672
11673
11674 fi
11675 if test -z "$ac_cv_prog_OBJDUMP"; then
11676 ac_ct_OBJDUMP=$OBJDUMP
11677 # Extract the first word of "objdump", so it can be a program name with args.
11678 set dummy objdump; ac_word=$2
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11680 $as_echo_n "checking for $ac_word... " >&6; }
11681 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11682 $as_echo_n "(cached) " >&6
11683 else
11684 if test -n "$ac_ct_OBJDUMP"; then
11685 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11686 else
11687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11688 for as_dir in $PATH
11689 do
11690 IFS=$as_save_IFS
11691 test -z "$as_dir" && as_dir=.
11692 for ac_exec_ext in '' $ac_executable_extensions; do
11693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11694 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11696 break 2
11697 fi
11698 done
11699 done
11700 IFS=$as_save_IFS
11701
11702 fi
11703 fi
11704 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11705 if test -n "$ac_ct_OBJDUMP"; then
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11707 $as_echo "$ac_ct_OBJDUMP" >&6; }
11708 else
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11710 $as_echo "no" >&6; }
11711 fi
11712
11713 if test "x$ac_ct_OBJDUMP" = x; then
11714 OBJDUMP="false"
11715 else
11716 case $cross_compiling:$ac_tool_warned in
11717 yes:)
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11720 ac_tool_warned=yes ;;
11721 esac
11722 OBJDUMP=$ac_ct_OBJDUMP
11723 fi
11724 else
11725 OBJDUMP="$ac_cv_prog_OBJDUMP"
11726 fi
11727
11728 test -z "$OBJDUMP" && OBJDUMP=objdump
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11739 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11740 if ${lt_cv_deplibs_check_method+:} false; then :
11741 $as_echo_n "(cached) " >&6
11742 else
11743 lt_cv_file_magic_cmd='$MAGIC_CMD'
11744 lt_cv_file_magic_test_file=
11745 lt_cv_deplibs_check_method='unknown'
11746 # Need to set the preceding variable on all platforms that support
11747 # interlibrary dependencies.
11748 # 'none' -- dependencies not supported.
11749 # 'unknown' -- same as none, but documents that we really don't know.
11750 # 'pass_all' -- all dependencies passed with no checks.
11751 # 'test_compile' -- check by making test program.
11752 # 'file_magic [[regex]]' -- check by looking for files in library path
11753 # that responds to the $file_magic_cmd with a given extended regex.
11754 # If you have 'file' or equivalent on your system and you're not sure
11755 # whether 'pass_all' will *always* work, you probably want this one.
11756
11757 case $host_os in
11758 aix[4-9]*)
11759 lt_cv_deplibs_check_method=pass_all
11760 ;;
11761
11762 beos*)
11763 lt_cv_deplibs_check_method=pass_all
11764 ;;
11765
11766 bsdi[45]*)
11767 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11768 lt_cv_file_magic_cmd='/usr/bin/file -L'
11769 lt_cv_file_magic_test_file=/shlib/libc.so
11770 ;;
11771
11772 cygwin*)
11773 # func_win32_libid is a shell function defined in ltmain.sh
11774 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11775 lt_cv_file_magic_cmd='func_win32_libid'
11776 ;;
11777
11778 mingw* | pw32*)
11779 # Base MSYS/MinGW do not provide the 'file' command needed by
11780 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11781 # unless we find 'file', for example because we are cross-compiling.
11782 if ( file / ) >/dev/null 2>&1; then
11783 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11784 lt_cv_file_magic_cmd='func_win32_libid'
11785 else
11786 # Keep this pattern in sync with the one in func_win32_libid.
11787 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11788 lt_cv_file_magic_cmd='$OBJDUMP -f'
11789 fi
11790 ;;
11791
11792 cegcc*)
11793 # use the weaker test based on 'objdump'. See mingw*.
11794 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11795 lt_cv_file_magic_cmd='$OBJDUMP -f'
11796 ;;
11797
11798 darwin* | rhapsody*)
11799 lt_cv_deplibs_check_method=pass_all
11800 ;;
11801
11802 freebsd* | dragonfly*)
11803 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11804 case $host_cpu in
11805 i*86 )
11806 # Not sure whether the presence of OpenBSD here was a mistake.
11807 # Let's accept both of them until this is cleared up.
11808 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11809 lt_cv_file_magic_cmd=/usr/bin/file
11810 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11811 ;;
11812 esac
11813 else
11814 lt_cv_deplibs_check_method=pass_all
11815 fi
11816 ;;
11817
11818 haiku*)
11819 lt_cv_deplibs_check_method=pass_all
11820 ;;
11821
11822 hpux10.20* | hpux11*)
11823 lt_cv_file_magic_cmd=/usr/bin/file
11824 case $host_cpu in
11825 ia64*)
11826 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11827 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11828 ;;
11829 hppa*64*)
11830 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]'
11831 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11832 ;;
11833 *)
11834 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11835 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11836 ;;
11837 esac
11838 ;;
11839
11840 interix[3-9]*)
11841 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11842 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11843 ;;
11844
11845 irix5* | irix6* | nonstopux*)
11846 case $LD in
11847 *-32|*"-32 ") libmagic=32-bit;;
11848 *-n32|*"-n32 ") libmagic=N32;;
11849 *-64|*"-64 ") libmagic=64-bit;;
11850 *) libmagic=never-match;;
11851 esac
11852 lt_cv_deplibs_check_method=pass_all
11853 ;;
11854
11855 # This must be glibc/ELF.
11856 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11857 lt_cv_deplibs_check_method=pass_all
11858 ;;
11859
11860 netbsd*)
11861 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11862 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11863 else
11864 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11865 fi
11866 ;;
11867
11868 newos6*)
11869 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11870 lt_cv_file_magic_cmd=/usr/bin/file
11871 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11872 ;;
11873
11874 *nto* | *qnx*)
11875 lt_cv_deplibs_check_method=pass_all
11876 ;;
11877
11878 openbsd* | bitrig*)
11879 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11880 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11881 else
11882 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11883 fi
11884 ;;
11885
11886 osf3* | osf4* | osf5*)
11887 lt_cv_deplibs_check_method=pass_all
11888 ;;
11889
11890 rdos*)
11891 lt_cv_deplibs_check_method=pass_all
11892 ;;
11893
11894 solaris*)
11895 lt_cv_deplibs_check_method=pass_all
11896 ;;
11897
11898 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11899 lt_cv_deplibs_check_method=pass_all
11900 ;;
11901
11902 sysv4 | sysv4.3*)
11903 case $host_vendor in
11904 motorola)
11905 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]'
11906 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11907 ;;
11908 ncr)
11909 lt_cv_deplibs_check_method=pass_all
11910 ;;
11911 sequent)
11912 lt_cv_file_magic_cmd='/bin/file'
11913 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11914 ;;
11915 sni)
11916 lt_cv_file_magic_cmd='/bin/file'
11917 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11918 lt_cv_file_magic_test_file=/lib/libc.so
11919 ;;
11920 siemens)
11921 lt_cv_deplibs_check_method=pass_all
11922 ;;
11923 pc)
11924 lt_cv_deplibs_check_method=pass_all
11925 ;;
11926 esac
11927 ;;
11928
11929 tpf*)
11930 lt_cv_deplibs_check_method=pass_all
11931 ;;
11932 os2*)
11933 lt_cv_deplibs_check_method=pass_all
11934 ;;
11935 esac
11936
11937 fi
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11939 $as_echo "$lt_cv_deplibs_check_method" >&6; }
11940
11941 file_magic_glob=
11942 want_nocaseglob=no
11943 if test "$build" = "$host"; then
11944 case $host_os in
11945 mingw* | pw32*)
11946 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11947 want_nocaseglob=yes
11948 else
11949 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11950 fi
11951 ;;
11952 esac
11953 fi
11954
11955 file_magic_cmd=$lt_cv_file_magic_cmd
11956 deplibs_check_method=$lt_cv_deplibs_check_method
11957 test -z "$deplibs_check_method" && deplibs_check_method=unknown
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980 if test -n "$ac_tool_prefix"; then
11981 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11982 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11984 $as_echo_n "checking for $ac_word... " >&6; }
11985 if ${ac_cv_prog_DLLTOOL+:} false; then :
11986 $as_echo_n "(cached) " >&6
11987 else
11988 if test -n "$DLLTOOL"; then
11989 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11990 else
11991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11992 for as_dir in $PATH
11993 do
11994 IFS=$as_save_IFS
11995 test -z "$as_dir" && as_dir=.
11996 for ac_exec_ext in '' $ac_executable_extensions; do
11997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11998 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12000 break 2
12001 fi
12002 done
12003 done
12004 IFS=$as_save_IFS
12005
12006 fi
12007 fi
12008 DLLTOOL=$ac_cv_prog_DLLTOOL
12009 if test -n "$DLLTOOL"; then
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12011 $as_echo "$DLLTOOL" >&6; }
12012 else
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12014 $as_echo "no" >&6; }
12015 fi
12016
12017
12018 fi
12019 if test -z "$ac_cv_prog_DLLTOOL"; then
12020 ac_ct_DLLTOOL=$DLLTOOL
12021 # Extract the first word of "dlltool", so it can be a program name with args.
12022 set dummy dlltool; ac_word=$2
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12024 $as_echo_n "checking for $ac_word... " >&6; }
12025 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12026 $as_echo_n "(cached) " >&6
12027 else
12028 if test -n "$ac_ct_DLLTOOL"; then
12029 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12030 else
12031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12032 for as_dir in $PATH
12033 do
12034 IFS=$as_save_IFS
12035 test -z "$as_dir" && as_dir=.
12036 for ac_exec_ext in '' $ac_executable_extensions; do
12037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12038 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12040 break 2
12041 fi
12042 done
12043 done
12044 IFS=$as_save_IFS
12045
12046 fi
12047 fi
12048 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12049 if test -n "$ac_ct_DLLTOOL"; then
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12051 $as_echo "$ac_ct_DLLTOOL" >&6; }
12052 else
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12054 $as_echo "no" >&6; }
12055 fi
12056
12057 if test "x$ac_ct_DLLTOOL" = x; then
12058 DLLTOOL="false"
12059 else
12060 case $cross_compiling:$ac_tool_warned in
12061 yes:)
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12063 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12064 ac_tool_warned=yes ;;
12065 esac
12066 DLLTOOL=$ac_ct_DLLTOOL
12067 fi
12068 else
12069 DLLTOOL="$ac_cv_prog_DLLTOOL"
12070 fi
12071
12072 test -z "$DLLTOOL" && DLLTOOL=dlltool
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12084 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12085 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12086 $as_echo_n "(cached) " >&6
12087 else
12088 lt_cv_sharedlib_from_linklib_cmd='unknown'
12089
12090 case $host_os in
12091 cygwin* | mingw* | pw32* | cegcc*)
12092 # two different shell functions defined in ltmain.sh;
12093 # decide which one to use based on capabilities of $DLLTOOL
12094 case `$DLLTOOL --help 2>&1` in
12095 *--identify-strict*)
12096 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12097 ;;
12098 *)
12099 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12100 ;;
12101 esac
12102 ;;
12103 *)
12104 # fallback: assume linklib IS sharedlib
12105 lt_cv_sharedlib_from_linklib_cmd=$ECHO
12106 ;;
12107 esac
12108
12109 fi
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12111 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12112 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12113 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12114
12115
12116
12117
12118
12119
12120
12121 if test -n "$ac_tool_prefix"; then
12122 for ac_prog in ar
12123 do
12124 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12125 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12127 $as_echo_n "checking for $ac_word... " >&6; }
12128 if ${ac_cv_prog_AR+:} false; then :
12129 $as_echo_n "(cached) " >&6
12130 else
12131 if test -n "$AR"; then
12132 ac_cv_prog_AR="$AR" # Let the user override the test.
12133 else
12134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12135 for as_dir in $PATH
12136 do
12137 IFS=$as_save_IFS
12138 test -z "$as_dir" && as_dir=.
12139 for ac_exec_ext in '' $ac_executable_extensions; do
12140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12141 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12143 break 2
12144 fi
12145 done
12146 done
12147 IFS=$as_save_IFS
12148
12149 fi
12150 fi
12151 AR=$ac_cv_prog_AR
12152 if test -n "$AR"; then
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12154 $as_echo "$AR" >&6; }
12155 else
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12157 $as_echo "no" >&6; }
12158 fi
12159
12160
12161 test -n "$AR" && break
12162 done
12163 fi
12164 if test -z "$AR"; then
12165 ac_ct_AR=$AR
12166 for ac_prog in ar
12167 do
12168 # Extract the first word of "$ac_prog", so it can be a program name with args.
12169 set dummy $ac_prog; ac_word=$2
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12171 $as_echo_n "checking for $ac_word... " >&6; }
12172 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12173 $as_echo_n "(cached) " >&6
12174 else
12175 if test -n "$ac_ct_AR"; then
12176 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12177 else
12178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12179 for as_dir in $PATH
12180 do
12181 IFS=$as_save_IFS
12182 test -z "$as_dir" && as_dir=.
12183 for ac_exec_ext in '' $ac_executable_extensions; do
12184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12185 ac_cv_prog_ac_ct_AR="$ac_prog"
12186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12187 break 2
12188 fi
12189 done
12190 done
12191 IFS=$as_save_IFS
12192
12193 fi
12194 fi
12195 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12196 if test -n "$ac_ct_AR"; then
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12198 $as_echo "$ac_ct_AR" >&6; }
12199 else
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12201 $as_echo "no" >&6; }
12202 fi
12203
12204
12205 test -n "$ac_ct_AR" && break
12206 done
12207
12208 if test "x$ac_ct_AR" = x; then
12209 AR="false"
12210 else
12211 case $cross_compiling:$ac_tool_warned in
12212 yes:)
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12215 ac_tool_warned=yes ;;
12216 esac
12217 AR=$ac_ct_AR
12218 fi
12219 fi
12220
12221 : ${AR=ar}
12222 : ${AR_FLAGS=cru}
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12235 $as_echo_n "checking for archiver @FILE support... " >&6; }
12236 if ${lt_cv_ar_at_file+:} false; then :
12237 $as_echo_n "(cached) " >&6
12238 else
12239 lt_cv_ar_at_file=no
12240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12241 /* end confdefs.h. */
12242
12243 int
12244 main ()
12245 {
12246
12247 ;
12248 return 0;
12249 }
12250 _ACEOF
12251 if ac_fn_c_try_compile "$LINENO"; then :
12252 echo conftest.$ac_objext > conftest.lst
12253 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12255 (eval $lt_ar_try) 2>&5
12256 ac_status=$?
12257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12258 test $ac_status = 0; }
12259 if test 0 -eq "$ac_status"; then
12260 # Ensure the archiver fails upon bogus file names.
12261 rm -f conftest.$ac_objext libconftest.a
12262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12263 (eval $lt_ar_try) 2>&5
12264 ac_status=$?
12265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12266 test $ac_status = 0; }
12267 if test 0 -ne "$ac_status"; then
12268 lt_cv_ar_at_file=@
12269 fi
12270 fi
12271 rm -f conftest.* libconftest.a
12272
12273 fi
12274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12275
12276 fi
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12278 $as_echo "$lt_cv_ar_at_file" >&6; }
12279
12280 if test no = "$lt_cv_ar_at_file"; then
12281 archiver_list_spec=
12282 else
12283 archiver_list_spec=$lt_cv_ar_at_file
12284 fi
12285
12286
12287
12288
12289
12290
12291
12292 if test -n "$ac_tool_prefix"; then
12293 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12294 set dummy ${ac_tool_prefix}strip; ac_word=$2
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12296 $as_echo_n "checking for $ac_word... " >&6; }
12297 if ${ac_cv_prog_STRIP+:} false; then :
12298 $as_echo_n "(cached) " >&6
12299 else
12300 if test -n "$STRIP"; then
12301 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12302 else
12303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12304 for as_dir in $PATH
12305 do
12306 IFS=$as_save_IFS
12307 test -z "$as_dir" && as_dir=.
12308 for ac_exec_ext in '' $ac_executable_extensions; do
12309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12310 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12312 break 2
12313 fi
12314 done
12315 done
12316 IFS=$as_save_IFS
12317
12318 fi
12319 fi
12320 STRIP=$ac_cv_prog_STRIP
12321 if test -n "$STRIP"; then
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12323 $as_echo "$STRIP" >&6; }
12324 else
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12326 $as_echo "no" >&6; }
12327 fi
12328
12329
12330 fi
12331 if test -z "$ac_cv_prog_STRIP"; then
12332 ac_ct_STRIP=$STRIP
12333 # Extract the first word of "strip", so it can be a program name with args.
12334 set dummy strip; ac_word=$2
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12336 $as_echo_n "checking for $ac_word... " >&6; }
12337 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12338 $as_echo_n "(cached) " >&6
12339 else
12340 if test -n "$ac_ct_STRIP"; then
12341 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12342 else
12343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12344 for as_dir in $PATH
12345 do
12346 IFS=$as_save_IFS
12347 test -z "$as_dir" && as_dir=.
12348 for ac_exec_ext in '' $ac_executable_extensions; do
12349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12350 ac_cv_prog_ac_ct_STRIP="strip"
12351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12352 break 2
12353 fi
12354 done
12355 done
12356 IFS=$as_save_IFS
12357
12358 fi
12359 fi
12360 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12361 if test -n "$ac_ct_STRIP"; then
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12363 $as_echo "$ac_ct_STRIP" >&6; }
12364 else
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12366 $as_echo "no" >&6; }
12367 fi
12368
12369 if test "x$ac_ct_STRIP" = x; then
12370 STRIP=":"
12371 else
12372 case $cross_compiling:$ac_tool_warned in
12373 yes:)
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12376 ac_tool_warned=yes ;;
12377 esac
12378 STRIP=$ac_ct_STRIP
12379 fi
12380 else
12381 STRIP="$ac_cv_prog_STRIP"
12382 fi
12383
12384 test -z "$STRIP" && STRIP=:
12385
12386
12387
12388
12389
12390
12391 if test -n "$ac_tool_prefix"; then
12392 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12393 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12395 $as_echo_n "checking for $ac_word... " >&6; }
12396 if ${ac_cv_prog_RANLIB+:} false; then :
12397 $as_echo_n "(cached) " >&6
12398 else
12399 if test -n "$RANLIB"; then
12400 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12401 else
12402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12403 for as_dir in $PATH
12404 do
12405 IFS=$as_save_IFS
12406 test -z "$as_dir" && as_dir=.
12407 for ac_exec_ext in '' $ac_executable_extensions; do
12408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12409 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12411 break 2
12412 fi
12413 done
12414 done
12415 IFS=$as_save_IFS
12416
12417 fi
12418 fi
12419 RANLIB=$ac_cv_prog_RANLIB
12420 if test -n "$RANLIB"; then
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12422 $as_echo "$RANLIB" >&6; }
12423 else
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12425 $as_echo "no" >&6; }
12426 fi
12427
12428
12429 fi
12430 if test -z "$ac_cv_prog_RANLIB"; then
12431 ac_ct_RANLIB=$RANLIB
12432 # Extract the first word of "ranlib", so it can be a program name with args.
12433 set dummy ranlib; ac_word=$2
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12435 $as_echo_n "checking for $ac_word... " >&6; }
12436 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12437 $as_echo_n "(cached) " >&6
12438 else
12439 if test -n "$ac_ct_RANLIB"; then
12440 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12441 else
12442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12443 for as_dir in $PATH
12444 do
12445 IFS=$as_save_IFS
12446 test -z "$as_dir" && as_dir=.
12447 for ac_exec_ext in '' $ac_executable_extensions; do
12448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12449 ac_cv_prog_ac_ct_RANLIB="ranlib"
12450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12451 break 2
12452 fi
12453 done
12454 done
12455 IFS=$as_save_IFS
12456
12457 fi
12458 fi
12459 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12460 if test -n "$ac_ct_RANLIB"; then
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12462 $as_echo "$ac_ct_RANLIB" >&6; }
12463 else
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12465 $as_echo "no" >&6; }
12466 fi
12467
12468 if test "x$ac_ct_RANLIB" = x; then
12469 RANLIB=":"
12470 else
12471 case $cross_compiling:$ac_tool_warned in
12472 yes:)
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12474 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12475 ac_tool_warned=yes ;;
12476 esac
12477 RANLIB=$ac_ct_RANLIB
12478 fi
12479 else
12480 RANLIB="$ac_cv_prog_RANLIB"
12481 fi
12482
12483 test -z "$RANLIB" && RANLIB=:
12484
12485
12486
12487
12488
12489
12490 # Determine commands to create old-style static archives.
12491 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12492 old_postinstall_cmds='chmod 644 $oldlib'
12493 old_postuninstall_cmds=
12494
12495 if test -n "$RANLIB"; then
12496 case $host_os in
12497 bitrig* | openbsd*)
12498 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12499 ;;
12500 *)
12501 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12502 ;;
12503 esac
12504 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12505 fi
12506
12507 case $host_os in
12508 darwin*)
12509 lock_old_archive_extraction=yes ;;
12510 *)
12511 lock_old_archive_extraction=no ;;
12512 esac
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552 # If no C compiler was specified, use CC.
12553 LTCC=${LTCC-"$CC"}
12554
12555 # If no C compiler flags were specified, use CFLAGS.
12556 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12557
12558 # Allow CC to be a program name with arguments.
12559 compiler=$CC
12560
12561
12562 # Check for command to grab the raw symbol name followed by C symbol from nm.
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12564 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12565 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12566 $as_echo_n "(cached) " >&6
12567 else
12568
12569 # These are sane defaults that work on at least a few old systems.
12570 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12571
12572 # Character class describing NM global symbol codes.
12573 symcode='[BCDEGRST]'
12574
12575 # Regexp to match symbols that can be accessed directly from C.
12576 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12577
12578 # Define system-specific variables.
12579 case $host_os in
12580 aix*)
12581 symcode='[BCDT]'
12582 ;;
12583 cygwin* | mingw* | pw32* | cegcc*)
12584 symcode='[ABCDGISTW]'
12585 ;;
12586 hpux*)
12587 if test ia64 = "$host_cpu"; then
12588 symcode='[ABCDEGRST]'
12589 fi
12590 ;;
12591 irix* | nonstopux*)
12592 symcode='[BCDEGRST]'
12593 ;;
12594 osf*)
12595 symcode='[BCDEGQRST]'
12596 ;;
12597 solaris*)
12598 symcode='[BDRT]'
12599 ;;
12600 sco3.2v5*)
12601 symcode='[DT]'
12602 ;;
12603 sysv4.2uw2*)
12604 symcode='[DT]'
12605 ;;
12606 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12607 symcode='[ABDT]'
12608 ;;
12609 sysv4)
12610 symcode='[DFNSTU]'
12611 ;;
12612 esac
12613
12614 # If we're using GNU nm, then use its standard symbol codes.
12615 case `$NM -V 2>&1` in
12616 *GNU* | *'with BFD'*)
12617 symcode='[ABCDGIRSTW]' ;;
12618 esac
12619
12620 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12621 # Gets list of data symbols to import.
12622 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
12623 # Adjust the below global symbol transforms to fixup imported variables.
12624 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
12625 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
12626 lt_c_name_lib_hook="\
12627 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
12628 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
12629 else
12630 # Disable hooks by default.
12631 lt_cv_sys_global_symbol_to_import=
12632 lt_cdecl_hook=
12633 lt_c_name_hook=
12634 lt_c_name_lib_hook=
12635 fi
12636
12637 # Transform an extracted symbol line into a proper C declaration.
12638 # Some systems (esp. on ia64) link data and code symbols differently,
12639 # so use this general approach.
12640 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
12641 $lt_cdecl_hook\
12642 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
12643 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
12644
12645 # Transform an extracted symbol line into symbol name and symbol address
12646 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
12647 $lt_c_name_hook\
12648 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
12649 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
12650
12651 # Transform an extracted symbol line into symbol name with lib prefix and
12652 # symbol address.
12653 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
12654 $lt_c_name_lib_hook\
12655 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
12656 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
12657 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
12658
12659 # Handle CRLF in mingw tool chain
12660 opt_cr=
12661 case $build_os in
12662 mingw*)
12663 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12664 ;;
12665 esac
12666
12667 # Try without a prefix underscore, then with it.
12668 for ac_symprfx in "" "_"; do
12669
12670 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12671 symxfrm="\\1 $ac_symprfx\\2 \\2"
12672
12673 # Write the raw and C identifiers.
12674 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12675 # Fake it for dumpbin and say T for any non-static function,
12676 # D for any global variable and I for any imported variable.
12677 # Also find C++ and __fastcall symbols from MSVC++,
12678 # which start with @ or ?.
12679 lt_cv_sys_global_symbol_pipe="$AWK '"\
12680 " {last_section=section; section=\$ 3};"\
12681 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12682 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12683 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
12684 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
12685 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
12686 " \$ 0!~/External *\|/{next};"\
12687 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12688 " {if(hide[section]) next};"\
12689 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
12690 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
12691 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
12692 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
12693 " ' prfx=^$ac_symprfx"
12694 else
12695 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12696 fi
12697 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12698
12699 # Check to see that the pipe works correctly.
12700 pipe_works=no
12701
12702 rm -f conftest*
12703 cat > conftest.$ac_ext <<_LT_EOF
12704 #ifdef __cplusplus
12705 extern "C" {
12706 #endif
12707 char nm_test_var;
12708 void nm_test_func(void);
12709 void nm_test_func(void){}
12710 #ifdef __cplusplus
12711 }
12712 #endif
12713 int main(){nm_test_var='a';nm_test_func();return(0);}
12714 _LT_EOF
12715
12716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12717 (eval $ac_compile) 2>&5
12718 ac_status=$?
12719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12720 test $ac_status = 0; }; then
12721 # Now try to grab the symbols.
12722 nlist=conftest.nm
12723 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12724 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12725 ac_status=$?
12726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12727 test $ac_status = 0; } && test -s "$nlist"; then
12728 # Try sorting and uniquifying the output.
12729 if sort "$nlist" | uniq > "$nlist"T; then
12730 mv -f "$nlist"T "$nlist"
12731 else
12732 rm -f "$nlist"T
12733 fi
12734
12735 # Make sure that we snagged all the symbols we need.
12736 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12737 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12738 cat <<_LT_EOF > conftest.$ac_ext
12739 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12740 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
12741 /* DATA imports from DLLs on WIN32 can't be const, because runtime
12742 relocations are performed -- see ld's documentation on pseudo-relocs. */
12743 # define LT_DLSYM_CONST
12744 #elif defined __osf__
12745 /* This system does not cope well with relocations in const data. */
12746 # define LT_DLSYM_CONST
12747 #else
12748 # define LT_DLSYM_CONST const
12749 #endif
12750
12751 #ifdef __cplusplus
12752 extern "C" {
12753 #endif
12754
12755 _LT_EOF
12756 # Now generate the symbol file.
12757 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12758
12759 cat <<_LT_EOF >> conftest.$ac_ext
12760
12761 /* The mapping between symbol names and symbols. */
12762 LT_DLSYM_CONST struct {
12763 const char *name;
12764 void *address;
12765 }
12766 lt__PROGRAM__LTX_preloaded_symbols[] =
12767 {
12768 { "@PROGRAM@", (void *) 0 },
12769 _LT_EOF
12770 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12771 cat <<\_LT_EOF >> conftest.$ac_ext
12772 {0, (void *) 0}
12773 };
12774
12775 /* This works around a problem in FreeBSD linker */
12776 #ifdef FREEBSD_WORKAROUND
12777 static const void *lt_preloaded_setup() {
12778 return lt__PROGRAM__LTX_preloaded_symbols;
12779 }
12780 #endif
12781
12782 #ifdef __cplusplus
12783 }
12784 #endif
12785 _LT_EOF
12786 # Now try linking the two files.
12787 mv conftest.$ac_objext conftstm.$ac_objext
12788 lt_globsym_save_LIBS=$LIBS
12789 lt_globsym_save_CFLAGS=$CFLAGS
12790 LIBS=conftstm.$ac_objext
12791 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12792 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12793 (eval $ac_link) 2>&5
12794 ac_status=$?
12795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12796 test $ac_status = 0; } && test -s conftest$ac_exeext; then
12797 pipe_works=yes
12798 fi
12799 LIBS=$lt_globsym_save_LIBS
12800 CFLAGS=$lt_globsym_save_CFLAGS
12801 else
12802 echo "cannot find nm_test_func in $nlist" >&5
12803 fi
12804 else
12805 echo "cannot find nm_test_var in $nlist" >&5
12806 fi
12807 else
12808 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12809 fi
12810 else
12811 echo "$progname: failed program was:" >&5
12812 cat conftest.$ac_ext >&5
12813 fi
12814 rm -rf conftest* conftst*
12815
12816 # Do not use the global_symbol_pipe unless it works.
12817 if test yes = "$pipe_works"; then
12818 break
12819 else
12820 lt_cv_sys_global_symbol_pipe=
12821 fi
12822 done
12823
12824 fi
12825
12826 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12827 lt_cv_sys_global_symbol_to_cdecl=
12828 fi
12829 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12831 $as_echo "failed" >&6; }
12832 else
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12834 $as_echo "ok" >&6; }
12835 fi
12836
12837 # Response file support.
12838 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12839 nm_file_list_spec='@'
12840 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12841 nm_file_list_spec='@'
12842 fi
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12881 $as_echo_n "checking for sysroot... " >&6; }
12882
12883 # Check whether --with-sysroot was given.
12884 if test "${with_sysroot+set}" = set; then :
12885 withval=$with_sysroot;
12886 else
12887 with_sysroot=no
12888 fi
12889
12890
12891 lt_sysroot=
12892 case $with_sysroot in #(
12893 yes)
12894 if test yes = "$GCC"; then
12895 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12896 fi
12897 ;; #(
12898 /*)
12899 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12900 ;; #(
12901 no|'')
12902 ;; #(
12903 *)
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
12905 $as_echo "$with_sysroot" >&6; }
12906 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12907 ;;
12908 esac
12909
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12911 $as_echo "${lt_sysroot:-no}" >&6; }
12912
12913
12914
12915
12916
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
12918 $as_echo_n "checking for a working dd... " >&6; }
12919 if ${ac_cv_path_lt_DD+:} false; then :
12920 $as_echo_n "(cached) " >&6
12921 else
12922 printf 0123456789abcdef0123456789abcdef >conftest.i
12923 cat conftest.i conftest.i >conftest2.i
12924 : ${lt_DD:=$DD}
12925 if test -z "$lt_DD"; then
12926 ac_path_lt_DD_found=false
12927 # Loop through the user's path and test for each of PROGNAME-LIST
12928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12929 for as_dir in $PATH
12930 do
12931 IFS=$as_save_IFS
12932 test -z "$as_dir" && as_dir=.
12933 for ac_prog in dd; do
12934 for ac_exec_ext in '' $ac_executable_extensions; do
12935 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
12936 as_fn_executable_p "$ac_path_lt_DD" || continue
12937 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
12938 cmp -s conftest.i conftest.out \
12939 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
12940 fi
12941 $ac_path_lt_DD_found && break 3
12942 done
12943 done
12944 done
12945 IFS=$as_save_IFS
12946 if test -z "$ac_cv_path_lt_DD"; then
12947 :
12948 fi
12949 else
12950 ac_cv_path_lt_DD=$lt_DD
12951 fi
12952
12953 rm -f conftest.i conftest2.i conftest.out
12954 fi
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
12956 $as_echo "$ac_cv_path_lt_DD" >&6; }
12957
12958
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
12960 $as_echo_n "checking how to truncate binary pipes... " >&6; }
12961 if ${lt_cv_truncate_bin+:} false; then :
12962 $as_echo_n "(cached) " >&6
12963 else
12964 printf 0123456789abcdef0123456789abcdef >conftest.i
12965 cat conftest.i conftest.i >conftest2.i
12966 lt_cv_truncate_bin=
12967 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
12968 cmp -s conftest.i conftest.out \
12969 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
12970 fi
12971 rm -f conftest.i conftest2.i conftest.out
12972 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
12973 fi
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
12975 $as_echo "$lt_cv_truncate_bin" >&6; }
12976
12977
12978
12979
12980
12981
12982
12983 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
12984 func_cc_basename ()
12985 {
12986 for cc_temp in $*""; do
12987 case $cc_temp in
12988 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12989 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12990 \-*) ;;
12991 *) break;;
12992 esac
12993 done
12994 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12995 }
12996
12997 # Check whether --enable-libtool-lock was given.
12998 if test "${enable_libtool_lock+set}" = set; then :
12999 enableval=$enable_libtool_lock;
13000 fi
13001
13002 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13003
13004 # Some flags need to be propagated to the compiler or linker for good
13005 # libtool support.
13006 case $host in
13007 ia64-*-hpux*)
13008 # Find out what ABI is being produced by ac_compile, and set mode
13009 # options accordingly.
13010 echo 'int i;' > conftest.$ac_ext
13011 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13012 (eval $ac_compile) 2>&5
13013 ac_status=$?
13014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13015 test $ac_status = 0; }; then
13016 case `/usr/bin/file conftest.$ac_objext` in
13017 *ELF-32*)
13018 HPUX_IA64_MODE=32
13019 ;;
13020 *ELF-64*)
13021 HPUX_IA64_MODE=64
13022 ;;
13023 esac
13024 fi
13025 rm -rf conftest*
13026 ;;
13027 *-*-irix6*)
13028 # Find out what ABI is being produced by ac_compile, and set linker
13029 # options accordingly.
13030 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13031 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13032 (eval $ac_compile) 2>&5
13033 ac_status=$?
13034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13035 test $ac_status = 0; }; then
13036 if test yes = "$lt_cv_prog_gnu_ld"; then
13037 case `/usr/bin/file conftest.$ac_objext` in
13038 *32-bit*)
13039 LD="${LD-ld} -melf32bsmip"
13040 ;;
13041 *N32*)
13042 LD="${LD-ld} -melf32bmipn32"
13043 ;;
13044 *64-bit*)
13045 LD="${LD-ld} -melf64bmip"
13046 ;;
13047 esac
13048 else
13049 case `/usr/bin/file conftest.$ac_objext` in
13050 *32-bit*)
13051 LD="${LD-ld} -32"
13052 ;;
13053 *N32*)
13054 LD="${LD-ld} -n32"
13055 ;;
13056 *64-bit*)
13057 LD="${LD-ld} -64"
13058 ;;
13059 esac
13060 fi
13061 fi
13062 rm -rf conftest*
13063 ;;
13064
13065 mips64*-*linux*)
13066 # Find out what ABI is being produced by ac_compile, and set linker
13067 # options accordingly.
13068 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13069 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13070 (eval $ac_compile) 2>&5
13071 ac_status=$?
13072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13073 test $ac_status = 0; }; then
13074 emul=elf
13075 case `/usr/bin/file conftest.$ac_objext` in
13076 *32-bit*)
13077 emul="${emul}32"
13078 ;;
13079 *64-bit*)
13080 emul="${emul}64"
13081 ;;
13082 esac
13083 case `/usr/bin/file conftest.$ac_objext` in
13084 *MSB*)
13085 emul="${emul}btsmip"
13086 ;;
13087 *LSB*)
13088 emul="${emul}ltsmip"
13089 ;;
13090 esac
13091 case `/usr/bin/file conftest.$ac_objext` in
13092 *N32*)
13093 emul="${emul}n32"
13094 ;;
13095 esac
13096 LD="${LD-ld} -m $emul"
13097 fi
13098 rm -rf conftest*
13099 ;;
13100
13101 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13102 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13103 # Find out what ABI is being produced by ac_compile, and set linker
13104 # options accordingly. Note that the listed cases only cover the
13105 # situations where additional linker options are needed (such as when
13106 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13107 # vice versa); the common cases where no linker options are needed do
13108 # not appear in the list.
13109 echo 'int i;' > conftest.$ac_ext
13110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13111 (eval $ac_compile) 2>&5
13112 ac_status=$?
13113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13114 test $ac_status = 0; }; then
13115 case `/usr/bin/file conftest.o` in
13116 *32-bit*)
13117 case $host in
13118 x86_64-*kfreebsd*-gnu)
13119 LD="${LD-ld} -m elf_i386_fbsd"
13120 ;;
13121 x86_64-*linux*)
13122 case `/usr/bin/file conftest.o` in
13123 *x86-64*)
13124 LD="${LD-ld} -m elf32_x86_64"
13125 ;;
13126 *)
13127 LD="${LD-ld} -m elf_i386"
13128 ;;
13129 esac
13130 ;;
13131 powerpc64le-*linux*)
13132 LD="${LD-ld} -m elf32lppclinux"
13133 ;;
13134 powerpc64-*linux*)
13135 LD="${LD-ld} -m elf32ppclinux"
13136 ;;
13137 s390x-*linux*)
13138 LD="${LD-ld} -m elf_s390"
13139 ;;
13140 sparc64-*linux*)
13141 LD="${LD-ld} -m elf32_sparc"
13142 ;;
13143 esac
13144 ;;
13145 *64-bit*)
13146 case $host in
13147 x86_64-*kfreebsd*-gnu)
13148 LD="${LD-ld} -m elf_x86_64_fbsd"
13149 ;;
13150 x86_64-*linux*)
13151 LD="${LD-ld} -m elf_x86_64"
13152 ;;
13153 powerpcle-*linux*)
13154 LD="${LD-ld} -m elf64lppc"
13155 ;;
13156 powerpc-*linux*)
13157 LD="${LD-ld} -m elf64ppc"
13158 ;;
13159 s390*-*linux*|s390*-*tpf*)
13160 LD="${LD-ld} -m elf64_s390"
13161 ;;
13162 sparc*-*linux*)
13163 LD="${LD-ld} -m elf64_sparc"
13164 ;;
13165 esac
13166 ;;
13167 esac
13168 fi
13169 rm -rf conftest*
13170 ;;
13171
13172 *-*-sco3.2v5*)
13173 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13174 SAVE_CFLAGS=$CFLAGS
13175 CFLAGS="$CFLAGS -belf"
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13177 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13178 if ${lt_cv_cc_needs_belf+:} false; then :
13179 $as_echo_n "(cached) " >&6
13180 else
13181 ac_ext=c
13182 ac_cpp='$CPP $CPPFLAGS'
13183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13186
13187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13188 /* end confdefs.h. */
13189
13190 int
13191 main ()
13192 {
13193
13194 ;
13195 return 0;
13196 }
13197 _ACEOF
13198 if ac_fn_c_try_link "$LINENO"; then :
13199 lt_cv_cc_needs_belf=yes
13200 else
13201 lt_cv_cc_needs_belf=no
13202 fi
13203 rm -f core conftest.err conftest.$ac_objext \
13204 conftest$ac_exeext conftest.$ac_ext
13205 ac_ext=c
13206 ac_cpp='$CPP $CPPFLAGS'
13207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13210
13211 fi
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13213 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13214 if test yes != "$lt_cv_cc_needs_belf"; then
13215 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13216 CFLAGS=$SAVE_CFLAGS
13217 fi
13218 ;;
13219 *-*solaris*)
13220 # Find out what ABI is being produced by ac_compile, and set linker
13221 # options accordingly.
13222 echo 'int i;' > conftest.$ac_ext
13223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13224 (eval $ac_compile) 2>&5
13225 ac_status=$?
13226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13227 test $ac_status = 0; }; then
13228 case `/usr/bin/file conftest.o` in
13229 *64-bit*)
13230 case $lt_cv_prog_gnu_ld in
13231 yes*)
13232 case $host in
13233 i?86-*-solaris*|x86_64-*-solaris*)
13234 LD="${LD-ld} -m elf_x86_64"
13235 ;;
13236 sparc*-*-solaris*)
13237 LD="${LD-ld} -m elf64_sparc"
13238 ;;
13239 esac
13240 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13241 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13242 LD=${LD-ld}_sol2
13243 fi
13244 ;;
13245 *)
13246 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13247 LD="${LD-ld} -64"
13248 fi
13249 ;;
13250 esac
13251 ;;
13252 esac
13253 fi
13254 rm -rf conftest*
13255 ;;
13256 esac
13257
13258 need_locks=$enable_libtool_lock
13259
13260 if test -n "$ac_tool_prefix"; then
13261 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13262 set dummy ${ac_tool_prefix}mt; ac_word=$2
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13264 $as_echo_n "checking for $ac_word... " >&6; }
13265 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13266 $as_echo_n "(cached) " >&6
13267 else
13268 if test -n "$MANIFEST_TOOL"; then
13269 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13270 else
13271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13272 for as_dir in $PATH
13273 do
13274 IFS=$as_save_IFS
13275 test -z "$as_dir" && as_dir=.
13276 for ac_exec_ext in '' $ac_executable_extensions; do
13277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13278 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13280 break 2
13281 fi
13282 done
13283 done
13284 IFS=$as_save_IFS
13285
13286 fi
13287 fi
13288 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13289 if test -n "$MANIFEST_TOOL"; then
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13291 $as_echo "$MANIFEST_TOOL" >&6; }
13292 else
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13294 $as_echo "no" >&6; }
13295 fi
13296
13297
13298 fi
13299 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13300 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13301 # Extract the first word of "mt", so it can be a program name with args.
13302 set dummy mt; ac_word=$2
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13304 $as_echo_n "checking for $ac_word... " >&6; }
13305 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13306 $as_echo_n "(cached) " >&6
13307 else
13308 if test -n "$ac_ct_MANIFEST_TOOL"; then
13309 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13310 else
13311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13312 for as_dir in $PATH
13313 do
13314 IFS=$as_save_IFS
13315 test -z "$as_dir" && as_dir=.
13316 for ac_exec_ext in '' $ac_executable_extensions; do
13317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13318 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13320 break 2
13321 fi
13322 done
13323 done
13324 IFS=$as_save_IFS
13325
13326 fi
13327 fi
13328 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13329 if test -n "$ac_ct_MANIFEST_TOOL"; then
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13331 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13332 else
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13334 $as_echo "no" >&6; }
13335 fi
13336
13337 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13338 MANIFEST_TOOL=":"
13339 else
13340 case $cross_compiling:$ac_tool_warned in
13341 yes:)
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13344 ac_tool_warned=yes ;;
13345 esac
13346 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13347 fi
13348 else
13349 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13350 fi
13351
13352 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13354 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13355 if ${lt_cv_path_mainfest_tool+:} false; then :
13356 $as_echo_n "(cached) " >&6
13357 else
13358 lt_cv_path_mainfest_tool=no
13359 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13360 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13361 cat conftest.err >&5
13362 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13363 lt_cv_path_mainfest_tool=yes
13364 fi
13365 rm -f conftest*
13366 fi
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13368 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
13369 if test yes != "$lt_cv_path_mainfest_tool"; then
13370 MANIFEST_TOOL=:
13371 fi
13372
13373
13374
13375
13376
13377
13378 case $host_os in
13379 rhapsody* | darwin*)
13380 if test -n "$ac_tool_prefix"; then
13381 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13382 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13384 $as_echo_n "checking for $ac_word... " >&6; }
13385 if ${ac_cv_prog_DSYMUTIL+:} false; then :
13386 $as_echo_n "(cached) " >&6
13387 else
13388 if test -n "$DSYMUTIL"; then
13389 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13390 else
13391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13392 for as_dir in $PATH
13393 do
13394 IFS=$as_save_IFS
13395 test -z "$as_dir" && as_dir=.
13396 for ac_exec_ext in '' $ac_executable_extensions; do
13397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13398 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13400 break 2
13401 fi
13402 done
13403 done
13404 IFS=$as_save_IFS
13405
13406 fi
13407 fi
13408 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13409 if test -n "$DSYMUTIL"; then
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13411 $as_echo "$DSYMUTIL" >&6; }
13412 else
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13414 $as_echo "no" >&6; }
13415 fi
13416
13417
13418 fi
13419 if test -z "$ac_cv_prog_DSYMUTIL"; then
13420 ac_ct_DSYMUTIL=$DSYMUTIL
13421 # Extract the first word of "dsymutil", so it can be a program name with args.
13422 set dummy dsymutil; ac_word=$2
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13424 $as_echo_n "checking for $ac_word... " >&6; }
13425 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13426 $as_echo_n "(cached) " >&6
13427 else
13428 if test -n "$ac_ct_DSYMUTIL"; then
13429 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13430 else
13431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13432 for as_dir in $PATH
13433 do
13434 IFS=$as_save_IFS
13435 test -z "$as_dir" && as_dir=.
13436 for ac_exec_ext in '' $ac_executable_extensions; do
13437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13438 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13440 break 2
13441 fi
13442 done
13443 done
13444 IFS=$as_save_IFS
13445
13446 fi
13447 fi
13448 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13449 if test -n "$ac_ct_DSYMUTIL"; then
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13451 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13452 else
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13454 $as_echo "no" >&6; }
13455 fi
13456
13457 if test "x$ac_ct_DSYMUTIL" = x; then
13458 DSYMUTIL=":"
13459 else
13460 case $cross_compiling:$ac_tool_warned in
13461 yes:)
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13464 ac_tool_warned=yes ;;
13465 esac
13466 DSYMUTIL=$ac_ct_DSYMUTIL
13467 fi
13468 else
13469 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13470 fi
13471
13472 if test -n "$ac_tool_prefix"; then
13473 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13474 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13476 $as_echo_n "checking for $ac_word... " >&6; }
13477 if ${ac_cv_prog_NMEDIT+:} false; then :
13478 $as_echo_n "(cached) " >&6
13479 else
13480 if test -n "$NMEDIT"; then
13481 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13482 else
13483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13484 for as_dir in $PATH
13485 do
13486 IFS=$as_save_IFS
13487 test -z "$as_dir" && as_dir=.
13488 for ac_exec_ext in '' $ac_executable_extensions; do
13489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13490 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13492 break 2
13493 fi
13494 done
13495 done
13496 IFS=$as_save_IFS
13497
13498 fi
13499 fi
13500 NMEDIT=$ac_cv_prog_NMEDIT
13501 if test -n "$NMEDIT"; then
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13503 $as_echo "$NMEDIT" >&6; }
13504 else
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13506 $as_echo "no" >&6; }
13507 fi
13508
13509
13510 fi
13511 if test -z "$ac_cv_prog_NMEDIT"; then
13512 ac_ct_NMEDIT=$NMEDIT
13513 # Extract the first word of "nmedit", so it can be a program name with args.
13514 set dummy nmedit; ac_word=$2
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13516 $as_echo_n "checking for $ac_word... " >&6; }
13517 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13518 $as_echo_n "(cached) " >&6
13519 else
13520 if test -n "$ac_ct_NMEDIT"; then
13521 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13522 else
13523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13524 for as_dir in $PATH
13525 do
13526 IFS=$as_save_IFS
13527 test -z "$as_dir" && as_dir=.
13528 for ac_exec_ext in '' $ac_executable_extensions; do
13529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13530 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13532 break 2
13533 fi
13534 done
13535 done
13536 IFS=$as_save_IFS
13537
13538 fi
13539 fi
13540 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13541 if test -n "$ac_ct_NMEDIT"; then
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13543 $as_echo "$ac_ct_NMEDIT" >&6; }
13544 else
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13546 $as_echo "no" >&6; }
13547 fi
13548
13549 if test "x$ac_ct_NMEDIT" = x; then
13550 NMEDIT=":"
13551 else
13552 case $cross_compiling:$ac_tool_warned in
13553 yes:)
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13556 ac_tool_warned=yes ;;
13557 esac
13558 NMEDIT=$ac_ct_NMEDIT
13559 fi
13560 else
13561 NMEDIT="$ac_cv_prog_NMEDIT"
13562 fi
13563
13564 if test -n "$ac_tool_prefix"; then
13565 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13566 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13568 $as_echo_n "checking for $ac_word... " >&6; }
13569 if ${ac_cv_prog_LIPO+:} false; then :
13570 $as_echo_n "(cached) " >&6
13571 else
13572 if test -n "$LIPO"; then
13573 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13574 else
13575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13576 for as_dir in $PATH
13577 do
13578 IFS=$as_save_IFS
13579 test -z "$as_dir" && as_dir=.
13580 for ac_exec_ext in '' $ac_executable_extensions; do
13581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13582 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13584 break 2
13585 fi
13586 done
13587 done
13588 IFS=$as_save_IFS
13589
13590 fi
13591 fi
13592 LIPO=$ac_cv_prog_LIPO
13593 if test -n "$LIPO"; then
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13595 $as_echo "$LIPO" >&6; }
13596 else
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13598 $as_echo "no" >&6; }
13599 fi
13600
13601
13602 fi
13603 if test -z "$ac_cv_prog_LIPO"; then
13604 ac_ct_LIPO=$LIPO
13605 # Extract the first word of "lipo", so it can be a program name with args.
13606 set dummy lipo; ac_word=$2
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13608 $as_echo_n "checking for $ac_word... " >&6; }
13609 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13610 $as_echo_n "(cached) " >&6
13611 else
13612 if test -n "$ac_ct_LIPO"; then
13613 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13614 else
13615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13616 for as_dir in $PATH
13617 do
13618 IFS=$as_save_IFS
13619 test -z "$as_dir" && as_dir=.
13620 for ac_exec_ext in '' $ac_executable_extensions; do
13621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13622 ac_cv_prog_ac_ct_LIPO="lipo"
13623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13624 break 2
13625 fi
13626 done
13627 done
13628 IFS=$as_save_IFS
13629
13630 fi
13631 fi
13632 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13633 if test -n "$ac_ct_LIPO"; then
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13635 $as_echo "$ac_ct_LIPO" >&6; }
13636 else
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13638 $as_echo "no" >&6; }
13639 fi
13640
13641 if test "x$ac_ct_LIPO" = x; then
13642 LIPO=":"
13643 else
13644 case $cross_compiling:$ac_tool_warned in
13645 yes:)
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13647 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13648 ac_tool_warned=yes ;;
13649 esac
13650 LIPO=$ac_ct_LIPO
13651 fi
13652 else
13653 LIPO="$ac_cv_prog_LIPO"
13654 fi
13655
13656 if test -n "$ac_tool_prefix"; then
13657 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13658 set dummy ${ac_tool_prefix}otool; ac_word=$2
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13660 $as_echo_n "checking for $ac_word... " >&6; }
13661 if ${ac_cv_prog_OTOOL+:} false; then :
13662 $as_echo_n "(cached) " >&6
13663 else
13664 if test -n "$OTOOL"; then
13665 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13666 else
13667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13668 for as_dir in $PATH
13669 do
13670 IFS=$as_save_IFS
13671 test -z "$as_dir" && as_dir=.
13672 for ac_exec_ext in '' $ac_executable_extensions; do
13673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13674 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13676 break 2
13677 fi
13678 done
13679 done
13680 IFS=$as_save_IFS
13681
13682 fi
13683 fi
13684 OTOOL=$ac_cv_prog_OTOOL
13685 if test -n "$OTOOL"; then
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13687 $as_echo "$OTOOL" >&6; }
13688 else
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13690 $as_echo "no" >&6; }
13691 fi
13692
13693
13694 fi
13695 if test -z "$ac_cv_prog_OTOOL"; then
13696 ac_ct_OTOOL=$OTOOL
13697 # Extract the first word of "otool", so it can be a program name with args.
13698 set dummy otool; ac_word=$2
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13700 $as_echo_n "checking for $ac_word... " >&6; }
13701 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13702 $as_echo_n "(cached) " >&6
13703 else
13704 if test -n "$ac_ct_OTOOL"; then
13705 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13706 else
13707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13708 for as_dir in $PATH
13709 do
13710 IFS=$as_save_IFS
13711 test -z "$as_dir" && as_dir=.
13712 for ac_exec_ext in '' $ac_executable_extensions; do
13713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13714 ac_cv_prog_ac_ct_OTOOL="otool"
13715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13716 break 2
13717 fi
13718 done
13719 done
13720 IFS=$as_save_IFS
13721
13722 fi
13723 fi
13724 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13725 if test -n "$ac_ct_OTOOL"; then
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13727 $as_echo "$ac_ct_OTOOL" >&6; }
13728 else
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13730 $as_echo "no" >&6; }
13731 fi
13732
13733 if test "x$ac_ct_OTOOL" = x; then
13734 OTOOL=":"
13735 else
13736 case $cross_compiling:$ac_tool_warned in
13737 yes:)
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13739 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13740 ac_tool_warned=yes ;;
13741 esac
13742 OTOOL=$ac_ct_OTOOL
13743 fi
13744 else
13745 OTOOL="$ac_cv_prog_OTOOL"
13746 fi
13747
13748 if test -n "$ac_tool_prefix"; then
13749 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13750 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13752 $as_echo_n "checking for $ac_word... " >&6; }
13753 if ${ac_cv_prog_OTOOL64+:} false; then :
13754 $as_echo_n "(cached) " >&6
13755 else
13756 if test -n "$OTOOL64"; then
13757 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13758 else
13759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13760 for as_dir in $PATH
13761 do
13762 IFS=$as_save_IFS
13763 test -z "$as_dir" && as_dir=.
13764 for ac_exec_ext in '' $ac_executable_extensions; do
13765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13766 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13768 break 2
13769 fi
13770 done
13771 done
13772 IFS=$as_save_IFS
13773
13774 fi
13775 fi
13776 OTOOL64=$ac_cv_prog_OTOOL64
13777 if test -n "$OTOOL64"; then
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13779 $as_echo "$OTOOL64" >&6; }
13780 else
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13782 $as_echo "no" >&6; }
13783 fi
13784
13785
13786 fi
13787 if test -z "$ac_cv_prog_OTOOL64"; then
13788 ac_ct_OTOOL64=$OTOOL64
13789 # Extract the first word of "otool64", so it can be a program name with args.
13790 set dummy otool64; ac_word=$2
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13792 $as_echo_n "checking for $ac_word... " >&6; }
13793 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13794 $as_echo_n "(cached) " >&6
13795 else
13796 if test -n "$ac_ct_OTOOL64"; then
13797 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13798 else
13799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13800 for as_dir in $PATH
13801 do
13802 IFS=$as_save_IFS
13803 test -z "$as_dir" && as_dir=.
13804 for ac_exec_ext in '' $ac_executable_extensions; do
13805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13806 ac_cv_prog_ac_ct_OTOOL64="otool64"
13807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13808 break 2
13809 fi
13810 done
13811 done
13812 IFS=$as_save_IFS
13813
13814 fi
13815 fi
13816 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13817 if test -n "$ac_ct_OTOOL64"; then
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13819 $as_echo "$ac_ct_OTOOL64" >&6; }
13820 else
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13822 $as_echo "no" >&6; }
13823 fi
13824
13825 if test "x$ac_ct_OTOOL64" = x; then
13826 OTOOL64=":"
13827 else
13828 case $cross_compiling:$ac_tool_warned in
13829 yes:)
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13831 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13832 ac_tool_warned=yes ;;
13833 esac
13834 OTOOL64=$ac_ct_OTOOL64
13835 fi
13836 else
13837 OTOOL64="$ac_cv_prog_OTOOL64"
13838 fi
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13867 $as_echo_n "checking for -single_module linker flag... " >&6; }
13868 if ${lt_cv_apple_cc_single_mod+:} false; then :
13869 $as_echo_n "(cached) " >&6
13870 else
13871 lt_cv_apple_cc_single_mod=no
13872 if test -z "$LT_MULTI_MODULE"; then
13873 # By default we will add the -single_module flag. You can override
13874 # by either setting the environment variable LT_MULTI_MODULE
13875 # non-empty at configure time, or by adding -multi_module to the
13876 # link flags.
13877 rm -rf libconftest.dylib*
13878 echo "int foo(void){return 1;}" > conftest.c
13879 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13880 -dynamiclib -Wl,-single_module conftest.c" >&5
13881 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13882 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13883 _lt_result=$?
13884 # If there is a non-empty error log, and "single_module"
13885 # appears in it, assume the flag caused a linker warning
13886 if test -s conftest.err && $GREP single_module conftest.err; then
13887 cat conftest.err >&5
13888 # Otherwise, if the output was created with a 0 exit code from
13889 # the compiler, it worked.
13890 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
13891 lt_cv_apple_cc_single_mod=yes
13892 else
13893 cat conftest.err >&5
13894 fi
13895 rm -rf libconftest.dylib*
13896 rm -f conftest.*
13897 fi
13898 fi
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13900 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13901
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13903 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13904 if ${lt_cv_ld_exported_symbols_list+:} false; then :
13905 $as_echo_n "(cached) " >&6
13906 else
13907 lt_cv_ld_exported_symbols_list=no
13908 save_LDFLAGS=$LDFLAGS
13909 echo "_main" > conftest.sym
13910 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13912 /* end confdefs.h. */
13913
13914 int
13915 main ()
13916 {
13917
13918 ;
13919 return 0;
13920 }
13921 _ACEOF
13922 if ac_fn_c_try_link "$LINENO"; then :
13923 lt_cv_ld_exported_symbols_list=yes
13924 else
13925 lt_cv_ld_exported_symbols_list=no
13926 fi
13927 rm -f core conftest.err conftest.$ac_objext \
13928 conftest$ac_exeext conftest.$ac_ext
13929 LDFLAGS=$save_LDFLAGS
13930
13931 fi
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13933 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13934
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13936 $as_echo_n "checking for -force_load linker flag... " >&6; }
13937 if ${lt_cv_ld_force_load+:} false; then :
13938 $as_echo_n "(cached) " >&6
13939 else
13940 lt_cv_ld_force_load=no
13941 cat > conftest.c << _LT_EOF
13942 int forced_loaded() { return 2;}
13943 _LT_EOF
13944 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13945 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13946 echo "$AR cru libconftest.a conftest.o" >&5
13947 $AR cru libconftest.a conftest.o 2>&5
13948 echo "$RANLIB libconftest.a" >&5
13949 $RANLIB libconftest.a 2>&5
13950 cat > conftest.c << _LT_EOF
13951 int main() { return 0;}
13952 _LT_EOF
13953 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13954 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13955 _lt_result=$?
13956 if test -s conftest.err && $GREP force_load conftest.err; then
13957 cat conftest.err >&5
13958 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
13959 lt_cv_ld_force_load=yes
13960 else
13961 cat conftest.err >&5
13962 fi
13963 rm -f conftest.err libconftest.a conftest conftest.c
13964 rm -rf conftest.dSYM
13965
13966 fi
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13968 $as_echo "$lt_cv_ld_force_load" >&6; }
13969 case $host_os in
13970 rhapsody* | darwin1.[012])
13971 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
13972 darwin1.*)
13973 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
13974 darwin*) # darwin 5.x on
13975 # if running on 10.5 or later, the deployment target defaults
13976 # to the OS version, if on x86, and 10.4, the deployment
13977 # target defaults to 10.4. Don't you love it?
13978 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13979 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13980 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
13981 10.[012][,.]*)
13982 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
13983 10.*)
13984 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
13985 esac
13986 ;;
13987 esac
13988 if test yes = "$lt_cv_apple_cc_single_mod"; then
13989 _lt_dar_single_mod='$single_module'
13990 fi
13991 if test yes = "$lt_cv_ld_exported_symbols_list"; then
13992 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
13993 else
13994 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
13995 fi
13996 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
13997 _lt_dsymutil='~$DSYMUTIL $lib || :'
13998 else
13999 _lt_dsymutil=
14000 fi
14001 ;;
14002 esac
14003
14004 # func_munge_path_list VARIABLE PATH
14005 # -----------------------------------
14006 # VARIABLE is name of variable containing _space_ separated list of
14007 # directories to be munged by the contents of PATH, which is string
14008 # having a format:
14009 # "DIR[:DIR]:"
14010 # string "DIR[ DIR]" will be prepended to VARIABLE
14011 # ":DIR[:DIR]"
14012 # string "DIR[ DIR]" will be appended to VARIABLE
14013 # "DIRP[:DIRP]::[DIRA:]DIRA"
14014 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14015 # "DIRA[ DIRA]" will be appended to VARIABLE
14016 # "DIR[:DIR]"
14017 # VARIABLE will be replaced by "DIR[ DIR]"
14018 func_munge_path_list ()
14019 {
14020 case x$2 in
14021 x)
14022 ;;
14023 *:)
14024 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14025 ;;
14026 x:*)
14027 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14028 ;;
14029 *::*)
14030 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14031 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14032 ;;
14033 *)
14034 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14035 ;;
14036 esac
14037 }
14038
14039 for ac_header in dlfcn.h
14040 do :
14041 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14042 "
14043 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14044 cat >>confdefs.h <<_ACEOF
14045 #define HAVE_DLFCN_H 1
14046 _ACEOF
14047
14048 fi
14049
14050 done
14051
14052
14053
14054
14055
14056 # Set options
14057
14058
14059
14060 enable_dlopen=no
14061
14062
14063 enable_win32_dll=no
14064
14065
14066 # Check whether --enable-shared was given.
14067 if test "${enable_shared+set}" = set; then :
14068 enableval=$enable_shared; p=${PACKAGE-default}
14069 case $enableval in
14070 yes) enable_shared=yes ;;
14071 no) enable_shared=no ;;
14072 *)
14073 enable_shared=no
14074 # Look at the argument we got. We use all the common list separators.
14075 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14076 for pkg in $enableval; do
14077 IFS=$lt_save_ifs
14078 if test "X$pkg" = "X$p"; then
14079 enable_shared=yes
14080 fi
14081 done
14082 IFS=$lt_save_ifs
14083 ;;
14084 esac
14085 else
14086 enable_shared=yes
14087 fi
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099 # Check whether --with-pic was given.
14100 if test "${with_pic+set}" = set; then :
14101 withval=$with_pic; lt_p=${PACKAGE-default}
14102 case $withval in
14103 yes|no) pic_mode=$withval ;;
14104 *)
14105 pic_mode=default
14106 # Look at the argument we got. We use all the common list separators.
14107 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14108 for lt_pkg in $withval; do
14109 IFS=$lt_save_ifs
14110 if test "X$lt_pkg" = "X$lt_p"; then
14111 pic_mode=yes
14112 fi
14113 done
14114 IFS=$lt_save_ifs
14115 ;;
14116 esac
14117 else
14118 pic_mode=default
14119 fi
14120
14121
14122
14123
14124
14125
14126
14127
14128 # Check whether --enable-fast-install was given.
14129 if test "${enable_fast_install+set}" = set; then :
14130 enableval=$enable_fast_install; p=${PACKAGE-default}
14131 case $enableval in
14132 yes) enable_fast_install=yes ;;
14133 no) enable_fast_install=no ;;
14134 *)
14135 enable_fast_install=no
14136 # Look at the argument we got. We use all the common list separators.
14137 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14138 for pkg in $enableval; do
14139 IFS=$lt_save_ifs
14140 if test "X$pkg" = "X$p"; then
14141 enable_fast_install=yes
14142 fi
14143 done
14144 IFS=$lt_save_ifs
14145 ;;
14146 esac
14147 else
14148 enable_fast_install=yes
14149 fi
14150
14151
14152
14153
14154
14155
14156
14157
14158 shared_archive_member_spec=
14159 case $host,$enable_shared in
14160 power*-*-aix[5-9]*,yes)
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
14162 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
14163
14164 # Check whether --with-aix-soname was given.
14165 if test "${with_aix_soname+set}" = set; then :
14166 withval=$with_aix_soname; case $withval in
14167 aix|svr4|both)
14168 ;;
14169 *)
14170 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
14171 ;;
14172 esac
14173 lt_cv_with_aix_soname=$with_aix_soname
14174 else
14175 if ${lt_cv_with_aix_soname+:} false; then :
14176 $as_echo_n "(cached) " >&6
14177 else
14178 lt_cv_with_aix_soname=aix
14179 fi
14180
14181 with_aix_soname=$lt_cv_with_aix_soname
14182 fi
14183
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
14185 $as_echo "$with_aix_soname" >&6; }
14186 if test aix != "$with_aix_soname"; then
14187 # For the AIX way of multilib, we name the shared archive member
14188 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
14189 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
14190 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
14191 # the AIX toolchain works better with OBJECT_MODE set (default 32).
14192 if test 64 = "${OBJECT_MODE-32}"; then
14193 shared_archive_member_spec=shr_64
14194 else
14195 shared_archive_member_spec=shr
14196 fi
14197 fi
14198 ;;
14199 *)
14200 with_aix_soname=aix
14201 ;;
14202 esac
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213 # This can be used to rebuild libtool when needed
14214 LIBTOOL_DEPS=$ltmain
14215
14216 # Always use our own libtool.
14217 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248 test -z "$LN_S" && LN_S="ln -s"
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263 if test -n "${ZSH_VERSION+set}"; then
14264 setopt NO_GLOB_SUBST
14265 fi
14266
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14268 $as_echo_n "checking for objdir... " >&6; }
14269 if ${lt_cv_objdir+:} false; then :
14270 $as_echo_n "(cached) " >&6
14271 else
14272 rm -f .libs 2>/dev/null
14273 mkdir .libs 2>/dev/null
14274 if test -d .libs; then
14275 lt_cv_objdir=.libs
14276 else
14277 # MS-DOS does not allow filenames that begin with a dot.
14278 lt_cv_objdir=_libs
14279 fi
14280 rmdir .libs 2>/dev/null
14281 fi
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14283 $as_echo "$lt_cv_objdir" >&6; }
14284 objdir=$lt_cv_objdir
14285
14286
14287
14288
14289
14290 cat >>confdefs.h <<_ACEOF
14291 #define LT_OBJDIR "$lt_cv_objdir/"
14292 _ACEOF
14293
14294
14295
14296
14297 case $host_os in
14298 aix3*)
14299 # AIX sometimes has problems with the GCC collect2 program. For some
14300 # reason, if we set the COLLECT_NAMES environment variable, the problems
14301 # vanish in a puff of smoke.
14302 if test set != "${COLLECT_NAMES+set}"; then
14303 COLLECT_NAMES=
14304 export COLLECT_NAMES
14305 fi
14306 ;;
14307 esac
14308
14309 # Global variables:
14310 ofile=libtool
14311 can_build_shared=yes
14312
14313 # All known linkers require a '.a' archive for static linking (except MSVC,
14314 # which needs '.lib').
14315 libext=a
14316
14317 with_gnu_ld=$lt_cv_prog_gnu_ld
14318
14319 old_CC=$CC
14320 old_CFLAGS=$CFLAGS
14321
14322 # Set sane defaults for various variables
14323 test -z "$CC" && CC=cc
14324 test -z "$LTCC" && LTCC=$CC
14325 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14326 test -z "$LD" && LD=ld
14327 test -z "$ac_objext" && ac_objext=o
14328
14329 func_cc_basename $compiler
14330 cc_basename=$func_cc_basename_result
14331
14332
14333 # Only perform the check for file, if the check method requires it
14334 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14335 case $deplibs_check_method in
14336 file_magic*)
14337 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14339 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14340 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14341 $as_echo_n "(cached) " >&6
14342 else
14343 case $MAGIC_CMD in
14344 [\\/*] | ?:[\\/]*)
14345 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14346 ;;
14347 *)
14348 lt_save_MAGIC_CMD=$MAGIC_CMD
14349 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14350 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14351 for ac_dir in $ac_dummy; do
14352 IFS=$lt_save_ifs
14353 test -z "$ac_dir" && ac_dir=.
14354 if test -f "$ac_dir/${ac_tool_prefix}file"; then
14355 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
14356 if test -n "$file_magic_test_file"; then
14357 case $deplibs_check_method in
14358 "file_magic "*)
14359 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14360 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14361 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14362 $EGREP "$file_magic_regex" > /dev/null; then
14363 :
14364 else
14365 cat <<_LT_EOF 1>&2
14366
14367 *** Warning: the command libtool uses to detect shared libraries,
14368 *** $file_magic_cmd, produces output that libtool cannot recognize.
14369 *** The result is that libtool may fail to recognize shared libraries
14370 *** as such. This will affect the creation of libtool libraries that
14371 *** depend on shared libraries, but programs linked with such libtool
14372 *** libraries will work regardless of this problem. Nevertheless, you
14373 *** may want to report the problem to your system manager and/or to
14374 *** bug-libtool (at] gnu.org
14375
14376 _LT_EOF
14377 fi ;;
14378 esac
14379 fi
14380 break
14381 fi
14382 done
14383 IFS=$lt_save_ifs
14384 MAGIC_CMD=$lt_save_MAGIC_CMD
14385 ;;
14386 esac
14387 fi
14388
14389 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14390 if test -n "$MAGIC_CMD"; then
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14392 $as_echo "$MAGIC_CMD" >&6; }
14393 else
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14395 $as_echo "no" >&6; }
14396 fi
14397
14398
14399
14400
14401
14402 if test -z "$lt_cv_path_MAGIC_CMD"; then
14403 if test -n "$ac_tool_prefix"; then
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14405 $as_echo_n "checking for file... " >&6; }
14406 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14407 $as_echo_n "(cached) " >&6
14408 else
14409 case $MAGIC_CMD in
14410 [\\/*] | ?:[\\/]*)
14411 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14412 ;;
14413 *)
14414 lt_save_MAGIC_CMD=$MAGIC_CMD
14415 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14416 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14417 for ac_dir in $ac_dummy; do
14418 IFS=$lt_save_ifs
14419 test -z "$ac_dir" && ac_dir=.
14420 if test -f "$ac_dir/file"; then
14421 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
14422 if test -n "$file_magic_test_file"; then
14423 case $deplibs_check_method in
14424 "file_magic "*)
14425 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14426 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14427 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14428 $EGREP "$file_magic_regex" > /dev/null; then
14429 :
14430 else
14431 cat <<_LT_EOF 1>&2
14432
14433 *** Warning: the command libtool uses to detect shared libraries,
14434 *** $file_magic_cmd, produces output that libtool cannot recognize.
14435 *** The result is that libtool may fail to recognize shared libraries
14436 *** as such. This will affect the creation of libtool libraries that
14437 *** depend on shared libraries, but programs linked with such libtool
14438 *** libraries will work regardless of this problem. Nevertheless, you
14439 *** may want to report the problem to your system manager and/or to
14440 *** bug-libtool (at] gnu.org
14441
14442 _LT_EOF
14443 fi ;;
14444 esac
14445 fi
14446 break
14447 fi
14448 done
14449 IFS=$lt_save_ifs
14450 MAGIC_CMD=$lt_save_MAGIC_CMD
14451 ;;
14452 esac
14453 fi
14454
14455 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14456 if test -n "$MAGIC_CMD"; then
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14458 $as_echo "$MAGIC_CMD" >&6; }
14459 else
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14461 $as_echo "no" >&6; }
14462 fi
14463
14464
14465 else
14466 MAGIC_CMD=:
14467 fi
14468 fi
14469
14470 fi
14471 ;;
14472 esac
14473
14474 # Use C for the default configuration in the libtool script
14475
14476 lt_save_CC=$CC
14477 ac_ext=c
14478 ac_cpp='$CPP $CPPFLAGS'
14479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14482
14483
14484 # Source file extension for C test sources.
14485 ac_ext=c
14486
14487 # Object file extension for compiled C test sources.
14488 objext=o
14489 objext=$objext
14490
14491 # Code to be used in simple compile tests
14492 lt_simple_compile_test_code="int some_variable = 0;"
14493
14494 # Code to be used in simple link tests
14495 lt_simple_link_test_code='int main(){return(0);}'
14496
14497
14498
14499
14500
14501
14502
14503 # If no C compiler was specified, use CC.
14504 LTCC=${LTCC-"$CC"}
14505
14506 # If no C compiler flags were specified, use CFLAGS.
14507 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14508
14509 # Allow CC to be a program name with arguments.
14510 compiler=$CC
14511
14512 # Save the default compiler, since it gets overwritten when the other
14513 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14514 compiler_DEFAULT=$CC
14515
14516 # save warnings/boilerplate of simple test code
14517 ac_outfile=conftest.$ac_objext
14518 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14519 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14520 _lt_compiler_boilerplate=`cat conftest.err`
14521 $RM conftest*
14522
14523 ac_outfile=conftest.$ac_objext
14524 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14525 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14526 _lt_linker_boilerplate=`cat conftest.err`
14527 $RM -r conftest*
14528
14529
14530 if test -n "$compiler"; then
14531
14532 lt_prog_compiler_no_builtin_flag=
14533
14534 if test yes = "$GCC"; then
14535 case $cc_basename in
14536 nvcc*)
14537 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14538 *)
14539 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14540 esac
14541
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14543 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14544 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14545 $as_echo_n "(cached) " >&6
14546 else
14547 lt_cv_prog_compiler_rtti_exceptions=no
14548 ac_outfile=conftest.$ac_objext
14549 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14550 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
14551 # Insert the option either (1) after the last *FLAGS variable, or
14552 # (2) before a word containing "conftest.", or (3) at the end.
14553 # Note that $ac_compile itself does not contain backslashes and begins
14554 # with a dollar sign (not a hyphen), so the echo should work correctly.
14555 # The option is referenced via a variable to avoid confusing sed.
14556 lt_compile=`echo "$ac_compile" | $SED \
14557 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14558 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14559 -e 's:$: $lt_compiler_flag:'`
14560 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14561 (eval "$lt_compile" 2>conftest.err)
14562 ac_status=$?
14563 cat conftest.err >&5
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 if (exit $ac_status) && test -s "$ac_outfile"; then
14566 # The compiler can only warn and ignore the option if not recognized
14567 # So say no if there are warnings other than the usual output.
14568 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14569 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14570 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14571 lt_cv_prog_compiler_rtti_exceptions=yes
14572 fi
14573 fi
14574 $RM conftest*
14575
14576 fi
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14578 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14579
14580 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
14581 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14582 else
14583 :
14584 fi
14585
14586 fi
14587
14588
14589
14590
14591
14592
14593 lt_prog_compiler_wl=
14594 lt_prog_compiler_pic=
14595 lt_prog_compiler_static=
14596
14597
14598 if test yes = "$GCC"; then
14599 lt_prog_compiler_wl='-Wl,'
14600 lt_prog_compiler_static='-static'
14601
14602 case $host_os in
14603 aix*)
14604 # All AIX code is PIC.
14605 if test ia64 = "$host_cpu"; then
14606 # AIX 5 now supports IA64 processor
14607 lt_prog_compiler_static='-Bstatic'
14608 fi
14609 lt_prog_compiler_pic='-fPIC'
14610 ;;
14611
14612 amigaos*)
14613 case $host_cpu in
14614 powerpc)
14615 # see comment about AmigaOS4 .so support
14616 lt_prog_compiler_pic='-fPIC'
14617 ;;
14618 m68k)
14619 # FIXME: we need at least 68020 code to build shared libraries, but
14620 # adding the '-m68020' flag to GCC prevents building anything better,
14621 # like '-m68040'.
14622 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14623 ;;
14624 esac
14625 ;;
14626
14627 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14628 # PIC is the default for these OSes.
14629 ;;
14630
14631 mingw* | cygwin* | pw32* | os2* | cegcc*)
14632 # This hack is so that the source file can tell whether it is being
14633 # built for inclusion in a dll (and should export symbols for example).
14634 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14635 # (--disable-auto-import) libraries
14636 lt_prog_compiler_pic='-DDLL_EXPORT'
14637 case $host_os in
14638 os2*)
14639 lt_prog_compiler_static='$wl-static'
14640 ;;
14641 esac
14642 ;;
14643
14644 darwin* | rhapsody*)
14645 # PIC is the default on this platform
14646 # Common symbols not allowed in MH_DYLIB files
14647 lt_prog_compiler_pic='-fno-common'
14648 ;;
14649
14650 haiku*)
14651 # PIC is the default for Haiku.
14652 # The "-static" flag exists, but is broken.
14653 lt_prog_compiler_static=
14654 ;;
14655
14656 hpux*)
14657 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14658 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14659 # sets the default TLS model and affects inlining.
14660 case $host_cpu in
14661 hppa*64*)
14662 # +Z the default
14663 ;;
14664 *)
14665 lt_prog_compiler_pic='-fPIC'
14666 ;;
14667 esac
14668 ;;
14669
14670 interix[3-9]*)
14671 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14672 # Instead, we relocate shared libraries at runtime.
14673 ;;
14674
14675 msdosdjgpp*)
14676 # Just because we use GCC doesn't mean we suddenly get shared libraries
14677 # on systems that don't support them.
14678 lt_prog_compiler_can_build_shared=no
14679 enable_shared=no
14680 ;;
14681
14682 *nto* | *qnx*)
14683 # QNX uses GNU C++, but need to define -shared option too, otherwise
14684 # it will coredump.
14685 lt_prog_compiler_pic='-fPIC -shared'
14686 ;;
14687
14688 sysv4*MP*)
14689 if test -d /usr/nec; then
14690 lt_prog_compiler_pic=-Kconform_pic
14691 fi
14692 ;;
14693
14694 *)
14695 lt_prog_compiler_pic='-fPIC'
14696 ;;
14697 esac
14698
14699 case $cc_basename in
14700 nvcc*) # Cuda Compiler Driver 2.2
14701 lt_prog_compiler_wl='-Xlinker '
14702 if test -n "$lt_prog_compiler_pic"; then
14703 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14704 fi
14705 ;;
14706 esac
14707 else
14708 # PORTME Check for flag to pass linker flags through the system compiler.
14709 case $host_os in
14710 aix*)
14711 lt_prog_compiler_wl='-Wl,'
14712 if test ia64 = "$host_cpu"; then
14713 # AIX 5 now supports IA64 processor
14714 lt_prog_compiler_static='-Bstatic'
14715 else
14716 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14717 fi
14718 ;;
14719
14720 darwin* | rhapsody*)
14721 # PIC is the default on this platform
14722 # Common symbols not allowed in MH_DYLIB files
14723 lt_prog_compiler_pic='-fno-common'
14724 case $cc_basename in
14725 nagfor*)
14726 # NAG Fortran compiler
14727 lt_prog_compiler_wl='-Wl,-Wl,,'
14728 lt_prog_compiler_pic='-PIC'
14729 lt_prog_compiler_static='-Bstatic'
14730 ;;
14731 esac
14732 ;;
14733
14734 mingw* | cygwin* | pw32* | os2* | cegcc*)
14735 # This hack is so that the source file can tell whether it is being
14736 # built for inclusion in a dll (and should export symbols for example).
14737 lt_prog_compiler_pic='-DDLL_EXPORT'
14738 case $host_os in
14739 os2*)
14740 lt_prog_compiler_static='$wl-static'
14741 ;;
14742 esac
14743 ;;
14744
14745 hpux9* | hpux10* | hpux11*)
14746 lt_prog_compiler_wl='-Wl,'
14747 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14748 # not for PA HP-UX.
14749 case $host_cpu in
14750 hppa*64*|ia64*)
14751 # +Z the default
14752 ;;
14753 *)
14754 lt_prog_compiler_pic='+Z'
14755 ;;
14756 esac
14757 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14758 lt_prog_compiler_static='$wl-a ${wl}archive'
14759 ;;
14760
14761 irix5* | irix6* | nonstopux*)
14762 lt_prog_compiler_wl='-Wl,'
14763 # PIC (with -KPIC) is the default.
14764 lt_prog_compiler_static='-non_shared'
14765 ;;
14766
14767 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14768 case $cc_basename in
14769 # old Intel for x86_64, which still supported -KPIC.
14770 ecc*)
14771 lt_prog_compiler_wl='-Wl,'
14772 lt_prog_compiler_pic='-KPIC'
14773 lt_prog_compiler_static='-static'
14774 ;;
14775 # icc used to be incompatible with GCC.
14776 # ICC 10 doesn't accept -KPIC any more.
14777 icc* | ifort*)
14778 lt_prog_compiler_wl='-Wl,'
14779 lt_prog_compiler_pic='-fPIC'
14780 lt_prog_compiler_static='-static'
14781 ;;
14782 # Lahey Fortran 8.1.
14783 lf95*)
14784 lt_prog_compiler_wl='-Wl,'
14785 lt_prog_compiler_pic='--shared'
14786 lt_prog_compiler_static='--static'
14787 ;;
14788 nagfor*)
14789 # NAG Fortran compiler
14790 lt_prog_compiler_wl='-Wl,-Wl,,'
14791 lt_prog_compiler_pic='-PIC'
14792 lt_prog_compiler_static='-Bstatic'
14793 ;;
14794 tcc*)
14795 # Fabrice Bellard et al's Tiny C Compiler
14796 lt_prog_compiler_wl='-Wl,'
14797 lt_prog_compiler_pic='-fPIC'
14798 lt_prog_compiler_static='-static'
14799 ;;
14800 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14801 # Portland Group compilers (*not* the Pentium gcc compiler,
14802 # which looks to be a dead project)
14803 lt_prog_compiler_wl='-Wl,'
14804 lt_prog_compiler_pic='-fpic'
14805 lt_prog_compiler_static='-Bstatic'
14806 ;;
14807 ccc*)
14808 lt_prog_compiler_wl='-Wl,'
14809 # All Alpha code is PIC.
14810 lt_prog_compiler_static='-non_shared'
14811 ;;
14812 xl* | bgxl* | bgf* | mpixl*)
14813 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14814 lt_prog_compiler_wl='-Wl,'
14815 lt_prog_compiler_pic='-qpic'
14816 lt_prog_compiler_static='-qstaticlink'
14817 ;;
14818 *)
14819 case `$CC -V 2>&1 | sed 5q` in
14820 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14821 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14822 lt_prog_compiler_pic='-KPIC'
14823 lt_prog_compiler_static='-Bstatic'
14824 lt_prog_compiler_wl=''
14825 ;;
14826 *Sun\ F* | *Sun*Fortran*)
14827 lt_prog_compiler_pic='-KPIC'
14828 lt_prog_compiler_static='-Bstatic'
14829 lt_prog_compiler_wl='-Qoption ld '
14830 ;;
14831 *Sun\ C*)
14832 # Sun C 5.9
14833 lt_prog_compiler_pic='-KPIC'
14834 lt_prog_compiler_static='-Bstatic'
14835 lt_prog_compiler_wl='-Wl,'
14836 ;;
14837 *Intel*\ [CF]*Compiler*)
14838 lt_prog_compiler_wl='-Wl,'
14839 lt_prog_compiler_pic='-fPIC'
14840 lt_prog_compiler_static='-static'
14841 ;;
14842 *Portland\ Group*)
14843 lt_prog_compiler_wl='-Wl,'
14844 lt_prog_compiler_pic='-fpic'
14845 lt_prog_compiler_static='-Bstatic'
14846 ;;
14847 esac
14848 ;;
14849 esac
14850 ;;
14851
14852 newsos6)
14853 lt_prog_compiler_pic='-KPIC'
14854 lt_prog_compiler_static='-Bstatic'
14855 ;;
14856
14857 *nto* | *qnx*)
14858 # QNX uses GNU C++, but need to define -shared option too, otherwise
14859 # it will coredump.
14860 lt_prog_compiler_pic='-fPIC -shared'
14861 ;;
14862
14863 osf3* | osf4* | osf5*)
14864 lt_prog_compiler_wl='-Wl,'
14865 # All OSF/1 code is PIC.
14866 lt_prog_compiler_static='-non_shared'
14867 ;;
14868
14869 rdos*)
14870 lt_prog_compiler_static='-non_shared'
14871 ;;
14872
14873 solaris*)
14874 lt_prog_compiler_pic='-KPIC'
14875 lt_prog_compiler_static='-Bstatic'
14876 case $cc_basename in
14877 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14878 lt_prog_compiler_wl='-Qoption ld ';;
14879 *)
14880 lt_prog_compiler_wl='-Wl,';;
14881 esac
14882 ;;
14883
14884 sunos4*)
14885 lt_prog_compiler_wl='-Qoption ld '
14886 lt_prog_compiler_pic='-PIC'
14887 lt_prog_compiler_static='-Bstatic'
14888 ;;
14889
14890 sysv4 | sysv4.2uw2* | sysv4.3*)
14891 lt_prog_compiler_wl='-Wl,'
14892 lt_prog_compiler_pic='-KPIC'
14893 lt_prog_compiler_static='-Bstatic'
14894 ;;
14895
14896 sysv4*MP*)
14897 if test -d /usr/nec; then
14898 lt_prog_compiler_pic='-Kconform_pic'
14899 lt_prog_compiler_static='-Bstatic'
14900 fi
14901 ;;
14902
14903 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14904 lt_prog_compiler_wl='-Wl,'
14905 lt_prog_compiler_pic='-KPIC'
14906 lt_prog_compiler_static='-Bstatic'
14907 ;;
14908
14909 unicos*)
14910 lt_prog_compiler_wl='-Wl,'
14911 lt_prog_compiler_can_build_shared=no
14912 ;;
14913
14914 uts4*)
14915 lt_prog_compiler_pic='-pic'
14916 lt_prog_compiler_static='-Bstatic'
14917 ;;
14918
14919 *)
14920 lt_prog_compiler_can_build_shared=no
14921 ;;
14922 esac
14923 fi
14924
14925 case $host_os in
14926 # For platforms that do not support PIC, -DPIC is meaningless:
14927 *djgpp*)
14928 lt_prog_compiler_pic=
14929 ;;
14930 *)
14931 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14932 ;;
14933 esac
14934
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14936 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14937 if ${lt_cv_prog_compiler_pic+:} false; then :
14938 $as_echo_n "(cached) " >&6
14939 else
14940 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14941 fi
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14943 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
14944 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14945
14946 #
14947 # Check to make sure the PIC flag actually works.
14948 #
14949 if test -n "$lt_prog_compiler_pic"; then
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14951 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14952 if ${lt_cv_prog_compiler_pic_works+:} false; then :
14953 $as_echo_n "(cached) " >&6
14954 else
14955 lt_cv_prog_compiler_pic_works=no
14956 ac_outfile=conftest.$ac_objext
14957 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14958 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
14959 # Insert the option either (1) after the last *FLAGS variable, or
14960 # (2) before a word containing "conftest.", or (3) at the end.
14961 # Note that $ac_compile itself does not contain backslashes and begins
14962 # with a dollar sign (not a hyphen), so the echo should work correctly.
14963 # The option is referenced via a variable to avoid confusing sed.
14964 lt_compile=`echo "$ac_compile" | $SED \
14965 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14966 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14967 -e 's:$: $lt_compiler_flag:'`
14968 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14969 (eval "$lt_compile" 2>conftest.err)
14970 ac_status=$?
14971 cat conftest.err >&5
14972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973 if (exit $ac_status) && test -s "$ac_outfile"; then
14974 # The compiler can only warn and ignore the option if not recognized
14975 # So say no if there are warnings other than the usual output.
14976 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14977 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14978 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14979 lt_cv_prog_compiler_pic_works=yes
14980 fi
14981 fi
14982 $RM conftest*
14983
14984 fi
14985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14986 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14987
14988 if test yes = "$lt_cv_prog_compiler_pic_works"; then
14989 case $lt_prog_compiler_pic in
14990 "" | " "*) ;;
14991 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14992 esac
14993 else
14994 lt_prog_compiler_pic=
14995 lt_prog_compiler_can_build_shared=no
14996 fi
14997
14998 fi
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010 #
15011 # Check to make sure the static flag actually works.
15012 #
15013 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15015 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15016 if ${lt_cv_prog_compiler_static_works+:} false; then :
15017 $as_echo_n "(cached) " >&6
15018 else
15019 lt_cv_prog_compiler_static_works=no
15020 save_LDFLAGS=$LDFLAGS
15021 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15022 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15023 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15024 # The linker can only warn and ignore the option if not recognized
15025 # So say no if there are warnings
15026 if test -s conftest.err; then
15027 # Append any errors to the config.log.
15028 cat conftest.err 1>&5
15029 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15030 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15031 if diff conftest.exp conftest.er2 >/dev/null; then
15032 lt_cv_prog_compiler_static_works=yes
15033 fi
15034 else
15035 lt_cv_prog_compiler_static_works=yes
15036 fi
15037 fi
15038 $RM -r conftest*
15039 LDFLAGS=$save_LDFLAGS
15040
15041 fi
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15043 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15044
15045 if test yes = "$lt_cv_prog_compiler_static_works"; then
15046 :
15047 else
15048 lt_prog_compiler_static=
15049 fi
15050
15051
15052
15053
15054
15055
15056
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15058 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15059 if ${lt_cv_prog_compiler_c_o+:} false; then :
15060 $as_echo_n "(cached) " >&6
15061 else
15062 lt_cv_prog_compiler_c_o=no
15063 $RM -r conftest 2>/dev/null
15064 mkdir conftest
15065 cd conftest
15066 mkdir out
15067 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15068
15069 lt_compiler_flag="-o out/conftest2.$ac_objext"
15070 # Insert the option either (1) after the last *FLAGS variable, or
15071 # (2) before a word containing "conftest.", or (3) at the end.
15072 # Note that $ac_compile itself does not contain backslashes and begins
15073 # with a dollar sign (not a hyphen), so the echo should work correctly.
15074 lt_compile=`echo "$ac_compile" | $SED \
15075 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15076 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15077 -e 's:$: $lt_compiler_flag:'`
15078 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15079 (eval "$lt_compile" 2>out/conftest.err)
15080 ac_status=$?
15081 cat out/conftest.err >&5
15082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15084 then
15085 # The compiler can only warn and ignore the option if not recognized
15086 # So say no if there are warnings
15087 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15088 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15089 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15090 lt_cv_prog_compiler_c_o=yes
15091 fi
15092 fi
15093 chmod u+w . 2>&5
15094 $RM conftest*
15095 # SGI C++ compiler will create directory out/ii_files/ for
15096 # template instantiation
15097 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15098 $RM out/* && rmdir out
15099 cd ..
15100 $RM -r conftest
15101 $RM conftest*
15102
15103 fi
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15105 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15106
15107
15108
15109
15110
15111
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15113 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15114 if ${lt_cv_prog_compiler_c_o+:} false; then :
15115 $as_echo_n "(cached) " >&6
15116 else
15117 lt_cv_prog_compiler_c_o=no
15118 $RM -r conftest 2>/dev/null
15119 mkdir conftest
15120 cd conftest
15121 mkdir out
15122 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15123
15124 lt_compiler_flag="-o out/conftest2.$ac_objext"
15125 # Insert the option either (1) after the last *FLAGS variable, or
15126 # (2) before a word containing "conftest.", or (3) at the end.
15127 # Note that $ac_compile itself does not contain backslashes and begins
15128 # with a dollar sign (not a hyphen), so the echo should work correctly.
15129 lt_compile=`echo "$ac_compile" | $SED \
15130 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15131 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15132 -e 's:$: $lt_compiler_flag:'`
15133 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15134 (eval "$lt_compile" 2>out/conftest.err)
15135 ac_status=$?
15136 cat out/conftest.err >&5
15137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15139 then
15140 # The compiler can only warn and ignore the option if not recognized
15141 # So say no if there are warnings
15142 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15143 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15144 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15145 lt_cv_prog_compiler_c_o=yes
15146 fi
15147 fi
15148 chmod u+w . 2>&5
15149 $RM conftest*
15150 # SGI C++ compiler will create directory out/ii_files/ for
15151 # template instantiation
15152 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15153 $RM out/* && rmdir out
15154 cd ..
15155 $RM -r conftest
15156 $RM conftest*
15157
15158 fi
15159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15160 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15161
15162
15163
15164
15165 hard_links=nottested
15166 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
15167 # do not overwrite the value of need_locks provided by the user
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15169 $as_echo_n "checking if we can lock with hard links... " >&6; }
15170 hard_links=yes
15171 $RM conftest*
15172 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15173 touch conftest.a
15174 ln conftest.a conftest.b 2>&5 || hard_links=no
15175 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15177 $as_echo "$hard_links" >&6; }
15178 if test no = "$hard_links"; then
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15180 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15181 need_locks=warn
15182 fi
15183 else
15184 need_locks=no
15185 fi
15186
15187
15188
15189
15190
15191
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15193 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15194
15195 runpath_var=
15196 allow_undefined_flag=
15197 always_export_symbols=no
15198 archive_cmds=
15199 archive_expsym_cmds=
15200 compiler_needs_object=no
15201 enable_shared_with_static_runtimes=no
15202 export_dynamic_flag_spec=
15203 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15204 hardcode_automatic=no
15205 hardcode_direct=no
15206 hardcode_direct_absolute=no
15207 hardcode_libdir_flag_spec=
15208 hardcode_libdir_separator=
15209 hardcode_minus_L=no
15210 hardcode_shlibpath_var=unsupported
15211 inherit_rpath=no
15212 link_all_deplibs=unknown
15213 module_cmds=
15214 module_expsym_cmds=
15215 old_archive_from_new_cmds=
15216 old_archive_from_expsyms_cmds=
15217 thread_safe_flag_spec=
15218 whole_archive_flag_spec=
15219 # include_expsyms should be a list of space-separated symbols to be *always*
15220 # included in the symbol list
15221 include_expsyms=
15222 # exclude_expsyms can be an extended regexp of symbols to exclude
15223 # it will be wrapped by ' (' and ')$', so one must not match beginning or
15224 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
15225 # as well as any symbol that contains 'd'.
15226 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15227 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15228 # platforms (ab)use it in PIC code, but their linkers get confused if
15229 # the symbol is explicitly referenced. Since portable code cannot
15230 # rely on this symbol name, it's probably fine to never include it in
15231 # preloaded symbol tables.
15232 # Exclude shared library initialization/finalization symbols.
15233 extract_expsyms_cmds=
15234
15235 case $host_os in
15236 cygwin* | mingw* | pw32* | cegcc*)
15237 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15238 # When not using gcc, we currently assume that we are using
15239 # Microsoft Visual C++.
15240 if test yes != "$GCC"; then
15241 with_gnu_ld=no
15242 fi
15243 ;;
15244 interix*)
15245 # we just hope/assume this is gcc and not c89 (= MSVC++)
15246 with_gnu_ld=yes
15247 ;;
15248 openbsd* | bitrig*)
15249 with_gnu_ld=no
15250 ;;
15251 esac
15252
15253 ld_shlibs=yes
15254
15255 # On some targets, GNU ld is compatible enough with the native linker
15256 # that we're better off using the native interface for both.
15257 lt_use_gnu_ld_interface=no
15258 if test yes = "$with_gnu_ld"; then
15259 case $host_os in
15260 aix*)
15261 # The AIX port of GNU ld has always aspired to compatibility
15262 # with the native linker. However, as the warning in the GNU ld
15263 # block says, versions before 2.19.5* couldn't really create working
15264 # shared libraries, regardless of the interface used.
15265 case `$LD -v 2>&1` in
15266 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15267 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15268 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15269 *)
15270 lt_use_gnu_ld_interface=yes
15271 ;;
15272 esac
15273 ;;
15274 *)
15275 lt_use_gnu_ld_interface=yes
15276 ;;
15277 esac
15278 fi
15279
15280 if test yes = "$lt_use_gnu_ld_interface"; then
15281 # If archive_cmds runs LD, not CC, wlarc should be empty
15282 wlarc='$wl'
15283
15284 # Set some defaults for GNU ld with shared library support. These
15285 # are reset later if shared libraries are not supported. Putting them
15286 # here allows them to be overridden if necessary.
15287 runpath_var=LD_RUN_PATH
15288 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15289 export_dynamic_flag_spec='$wl--export-dynamic'
15290 # ancient GNU ld didn't support --whole-archive et. al.
15291 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15292 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15293 else
15294 whole_archive_flag_spec=
15295 fi
15296 supports_anon_versioning=no
15297 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
15298 *GNU\ gold*) supports_anon_versioning=yes ;;
15299 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15300 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15301 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15302 *\ 2.11.*) ;; # other 2.11 versions
15303 *) supports_anon_versioning=yes ;;
15304 esac
15305
15306 # See if GNU ld supports shared libraries.
15307 case $host_os in
15308 aix[3-9]*)
15309 # On AIX/PPC, the GNU linker is very broken
15310 if test ia64 != "$host_cpu"; then
15311 ld_shlibs=no
15312 cat <<_LT_EOF 1>&2
15313
15314 *** Warning: the GNU linker, at least up to release 2.19, is reported
15315 *** to be unable to reliably create shared libraries on AIX.
15316 *** Therefore, libtool is disabling shared libraries support. If you
15317 *** really care for shared libraries, you may want to install binutils
15318 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15319 *** You will then need to restart the configuration process.
15320
15321 _LT_EOF
15322 fi
15323 ;;
15324
15325 amigaos*)
15326 case $host_cpu in
15327 powerpc)
15328 # see comment about AmigaOS4 .so support
15329 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15330 archive_expsym_cmds=''
15331 ;;
15332 m68k)
15333 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)'
15334 hardcode_libdir_flag_spec='-L$libdir'
15335 hardcode_minus_L=yes
15336 ;;
15337 esac
15338 ;;
15339
15340 beos*)
15341 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15342 allow_undefined_flag=unsupported
15343 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
15344 # support --undefined. This deserves some investigation. FIXME
15345 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15346 else
15347 ld_shlibs=no
15348 fi
15349 ;;
15350
15351 cygwin* | mingw* | pw32* | cegcc*)
15352 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15353 # as there is no search path for DLLs.
15354 hardcode_libdir_flag_spec='-L$libdir'
15355 export_dynamic_flag_spec='$wl--export-all-symbols'
15356 allow_undefined_flag=unsupported
15357 always_export_symbols=no
15358 enable_shared_with_static_runtimes=yes
15359 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'
15360 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15361
15362 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15363 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15364 # If the export-symbols file already is a .def file, use it as
15365 # is; otherwise, prepend EXPORTS...
15366 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15367 cp $export_symbols $output_objdir/$soname.def;
15368 else
15369 echo EXPORTS > $output_objdir/$soname.def;
15370 cat $export_symbols >> $output_objdir/$soname.def;
15371 fi~
15372 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15373 else
15374 ld_shlibs=no
15375 fi
15376 ;;
15377
15378 haiku*)
15379 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15380 link_all_deplibs=yes
15381 ;;
15382
15383 os2*)
15384 hardcode_libdir_flag_spec='-L$libdir'
15385 hardcode_minus_L=yes
15386 allow_undefined_flag=unsupported
15387 shrext_cmds=.dll
15388 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15389 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15390 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15391 $ECHO EXPORTS >> $output_objdir/$libname.def~
15392 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15393 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15394 emximp -o $lib $output_objdir/$libname.def'
15395 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15396 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15397 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15398 $ECHO EXPORTS >> $output_objdir/$libname.def~
15399 prefix_cmds="$SED"~
15400 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15401 prefix_cmds="$prefix_cmds -e 1d";
15402 fi~
15403 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15404 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15405 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15406 emximp -o $lib $output_objdir/$libname.def'
15407 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15408 enable_shared_with_static_runtimes=yes
15409 ;;
15410
15411 interix[3-9]*)
15412 hardcode_direct=no
15413 hardcode_shlibpath_var=no
15414 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15415 export_dynamic_flag_spec='$wl-E'
15416 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15417 # Instead, shared libraries are loaded at an image base (0x10000000 by
15418 # default) and relocated if they conflict, which is a slow very memory
15419 # consuming and fragmenting process. To avoid this, we pick a random,
15420 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15421 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15422 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15423 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'
15424 ;;
15425
15426 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15427 tmp_diet=no
15428 if test linux-dietlibc = "$host_os"; then
15429 case $cc_basename in
15430 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15431 esac
15432 fi
15433 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15434 && test no = "$tmp_diet"
15435 then
15436 tmp_addflag=' $pic_flag'
15437 tmp_sharedflag='-shared'
15438 case $cc_basename,$host_cpu in
15439 pgcc*) # Portland Group C compiler
15440 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'
15441 tmp_addflag=' $pic_flag'
15442 ;;
15443 pgf77* | pgf90* | pgf95* | pgfortran*)
15444 # Portland Group f77 and f90 compilers
15445 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'
15446 tmp_addflag=' $pic_flag -Mnomain' ;;
15447 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15448 tmp_addflag=' -i_dynamic' ;;
15449 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15450 tmp_addflag=' -i_dynamic -nofor_main' ;;
15451 ifc* | ifort*) # Intel Fortran compiler
15452 tmp_addflag=' -nofor_main' ;;
15453 lf95*) # Lahey Fortran 8.1
15454 whole_archive_flag_spec=
15455 tmp_sharedflag='--shared' ;;
15456 nagfor*) # NAGFOR 5.3
15457 tmp_sharedflag='-Wl,-shared' ;;
15458 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15459 tmp_sharedflag='-qmkshrobj'
15460 tmp_addflag= ;;
15461 nvcc*) # Cuda Compiler Driver 2.2
15462 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'
15463 compiler_needs_object=yes
15464 ;;
15465 esac
15466 case `$CC -V 2>&1 | sed 5q` in
15467 *Sun\ C*) # Sun C 5.9
15468 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'
15469 compiler_needs_object=yes
15470 tmp_sharedflag='-G' ;;
15471 *Sun\ F*) # Sun Fortran 8.3
15472 tmp_sharedflag='-G' ;;
15473 esac
15474 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15475
15476 if test yes = "$supports_anon_versioning"; then
15477 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15478 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15479 echo "local: *; };" >> $output_objdir/$libname.ver~
15480 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15481 fi
15482
15483 case $cc_basename in
15484 tcc*)
15485 export_dynamic_flag_spec='-rdynamic'
15486 ;;
15487 xlf* | bgf* | bgxlf* | mpixlf*)
15488 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15489 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15490 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15491 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15492 if test yes = "$supports_anon_versioning"; then
15493 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15494 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15495 echo "local: *; };" >> $output_objdir/$libname.ver~
15496 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15497 fi
15498 ;;
15499 esac
15500 else
15501 ld_shlibs=no
15502 fi
15503 ;;
15504
15505 netbsd*)
15506 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15507 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15508 wlarc=
15509 else
15510 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15511 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15512 fi
15513 ;;
15514
15515 solaris*)
15516 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15517 ld_shlibs=no
15518 cat <<_LT_EOF 1>&2
15519
15520 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15521 *** create shared libraries on Solaris systems. Therefore, libtool
15522 *** is disabling shared libraries support. We urge you to upgrade GNU
15523 *** binutils to release 2.9.1 or newer. Another option is to modify
15524 *** your PATH or compiler configuration so that the native linker is
15525 *** used, and then restart.
15526
15527 _LT_EOF
15528 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15529 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15530 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15531 else
15532 ld_shlibs=no
15533 fi
15534 ;;
15535
15536 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15537 case `$LD -v 2>&1` in
15538 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15539 ld_shlibs=no
15540 cat <<_LT_EOF 1>&2
15541
15542 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
15543 *** reliably create shared libraries on SCO systems. Therefore, libtool
15544 *** is disabling shared libraries support. We urge you to upgrade GNU
15545 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15546 *** your PATH or compiler configuration so that the native linker is
15547 *** used, and then restart.
15548
15549 _LT_EOF
15550 ;;
15551 *)
15552 # For security reasons, it is highly recommended that you always
15553 # use absolute paths for naming shared libraries, and exclude the
15554 # DT_RUNPATH tag from executables and libraries. But doing so
15555 # requires that you compile everything twice, which is a pain.
15556 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15557 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15558 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15559 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15560 else
15561 ld_shlibs=no
15562 fi
15563 ;;
15564 esac
15565 ;;
15566
15567 sunos4*)
15568 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15569 wlarc=
15570 hardcode_direct=yes
15571 hardcode_shlibpath_var=no
15572 ;;
15573
15574 *)
15575 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15576 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15577 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15578 else
15579 ld_shlibs=no
15580 fi
15581 ;;
15582 esac
15583
15584 if test no = "$ld_shlibs"; then
15585 runpath_var=
15586 hardcode_libdir_flag_spec=
15587 export_dynamic_flag_spec=
15588 whole_archive_flag_spec=
15589 fi
15590 else
15591 # PORTME fill in a description of your system's linker (not GNU ld)
15592 case $host_os in
15593 aix3*)
15594 allow_undefined_flag=unsupported
15595 always_export_symbols=yes
15596 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'
15597 # Note: this linker hardcodes the directories in LIBPATH if there
15598 # are no directories specified by -L.
15599 hardcode_minus_L=yes
15600 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
15601 # Neither direct hardcoding nor static linking is supported with a
15602 # broken collect2.
15603 hardcode_direct=unsupported
15604 fi
15605 ;;
15606
15607 aix[4-9]*)
15608 if test ia64 = "$host_cpu"; then
15609 # On IA64, the linker does run time linking by default, so we don't
15610 # have to do anything special.
15611 aix_use_runtimelinking=no
15612 exp_sym_flag='-Bexport'
15613 no_entry_flag=
15614 else
15615 # If we're using GNU nm, then we don't want the "-C" option.
15616 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15617 # Without the "-l" option, or with the "-B" option, AIX nm treats
15618 # weak defined symbols like other global defined symbols, whereas
15619 # GNU nm marks them as "W".
15620 # While the 'weak' keyword is ignored in the Export File, we need
15621 # it in the Import File for the 'aix-soname' feature, so we have
15622 # to replace the "-B" option with "-P" for AIX nm.
15623 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15624 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
15625 else
15626 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
15627 fi
15628 aix_use_runtimelinking=no
15629
15630 # Test if we are trying to use run time linking or normal
15631 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15632 # have runtime linking enabled, and use it for executables.
15633 # For shared libraries, we enable/disable runtime linking
15634 # depending on the kind of the shared library created -
15635 # when "with_aix_soname,aix_use_runtimelinking" is:
15636 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
15637 # "aix,yes" lib.so shared, rtl:yes, for executables
15638 # lib.a static archive
15639 # "both,no" lib.so.V(shr.o) shared, rtl:yes
15640 # lib.a(lib.so.V) shared, rtl:no, for executables
15641 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15642 # lib.a(lib.so.V) shared, rtl:no
15643 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
15644 # lib.a static archive
15645 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15646 for ld_flag in $LDFLAGS; do
15647 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
15648 aix_use_runtimelinking=yes
15649 break
15650 fi
15651 done
15652 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15653 # With aix-soname=svr4, we create the lib.so.V shared archives only,
15654 # so we don't have lib.a shared libs to link our executables.
15655 # We have to force runtime linking in this case.
15656 aix_use_runtimelinking=yes
15657 LDFLAGS="$LDFLAGS -Wl,-brtl"
15658 fi
15659 ;;
15660 esac
15661
15662 exp_sym_flag='-bexport'
15663 no_entry_flag='-bnoentry'
15664 fi
15665
15666 # When large executables or shared objects are built, AIX ld can
15667 # have problems creating the table of contents. If linking a library
15668 # or program results in "error TOC overflow" add -mminimal-toc to
15669 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15670 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15671
15672 archive_cmds=''
15673 hardcode_direct=yes
15674 hardcode_direct_absolute=yes
15675 hardcode_libdir_separator=':'
15676 link_all_deplibs=yes
15677 file_list_spec='$wl-f,'
15678 case $with_aix_soname,$aix_use_runtimelinking in
15679 aix,*) ;; # traditional, no import file
15680 svr4,* | *,yes) # use import file
15681 # The Import File defines what to hardcode.
15682 hardcode_direct=no
15683 hardcode_direct_absolute=no
15684 ;;
15685 esac
15686
15687 if test yes = "$GCC"; then
15688 case $host_os in aix4.[012]|aix4.[012].*)
15689 # We only want to do this on AIX 4.2 and lower, the check
15690 # below for broken collect2 doesn't work under 4.3+
15691 collect2name=`$CC -print-prog-name=collect2`
15692 if test -f "$collect2name" &&
15693 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15694 then
15695 # We have reworked collect2
15696 :
15697 else
15698 # We have old collect2
15699 hardcode_direct=unsupported
15700 # It fails to find uninstalled libraries when the uninstalled
15701 # path is not listed in the libpath. Setting hardcode_minus_L
15702 # to unsupported forces relinking
15703 hardcode_minus_L=yes
15704 hardcode_libdir_flag_spec='-L$libdir'
15705 hardcode_libdir_separator=
15706 fi
15707 ;;
15708 esac
15709 shared_flag='-shared'
15710 if test yes = "$aix_use_runtimelinking"; then
15711 shared_flag="$shared_flag "'$wl-G'
15712 fi
15713 # Need to ensure runtime linking is disabled for the traditional
15714 # shared library, or the linker may eventually find shared libraries
15715 # /with/ Import File - we do not want to mix them.
15716 shared_flag_aix='-shared'
15717 shared_flag_svr4='-shared $wl-G'
15718 else
15719 # not using gcc
15720 if test ia64 = "$host_cpu"; then
15721 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15722 # chokes on -Wl,-G. The following line is correct:
15723 shared_flag='-G'
15724 else
15725 if test yes = "$aix_use_runtimelinking"; then
15726 shared_flag='$wl-G'
15727 else
15728 shared_flag='$wl-bM:SRE'
15729 fi
15730 shared_flag_aix='$wl-bM:SRE'
15731 shared_flag_svr4='$wl-G'
15732 fi
15733 fi
15734
15735 export_dynamic_flag_spec='$wl-bexpall'
15736 # It seems that -bexpall does not export symbols beginning with
15737 # underscore (_), so it is better to generate a list of symbols to export.
15738 always_export_symbols=yes
15739 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15740 # Warning - without using the other runtime loading flags (-brtl),
15741 # -berok will link without error, but may produce a broken library.
15742 allow_undefined_flag='-berok'
15743 # Determine the default libpath from the value encoded in an
15744 # empty executable.
15745 if test set = "${lt_cv_aix_libpath+set}"; then
15746 aix_libpath=$lt_cv_aix_libpath
15747 else
15748 if ${lt_cv_aix_libpath_+:} false; then :
15749 $as_echo_n "(cached) " >&6
15750 else
15751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15752 /* end confdefs.h. */
15753
15754 int
15755 main ()
15756 {
15757
15758 ;
15759 return 0;
15760 }
15761 _ACEOF
15762 if ac_fn_c_try_link "$LINENO"; then :
15763
15764 lt_aix_libpath_sed='
15765 /Import File Strings/,/^$/ {
15766 /^0/ {
15767 s/^0 *\([^ ]*\) *$/\1/
15768 p
15769 }
15770 }'
15771 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15772 # Check for a 64-bit object if we didn't find anything.
15773 if test -z "$lt_cv_aix_libpath_"; then
15774 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15775 fi
15776 fi
15777 rm -f core conftest.err conftest.$ac_objext \
15778 conftest$ac_exeext conftest.$ac_ext
15779 if test -z "$lt_cv_aix_libpath_"; then
15780 lt_cv_aix_libpath_=/usr/lib:/lib
15781 fi
15782
15783 fi
15784
15785 aix_libpath=$lt_cv_aix_libpath_
15786 fi
15787
15788 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15789 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
15790 else
15791 if test ia64 = "$host_cpu"; then
15792 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
15793 allow_undefined_flag="-z nodefs"
15794 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"
15795 else
15796 # Determine the default libpath from the value encoded in an
15797 # empty executable.
15798 if test set = "${lt_cv_aix_libpath+set}"; then
15799 aix_libpath=$lt_cv_aix_libpath
15800 else
15801 if ${lt_cv_aix_libpath_+:} false; then :
15802 $as_echo_n "(cached) " >&6
15803 else
15804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15805 /* end confdefs.h. */
15806
15807 int
15808 main ()
15809 {
15810
15811 ;
15812 return 0;
15813 }
15814 _ACEOF
15815 if ac_fn_c_try_link "$LINENO"; then :
15816
15817 lt_aix_libpath_sed='
15818 /Import File Strings/,/^$/ {
15819 /^0/ {
15820 s/^0 *\([^ ]*\) *$/\1/
15821 p
15822 }
15823 }'
15824 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15825 # Check for a 64-bit object if we didn't find anything.
15826 if test -z "$lt_cv_aix_libpath_"; then
15827 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15828 fi
15829 fi
15830 rm -f core conftest.err conftest.$ac_objext \
15831 conftest$ac_exeext conftest.$ac_ext
15832 if test -z "$lt_cv_aix_libpath_"; then
15833 lt_cv_aix_libpath_=/usr/lib:/lib
15834 fi
15835
15836 fi
15837
15838 aix_libpath=$lt_cv_aix_libpath_
15839 fi
15840
15841 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15842 # Warning - without using the other run time loading flags,
15843 # -berok will link without error, but may produce a broken library.
15844 no_undefined_flag=' $wl-bernotok'
15845 allow_undefined_flag=' $wl-berok'
15846 if test yes = "$with_gnu_ld"; then
15847 # We only use this code for GNU lds that support --whole-archive.
15848 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
15849 else
15850 # Exported symbols can be pulled into shared objects from archives
15851 whole_archive_flag_spec='$convenience'
15852 fi
15853 archive_cmds_need_lc=yes
15854 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15855 # -brtl affects multiple linker settings, -berok does not and is overridden later
15856 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15857 if test svr4 != "$with_aix_soname"; then
15858 # This is similar to how AIX traditionally builds its shared libraries.
15859 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
15860 fi
15861 if test aix != "$with_aix_soname"; then
15862 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
15863 else
15864 # used by -dlpreopen to get the symbols
15865 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
15866 fi
15867 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
15868 fi
15869 fi
15870 ;;
15871
15872 amigaos*)
15873 case $host_cpu in
15874 powerpc)
15875 # see comment about AmigaOS4 .so support
15876 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15877 archive_expsym_cmds=''
15878 ;;
15879 m68k)
15880 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)'
15881 hardcode_libdir_flag_spec='-L$libdir'
15882 hardcode_minus_L=yes
15883 ;;
15884 esac
15885 ;;
15886
15887 bsdi[45]*)
15888 export_dynamic_flag_spec=-rdynamic
15889 ;;
15890
15891 cygwin* | mingw* | pw32* | cegcc*)
15892 # When not using gcc, we currently assume that we are using
15893 # Microsoft Visual C++.
15894 # hardcode_libdir_flag_spec is actually meaningless, as there is
15895 # no search path for DLLs.
15896 case $cc_basename in
15897 cl*)
15898 # Native MSVC
15899 hardcode_libdir_flag_spec=' '
15900 allow_undefined_flag=unsupported
15901 always_export_symbols=yes
15902 file_list_spec='@'
15903 # Tell ltmain to make .lib files, not .a files.
15904 libext=lib
15905 # Tell ltmain to make .dll files, not .so files.
15906 shrext_cmds=.dll
15907 # FIXME: Setting linknames here is a bad hack.
15908 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15909 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15910 cp "$export_symbols" "$output_objdir/$soname.def";
15911 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15912 else
15913 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15914 fi~
15915 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15916 linknames='
15917 # The linker will not automatically build a static lib if we build a DLL.
15918 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15919 enable_shared_with_static_runtimes=yes
15920 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15921 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15922 # Don't use ranlib
15923 old_postinstall_cmds='chmod 644 $oldlib'
15924 postlink_cmds='lt_outputfile="@OUTPUT@"~
15925 lt_tool_outputfile="@TOOL_OUTPUT@"~
15926 case $lt_outputfile in
15927 *.exe|*.EXE) ;;
15928 *)
15929 lt_outputfile=$lt_outputfile.exe
15930 lt_tool_outputfile=$lt_tool_outputfile.exe
15931 ;;
15932 esac~
15933 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15934 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15935 $RM "$lt_outputfile.manifest";
15936 fi'
15937 ;;
15938 *)
15939 # Assume MSVC wrapper
15940 hardcode_libdir_flag_spec=' '
15941 allow_undefined_flag=unsupported
15942 # Tell ltmain to make .lib files, not .a files.
15943 libext=lib
15944 # Tell ltmain to make .dll files, not .so files.
15945 shrext_cmds=.dll
15946 # FIXME: Setting linknames here is a bad hack.
15947 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15948 # The linker will automatically build a .lib file if we build a DLL.
15949 old_archive_from_new_cmds='true'
15950 # FIXME: Should let the user specify the lib program.
15951 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15952 enable_shared_with_static_runtimes=yes
15953 ;;
15954 esac
15955 ;;
15956
15957 darwin* | rhapsody*)
15958
15959
15960 archive_cmds_need_lc=no
15961 hardcode_direct=no
15962 hardcode_automatic=yes
15963 hardcode_shlibpath_var=unsupported
15964 if test yes = "$lt_cv_ld_force_load"; then
15965 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\"`'
15966
15967 else
15968 whole_archive_flag_spec=''
15969 fi
15970 link_all_deplibs=yes
15971 allow_undefined_flag=$_lt_dar_allow_undefined
15972 case $cc_basename in
15973 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15974 *) _lt_dar_can_shared=$GCC ;;
15975 esac
15976 if test yes = "$_lt_dar_can_shared"; then
15977 output_verbose_link_cmd=func_echo_all
15978 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
15979 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15980 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"
15981 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"
15982
15983 else
15984 ld_shlibs=no
15985 fi
15986
15987 ;;
15988
15989 dgux*)
15990 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15991 hardcode_libdir_flag_spec='-L$libdir'
15992 hardcode_shlibpath_var=no
15993 ;;
15994
15995 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15996 # support. Future versions do this automatically, but an explicit c++rt0.o
15997 # does not break anything, and helps significantly (at the cost of a little
15998 # extra space).
15999 freebsd2.2*)
16000 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16001 hardcode_libdir_flag_spec='-R$libdir'
16002 hardcode_direct=yes
16003 hardcode_shlibpath_var=no
16004 ;;
16005
16006 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16007 freebsd2.*)
16008 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16009 hardcode_direct=yes
16010 hardcode_minus_L=yes
16011 hardcode_shlibpath_var=no
16012 ;;
16013
16014 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16015 freebsd* | dragonfly*)
16016 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16017 hardcode_libdir_flag_spec='-R$libdir'
16018 hardcode_direct=yes
16019 hardcode_shlibpath_var=no
16020 ;;
16021
16022 hpux9*)
16023 if test yes = "$GCC"; then
16024 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16025 else
16026 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16027 fi
16028 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16029 hardcode_libdir_separator=:
16030 hardcode_direct=yes
16031
16032 # hardcode_minus_L: Not really in the search PATH,
16033 # but as the default location of the library.
16034 hardcode_minus_L=yes
16035 export_dynamic_flag_spec='$wl-E'
16036 ;;
16037
16038 hpux10*)
16039 if test yes,no = "$GCC,$with_gnu_ld"; then
16040 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16041 else
16042 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16043 fi
16044 if test no = "$with_gnu_ld"; then
16045 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16046 hardcode_libdir_separator=:
16047 hardcode_direct=yes
16048 hardcode_direct_absolute=yes
16049 export_dynamic_flag_spec='$wl-E'
16050 # hardcode_minus_L: Not really in the search PATH,
16051 # but as the default location of the library.
16052 hardcode_minus_L=yes
16053 fi
16054 ;;
16055
16056 hpux11*)
16057 if test yes,no = "$GCC,$with_gnu_ld"; then
16058 case $host_cpu in
16059 hppa*64*)
16060 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16061 ;;
16062 ia64*)
16063 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16064 ;;
16065 *)
16066 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16067 ;;
16068 esac
16069 else
16070 case $host_cpu in
16071 hppa*64*)
16072 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16073 ;;
16074 ia64*)
16075 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16076 ;;
16077 *)
16078
16079 # Older versions of the 11.00 compiler do not understand -b yet
16080 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16082 $as_echo_n "checking if $CC understands -b... " >&6; }
16083 if ${lt_cv_prog_compiler__b+:} false; then :
16084 $as_echo_n "(cached) " >&6
16085 else
16086 lt_cv_prog_compiler__b=no
16087 save_LDFLAGS=$LDFLAGS
16088 LDFLAGS="$LDFLAGS -b"
16089 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16090 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16091 # The linker can only warn and ignore the option if not recognized
16092 # So say no if there are warnings
16093 if test -s conftest.err; then
16094 # Append any errors to the config.log.
16095 cat conftest.err 1>&5
16096 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16097 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16098 if diff conftest.exp conftest.er2 >/dev/null; then
16099 lt_cv_prog_compiler__b=yes
16100 fi
16101 else
16102 lt_cv_prog_compiler__b=yes
16103 fi
16104 fi
16105 $RM -r conftest*
16106 LDFLAGS=$save_LDFLAGS
16107
16108 fi
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16110 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16111
16112 if test yes = "$lt_cv_prog_compiler__b"; then
16113 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16114 else
16115 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16116 fi
16117
16118 ;;
16119 esac
16120 fi
16121 if test no = "$with_gnu_ld"; then
16122 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16123 hardcode_libdir_separator=:
16124
16125 case $host_cpu in
16126 hppa*64*|ia64*)
16127 hardcode_direct=no
16128 hardcode_shlibpath_var=no
16129 ;;
16130 *)
16131 hardcode_direct=yes
16132 hardcode_direct_absolute=yes
16133 export_dynamic_flag_spec='$wl-E'
16134
16135 # hardcode_minus_L: Not really in the search PATH,
16136 # but as the default location of the library.
16137 hardcode_minus_L=yes
16138 ;;
16139 esac
16140 fi
16141 ;;
16142
16143 irix5* | irix6* | nonstopux*)
16144 if test yes = "$GCC"; then
16145 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'
16146 # Try to use the -exported_symbol ld option, if it does not
16147 # work, assume that -exports_file does not work either and
16148 # implicitly export all symbols.
16149 # This should be the same for all languages, so no per-tag cache variable.
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16151 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16152 if ${lt_cv_irix_exported_symbol+:} false; then :
16153 $as_echo_n "(cached) " >&6
16154 else
16155 save_LDFLAGS=$LDFLAGS
16156 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
16157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16158 /* end confdefs.h. */
16159 int foo (void) { return 0; }
16160 _ACEOF
16161 if ac_fn_c_try_link "$LINENO"; then :
16162 lt_cv_irix_exported_symbol=yes
16163 else
16164 lt_cv_irix_exported_symbol=no
16165 fi
16166 rm -f core conftest.err conftest.$ac_objext \
16167 conftest$ac_exeext conftest.$ac_ext
16168 LDFLAGS=$save_LDFLAGS
16169 fi
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16171 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
16172 if test yes = "$lt_cv_irix_exported_symbol"; then
16173 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'
16174 fi
16175 else
16176 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'
16177 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'
16178 fi
16179 archive_cmds_need_lc='no'
16180 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16181 hardcode_libdir_separator=:
16182 inherit_rpath=yes
16183 link_all_deplibs=yes
16184 ;;
16185
16186 linux*)
16187 case $cc_basename in
16188 tcc*)
16189 # Fabrice Bellard et al's Tiny C Compiler
16190 ld_shlibs=yes
16191 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16192 ;;
16193 esac
16194 ;;
16195
16196 netbsd*)
16197 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16198 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16199 else
16200 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16201 fi
16202 hardcode_libdir_flag_spec='-R$libdir'
16203 hardcode_direct=yes
16204 hardcode_shlibpath_var=no
16205 ;;
16206
16207 newsos6)
16208 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16209 hardcode_direct=yes
16210 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16211 hardcode_libdir_separator=:
16212 hardcode_shlibpath_var=no
16213 ;;
16214
16215 *nto* | *qnx*)
16216 ;;
16217
16218 openbsd* | bitrig*)
16219 if test -f /usr/libexec/ld.so; then
16220 hardcode_direct=yes
16221 hardcode_shlibpath_var=no
16222 hardcode_direct_absolute=yes
16223 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16224 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16225 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
16226 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16227 export_dynamic_flag_spec='$wl-E'
16228 else
16229 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16230 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16231 fi
16232 else
16233 ld_shlibs=no
16234 fi
16235 ;;
16236
16237 os2*)
16238 hardcode_libdir_flag_spec='-L$libdir'
16239 hardcode_minus_L=yes
16240 allow_undefined_flag=unsupported
16241 shrext_cmds=.dll
16242 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16243 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16244 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16245 $ECHO EXPORTS >> $output_objdir/$libname.def~
16246 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16247 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16248 emximp -o $lib $output_objdir/$libname.def'
16249 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16250 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16251 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16252 $ECHO EXPORTS >> $output_objdir/$libname.def~
16253 prefix_cmds="$SED"~
16254 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16255 prefix_cmds="$prefix_cmds -e 1d";
16256 fi~
16257 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16258 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16259 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16260 emximp -o $lib $output_objdir/$libname.def'
16261 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16262 enable_shared_with_static_runtimes=yes
16263 ;;
16264
16265 osf3*)
16266 if test yes = "$GCC"; then
16267 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16268 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'
16269 else
16270 allow_undefined_flag=' -expect_unresolved \*'
16271 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'
16272 fi
16273 archive_cmds_need_lc='no'
16274 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16275 hardcode_libdir_separator=:
16276 ;;
16277
16278 osf4* | osf5*) # as osf3* with the addition of -msym flag
16279 if test yes = "$GCC"; then
16280 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16281 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'
16282 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16283 else
16284 allow_undefined_flag=' -expect_unresolved \*'
16285 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'
16286 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~
16287 $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'
16288
16289 # Both c and cxx compiler support -rpath directly
16290 hardcode_libdir_flag_spec='-rpath $libdir'
16291 fi
16292 archive_cmds_need_lc='no'
16293 hardcode_libdir_separator=:
16294 ;;
16295
16296 solaris*)
16297 no_undefined_flag=' -z defs'
16298 if test yes = "$GCC"; then
16299 wlarc='$wl'
16300 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16301 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16302 $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'
16303 else
16304 case `$CC -V 2>&1` in
16305 *"Compilers 5.0"*)
16306 wlarc=''
16307 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
16308 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16309 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16310 ;;
16311 *)
16312 wlarc='$wl'
16313 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16314 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16315 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16316 ;;
16317 esac
16318 fi
16319 hardcode_libdir_flag_spec='-R$libdir'
16320 hardcode_shlibpath_var=no
16321 case $host_os in
16322 solaris2.[0-5] | solaris2.[0-5].*) ;;
16323 *)
16324 # The compiler driver will combine and reorder linker options,
16325 # but understands '-z linker_flag'. GCC discards it without '$wl',
16326 # but is careful enough not to reorder.
16327 # Supported since Solaris 2.6 (maybe 2.5.1?)
16328 if test yes = "$GCC"; then
16329 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16330 else
16331 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16332 fi
16333 ;;
16334 esac
16335 link_all_deplibs=yes
16336 ;;
16337
16338 sunos4*)
16339 if test sequent = "$host_vendor"; then
16340 # Use $CC to link under sequent, because it throws in some extra .o
16341 # files that make .init and .fini sections work.
16342 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16343 else
16344 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16345 fi
16346 hardcode_libdir_flag_spec='-L$libdir'
16347 hardcode_direct=yes
16348 hardcode_minus_L=yes
16349 hardcode_shlibpath_var=no
16350 ;;
16351
16352 sysv4)
16353 case $host_vendor in
16354 sni)
16355 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16356 hardcode_direct=yes # is this really true???
16357 ;;
16358 siemens)
16359 ## LD is ld it makes a PLAMLIB
16360 ## CC just makes a GrossModule.
16361 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16362 reload_cmds='$CC -r -o $output$reload_objs'
16363 hardcode_direct=no
16364 ;;
16365 motorola)
16366 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16367 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16368 ;;
16369 esac
16370 runpath_var='LD_RUN_PATH'
16371 hardcode_shlibpath_var=no
16372 ;;
16373
16374 sysv4.3*)
16375 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16376 hardcode_shlibpath_var=no
16377 export_dynamic_flag_spec='-Bexport'
16378 ;;
16379
16380 sysv4*MP*)
16381 if test -d /usr/nec; then
16382 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16383 hardcode_shlibpath_var=no
16384 runpath_var=LD_RUN_PATH
16385 hardcode_runpath_var=yes
16386 ld_shlibs=yes
16387 fi
16388 ;;
16389
16390 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16391 no_undefined_flag='$wl-z,text'
16392 archive_cmds_need_lc=no
16393 hardcode_shlibpath_var=no
16394 runpath_var='LD_RUN_PATH'
16395
16396 if test yes = "$GCC"; then
16397 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16398 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16399 else
16400 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16401 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16402 fi
16403 ;;
16404
16405 sysv5* | sco3.2v5* | sco5v6*)
16406 # Note: We CANNOT use -z defs as we might desire, because we do not
16407 # link with -lc, and that would cause any symbols used from libc to
16408 # always be unresolved, which means just about no library would
16409 # ever link correctly. If we're not using GNU ld we use -z text
16410 # though, which does catch some bad symbols but isn't as heavy-handed
16411 # as -z defs.
16412 no_undefined_flag='$wl-z,text'
16413 allow_undefined_flag='$wl-z,nodefs'
16414 archive_cmds_need_lc=no
16415 hardcode_shlibpath_var=no
16416 hardcode_libdir_flag_spec='$wl-R,$libdir'
16417 hardcode_libdir_separator=':'
16418 link_all_deplibs=yes
16419 export_dynamic_flag_spec='$wl-Bexport'
16420 runpath_var='LD_RUN_PATH'
16421
16422 if test yes = "$GCC"; then
16423 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16424 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16425 else
16426 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16427 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16428 fi
16429 ;;
16430
16431 uts4*)
16432 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16433 hardcode_libdir_flag_spec='-L$libdir'
16434 hardcode_shlibpath_var=no
16435 ;;
16436
16437 *)
16438 ld_shlibs=no
16439 ;;
16440 esac
16441
16442 if test sni = "$host_vendor"; then
16443 case $host in
16444 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16445 export_dynamic_flag_spec='$wl-Blargedynsym'
16446 ;;
16447 esac
16448 fi
16449 fi
16450
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16452 $as_echo "$ld_shlibs" >&6; }
16453 test no = "$ld_shlibs" && can_build_shared=no
16454
16455 with_gnu_ld=$with_gnu_ld
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471 #
16472 # Do we need to explicitly link libc?
16473 #
16474 case "x$archive_cmds_need_lc" in
16475 x|xyes)
16476 # Assume -lc should be added
16477 archive_cmds_need_lc=yes
16478
16479 if test yes,yes = "$GCC,$enable_shared"; then
16480 case $archive_cmds in
16481 *'~'*)
16482 # FIXME: we may have to deal with multi-command sequences.
16483 ;;
16484 '$CC '*)
16485 # Test whether the compiler implicitly links with -lc since on some
16486 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16487 # to ld, don't add -lc before -lgcc.
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16489 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16490 if ${lt_cv_archive_cmds_need_lc+:} false; then :
16491 $as_echo_n "(cached) " >&6
16492 else
16493 $RM conftest*
16494 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16495
16496 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16497 (eval $ac_compile) 2>&5
16498 ac_status=$?
16499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16500 test $ac_status = 0; } 2>conftest.err; then
16501 soname=conftest
16502 lib=conftest
16503 libobjs=conftest.$ac_objext
16504 deplibs=
16505 wl=$lt_prog_compiler_wl
16506 pic_flag=$lt_prog_compiler_pic
16507 compiler_flags=-v
16508 linker_flags=-v
16509 verstring=
16510 output_objdir=.
16511 libname=conftest
16512 lt_save_allow_undefined_flag=$allow_undefined_flag
16513 allow_undefined_flag=
16514 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16515 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16516 ac_status=$?
16517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16518 test $ac_status = 0; }
16519 then
16520 lt_cv_archive_cmds_need_lc=no
16521 else
16522 lt_cv_archive_cmds_need_lc=yes
16523 fi
16524 allow_undefined_flag=$lt_save_allow_undefined_flag
16525 else
16526 cat conftest.err 1>&5
16527 fi
16528 $RM conftest*
16529
16530 fi
16531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16532 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16533 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16534 ;;
16535 esac
16536 fi
16537 ;;
16538 esac
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16692 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16693
16694 if test yes = "$GCC"; then
16695 case $host_os in
16696 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
16697 *) lt_awk_arg='/^libraries:/' ;;
16698 esac
16699 case $host_os in
16700 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
16701 *) lt_sed_strip_eq='s|=/|/|g' ;;
16702 esac
16703 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16704 case $lt_search_path_spec in
16705 *\;*)
16706 # if the path contains ";" then we assume it to be the separator
16707 # otherwise default to the standard path separator (i.e. ":") - it is
16708 # assumed that no part of a normal pathname contains ";" but that should
16709 # okay in the real world where ";" in dirpaths is itself problematic.
16710 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16711 ;;
16712 *)
16713 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16714 ;;
16715 esac
16716 # Ok, now we have the path, separated by spaces, we can step through it
16717 # and add multilib dir if necessary...
16718 lt_tmp_lt_search_path_spec=
16719 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16720 # ...but if some path component already ends with the multilib dir we assume
16721 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
16722 case "$lt_multi_os_dir; $lt_search_path_spec " in
16723 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
16724 lt_multi_os_dir=
16725 ;;
16726 esac
16727 for lt_sys_path in $lt_search_path_spec; do
16728 if test -d "$lt_sys_path$lt_multi_os_dir"; then
16729 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
16730 elif test -n "$lt_multi_os_dir"; then
16731 test -d "$lt_sys_path" && \
16732 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16733 fi
16734 done
16735 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16736 BEGIN {RS = " "; FS = "/|\n";} {
16737 lt_foo = "";
16738 lt_count = 0;
16739 for (lt_i = NF; lt_i > 0; lt_i--) {
16740 if ($lt_i != "" && $lt_i != ".") {
16741 if ($lt_i == "..") {
16742 lt_count++;
16743 } else {
16744 if (lt_count == 0) {
16745 lt_foo = "/" $lt_i lt_foo;
16746 } else {
16747 lt_count--;
16748 }
16749 }
16750 }
16751 }
16752 if (lt_foo != "") { lt_freq[lt_foo]++; }
16753 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16754 }'`
16755 # AWK program above erroneously prepends '/' to C:/dos/paths
16756 # for these hosts.
16757 case $host_os in
16758 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16759 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
16760 esac
16761 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16762 else
16763 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16764 fi
16765 library_names_spec=
16766 libname_spec='lib$name'
16767 soname_spec=
16768 shrext_cmds=.so
16769 postinstall_cmds=
16770 postuninstall_cmds=
16771 finish_cmds=
16772 finish_eval=
16773 shlibpath_var=
16774 shlibpath_overrides_runpath=unknown
16775 version_type=none
16776 dynamic_linker="$host_os ld.so"
16777 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16778 need_lib_prefix=unknown
16779 hardcode_into_libs=no
16780
16781 # when you set need_version to no, make sure it does not cause -set_version
16782 # flags to be left without arguments
16783 need_version=unknown
16784
16785
16786
16787 case $host_os in
16788 aix3*)
16789 version_type=linux # correct to gnu/linux during the next big refactor
16790 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16791 shlibpath_var=LIBPATH
16792
16793 # AIX 3 has no versioning support, so we append a major version to the name.
16794 soname_spec='$libname$release$shared_ext$major'
16795 ;;
16796
16797 aix[4-9]*)
16798 version_type=linux # correct to gnu/linux during the next big refactor
16799 need_lib_prefix=no
16800 need_version=no
16801 hardcode_into_libs=yes
16802 if test ia64 = "$host_cpu"; then
16803 # AIX 5 supports IA64
16804 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16805 shlibpath_var=LD_LIBRARY_PATH
16806 else
16807 # With GCC up to 2.95.x, collect2 would create an import file
16808 # for dependence libraries. The import file would start with
16809 # the line '#! .'. This would cause the generated library to
16810 # depend on '.', always an invalid library. This was fixed in
16811 # development snapshots of GCC prior to 3.0.
16812 case $host_os in
16813 aix4 | aix4.[01] | aix4.[01].*)
16814 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16815 echo ' yes '
16816 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16817 :
16818 else
16819 can_build_shared=no
16820 fi
16821 ;;
16822 esac
16823 # Using Import Files as archive members, it is possible to support
16824 # filename-based versioning of shared library archives on AIX. While
16825 # this would work for both with and without runtime linking, it will
16826 # prevent static linking of such archives. So we do filename-based
16827 # shared library versioning with .so extension only, which is used
16828 # when both runtime linking and shared linking is enabled.
16829 # Unfortunately, runtime linking may impact performance, so we do
16830 # not want this to be the default eventually. Also, we use the
16831 # versioned .so libs for executables only if there is the -brtl
16832 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16833 # To allow for filename-based versioning support, we need to create
16834 # libNAME.so.V as an archive file, containing:
16835 # *) an Import File, referring to the versioned filename of the
16836 # archive as well as the shared archive member, telling the
16837 # bitwidth (32 or 64) of that shared object, and providing the
16838 # list of exported symbols of that shared object, eventually
16839 # decorated with the 'weak' keyword
16840 # *) the shared object with the F_LOADONLY flag set, to really avoid
16841 # it being seen by the linker.
16842 # At run time we better use the real file rather than another symlink,
16843 # but for link time we create the symlink libNAME.so -> libNAME.so.V
16844
16845 case $with_aix_soname,$aix_use_runtimelinking in
16846 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16847 # soname into executable. Probably we can add versioning support to
16848 # collect2, so additional links can be useful in future.
16849 aix,yes) # traditional libtool
16850 dynamic_linker='AIX unversionable lib.so'
16851 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16852 # instead of lib<name>.a to let people know that these are not
16853 # typical AIX shared libraries.
16854 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16855 ;;
16856 aix,no) # traditional AIX only
16857 dynamic_linker='AIX lib.a(lib.so.V)'
16858 # We preserve .a as extension for shared libraries through AIX4.2
16859 # and later when we are not doing run time linking.
16860 library_names_spec='$libname$release.a $libname.a'
16861 soname_spec='$libname$release$shared_ext$major'
16862 ;;
16863 svr4,*) # full svr4 only
16864 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16865 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16866 # We do not specify a path in Import Files, so LIBPATH fires.
16867 shlibpath_overrides_runpath=yes
16868 ;;
16869 *,yes) # both, prefer svr4
16870 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16871 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16872 # unpreferred sharedlib libNAME.a needs extra handling
16873 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
16874 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
16875 # We do not specify a path in Import Files, so LIBPATH fires.
16876 shlibpath_overrides_runpath=yes
16877 ;;
16878 *,no) # both, prefer aix
16879 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16880 library_names_spec='$libname$release.a $libname.a'
16881 soname_spec='$libname$release$shared_ext$major'
16882 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16883 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
16884 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
16885 ;;
16886 esac
16887 shlibpath_var=LIBPATH
16888 fi
16889 ;;
16890
16891 amigaos*)
16892 case $host_cpu in
16893 powerpc)
16894 # Since July 2007 AmigaOS4 officially supports .so libraries.
16895 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16896 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16897 ;;
16898 m68k)
16899 library_names_spec='$libname.ixlibrary $libname.a'
16900 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16901 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16902 ;;
16903 esac
16904 ;;
16905
16906 beos*)
16907 library_names_spec='$libname$shared_ext'
16908 dynamic_linker="$host_os ld.so"
16909 shlibpath_var=LIBRARY_PATH
16910 ;;
16911
16912 bsdi[45]*)
16913 version_type=linux # correct to gnu/linux during the next big refactor
16914 need_version=no
16915 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16916 soname_spec='$libname$release$shared_ext$major'
16917 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16918 shlibpath_var=LD_LIBRARY_PATH
16919 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16920 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16921 # the default ld.so.conf also contains /usr/contrib/lib and
16922 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16923 # libtool to hard-code these into programs
16924 ;;
16925
16926 cygwin* | mingw* | pw32* | cegcc*)
16927 version_type=windows
16928 shrext_cmds=.dll
16929 need_version=no
16930 need_lib_prefix=no
16931
16932 case $GCC,$cc_basename in
16933 yes,*)
16934 # gcc
16935 library_names_spec='$libname.dll.a'
16936 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16937 postinstall_cmds='base_file=`basename \$file`~
16938 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16939 dldir=$destdir/`dirname \$dlpath`~
16940 test -d \$dldir || mkdir -p \$dldir~
16941 $install_prog $dir/$dlname \$dldir/$dlname~
16942 chmod a+x \$dldir/$dlname~
16943 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16944 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16945 fi'
16946 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16947 dlpath=$dir/\$dldll~
16948 $RM \$dlpath'
16949 shlibpath_overrides_runpath=yes
16950
16951 case $host_os in
16952 cygwin*)
16953 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16954 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16955
16956 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16957 ;;
16958 mingw* | cegcc*)
16959 # MinGW DLLs use traditional 'lib' prefix
16960 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16961 ;;
16962 pw32*)
16963 # pw32 DLLs use 'pw' prefix rather than 'lib'
16964 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16965 ;;
16966 esac
16967 dynamic_linker='Win32 ld.exe'
16968 ;;
16969
16970 *,cl*)
16971 # Native MSVC
16972 libname_spec='$name'
16973 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16974 library_names_spec='$libname.dll.lib'
16975
16976 case $build_os in
16977 mingw*)
16978 sys_lib_search_path_spec=
16979 lt_save_ifs=$IFS
16980 IFS=';'
16981 for lt_path in $LIB
16982 do
16983 IFS=$lt_save_ifs
16984 # Let DOS variable expansion print the short 8.3 style file name.
16985 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16986 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16987 done
16988 IFS=$lt_save_ifs
16989 # Convert to MSYS style.
16990 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16991 ;;
16992 cygwin*)
16993 # Convert to unix form, then to dos form, then back to unix form
16994 # but this time dos style (no spaces!) so that the unix form looks
16995 # like /cygdrive/c/PROGRA~1:/cygdr...
16996 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16997 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16998 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16999 ;;
17000 *)
17001 sys_lib_search_path_spec=$LIB
17002 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17003 # It is most probably a Windows format PATH.
17004 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17005 else
17006 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17007 fi
17008 # FIXME: find the short name or the path components, as spaces are
17009 # common. (e.g. "Program Files" -> "PROGRA~1")
17010 ;;
17011 esac
17012
17013 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17014 postinstall_cmds='base_file=`basename \$file`~
17015 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17016 dldir=$destdir/`dirname \$dlpath`~
17017 test -d \$dldir || mkdir -p \$dldir~
17018 $install_prog $dir/$dlname \$dldir/$dlname'
17019 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17020 dlpath=$dir/\$dldll~
17021 $RM \$dlpath'
17022 shlibpath_overrides_runpath=yes
17023 dynamic_linker='Win32 link.exe'
17024 ;;
17025
17026 *)
17027 # Assume MSVC wrapper
17028 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17029 dynamic_linker='Win32 ld.exe'
17030 ;;
17031 esac
17032 # FIXME: first we should search . and the directory the executable is in
17033 shlibpath_var=PATH
17034 ;;
17035
17036 darwin* | rhapsody*)
17037 dynamic_linker="$host_os dyld"
17038 version_type=darwin
17039 need_lib_prefix=no
17040 need_version=no
17041 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17042 soname_spec='$libname$release$major$shared_ext'
17043 shlibpath_overrides_runpath=yes
17044 shlibpath_var=DYLD_LIBRARY_PATH
17045 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17046
17047 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17048 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17049 ;;
17050
17051 dgux*)
17052 version_type=linux # correct to gnu/linux during the next big refactor
17053 need_lib_prefix=no
17054 need_version=no
17055 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17056 soname_spec='$libname$release$shared_ext$major'
17057 shlibpath_var=LD_LIBRARY_PATH
17058 ;;
17059
17060 freebsd* | dragonfly*)
17061 # DragonFly does not have aout. When/if they implement a new
17062 # versioning mechanism, adjust this.
17063 if test -x /usr/bin/objformat; then
17064 objformat=`/usr/bin/objformat`
17065 else
17066 case $host_os in
17067 freebsd[23].*) objformat=aout ;;
17068 *) objformat=elf ;;
17069 esac
17070 fi
17071 # Handle Gentoo/FreeBSD as it was Linux
17072 case $host_vendor in
17073 gentoo)
17074 version_type=linux ;;
17075 *)
17076 version_type=freebsd-$objformat ;;
17077 esac
17078
17079 case $version_type in
17080 freebsd-elf*)
17081 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17082 soname_spec='$libname$release$shared_ext$major'
17083 need_version=no
17084 need_lib_prefix=no
17085 ;;
17086 freebsd-*)
17087 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17088 need_version=yes
17089 ;;
17090 linux)
17091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17092 soname_spec='${libname}${release}${shared_ext}$major'
17093 need_lib_prefix=no
17094 need_version=no
17095 ;;
17096 esac
17097 shlibpath_var=LD_LIBRARY_PATH
17098 case $host_os in
17099 freebsd2.*)
17100 shlibpath_overrides_runpath=yes
17101 ;;
17102 freebsd3.[01]* | freebsdelf3.[01]*)
17103 shlibpath_overrides_runpath=yes
17104 hardcode_into_libs=yes
17105 ;;
17106 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17107 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17108 shlibpath_overrides_runpath=no
17109 hardcode_into_libs=yes
17110 ;;
17111 *) # from 4.6 on, and DragonFly
17112 shlibpath_overrides_runpath=yes
17113 hardcode_into_libs=yes
17114 ;;
17115 esac
17116 ;;
17117
17118 haiku*)
17119 version_type=linux # correct to gnu/linux during the next big refactor
17120 need_lib_prefix=no
17121 need_version=no
17122 dynamic_linker="$host_os runtime_loader"
17123 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17124 soname_spec='$libname$release$shared_ext$major'
17125 shlibpath_var=LIBRARY_PATH
17126 shlibpath_overrides_runpath=no
17127 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17128 hardcode_into_libs=yes
17129 ;;
17130
17131 hpux9* | hpux10* | hpux11*)
17132 # Give a soname corresponding to the major version so that dld.sl refuses to
17133 # link against other versions.
17134 version_type=sunos
17135 need_lib_prefix=no
17136 need_version=no
17137 case $host_cpu in
17138 ia64*)
17139 shrext_cmds='.so'
17140 hardcode_into_libs=yes
17141 dynamic_linker="$host_os dld.so"
17142 shlibpath_var=LD_LIBRARY_PATH
17143 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17144 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17145 soname_spec='$libname$release$shared_ext$major'
17146 if test 32 = "$HPUX_IA64_MODE"; then
17147 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17148 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17149 else
17150 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17151 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17152 fi
17153 ;;
17154 hppa*64*)
17155 shrext_cmds='.sl'
17156 hardcode_into_libs=yes
17157 dynamic_linker="$host_os dld.sl"
17158 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17159 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17160 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17161 soname_spec='$libname$release$shared_ext$major'
17162 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17163 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17164 ;;
17165 *)
17166 shrext_cmds='.sl'
17167 dynamic_linker="$host_os dld.sl"
17168 shlibpath_var=SHLIB_PATH
17169 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17170 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17171 soname_spec='$libname$release$shared_ext$major'
17172 ;;
17173 esac
17174 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17175 postinstall_cmds='chmod 555 $lib'
17176 # or fails outright, so override atomically:
17177 install_override_mode=555
17178 ;;
17179
17180 interix[3-9]*)
17181 version_type=linux # correct to gnu/linux during the next big refactor
17182 need_lib_prefix=no
17183 need_version=no
17184 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17185 soname_spec='$libname$release$shared_ext$major'
17186 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17187 shlibpath_var=LD_LIBRARY_PATH
17188 shlibpath_overrides_runpath=no
17189 hardcode_into_libs=yes
17190 ;;
17191
17192 irix5* | irix6* | nonstopux*)
17193 case $host_os in
17194 nonstopux*) version_type=nonstopux ;;
17195 *)
17196 if test yes = "$lt_cv_prog_gnu_ld"; then
17197 version_type=linux # correct to gnu/linux during the next big refactor
17198 else
17199 version_type=irix
17200 fi ;;
17201 esac
17202 need_lib_prefix=no
17203 need_version=no
17204 soname_spec='$libname$release$shared_ext$major'
17205 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17206 case $host_os in
17207 irix5* | nonstopux*)
17208 libsuff= shlibsuff=
17209 ;;
17210 *)
17211 case $LD in # libtool.m4 will add one of these switches to LD
17212 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17213 libsuff= shlibsuff= libmagic=32-bit;;
17214 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17215 libsuff=32 shlibsuff=N32 libmagic=N32;;
17216 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17217 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17218 *) libsuff= shlibsuff= libmagic=never-match;;
17219 esac
17220 ;;
17221 esac
17222 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17223 shlibpath_overrides_runpath=no
17224 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17225 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17226 hardcode_into_libs=yes
17227 ;;
17228
17229 # No shared lib support for Linux oldld, aout, or coff.
17230 linux*oldld* | linux*aout* | linux*coff*)
17231 dynamic_linker=no
17232 ;;
17233
17234 linux*android*)
17235 version_type=none # Android doesn't support versioned libraries.
17236 need_lib_prefix=no
17237 need_version=no
17238 library_names_spec='$libname$release$shared_ext'
17239 soname_spec='$libname$release$shared_ext'
17240 finish_cmds=
17241 shlibpath_var=LD_LIBRARY_PATH
17242 shlibpath_overrides_runpath=yes
17243
17244 # This implies no fast_install, which is unacceptable.
17245 # Some rework will be needed to allow for fast_install
17246 # before this can be enabled.
17247 hardcode_into_libs=yes
17248
17249 dynamic_linker='Android linker'
17250 # Don't embed -rpath directories since the linker doesn't support them.
17251 hardcode_libdir_flag_spec='-L$libdir'
17252 ;;
17253
17254 # This must be glibc/ELF.
17255 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17256 version_type=linux # correct to gnu/linux during the next big refactor
17257 need_lib_prefix=no
17258 need_version=no
17259 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17260 soname_spec='$libname$release$shared_ext$major'
17261 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17262 shlibpath_var=LD_LIBRARY_PATH
17263 shlibpath_overrides_runpath=no
17264
17265 # Some binutils ld are patched to set DT_RUNPATH
17266 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17267 $as_echo_n "(cached) " >&6
17268 else
17269 lt_cv_shlibpath_overrides_runpath=no
17270 save_LDFLAGS=$LDFLAGS
17271 save_libdir=$libdir
17272 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17273 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17275 /* end confdefs.h. */
17276
17277 int
17278 main ()
17279 {
17280
17281 ;
17282 return 0;
17283 }
17284 _ACEOF
17285 if ac_fn_c_try_link "$LINENO"; then :
17286 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17287 lt_cv_shlibpath_overrides_runpath=yes
17288 fi
17289 fi
17290 rm -f core conftest.err conftest.$ac_objext \
17291 conftest$ac_exeext conftest.$ac_ext
17292 LDFLAGS=$save_LDFLAGS
17293 libdir=$save_libdir
17294
17295 fi
17296
17297 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17298
17299 # This implies no fast_install, which is unacceptable.
17300 # Some rework will be needed to allow for fast_install
17301 # before this can be enabled.
17302 hardcode_into_libs=yes
17303
17304 # Ideally, we could use ldconfig to report *all* directores which are
17305 # searched for libraries, however this is still not possible. Aside from not
17306 # being certain /sbin/ldconfig is available, command
17307 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17308 # even though it is searched at run-time. Try to do the best guess by
17309 # appending ld.so.conf contents (and includes) to the search path.
17310 if test -f /etc/ld.so.conf; then
17311 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' ' '`
17312 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17313 fi
17314
17315 # We used to test for /lib/ld.so.1 and disable shared libraries on
17316 # powerpc, because MkLinux only supported shared libraries with the
17317 # GNU dynamic linker. Since this was broken with cross compilers,
17318 # most powerpc-linux boxes support dynamic linking these days and
17319 # people can always --disable-shared, the test was removed, and we
17320 # assume the GNU/Linux dynamic linker is in use.
17321 dynamic_linker='GNU/Linux ld.so'
17322 ;;
17323
17324 netbsd*)
17325 version_type=sunos
17326 need_lib_prefix=no
17327 need_version=no
17328 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17329 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17330 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17331 dynamic_linker='NetBSD (a.out) ld.so'
17332 else
17333 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17334 soname_spec='$libname$release$shared_ext$major'
17335 dynamic_linker='NetBSD ld.elf_so'
17336 fi
17337 shlibpath_var=LD_LIBRARY_PATH
17338 shlibpath_overrides_runpath=yes
17339 hardcode_into_libs=yes
17340 ;;
17341
17342 newsos6)
17343 version_type=linux # correct to gnu/linux during the next big refactor
17344 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17345 shlibpath_var=LD_LIBRARY_PATH
17346 shlibpath_overrides_runpath=yes
17347 ;;
17348
17349 *nto* | *qnx*)
17350 version_type=qnx
17351 need_lib_prefix=no
17352 need_version=no
17353 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17354 soname_spec='$libname$release$shared_ext$major'
17355 shlibpath_var=LD_LIBRARY_PATH
17356 shlibpath_overrides_runpath=no
17357 hardcode_into_libs=yes
17358 dynamic_linker='ldqnx.so'
17359 ;;
17360
17361 openbsd* | bitrig*)
17362 version_type=sunos
17363 sys_lib_dlsearch_path_spec=/usr/lib
17364 need_lib_prefix=no
17365 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17366 need_version=no
17367 else
17368 need_version=yes
17369 fi
17370 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17371 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17372 shlibpath_var=LD_LIBRARY_PATH
17373 shlibpath_overrides_runpath=yes
17374 ;;
17375
17376 os2*)
17377 libname_spec='$name'
17378 version_type=windows
17379 shrext_cmds=.dll
17380 need_version=no
17381 need_lib_prefix=no
17382 # OS/2 can only load a DLL with a base name of 8 characters or less.
17383 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17384 v=$($ECHO $release$versuffix | tr -d .-);
17385 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17386 $ECHO $n$v`$shared_ext'
17387 library_names_spec='${libname}_dll.$libext'
17388 dynamic_linker='OS/2 ld.exe'
17389 shlibpath_var=BEGINLIBPATH
17390 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17391 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17392 postinstall_cmds='base_file=`basename \$file`~
17393 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17394 dldir=$destdir/`dirname \$dlpath`~
17395 test -d \$dldir || mkdir -p \$dldir~
17396 $install_prog $dir/$dlname \$dldir/$dlname~
17397 chmod a+x \$dldir/$dlname~
17398 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17399 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17400 fi'
17401 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17402 dlpath=$dir/\$dldll~
17403 $RM \$dlpath'
17404 ;;
17405
17406 osf3* | osf4* | osf5*)
17407 version_type=osf
17408 need_lib_prefix=no
17409 need_version=no
17410 soname_spec='$libname$release$shared_ext$major'
17411 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17412 shlibpath_var=LD_LIBRARY_PATH
17413 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17414 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17415 ;;
17416
17417 rdos*)
17418 dynamic_linker=no
17419 ;;
17420
17421 solaris*)
17422 version_type=linux # correct to gnu/linux during the next big refactor
17423 need_lib_prefix=no
17424 need_version=no
17425 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17426 soname_spec='$libname$release$shared_ext$major'
17427 shlibpath_var=LD_LIBRARY_PATH
17428 shlibpath_overrides_runpath=yes
17429 hardcode_into_libs=yes
17430 # ldd complains unless libraries are executable
17431 postinstall_cmds='chmod +x $lib'
17432 ;;
17433
17434 sunos4*)
17435 version_type=sunos
17436 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17437 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17438 shlibpath_var=LD_LIBRARY_PATH
17439 shlibpath_overrides_runpath=yes
17440 if test yes = "$with_gnu_ld"; then
17441 need_lib_prefix=no
17442 fi
17443 need_version=yes
17444 ;;
17445
17446 sysv4 | sysv4.3*)
17447 version_type=linux # correct to gnu/linux during the next big refactor
17448 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17449 soname_spec='$libname$release$shared_ext$major'
17450 shlibpath_var=LD_LIBRARY_PATH
17451 case $host_vendor in
17452 sni)
17453 shlibpath_overrides_runpath=no
17454 need_lib_prefix=no
17455 runpath_var=LD_RUN_PATH
17456 ;;
17457 siemens)
17458 need_lib_prefix=no
17459 ;;
17460 motorola)
17461 need_lib_prefix=no
17462 need_version=no
17463 shlibpath_overrides_runpath=no
17464 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17465 ;;
17466 esac
17467 ;;
17468
17469 sysv4*MP*)
17470 if test -d /usr/nec; then
17471 version_type=linux # correct to gnu/linux during the next big refactor
17472 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17473 soname_spec='$libname$shared_ext.$major'
17474 shlibpath_var=LD_LIBRARY_PATH
17475 fi
17476 ;;
17477
17478 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17479 version_type=sco
17480 need_lib_prefix=no
17481 need_version=no
17482 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17483 soname_spec='$libname$release$shared_ext$major'
17484 shlibpath_var=LD_LIBRARY_PATH
17485 shlibpath_overrides_runpath=yes
17486 hardcode_into_libs=yes
17487 if test yes = "$with_gnu_ld"; then
17488 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17489 else
17490 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17491 case $host_os in
17492 sco3.2v5*)
17493 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17494 ;;
17495 esac
17496 fi
17497 sys_lib_dlsearch_path_spec='/usr/lib'
17498 ;;
17499
17500 tpf*)
17501 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17502 version_type=linux # correct to gnu/linux during the next big refactor
17503 need_lib_prefix=no
17504 need_version=no
17505 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17506 shlibpath_var=LD_LIBRARY_PATH
17507 shlibpath_overrides_runpath=no
17508 hardcode_into_libs=yes
17509 ;;
17510
17511 uts4*)
17512 version_type=linux # correct to gnu/linux during the next big refactor
17513 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17514 soname_spec='$libname$release$shared_ext$major'
17515 shlibpath_var=LD_LIBRARY_PATH
17516 ;;
17517
17518 *)
17519 dynamic_linker=no
17520 ;;
17521 esac
17522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17523 $as_echo "$dynamic_linker" >&6; }
17524 test no = "$dynamic_linker" && can_build_shared=no
17525
17526 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17527 if test yes = "$GCC"; then
17528 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17529 fi
17530
17531 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17532 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17533 fi
17534
17535 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17536 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17537 fi
17538
17539 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17540 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17541
17542 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17543 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17544
17545 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17546 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17645 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17646 hardcode_action=
17647 if test -n "$hardcode_libdir_flag_spec" ||
17648 test -n "$runpath_var" ||
17649 test yes = "$hardcode_automatic"; then
17650
17651 # We can hardcode non-existent directories.
17652 if test no != "$hardcode_direct" &&
17653 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17654 # have to relink, otherwise we might link with an installed library
17655 # when we should be linking with a yet-to-be-installed one
17656 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
17657 test no != "$hardcode_minus_L"; then
17658 # Linking always hardcodes the temporary library directory.
17659 hardcode_action=relink
17660 else
17661 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17662 hardcode_action=immediate
17663 fi
17664 else
17665 # We cannot hardcode anything, or else we can only hardcode existing
17666 # directories.
17667 hardcode_action=unsupported
17668 fi
17669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17670 $as_echo "$hardcode_action" >&6; }
17671
17672 if test relink = "$hardcode_action" ||
17673 test yes = "$inherit_rpath"; then
17674 # Fast installation is not supported
17675 enable_fast_install=no
17676 elif test yes = "$shlibpath_overrides_runpath" ||
17677 test no = "$enable_shared"; then
17678 # Fast installation is not necessary
17679 enable_fast_install=needless
17680 fi
17681
17682
17683
17684
17685
17686
17687 if test yes != "$enable_dlopen"; then
17688 enable_dlopen=unknown
17689 enable_dlopen_self=unknown
17690 enable_dlopen_self_static=unknown
17691 else
17692 lt_cv_dlopen=no
17693 lt_cv_dlopen_libs=
17694
17695 case $host_os in
17696 beos*)
17697 lt_cv_dlopen=load_add_on
17698 lt_cv_dlopen_libs=
17699 lt_cv_dlopen_self=yes
17700 ;;
17701
17702 mingw* | pw32* | cegcc*)
17703 lt_cv_dlopen=LoadLibrary
17704 lt_cv_dlopen_libs=
17705 ;;
17706
17707 cygwin*)
17708 lt_cv_dlopen=dlopen
17709 lt_cv_dlopen_libs=
17710 ;;
17711
17712 darwin*)
17713 # if libdl is installed we need to link against it
17714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17715 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17716 if ${ac_cv_lib_dl_dlopen+:} false; then :
17717 $as_echo_n "(cached) " >&6
17718 else
17719 ac_check_lib_save_LIBS=$LIBS
17720 LIBS="-ldl $LIBS"
17721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17722 /* end confdefs.h. */
17723
17724 /* Override any GCC internal prototype to avoid an error.
17725 Use char because int might match the return type of a GCC
17726 builtin and then its argument prototype would still apply. */
17727 #ifdef __cplusplus
17728 extern "C"
17729 #endif
17730 char dlopen ();
17731 int
17732 main ()
17733 {
17734 return dlopen ();
17735 ;
17736 return 0;
17737 }
17738 _ACEOF
17739 if ac_fn_c_try_link "$LINENO"; then :
17740 ac_cv_lib_dl_dlopen=yes
17741 else
17742 ac_cv_lib_dl_dlopen=no
17743 fi
17744 rm -f core conftest.err conftest.$ac_objext \
17745 conftest$ac_exeext conftest.$ac_ext
17746 LIBS=$ac_check_lib_save_LIBS
17747 fi
17748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17749 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17750 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17751 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17752 else
17753
17754 lt_cv_dlopen=dyld
17755 lt_cv_dlopen_libs=
17756 lt_cv_dlopen_self=yes
17757
17758 fi
17759
17760 ;;
17761
17762 tpf*)
17763 # Don't try to run any link tests for TPF. We know it's impossible
17764 # because TPF is a cross-compiler, and we know how we open DSOs.
17765 lt_cv_dlopen=dlopen
17766 lt_cv_dlopen_libs=
17767 lt_cv_dlopen_self=no
17768 ;;
17769
17770 *)
17771 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17772 if test "x$ac_cv_func_shl_load" = xyes; then :
17773 lt_cv_dlopen=shl_load
17774 else
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17776 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17777 if ${ac_cv_lib_dld_shl_load+:} false; then :
17778 $as_echo_n "(cached) " >&6
17779 else
17780 ac_check_lib_save_LIBS=$LIBS
17781 LIBS="-ldld $LIBS"
17782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17783 /* end confdefs.h. */
17784
17785 /* Override any GCC internal prototype to avoid an error.
17786 Use char because int might match the return type of a GCC
17787 builtin and then its argument prototype would still apply. */
17788 #ifdef __cplusplus
17789 extern "C"
17790 #endif
17791 char shl_load ();
17792 int
17793 main ()
17794 {
17795 return shl_load ();
17796 ;
17797 return 0;
17798 }
17799 _ACEOF
17800 if ac_fn_c_try_link "$LINENO"; then :
17801 ac_cv_lib_dld_shl_load=yes
17802 else
17803 ac_cv_lib_dld_shl_load=no
17804 fi
17805 rm -f core conftest.err conftest.$ac_objext \
17806 conftest$ac_exeext conftest.$ac_ext
17807 LIBS=$ac_check_lib_save_LIBS
17808 fi
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17810 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17811 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17812 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
17813 else
17814 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17815 if test "x$ac_cv_func_dlopen" = xyes; then :
17816 lt_cv_dlopen=dlopen
17817 else
17818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17819 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17820 if ${ac_cv_lib_dl_dlopen+:} false; then :
17821 $as_echo_n "(cached) " >&6
17822 else
17823 ac_check_lib_save_LIBS=$LIBS
17824 LIBS="-ldl $LIBS"
17825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17826 /* end confdefs.h. */
17827
17828 /* Override any GCC internal prototype to avoid an error.
17829 Use char because int might match the return type of a GCC
17830 builtin and then its argument prototype would still apply. */
17831 #ifdef __cplusplus
17832 extern "C"
17833 #endif
17834 char dlopen ();
17835 int
17836 main ()
17837 {
17838 return dlopen ();
17839 ;
17840 return 0;
17841 }
17842 _ACEOF
17843 if ac_fn_c_try_link "$LINENO"; then :
17844 ac_cv_lib_dl_dlopen=yes
17845 else
17846 ac_cv_lib_dl_dlopen=no
17847 fi
17848 rm -f core conftest.err conftest.$ac_objext \
17849 conftest$ac_exeext conftest.$ac_ext
17850 LIBS=$ac_check_lib_save_LIBS
17851 fi
17852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17853 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17854 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17855 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17856 else
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17858 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17859 if ${ac_cv_lib_svld_dlopen+:} false; then :
17860 $as_echo_n "(cached) " >&6
17861 else
17862 ac_check_lib_save_LIBS=$LIBS
17863 LIBS="-lsvld $LIBS"
17864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17865 /* end confdefs.h. */
17866
17867 /* Override any GCC internal prototype to avoid an error.
17868 Use char because int might match the return type of a GCC
17869 builtin and then its argument prototype would still apply. */
17870 #ifdef __cplusplus
17871 extern "C"
17872 #endif
17873 char dlopen ();
17874 int
17875 main ()
17876 {
17877 return dlopen ();
17878 ;
17879 return 0;
17880 }
17881 _ACEOF
17882 if ac_fn_c_try_link "$LINENO"; then :
17883 ac_cv_lib_svld_dlopen=yes
17884 else
17885 ac_cv_lib_svld_dlopen=no
17886 fi
17887 rm -f core conftest.err conftest.$ac_objext \
17888 conftest$ac_exeext conftest.$ac_ext
17889 LIBS=$ac_check_lib_save_LIBS
17890 fi
17891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17892 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17893 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17894 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
17895 else
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17897 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17898 if ${ac_cv_lib_dld_dld_link+:} false; then :
17899 $as_echo_n "(cached) " >&6
17900 else
17901 ac_check_lib_save_LIBS=$LIBS
17902 LIBS="-ldld $LIBS"
17903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17904 /* end confdefs.h. */
17905
17906 /* Override any GCC internal prototype to avoid an error.
17907 Use char because int might match the return type of a GCC
17908 builtin and then its argument prototype would still apply. */
17909 #ifdef __cplusplus
17910 extern "C"
17911 #endif
17912 char dld_link ();
17913 int
17914 main ()
17915 {
17916 return dld_link ();
17917 ;
17918 return 0;
17919 }
17920 _ACEOF
17921 if ac_fn_c_try_link "$LINENO"; then :
17922 ac_cv_lib_dld_dld_link=yes
17923 else
17924 ac_cv_lib_dld_dld_link=no
17925 fi
17926 rm -f core conftest.err conftest.$ac_objext \
17927 conftest$ac_exeext conftest.$ac_ext
17928 LIBS=$ac_check_lib_save_LIBS
17929 fi
17930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17931 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17932 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17933 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
17934 fi
17935
17936
17937 fi
17938
17939
17940 fi
17941
17942
17943 fi
17944
17945
17946 fi
17947
17948
17949 fi
17950
17951 ;;
17952 esac
17953
17954 if test no = "$lt_cv_dlopen"; then
17955 enable_dlopen=no
17956 else
17957 enable_dlopen=yes
17958 fi
17959
17960 case $lt_cv_dlopen in
17961 dlopen)
17962 save_CPPFLAGS=$CPPFLAGS
17963 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17964
17965 save_LDFLAGS=$LDFLAGS
17966 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17967
17968 save_LIBS=$LIBS
17969 LIBS="$lt_cv_dlopen_libs $LIBS"
17970
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17972 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17973 if ${lt_cv_dlopen_self+:} false; then :
17974 $as_echo_n "(cached) " >&6
17975 else
17976 if test yes = "$cross_compiling"; then :
17977 lt_cv_dlopen_self=cross
17978 else
17979 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17980 lt_status=$lt_dlunknown
17981 cat > conftest.$ac_ext <<_LT_EOF
17982 #line $LINENO "configure"
17983 #include "confdefs.h"
17984
17985 #if HAVE_DLFCN_H
17986 #include <dlfcn.h>
17987 #endif
17988
17989 #include <stdio.h>
17990
17991 #ifdef RTLD_GLOBAL
17992 # define LT_DLGLOBAL RTLD_GLOBAL
17993 #else
17994 # ifdef DL_GLOBAL
17995 # define LT_DLGLOBAL DL_GLOBAL
17996 # else
17997 # define LT_DLGLOBAL 0
17998 # endif
17999 #endif
18000
18001 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18002 find out it does not work in some platform. */
18003 #ifndef LT_DLLAZY_OR_NOW
18004 # ifdef RTLD_LAZY
18005 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18006 # else
18007 # ifdef DL_LAZY
18008 # define LT_DLLAZY_OR_NOW DL_LAZY
18009 # else
18010 # ifdef RTLD_NOW
18011 # define LT_DLLAZY_OR_NOW RTLD_NOW
18012 # else
18013 # ifdef DL_NOW
18014 # define LT_DLLAZY_OR_NOW DL_NOW
18015 # else
18016 # define LT_DLLAZY_OR_NOW 0
18017 # endif
18018 # endif
18019 # endif
18020 # endif
18021 #endif
18022
18023 /* When -fvisibility=hidden is used, assume the code has been annotated
18024 correspondingly for the symbols needed. */
18025 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18026 int fnord () __attribute__((visibility("default")));
18027 #endif
18028
18029 int fnord () { return 42; }
18030 int main ()
18031 {
18032 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18033 int status = $lt_dlunknown;
18034
18035 if (self)
18036 {
18037 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18038 else
18039 {
18040 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18041 else puts (dlerror ());
18042 }
18043 /* dlclose (self); */
18044 }
18045 else
18046 puts (dlerror ());
18047
18048 return status;
18049 }
18050 _LT_EOF
18051 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18052 (eval $ac_link) 2>&5
18053 ac_status=$?
18054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18055 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18056 (./conftest; exit; ) >&5 2>/dev/null
18057 lt_status=$?
18058 case x$lt_status in
18059 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18060 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18061 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18062 esac
18063 else :
18064 # compilation failed
18065 lt_cv_dlopen_self=no
18066 fi
18067 fi
18068 rm -fr conftest*
18069
18070
18071 fi
18072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18073 $as_echo "$lt_cv_dlopen_self" >&6; }
18074
18075 if test yes = "$lt_cv_dlopen_self"; then
18076 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18078 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18079 if ${lt_cv_dlopen_self_static+:} false; then :
18080 $as_echo_n "(cached) " >&6
18081 else
18082 if test yes = "$cross_compiling"; then :
18083 lt_cv_dlopen_self_static=cross
18084 else
18085 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18086 lt_status=$lt_dlunknown
18087 cat > conftest.$ac_ext <<_LT_EOF
18088 #line $LINENO "configure"
18089 #include "confdefs.h"
18090
18091 #if HAVE_DLFCN_H
18092 #include <dlfcn.h>
18093 #endif
18094
18095 #include <stdio.h>
18096
18097 #ifdef RTLD_GLOBAL
18098 # define LT_DLGLOBAL RTLD_GLOBAL
18099 #else
18100 # ifdef DL_GLOBAL
18101 # define LT_DLGLOBAL DL_GLOBAL
18102 # else
18103 # define LT_DLGLOBAL 0
18104 # endif
18105 #endif
18106
18107 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18108 find out it does not work in some platform. */
18109 #ifndef LT_DLLAZY_OR_NOW
18110 # ifdef RTLD_LAZY
18111 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18112 # else
18113 # ifdef DL_LAZY
18114 # define LT_DLLAZY_OR_NOW DL_LAZY
18115 # else
18116 # ifdef RTLD_NOW
18117 # define LT_DLLAZY_OR_NOW RTLD_NOW
18118 # else
18119 # ifdef DL_NOW
18120 # define LT_DLLAZY_OR_NOW DL_NOW
18121 # else
18122 # define LT_DLLAZY_OR_NOW 0
18123 # endif
18124 # endif
18125 # endif
18126 # endif
18127 #endif
18128
18129 /* When -fvisibility=hidden is used, assume the code has been annotated
18130 correspondingly for the symbols needed. */
18131 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18132 int fnord () __attribute__((visibility("default")));
18133 #endif
18134
18135 int fnord () { return 42; }
18136 int main ()
18137 {
18138 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18139 int status = $lt_dlunknown;
18140
18141 if (self)
18142 {
18143 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18144 else
18145 {
18146 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18147 else puts (dlerror ());
18148 }
18149 /* dlclose (self); */
18150 }
18151 else
18152 puts (dlerror ());
18153
18154 return status;
18155 }
18156 _LT_EOF
18157 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18158 (eval $ac_link) 2>&5
18159 ac_status=$?
18160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18161 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18162 (./conftest; exit; ) >&5 2>/dev/null
18163 lt_status=$?
18164 case x$lt_status in
18165 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18166 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18167 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18168 esac
18169 else :
18170 # compilation failed
18171 lt_cv_dlopen_self_static=no
18172 fi
18173 fi
18174 rm -fr conftest*
18175
18176
18177 fi
18178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18179 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18180 fi
18181
18182 CPPFLAGS=$save_CPPFLAGS
18183 LDFLAGS=$save_LDFLAGS
18184 LIBS=$save_LIBS
18185 ;;
18186 esac
18187
18188 case $lt_cv_dlopen_self in
18189 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18190 *) enable_dlopen_self=unknown ;;
18191 esac
18192
18193 case $lt_cv_dlopen_self_static in
18194 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18195 *) enable_dlopen_self_static=unknown ;;
18196 esac
18197 fi
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215 striplib=
18216 old_striplib=
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18218 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18219 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18220 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18221 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18223 $as_echo "yes" >&6; }
18224 else
18225 # FIXME - insert some real tests, host_os isn't really good enough
18226 case $host_os in
18227 darwin*)
18228 if test -n "$STRIP"; then
18229 striplib="$STRIP -x"
18230 old_striplib="$STRIP -S"
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18232 $as_echo "yes" >&6; }
18233 else
18234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18235 $as_echo "no" >&6; }
18236 fi
18237 ;;
18238 *)
18239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18240 $as_echo "no" >&6; }
18241 ;;
18242 esac
18243 fi
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256 # Report what library types will actually be built
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18258 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18260 $as_echo "$can_build_shared" >&6; }
18261
18262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18263 $as_echo_n "checking whether to build shared libraries... " >&6; }
18264 test no = "$can_build_shared" && enable_shared=no
18265
18266 # On AIX, shared libraries and static libraries use the same namespace, and
18267 # are all built from PIC.
18268 case $host_os in
18269 aix3*)
18270 test yes = "$enable_shared" && enable_static=no
18271 if test -n "$RANLIB"; then
18272 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18273 postinstall_cmds='$RANLIB $lib'
18274 fi
18275 ;;
18276
18277 aix[4-9]*)
18278 if test ia64 != "$host_cpu"; then
18279 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
18280 yes,aix,yes) ;; # shared object as lib.so file only
18281 yes,svr4,*) ;; # shared object as lib.so archive member only
18282 yes,*) enable_static=no ;; # shared object in lib.a archive as well
18283 esac
18284 fi
18285 ;;
18286 esac
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18288 $as_echo "$enable_shared" >&6; }
18289
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18291 $as_echo_n "checking whether to build static libraries... " >&6; }
18292 # Make sure either enable_shared or enable_static is yes.
18293 test yes = "$enable_shared" || enable_static=yes
18294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18295 $as_echo "$enable_static" >&6; }
18296
18297
18298
18299
18300 fi
18301 ac_ext=c
18302 ac_cpp='$CPP $CPPFLAGS'
18303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18306
18307 CC=$lt_save_CC
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317
18318
18319
18320
18321
18322
18323 ac_config_commands="$ac_config_commands libtool"
18324
18325
18326
18327
18328 # Only expand once:
18329
18330
18331
18332
18333
18334 # Define a configure option for an alternate module directory
18335
18336 # Check whether --with-xorg-module-dir was given.
18337 if test "${with_xorg_module_dir+set}" = set; then :
18338 withval=$with_xorg_module_dir; moduledir="$withval"
18339 else
18340 moduledir="$libdir/xorg/modules"
18341 fi
18342
18343
18344 # Check whether --enable-dri was given.
18345 if test "${enable_dri+set}" = set; then :
18346 enableval=$enable_dri; DRI="$enableval"
18347 else
18348 DRI=auto
18349 fi
18350
18351
18352 # Store the list of server defined optional extensions in REQUIRED_MODULES
18353
18354
18355 SAVE_CFLAGS="$CFLAGS"
18356 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18358 /* end confdefs.h. */
18359
18360 #include "xorg-server.h"
18361 #if !defined XINERAMA
18362 #error XINERAMA not defined
18363 #endif
18364
18365 int
18366 main ()
18367 {
18368
18369 ;
18370 return 0;
18371 }
18372 _ACEOF
18373 if ac_fn_c_try_compile "$LINENO"; then :
18374 _EXT_CHECK=yes
18375 else
18376 _EXT_CHECK=no
18377 fi
18378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18379 CFLAGS="$SAVE_CFLAGS"
18380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XINERAMA is defined" >&5
18381 $as_echo_n "checking if XINERAMA is defined... " >&6; }
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18383 $as_echo "$_EXT_CHECK" >&6; }
18384 if test "$_EXT_CHECK" != no; then
18385 REQUIRED_MODULES="$REQUIRED_MODULES xineramaproto"
18386 fi
18387
18388
18389
18390 SAVE_CFLAGS="$CFLAGS"
18391 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18393 /* end confdefs.h. */
18394
18395 #include "xorg-server.h"
18396 #if !defined RANDR
18397 #error RANDR not defined
18398 #endif
18399
18400 int
18401 main ()
18402 {
18403
18404 ;
18405 return 0;
18406 }
18407 _ACEOF
18408 if ac_fn_c_try_compile "$LINENO"; then :
18409 _EXT_CHECK=yes
18410 else
18411 _EXT_CHECK=no
18412 fi
18413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18414 CFLAGS="$SAVE_CFLAGS"
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
18416 $as_echo_n "checking if RANDR is defined... " >&6; }
18417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18418 $as_echo "$_EXT_CHECK" >&6; }
18419 if test "$_EXT_CHECK" != no; then
18420 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
18421 fi
18422
18423
18424
18425 SAVE_CFLAGS="$CFLAGS"
18426 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18428 /* end confdefs.h. */
18429
18430 #include "xorg-server.h"
18431 #if !defined RENDER
18432 #error RENDER not defined
18433 #endif
18434
18435 int
18436 main ()
18437 {
18438
18439 ;
18440 return 0;
18441 }
18442 _ACEOF
18443 if ac_fn_c_try_compile "$LINENO"; then :
18444 _EXT_CHECK=yes
18445 else
18446 _EXT_CHECK=no
18447 fi
18448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18449 CFLAGS="$SAVE_CFLAGS"
18450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
18451 $as_echo_n "checking if RENDER is defined... " >&6; }
18452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18453 $as_echo "$_EXT_CHECK" >&6; }
18454 if test "$_EXT_CHECK" != no; then
18455 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
18456 fi
18457
18458
18459
18460 SAVE_CFLAGS="$CFLAGS"
18461 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18463 /* end confdefs.h. */
18464
18465 #include "xorg-server.h"
18466 #if !defined XV
18467 #error XV not defined
18468 #endif
18469
18470 int
18471 main ()
18472 {
18473
18474 ;
18475 return 0;
18476 }
18477 _ACEOF
18478 if ac_fn_c_try_compile "$LINENO"; then :
18479 _EXT_CHECK=yes
18480 else
18481 _EXT_CHECK=no
18482 fi
18483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18484 CFLAGS="$SAVE_CFLAGS"
18485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
18486 $as_echo_n "checking if XV is defined... " >&6; }
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18488 $as_echo "$_EXT_CHECK" >&6; }
18489 if test "$_EXT_CHECK" != no; then
18490 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
18491 fi
18492
18493
18494
18495 SAVE_CFLAGS="$CFLAGS"
18496 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18498 /* end confdefs.h. */
18499
18500 #include "xorg-server.h"
18501 #if !defined DPMSExtension
18502 #error DPMSExtension not defined
18503 #endif
18504
18505 int
18506 main ()
18507 {
18508
18509 ;
18510 return 0;
18511 }
18512 _ACEOF
18513 if ac_fn_c_try_compile "$LINENO"; then :
18514 _EXT_CHECK=yes
18515 else
18516 _EXT_CHECK=no
18517 fi
18518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18519 CFLAGS="$SAVE_CFLAGS"
18520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
18521 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
18522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18523 $as_echo "$_EXT_CHECK" >&6; }
18524 if test "$_EXT_CHECK" != no; then
18525 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
18526 fi
18527
18528
18529 # Obtain compiler/linker options for the driver dependencies
18530
18531 pkg_failed=no
18532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
18533 $as_echo_n "checking for XORG... " >&6; }
18534
18535 if test -n "$XORG_CFLAGS"; then
18536 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18537 elif test -n "$PKG_CONFIG"; then
18538 if test -n "$PKG_CONFIG" && \
18539 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto >= 2.1 \$REQUIRED_MODULES\""; } >&5
18540 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto >= 2.1 $REQUIRED_MODULES") 2>&5
18541 ac_status=$?
18542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18543 test $ac_status = 0; }; then
18544 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto >= 2.1 $REQUIRED_MODULES" 2>/dev/null`
18545 test "x$?" != "x0" && pkg_failed=yes
18546 else
18547 pkg_failed=yes
18548 fi
18549 else
18550 pkg_failed=untried
18551 fi
18552 if test -n "$XORG_LIBS"; then
18553 pkg_cv_XORG_LIBS="$XORG_LIBS"
18554 elif test -n "$PKG_CONFIG"; then
18555 if test -n "$PKG_CONFIG" && \
18556 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto >= 2.1 \$REQUIRED_MODULES\""; } >&5
18557 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto >= 2.1 $REQUIRED_MODULES") 2>&5
18558 ac_status=$?
18559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18560 test $ac_status = 0; }; then
18561 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto >= 2.1 $REQUIRED_MODULES" 2>/dev/null`
18562 test "x$?" != "x0" && pkg_failed=yes
18563 else
18564 pkg_failed=yes
18565 fi
18566 else
18567 pkg_failed=untried
18568 fi
18569
18570
18571
18572 if test $pkg_failed = yes; then
18573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18574 $as_echo "no" >&6; }
18575
18576 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18577 _pkg_short_errors_supported=yes
18578 else
18579 _pkg_short_errors_supported=no
18580 fi
18581 if test $_pkg_short_errors_supported = yes; then
18582 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto >= 2.1 $REQUIRED_MODULES" 2>&1`
18583 else
18584 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto >= 2.1 $REQUIRED_MODULES" 2>&1`
18585 fi
18586 # Put the nasty error message in config.log where it belongs
18587 echo "$XORG_PKG_ERRORS" >&5
18588
18589 as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto >= 2.1 $REQUIRED_MODULES) were not met:
18590
18591 $XORG_PKG_ERRORS
18592
18593 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18594 installed software in a non-standard prefix.
18595
18596 Alternatively, you may set the environment variables XORG_CFLAGS
18597 and XORG_LIBS to avoid the need to call pkg-config.
18598 See the pkg-config man page for more details." "$LINENO" 5
18599 elif test $pkg_failed = untried; then
18600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18601 $as_echo "no" >&6; }
18602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18604 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18605 is in your PATH or set the PKG_CONFIG environment variable to the full
18606 path to pkg-config.
18607
18608 Alternatively, you may set the environment variables XORG_CFLAGS
18609 and XORG_LIBS to avoid the need to call pkg-config.
18610 See the pkg-config man page for more details.
18611
18612 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18613 See \`config.log' for more details" "$LINENO" 5; }
18614 else
18615 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18616 XORG_LIBS=$pkg_cv_XORG_LIBS
18617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18618 $as_echo "yes" >&6; }
18619
18620 fi
18621
18622 pkg_failed=no
18623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
18624 $as_echo_n "checking for XEXT... " >&6; }
18625
18626 if test -n "$XEXT_CFLAGS"; then
18627 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
18628 elif test -n "$PKG_CONFIG"; then
18629 if test -n "$PKG_CONFIG" && \
18630 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18631 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18632 ac_status=$?
18633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18634 test $ac_status = 0; }; then
18635 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
18636 test "x$?" != "x0" && pkg_failed=yes
18637 else
18638 pkg_failed=yes
18639 fi
18640 else
18641 pkg_failed=untried
18642 fi
18643 if test -n "$XEXT_LIBS"; then
18644 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
18645 elif test -n "$PKG_CONFIG"; then
18646 if test -n "$PKG_CONFIG" && \
18647 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18648 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18649 ac_status=$?
18650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18651 test $ac_status = 0; }; then
18652 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
18653 test "x$?" != "x0" && pkg_failed=yes
18654 else
18655 pkg_failed=yes
18656 fi
18657 else
18658 pkg_failed=untried
18659 fi
18660
18661
18662
18663 if test $pkg_failed = yes; then
18664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18665 $as_echo "no" >&6; }
18666
18667 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18668 _pkg_short_errors_supported=yes
18669 else
18670 _pkg_short_errors_supported=no
18671 fi
18672 if test $_pkg_short_errors_supported = yes; then
18673 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
18674 else
18675 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
18676 fi
18677 # Put the nasty error message in config.log where it belongs
18678 echo "$XEXT_PKG_ERRORS" >&5
18679
18680 HAVE_XEXTPROTO_71="no"
18681 elif test $pkg_failed = untried; then
18682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18683 $as_echo "no" >&6; }
18684 HAVE_XEXTPROTO_71="no"
18685 else
18686 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
18687 XEXT_LIBS=$pkg_cv_XEXT_LIBS
18688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18689 $as_echo "yes" >&6; }
18690 HAVE_XEXTPROTO_71="yes";
18691 $as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
18692
18693 fi
18694 if test "$HAVE_XEXTPROTO_71" = "yes" ; then
18695 HAVE_XEXTPROTO_71_TRUE=
18696 HAVE_XEXTPROTO_71_FALSE='#'
18697 else
18698 HAVE_XEXTPROTO_71_TRUE='#'
18699 HAVE_XEXTPROTO_71_FALSE=
18700 fi
18701
18702 sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
18703
18704 # Checks for libraries.
18705
18706 if test "$DRI" != no; then
18707 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh`
18708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dri.h" >&5
18709 $as_echo_n "checking for ${sdkdir}/dri.h... " >&6; }
18710 if eval \${$as_ac_File+:} false; then :
18711 $as_echo_n "(cached) " >&6
18712 else
18713 test "$cross_compiling" = yes &&
18714 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18715 if test -r "${sdkdir}/dri.h"; then
18716 eval "$as_ac_File=yes"
18717 else
18718 eval "$as_ac_File=no"
18719 fi
18720 fi
18721 eval ac_res=\$$as_ac_File
18722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18723 $as_echo "$ac_res" >&6; }
18724 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18725 have_dri_h="yes"
18726 else
18727 have_dri_h="no"
18728 fi
18729
18730 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh`
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/sarea.h" >&5
18732 $as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; }
18733 if eval \${$as_ac_File+:} false; then :
18734 $as_echo_n "(cached) " >&6
18735 else
18736 test "$cross_compiling" = yes &&
18737 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18738 if test -r "${sdkdir}/sarea.h"; then
18739 eval "$as_ac_File=yes"
18740 else
18741 eval "$as_ac_File=no"
18742 fi
18743 fi
18744 eval ac_res=\$$as_ac_File
18745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18746 $as_echo "$ac_res" >&6; }
18747 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18748 have_sarea_h="yes"
18749 else
18750 have_sarea_h="no"
18751 fi
18752
18753 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh`
18754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dristruct.h" >&5
18755 $as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; }
18756 if eval \${$as_ac_File+:} false; then :
18757 $as_echo_n "(cached) " >&6
18758 else
18759 test "$cross_compiling" = yes &&
18760 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18761 if test -r "${sdkdir}/dristruct.h"; then
18762 eval "$as_ac_File=yes"
18763 else
18764 eval "$as_ac_File=no"
18765 fi
18766 fi
18767 eval ac_res=\$$as_ac_File
18768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18769 $as_echo "$ac_res" >&6; }
18770 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18771 have_dristruct_h="yes"
18772 else
18773 have_dristruct_h="no"
18774 fi
18775
18776 fi
18777
18778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5
18779 $as_echo_n "checking whether to include DRI support... " >&6; }
18780 if test x$DRI = xauto; then
18781 if test "$have_dri_h" = yes -a \
18782 "$have_sarea_h" = yes -a \
18783 "$have_dristruct_h" = yes; then
18784 DRI="yes"
18785 else
18786 DRI="no"
18787 fi
18788 fi
18789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DRI" >&5
18790 $as_echo "$DRI" >&6; }
18791
18792 if test x$DRI = xyes; then
18793 DRI_TRUE=
18794 DRI_FALSE='#'
18795 else
18796 DRI_TRUE='#'
18797 DRI_FALSE=
18798 fi
18799
18800 if test "$DRI" = yes; then
18801
18802 pkg_failed=no
18803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5
18804 $as_echo_n "checking for DRI... " >&6; }
18805
18806 if test -n "$DRI_CFLAGS"; then
18807 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
18808 elif test -n "$PKG_CONFIG"; then
18809 if test -n "$PKG_CONFIG" && \
18810 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\""; } >&5
18811 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
18812 ac_status=$?
18813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18814 test $ac_status = 0; }; then
18815 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.0 xf86driproto" 2>/dev/null`
18816 test "x$?" != "x0" && pkg_failed=yes
18817 else
18818 pkg_failed=yes
18819 fi
18820 else
18821 pkg_failed=untried
18822 fi
18823 if test -n "$DRI_LIBS"; then
18824 pkg_cv_DRI_LIBS="$DRI_LIBS"
18825 elif test -n "$PKG_CONFIG"; then
18826 if test -n "$PKG_CONFIG" && \
18827 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\""; } >&5
18828 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
18829 ac_status=$?
18830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18831 test $ac_status = 0; }; then
18832 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.0 xf86driproto" 2>/dev/null`
18833 test "x$?" != "x0" && pkg_failed=yes
18834 else
18835 pkg_failed=yes
18836 fi
18837 else
18838 pkg_failed=untried
18839 fi
18840
18841
18842
18843 if test $pkg_failed = yes; then
18844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18845 $as_echo "no" >&6; }
18846
18847 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18848 _pkg_short_errors_supported=yes
18849 else
18850 _pkg_short_errors_supported=no
18851 fi
18852 if test $_pkg_short_errors_supported = yes; then
18853 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.0 xf86driproto" 2>&1`
18854 else
18855 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.0 xf86driproto" 2>&1`
18856 fi
18857 # Put the nasty error message in config.log where it belongs
18858 echo "$DRI_PKG_ERRORS" >&5
18859
18860 as_fn_error $? "Package requirements (libdrm >= 2.0 xf86driproto) were not met:
18861
18862 $DRI_PKG_ERRORS
18863
18864 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18865 installed software in a non-standard prefix.
18866
18867 Alternatively, you may set the environment variables DRI_CFLAGS
18868 and DRI_LIBS to avoid the need to call pkg-config.
18869 See the pkg-config man page for more details." "$LINENO" 5
18870 elif test $pkg_failed = untried; then
18871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18872 $as_echo "no" >&6; }
18873 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18874 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18875 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18876 is in your PATH or set the PKG_CONFIG environment variable to the full
18877 path to pkg-config.
18878
18879 Alternatively, you may set the environment variables DRI_CFLAGS
18880 and DRI_LIBS to avoid the need to call pkg-config.
18881 See the pkg-config man page for more details.
18882
18883 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18884 See \`config.log' for more details" "$LINENO" 5; }
18885 else
18886 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
18887 DRI_LIBS=$pkg_cv_DRI_LIBS
18888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18889 $as_echo "yes" >&6; }
18890
18891 fi
18892
18893 $as_echo "#define SISDRI 1" >>confdefs.h
18894
18895
18896 $as_echo "#define SISDRI_DEVEL 1" >>confdefs.h
18897
18898 fi
18899
18900 # Check whether --enable-xaa was given.
18901 if test "${enable_xaa+set}" = set; then :
18902 enableval=$enable_xaa; XAA="$enableval"
18903 else
18904 XAA=auto
18905 fi
18906
18907 if test "x$XAA" != xno; then
18908 save_CFLAGS=$CFLAGS
18909 save_CPPFLAGS=$CPPFLAGS
18910 CFLAGS=$XORG_CFLAGS
18911 CPPFLAGS="$XORG_CFLAGS"
18912 for ac_header in xaa.h
18913 do :
18914 ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
18915 if test "x$ac_cv_header_xaa_h" = xyes; then :
18916 cat >>confdefs.h <<_ACEOF
18917 #define HAVE_XAA_H 1
18918 _ACEOF
18919 XAA=yes
18920 else
18921 XAA=no
18922 fi
18923
18924 done
18925
18926 CFLAGS=$save_CFLAGS
18927 CPPFLAGS=$save_CPPFLAGS
18928 fi
18929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
18930 $as_echo_n "checking whether to include XAA support... " >&6; }
18931 if test "x$XAA" = xyes; then
18932 XAA_TRUE=
18933 XAA_FALSE='#'
18934 else
18935 XAA_TRUE='#'
18936 XAA_FALSE=
18937 fi
18938
18939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
18940 $as_echo "$XAA" >&6; }
18941
18942 # technically this should be a configure flag. meh.
18943
18944 $as_echo "#define XF86EXA 1" >>confdefs.h
18945
18946
18947 SAVE_CPPFLAGS="$CPPFLAGS"
18948 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
18949 ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
18950 "
18951 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
18952 XSERVER_LIBPCIACCESS=yes
18953 else
18954 XSERVER_LIBPCIACCESS=no
18955 fi
18956
18957 CPPFLAGS="$SAVE_CPPFLAGS"
18958
18959 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18960
18961 pkg_failed=no
18962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18963 $as_echo_n "checking for PCIACCESS... " >&6; }
18964
18965 if test -n "$PCIACCESS_CFLAGS"; then
18966 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18967 elif test -n "$PKG_CONFIG"; then
18968 if test -n "$PKG_CONFIG" && \
18969 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5
18970 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5
18971 ac_status=$?
18972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18973 test $ac_status = 0; }; then
18974 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.12.901" 2>/dev/null`
18975 test "x$?" != "x0" && pkg_failed=yes
18976 else
18977 pkg_failed=yes
18978 fi
18979 else
18980 pkg_failed=untried
18981 fi
18982 if test -n "$PCIACCESS_LIBS"; then
18983 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18984 elif test -n "$PKG_CONFIG"; then
18985 if test -n "$PKG_CONFIG" && \
18986 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5
18987 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5
18988 ac_status=$?
18989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18990 test $ac_status = 0; }; then
18991 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.12.901" 2>/dev/null`
18992 test "x$?" != "x0" && pkg_failed=yes
18993 else
18994 pkg_failed=yes
18995 fi
18996 else
18997 pkg_failed=untried
18998 fi
18999
19000
19001
19002 if test $pkg_failed = yes; then
19003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19004 $as_echo "no" >&6; }
19005
19006 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19007 _pkg_short_errors_supported=yes
19008 else
19009 _pkg_short_errors_supported=no
19010 fi
19011 if test $_pkg_short_errors_supported = yes; then
19012 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.12.901" 2>&1`
19013 else
19014 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.12.901" 2>&1`
19015 fi
19016 # Put the nasty error message in config.log where it belongs
19017 echo "$PCIACCESS_PKG_ERRORS" >&5
19018
19019 as_fn_error $? "Package requirements (pciaccess >= 0.12.901) were not met:
19020
19021 $PCIACCESS_PKG_ERRORS
19022
19023 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19024 installed software in a non-standard prefix.
19025
19026 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19027 and PCIACCESS_LIBS to avoid the need to call pkg-config.
19028 See the pkg-config man page for more details." "$LINENO" 5
19029 elif test $pkg_failed = untried; then
19030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19031 $as_echo "no" >&6; }
19032 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19034 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19035 is in your PATH or set the PKG_CONFIG environment variable to the full
19036 path to pkg-config.
19037
19038 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19039 and PCIACCESS_LIBS to avoid the need to call pkg-config.
19040 See the pkg-config man page for more details.
19041
19042 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19043 See \`config.log' for more details" "$LINENO" 5; }
19044 else
19045 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
19046 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
19047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19048 $as_echo "yes" >&6; }
19049
19050 fi
19051 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
19052 fi
19053 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
19054 XSERVER_LIBPCIACCESS_TRUE=
19055 XSERVER_LIBPCIACCESS_FALSE='#'
19056 else
19057 XSERVER_LIBPCIACCESS_TRUE='#'
19058 XSERVER_LIBPCIACCESS_FALSE=
19059 fi
19060
19061
19062
19063
19064 DRIVER_NAME=sis
19065
19066
19067 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
19068
19069 cat >confcache <<\_ACEOF
19070 # This file is a shell script that caches the results of configure
19071 # tests run on this system so they can be shared between configure
19072 # scripts and configure runs, see configure's option --config-cache.
19073 # It is not useful on other systems. If it contains results you don't
19074 # want to keep, you may remove or edit it.
19075 #
19076 # config.status only pays attention to the cache file if you give it
19077 # the --recheck option to rerun configure.
19078 #
19079 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19080 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19081 # following values.
19082
19083 _ACEOF
19084
19085 # The following way of writing the cache mishandles newlines in values,
19086 # but we know of no workaround that is simple, portable, and efficient.
19087 # So, we kill variables containing newlines.
19088 # Ultrix sh set writes to stderr and can't be redirected directly,
19089 # and sets the high bit in the cache file unless we assign to the vars.
19090 (
19091 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19092 eval ac_val=\$$ac_var
19093 case $ac_val in #(
19094 *${as_nl}*)
19095 case $ac_var in #(
19096 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19097 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19098 esac
19099 case $ac_var in #(
19100 _ | IFS | as_nl) ;; #(
19101 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19102 *) { eval $ac_var=; unset $ac_var;} ;;
19103 esac ;;
19104 esac
19105 done
19106
19107 (set) 2>&1 |
19108 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19109 *${as_nl}ac_space=\ *)
19110 # `set' does not quote correctly, so add quotes: double-quote
19111 # substitution turns \\\\ into \\, and sed turns \\ into \.
19112 sed -n \
19113 "s/'/'\\\\''/g;
19114 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19115 ;; #(
19116 *)
19117 # `set' quotes correctly as required by POSIX, so do not add quotes.
19118 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19119 ;;
19120 esac |
19121 sort
19122 ) |
19123 sed '
19124 /^ac_cv_env_/b end
19125 t clear
19126 :clear
19127 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19128 t end
19129 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19130 :end' >>confcache
19131 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19132 if test -w "$cache_file"; then
19133 if test "x$cache_file" != "x/dev/null"; then
19134 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19135 $as_echo "$as_me: updating cache $cache_file" >&6;}
19136 if test ! -f "$cache_file" || test -h "$cache_file"; then
19137 cat confcache >"$cache_file"
19138 else
19139 case $cache_file in #(
19140 */* | ?:*)
19141 mv -f confcache "$cache_file"$$ &&
19142 mv -f "$cache_file"$$ "$cache_file" ;; #(
19143 *)
19144 mv -f confcache "$cache_file" ;;
19145 esac
19146 fi
19147 fi
19148 else
19149 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19150 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19151 fi
19152 fi
19153 rm -f confcache
19154
19155 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19156 # Let make expand exec_prefix.
19157 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19158
19159 DEFS=-DHAVE_CONFIG_H
19160
19161 ac_libobjs=
19162 ac_ltlibobjs=
19163 U=
19164 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19165 # 1. Remove the extension, and $U if already installed.
19166 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19167 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19168 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19169 # will be set to the directory where LIBOBJS objects are built.
19170 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19171 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19172 done
19173 LIBOBJS=$ac_libobjs
19174
19175 LTLIBOBJS=$ac_ltlibobjs
19176
19177
19178 if test -n "$EXEEXT"; then
19179 am__EXEEXT_TRUE=
19180 am__EXEEXT_FALSE='#'
19181 else
19182 am__EXEEXT_TRUE='#'
19183 am__EXEEXT_FALSE=
19184 fi
19185
19186 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19187 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19188 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19189 fi
19190 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19191 as_fn_error $? "conditional \"AMDEP\" was never defined.
19192 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19193 fi
19194 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19195 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19196 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19197 fi
19198 if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
19199 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
19200 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19201 fi
19202 if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
19203 as_fn_error $? "conditional \"DRI\" was never defined.
19204 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19205 fi
19206 if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
19207 as_fn_error $? "conditional \"XAA\" was never defined.
19208 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19209 fi
19210 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
19211 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
19212 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19213 fi
19214
19215 : "${CONFIG_STATUS=./config.status}"
19216 ac_write_fail=0
19217 ac_clean_files_save=$ac_clean_files
19218 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19219 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19220 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19221 as_write_fail=0
19222 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19223 #! $SHELL
19224 # Generated by $as_me.
19225 # Run this file to recreate the current configuration.
19226 # Compiler output produced by configure, useful for debugging
19227 # configure, is in config.log if it exists.
19228
19229 debug=false
19230 ac_cs_recheck=false
19231 ac_cs_silent=false
19232
19233 SHELL=\${CONFIG_SHELL-$SHELL}
19234 export SHELL
19235 _ASEOF
19236 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19237 ## -------------------- ##
19238 ## M4sh Initialization. ##
19239 ## -------------------- ##
19240
19241 # Be more Bourne compatible
19242 DUALCASE=1; export DUALCASE # for MKS sh
19243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19244 emulate sh
19245 NULLCMD=:
19246 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19247 # is contrary to our usage. Disable this feature.
19248 alias -g '${1+"$@"}'='"$@"'
19249 setopt NO_GLOB_SUBST
19250 else
19251 case `(set -o) 2>/dev/null` in #(
19252 *posix*) :
19253 set -o posix ;; #(
19254 *) :
19255 ;;
19256 esac
19257 fi
19258
19259
19260 as_nl='
19261 '
19262 export as_nl
19263 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19264 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19265 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19266 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19267 # Prefer a ksh shell builtin over an external printf program on Solaris,
19268 # but without wasting forks for bash or zsh.
19269 if test -z "$BASH_VERSION$ZSH_VERSION" \
19270 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19271 as_echo='print -r --'
19272 as_echo_n='print -rn --'
19273 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19274 as_echo='printf %s\n'
19275 as_echo_n='printf %s'
19276 else
19277 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19278 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19279 as_echo_n='/usr/ucb/echo -n'
19280 else
19281 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19282 as_echo_n_body='eval
19283 arg=$1;
19284 case $arg in #(
19285 *"$as_nl"*)
19286 expr "X$arg" : "X\\(.*\\)$as_nl";
19287 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19288 esac;
19289 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19290 '
19291 export as_echo_n_body
19292 as_echo_n='sh -c $as_echo_n_body as_echo'
19293 fi
19294 export as_echo_body
19295 as_echo='sh -c $as_echo_body as_echo'
19296 fi
19297
19298 # The user is always right.
19299 if test "${PATH_SEPARATOR+set}" != set; then
19300 PATH_SEPARATOR=:
19301 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19302 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19303 PATH_SEPARATOR=';'
19304 }
19305 fi
19306
19307
19308 # IFS
19309 # We need space, tab and new line, in precisely that order. Quoting is
19310 # there to prevent editors from complaining about space-tab.
19311 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19312 # splitting by setting IFS to empty value.)
19313 IFS=" "" $as_nl"
19314
19315 # Find who we are. Look in the path if we contain no directory separator.
19316 as_myself=
19317 case $0 in #((
19318 *[\\/]* ) as_myself=$0 ;;
19319 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19320 for as_dir in $PATH
19321 do
19322 IFS=$as_save_IFS
19323 test -z "$as_dir" && as_dir=.
19324 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19325 done
19326 IFS=$as_save_IFS
19327
19328 ;;
19329 esac
19330 # We did not find ourselves, most probably we were run as `sh COMMAND'
19331 # in which case we are not to be found in the path.
19332 if test "x$as_myself" = x; then
19333 as_myself=$0
19334 fi
19335 if test ! -f "$as_myself"; then
19336 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19337 exit 1
19338 fi
19339
19340 # Unset variables that we do not need and which cause bugs (e.g. in
19341 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19342 # suppresses any "Segmentation fault" message there. '((' could
19343 # trigger a bug in pdksh 5.2.14.
19344 for as_var in BASH_ENV ENV MAIL MAILPATH
19345 do eval test x\${$as_var+set} = xset \
19346 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19347 done
19348 PS1='$ '
19349 PS2='> '
19350 PS4='+ '
19351
19352 # NLS nuisances.
19353 LC_ALL=C
19354 export LC_ALL
19355 LANGUAGE=C
19356 export LANGUAGE
19357
19358 # CDPATH.
19359 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19360
19361
19362 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19363 # ----------------------------------------
19364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19366 # script with STATUS, using 1 if that was 0.
19367 as_fn_error ()
19368 {
19369 as_status=$1; test $as_status -eq 0 && as_status=1
19370 if test "$4"; then
19371 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19373 fi
19374 $as_echo "$as_me: error: $2" >&2
19375 as_fn_exit $as_status
19376 } # as_fn_error
19377
19378
19379 # as_fn_set_status STATUS
19380 # -----------------------
19381 # Set $? to STATUS, without forking.
19382 as_fn_set_status ()
19383 {
19384 return $1
19385 } # as_fn_set_status
19386
19387 # as_fn_exit STATUS
19388 # -----------------
19389 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19390 as_fn_exit ()
19391 {
19392 set +e
19393 as_fn_set_status $1
19394 exit $1
19395 } # as_fn_exit
19396
19397 # as_fn_unset VAR
19398 # ---------------
19399 # Portably unset VAR.
19400 as_fn_unset ()
19401 {
19402 { eval $1=; unset $1;}
19403 }
19404 as_unset=as_fn_unset
19405 # as_fn_append VAR VALUE
19406 # ----------------------
19407 # Append the text in VALUE to the end of the definition contained in VAR. Take
19408 # advantage of any shell optimizations that allow amortized linear growth over
19409 # repeated appends, instead of the typical quadratic growth present in naive
19410 # implementations.
19411 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19412 eval 'as_fn_append ()
19413 {
19414 eval $1+=\$2
19415 }'
19416 else
19417 as_fn_append ()
19418 {
19419 eval $1=\$$1\$2
19420 }
19421 fi # as_fn_append
19422
19423 # as_fn_arith ARG...
19424 # ------------------
19425 # Perform arithmetic evaluation on the ARGs, and store the result in the
19426 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19427 # must be portable across $(()) and expr.
19428 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19429 eval 'as_fn_arith ()
19430 {
19431 as_val=$(( $* ))
19432 }'
19433 else
19434 as_fn_arith ()
19435 {
19436 as_val=`expr "$@" || test $? -eq 1`
19437 }
19438 fi # as_fn_arith
19439
19440
19441 if expr a : '\(a\)' >/dev/null 2>&1 &&
19442 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19443 as_expr=expr
19444 else
19445 as_expr=false
19446 fi
19447
19448 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19449 as_basename=basename
19450 else
19451 as_basename=false
19452 fi
19453
19454 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19455 as_dirname=dirname
19456 else
19457 as_dirname=false
19458 fi
19459
19460 as_me=`$as_basename -- "$0" ||
19461 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19462 X"$0" : 'X\(//\)$' \| \
19463 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19464 $as_echo X/"$0" |
19465 sed '/^.*\/\([^/][^/]*\)\/*$/{
19466 s//\1/
19467 q
19468 }
19469 /^X\/\(\/\/\)$/{
19470 s//\1/
19471 q
19472 }
19473 /^X\/\(\/\).*/{
19474 s//\1/
19475 q
19476 }
19477 s/.*/./; q'`
19478
19479 # Avoid depending upon Character Ranges.
19480 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19481 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19482 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19483 as_cr_digits='0123456789'
19484 as_cr_alnum=$as_cr_Letters$as_cr_digits
19485
19486 ECHO_C= ECHO_N= ECHO_T=
19487 case `echo -n x` in #(((((
19488 -n*)
19489 case `echo 'xy\c'` in
19490 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19491 xy) ECHO_C='\c';;
19492 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19493 ECHO_T=' ';;
19494 esac;;
19495 *)
19496 ECHO_N='-n';;
19497 esac
19498
19499 rm -f conf$$ conf$$.exe conf$$.file
19500 if test -d conf$$.dir; then
19501 rm -f conf$$.dir/conf$$.file
19502 else
19503 rm -f conf$$.dir
19504 mkdir conf$$.dir 2>/dev/null
19505 fi
19506 if (echo >conf$$.file) 2>/dev/null; then
19507 if ln -s conf$$.file conf$$ 2>/dev/null; then
19508 as_ln_s='ln -s'
19509 # ... but there are two gotchas:
19510 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19511 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19512 # In both cases, we have to default to `cp -pR'.
19513 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19514 as_ln_s='cp -pR'
19515 elif ln conf$$.file conf$$ 2>/dev/null; then
19516 as_ln_s=ln
19517 else
19518 as_ln_s='cp -pR'
19519 fi
19520 else
19521 as_ln_s='cp -pR'
19522 fi
19523 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19524 rmdir conf$$.dir 2>/dev/null
19525
19526
19527 # as_fn_mkdir_p
19528 # -------------
19529 # Create "$as_dir" as a directory, including parents if necessary.
19530 as_fn_mkdir_p ()
19531 {
19532
19533 case $as_dir in #(
19534 -*) as_dir=./$as_dir;;
19535 esac
19536 test -d "$as_dir" || eval $as_mkdir_p || {
19537 as_dirs=
19538 while :; do
19539 case $as_dir in #(
19540 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19541 *) as_qdir=$as_dir;;
19542 esac
19543 as_dirs="'$as_qdir' $as_dirs"
19544 as_dir=`$as_dirname -- "$as_dir" ||
19545 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19546 X"$as_dir" : 'X\(//\)[^/]' \| \
19547 X"$as_dir" : 'X\(//\)$' \| \
19548 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19549 $as_echo X"$as_dir" |
19550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19551 s//\1/
19552 q
19553 }
19554 /^X\(\/\/\)[^/].*/{
19555 s//\1/
19556 q
19557 }
19558 /^X\(\/\/\)$/{
19559 s//\1/
19560 q
19561 }
19562 /^X\(\/\).*/{
19563 s//\1/
19564 q
19565 }
19566 s/.*/./; q'`
19567 test -d "$as_dir" && break
19568 done
19569 test -z "$as_dirs" || eval "mkdir $as_dirs"
19570 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19571
19572
19573 } # as_fn_mkdir_p
19574 if mkdir -p . 2>/dev/null; then
19575 as_mkdir_p='mkdir -p "$as_dir"'
19576 else
19577 test -d ./-p && rmdir ./-p
19578 as_mkdir_p=false
19579 fi
19580
19581
19582 # as_fn_executable_p FILE
19583 # -----------------------
19584 # Test if FILE is an executable regular file.
19585 as_fn_executable_p ()
19586 {
19587 test -f "$1" && test -x "$1"
19588 } # as_fn_executable_p
19589 as_test_x='test -x'
19590 as_executable_p=as_fn_executable_p
19591
19592 # Sed expression to map a string onto a valid CPP name.
19593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19594
19595 # Sed expression to map a string onto a valid variable name.
19596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19597
19598
19599 exec 6>&1
19600 ## ----------------------------------- ##
19601 ## Main body of $CONFIG_STATUS script. ##
19602 ## ----------------------------------- ##
19603 _ASEOF
19604 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19605
19606 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19607 # Save the log message, to keep $0 and so on meaningful, and to
19608 # report actual input values of CONFIG_FILES etc. instead of their
19609 # values after options handling.
19610 ac_log="
19611 This file was extended by xf86-video-sis $as_me 0.10.8, which was
19612 generated by GNU Autoconf 2.69. Invocation command line was
19613
19614 CONFIG_FILES = $CONFIG_FILES
19615 CONFIG_HEADERS = $CONFIG_HEADERS
19616 CONFIG_LINKS = $CONFIG_LINKS
19617 CONFIG_COMMANDS = $CONFIG_COMMANDS
19618 $ $0 $@
19619
19620 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19621 "
19622
19623 _ACEOF
19624
19625 case $ac_config_files in *"
19626 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19627 esac
19628
19629 case $ac_config_headers in *"
19630 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19631 esac
19632
19633
19634 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19635 # Files that config.status was made for.
19636 config_files="$ac_config_files"
19637 config_headers="$ac_config_headers"
19638 config_commands="$ac_config_commands"
19639
19640 _ACEOF
19641
19642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19643 ac_cs_usage="\
19644 \`$as_me' instantiates files and other configuration actions
19645 from templates according to the current configuration. Unless the files
19646 and actions are specified as TAGs, all are instantiated by default.
19647
19648 Usage: $0 [OPTION]... [TAG]...
19649
19650 -h, --help print this help, then exit
19651 -V, --version print version number and configuration settings, then exit
19652 --config print configuration, then exit
19653 -q, --quiet, --silent
19654 do not print progress messages
19655 -d, --debug don't remove temporary files
19656 --recheck update $as_me by reconfiguring in the same conditions
19657 --file=FILE[:TEMPLATE]
19658 instantiate the configuration file FILE
19659 --header=FILE[:TEMPLATE]
19660 instantiate the configuration header FILE
19661
19662 Configuration files:
19663 $config_files
19664
19665 Configuration headers:
19666 $config_headers
19667
19668 Configuration commands:
19669 $config_commands
19670
19671 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19672
19673 _ACEOF
19674 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19675 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19676 ac_cs_version="\\
19677 xf86-video-sis config.status 0.10.8
19678 configured by $0, generated by GNU Autoconf 2.69,
19679 with options \\"\$ac_cs_config\\"
19680
19681 Copyright (C) 2012 Free Software Foundation, Inc.
19682 This config.status script is free software; the Free Software Foundation
19683 gives unlimited permission to copy, distribute and modify it."
19684
19685 ac_pwd='$ac_pwd'
19686 srcdir='$srcdir'
19687 INSTALL='$INSTALL'
19688 MKDIR_P='$MKDIR_P'
19689 AWK='$AWK'
19690 test -n "\$AWK" || AWK=awk
19691 _ACEOF
19692
19693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19694 # The default lists apply if the user does not specify any file.
19695 ac_need_defaults=:
19696 while test $# != 0
19697 do
19698 case $1 in
19699 --*=?*)
19700 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19701 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19702 ac_shift=:
19703 ;;
19704 --*=)
19705 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19706 ac_optarg=
19707 ac_shift=:
19708 ;;
19709 *)
19710 ac_option=$1
19711 ac_optarg=$2
19712 ac_shift=shift
19713 ;;
19714 esac
19715
19716 case $ac_option in
19717 # Handling of the options.
19718 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19719 ac_cs_recheck=: ;;
19720 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19721 $as_echo "$ac_cs_version"; exit ;;
19722 --config | --confi | --conf | --con | --co | --c )
19723 $as_echo "$ac_cs_config"; exit ;;
19724 --debug | --debu | --deb | --de | --d | -d )
19725 debug=: ;;
19726 --file | --fil | --fi | --f )
19727 $ac_shift
19728 case $ac_optarg in
19729 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19730 '') as_fn_error $? "missing file argument" ;;
19731 esac
19732 as_fn_append CONFIG_FILES " '$ac_optarg'"
19733 ac_need_defaults=false;;
19734 --header | --heade | --head | --hea )
19735 $ac_shift
19736 case $ac_optarg in
19737 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19738 esac
19739 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19740 ac_need_defaults=false;;
19741 --he | --h)
19742 # Conflict between --help and --header
19743 as_fn_error $? "ambiguous option: \`$1'
19744 Try \`$0 --help' for more information.";;
19745 --help | --hel | -h )
19746 $as_echo "$ac_cs_usage"; exit ;;
19747 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19748 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19749 ac_cs_silent=: ;;
19750
19751 # This is an error.
19752 -*) as_fn_error $? "unrecognized option: \`$1'
19753 Try \`$0 --help' for more information." ;;
19754
19755 *) as_fn_append ac_config_targets " $1"
19756 ac_need_defaults=false ;;
19757
19758 esac
19759 shift
19760 done
19761
19762 ac_configure_extra_args=
19763
19764 if $ac_cs_silent; then
19765 exec 6>/dev/null
19766 ac_configure_extra_args="$ac_configure_extra_args --silent"
19767 fi
19768
19769 _ACEOF
19770 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19771 if \$ac_cs_recheck; then
19772 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19773 shift
19774 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19775 CONFIG_SHELL='$SHELL'
19776 export CONFIG_SHELL
19777 exec "\$@"
19778 fi
19779
19780 _ACEOF
19781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19782 exec 5>>config.log
19783 {
19784 echo
19785 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19786 ## Running $as_me. ##
19787 _ASBOX
19788 $as_echo "$ac_log"
19789 } >&5
19790
19791 _ACEOF
19792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19793 #
19794 # INIT-COMMANDS
19795 #
19796 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19797
19798
19799 # The HP-UX ksh and POSIX shell print the target directory to stdout
19800 # if CDPATH is set.
19801 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19802
19803 sed_quote_subst='$sed_quote_subst'
19804 double_quote_subst='$double_quote_subst'
19805 delay_variable_subst='$delay_variable_subst'
19806 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19807 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19808 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19809 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19810 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19811 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19812 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19813 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19814 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19815 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19816 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19817 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19818 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19819 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19820 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19821 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19822 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19823 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19824 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19825 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19826 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19827 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19828 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19829 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19830 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19831 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19832 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19833 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19834 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19835 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19836 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19837 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19838 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19839 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19840 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19841 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19842 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19843 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19844 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19845 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19846 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19847 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19848 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19849 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19850 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19851 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19852 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19853 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19854 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19855 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19856 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19857 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19858 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19859 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19860 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19861 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19862 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19863 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19864 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"`'
19865 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19866 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19867 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19868 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19869 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19870 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19871 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19872 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19873 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19874 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19875 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19876 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19877 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19878 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19879 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19880 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19881 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19882 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19883 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19884 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19885 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19886 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19887 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19888 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19889 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19890 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19891 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19892 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19893 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19894 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19895 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19896 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19897 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19898 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19899 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19900 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19901 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19902 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19903 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19904 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19905 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19906 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19907 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19908 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19909 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19910 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19911 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19912 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19913 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19914 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19915 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19916 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19917 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19918 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19919 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19920 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19921 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19922 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19923 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19924 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19925 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19926 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19927 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19928 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19929 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19930 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19931 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19932 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19933 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19934 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19935 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19936 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19937 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19938 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19939 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19940 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19941
19942 LTCC='$LTCC'
19943 LTCFLAGS='$LTCFLAGS'
19944 compiler='$compiler_DEFAULT'
19945
19946 # A function that is used when there is no print builtin or printf.
19947 func_fallback_echo ()
19948 {
19949 eval 'cat <<_LTECHO_EOF
19950 \$1
19951 _LTECHO_EOF'
19952 }
19953
19954 # Quote evaled strings.
19955 for var in SHELL \
19956 ECHO \
19957 PATH_SEPARATOR \
19958 SED \
19959 GREP \
19960 EGREP \
19961 FGREP \
19962 LD \
19963 NM \
19964 LN_S \
19965 lt_SP2NL \
19966 lt_NL2SP \
19967 reload_flag \
19968 OBJDUMP \
19969 deplibs_check_method \
19970 file_magic_cmd \
19971 file_magic_glob \
19972 want_nocaseglob \
19973 DLLTOOL \
19974 sharedlib_from_linklib_cmd \
19975 AR \
19976 AR_FLAGS \
19977 archiver_list_spec \
19978 STRIP \
19979 RANLIB \
19980 CC \
19981 CFLAGS \
19982 compiler \
19983 lt_cv_sys_global_symbol_pipe \
19984 lt_cv_sys_global_symbol_to_cdecl \
19985 lt_cv_sys_global_symbol_to_import \
19986 lt_cv_sys_global_symbol_to_c_name_address \
19987 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19988 lt_cv_nm_interface \
19989 nm_file_list_spec \
19990 lt_cv_truncate_bin \
19991 lt_prog_compiler_no_builtin_flag \
19992 lt_prog_compiler_pic \
19993 lt_prog_compiler_wl \
19994 lt_prog_compiler_static \
19995 lt_cv_prog_compiler_c_o \
19996 need_locks \
19997 MANIFEST_TOOL \
19998 DSYMUTIL \
19999 NMEDIT \
20000 LIPO \
20001 OTOOL \
20002 OTOOL64 \
20003 shrext_cmds \
20004 export_dynamic_flag_spec \
20005 whole_archive_flag_spec \
20006 compiler_needs_object \
20007 with_gnu_ld \
20008 allow_undefined_flag \
20009 no_undefined_flag \
20010 hardcode_libdir_flag_spec \
20011 hardcode_libdir_separator \
20012 exclude_expsyms \
20013 include_expsyms \
20014 file_list_spec \
20015 variables_saved_for_relink \
20016 libname_spec \
20017 library_names_spec \
20018 soname_spec \
20019 install_override_mode \
20020 finish_eval \
20021 old_striplib \
20022 striplib; do
20023 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20024 *[\\\\\\\`\\"\\\$]*)
20025 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20026 ;;
20027 *)
20028 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20029 ;;
20030 esac
20031 done
20032
20033 # Double-quote double-evaled strings.
20034 for var in reload_cmds \
20035 old_postinstall_cmds \
20036 old_postuninstall_cmds \
20037 old_archive_cmds \
20038 extract_expsyms_cmds \
20039 old_archive_from_new_cmds \
20040 old_archive_from_expsyms_cmds \
20041 archive_cmds \
20042 archive_expsym_cmds \
20043 module_cmds \
20044 module_expsym_cmds \
20045 export_symbols_cmds \
20046 prelink_cmds \
20047 postlink_cmds \
20048 postinstall_cmds \
20049 postuninstall_cmds \
20050 finish_cmds \
20051 sys_lib_search_path_spec \
20052 configure_time_dlsearch_path \
20053 configure_time_lt_sys_library_path; do
20054 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20055 *[\\\\\\\`\\"\\\$]*)
20056 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20057 ;;
20058 *)
20059 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20060 ;;
20061 esac
20062 done
20063
20064 ac_aux_dir='$ac_aux_dir'
20065
20066 # See if we are running on zsh, and set the options that allow our
20067 # commands through without removal of \ escapes INIT.
20068 if test -n "\${ZSH_VERSION+set}"; then
20069 setopt NO_GLOB_SUBST
20070 fi
20071
20072
20073 PACKAGE='$PACKAGE'
20074 VERSION='$VERSION'
20075 RM='$RM'
20076 ofile='$ofile'
20077
20078
20079
20080
20081 _ACEOF
20082
20083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20084
20085 # Handling of arguments.
20086 for ac_config_target in $ac_config_targets
20087 do
20088 case $ac_config_target in
20089 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20090 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20091 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20092 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20093 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20094 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20095
20096 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20097 esac
20098 done
20099
20100
20101 # If the user did not use the arguments to specify the items to instantiate,
20102 # then the envvar interface is used. Set only those that are not.
20103 # We use the long form for the default assignment because of an extremely
20104 # bizarre bug on SunOS 4.1.3.
20105 if $ac_need_defaults; then
20106 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20107 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20108 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20109 fi
20110
20111 # Have a temporary directory for convenience. Make it in the build tree
20112 # simply because there is no reason against having it here, and in addition,
20113 # creating and moving files from /tmp can sometimes cause problems.
20114 # Hook for its removal unless debugging.
20115 # Note that there is a small window in which the directory will not be cleaned:
20116 # after its creation but before its name has been assigned to `$tmp'.
20117 $debug ||
20118 {
20119 tmp= ac_tmp=
20120 trap 'exit_status=$?
20121 : "${ac_tmp:=$tmp}"
20122 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20123 ' 0
20124 trap 'as_fn_exit 1' 1 2 13 15
20125 }
20126 # Create a (secure) tmp directory for tmp files.
20127
20128 {
20129 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20130 test -d "$tmp"
20131 } ||
20132 {
20133 tmp=./conf$$-$RANDOM
20134 (umask 077 && mkdir "$tmp")
20135 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20136 ac_tmp=$tmp
20137
20138 # Set up the scripts for CONFIG_FILES section.
20139 # No need to generate them if there are no CONFIG_FILES.
20140 # This happens for instance with `./config.status config.h'.
20141 if test -n "$CONFIG_FILES"; then
20142
20143
20144 ac_cr=`echo X | tr X '\015'`
20145 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20146 # But we know of no other shell where ac_cr would be empty at this
20147 # point, so we can use a bashism as a fallback.
20148 if test "x$ac_cr" = x; then
20149 eval ac_cr=\$\'\\r\'
20150 fi
20151 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20152 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20153 ac_cs_awk_cr='\\r'
20154 else
20155 ac_cs_awk_cr=$ac_cr
20156 fi
20157
20158 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20159 _ACEOF
20160
20161
20162 {
20163 echo "cat >conf$$subs.awk <<_ACEOF" &&
20164 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20165 echo "_ACEOF"
20166 } >conf$$subs.sh ||
20167 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20168 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20169 ac_delim='%!_!# '
20170 for ac_last_try in false false false false false :; do
20171 . ./conf$$subs.sh ||
20172 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20173
20174 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20175 if test $ac_delim_n = $ac_delim_num; then
20176 break
20177 elif $ac_last_try; then
20178 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20179 else
20180 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20181 fi
20182 done
20183 rm -f conf$$subs.sh
20184
20185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20186 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20187 _ACEOF
20188 sed -n '
20189 h
20190 s/^/S["/; s/!.*/"]=/
20191 p
20192 g
20193 s/^[^!]*!//
20194 :repl
20195 t repl
20196 s/'"$ac_delim"'$//
20197 t delim
20198 :nl
20199 h
20200 s/\(.\{148\}\)..*/\1/
20201 t more1
20202 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20203 p
20204 n
20205 b repl
20206 :more1
20207 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20208 p
20209 g
20210 s/.\{148\}//
20211 t nl
20212 :delim
20213 h
20214 s/\(.\{148\}\)..*/\1/
20215 t more2
20216 s/["\\]/\\&/g; s/^/"/; s/$/"/
20217 p
20218 b
20219 :more2
20220 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20221 p
20222 g
20223 s/.\{148\}//
20224 t delim
20225 ' <conf$$subs.awk | sed '
20226 /^[^""]/{
20227 N
20228 s/\n//
20229 }
20230 ' >>$CONFIG_STATUS || ac_write_fail=1
20231 rm -f conf$$subs.awk
20232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20233 _ACAWK
20234 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20235 for (key in S) S_is_set[key] = 1
20236 FS = ""
20237
20238 }
20239 {
20240 line = $ 0
20241 nfields = split(line, field, "@")
20242 substed = 0
20243 len = length(field[1])
20244 for (i = 2; i < nfields; i++) {
20245 key = field[i]
20246 keylen = length(key)
20247 if (S_is_set[key]) {
20248 value = S[key]
20249 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20250 len += length(value) + length(field[++i])
20251 substed = 1
20252 } else
20253 len += 1 + keylen
20254 }
20255
20256 print line
20257 }
20258
20259 _ACAWK
20260 _ACEOF
20261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20262 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20263 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20264 else
20265 cat
20266 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20267 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20268 _ACEOF
20269
20270 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20271 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20272 # trailing colons and then remove the whole line if VPATH becomes empty
20273 # (actually we leave an empty line to preserve line numbers).
20274 if test "x$srcdir" = x.; then
20275 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20276 h
20277 s///
20278 s/^/:/
20279 s/[ ]*$/:/
20280 s/:\$(srcdir):/:/g
20281 s/:\${srcdir}:/:/g
20282 s/:@srcdir@:/:/g
20283 s/^:*//
20284 s/:*$//
20285 x
20286 s/\(=[ ]*\).*/\1/
20287 G
20288 s/\n//
20289 s/^[^=]*=[ ]*$//
20290 }'
20291 fi
20292
20293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20294 fi # test -n "$CONFIG_FILES"
20295
20296 # Set up the scripts for CONFIG_HEADERS section.
20297 # No need to generate them if there are no CONFIG_HEADERS.
20298 # This happens for instance with `./config.status Makefile'.
20299 if test -n "$CONFIG_HEADERS"; then
20300 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20301 BEGIN {
20302 _ACEOF
20303
20304 # Transform confdefs.h into an awk script `defines.awk', embedded as
20305 # here-document in config.status, that substitutes the proper values into
20306 # config.h.in to produce config.h.
20307
20308 # Create a delimiter string that does not exist in confdefs.h, to ease
20309 # handling of long lines.
20310 ac_delim='%!_!# '
20311 for ac_last_try in false false :; do
20312 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20313 if test -z "$ac_tt"; then
20314 break
20315 elif $ac_last_try; then
20316 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20317 else
20318 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20319 fi
20320 done
20321
20322 # For the awk script, D is an array of macro values keyed by name,
20323 # likewise P contains macro parameters if any. Preserve backslash
20324 # newline sequences.
20325
20326 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20327 sed -n '
20328 s/.\{148\}/&'"$ac_delim"'/g
20329 t rset
20330 :rset
20331 s/^[ ]*#[ ]*define[ ][ ]*/ /
20332 t def
20333 d
20334 :def
20335 s/\\$//
20336 t bsnl
20337 s/["\\]/\\&/g
20338 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20339 D["\1"]=" \3"/p
20340 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20341 d
20342 :bsnl
20343 s/["\\]/\\&/g
20344 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20345 D["\1"]=" \3\\\\\\n"\\/p
20346 t cont
20347 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20348 t cont
20349 d
20350 :cont
20351 n
20352 s/.\{148\}/&'"$ac_delim"'/g
20353 t clear
20354 :clear
20355 s/\\$//
20356 t bsnlc
20357 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20358 d
20359 :bsnlc
20360 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20361 b cont
20362 ' <confdefs.h | sed '
20363 s/'"$ac_delim"'/"\\\
20364 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20365
20366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20367 for (key in D) D_is_set[key] = 1
20368 FS = ""
20369 }
20370 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20371 line = \$ 0
20372 split(line, arg, " ")
20373 if (arg[1] == "#") {
20374 defundef = arg[2]
20375 mac1 = arg[3]
20376 } else {
20377 defundef = substr(arg[1], 2)
20378 mac1 = arg[2]
20379 }
20380 split(mac1, mac2, "(") #)
20381 macro = mac2[1]
20382 prefix = substr(line, 1, index(line, defundef) - 1)
20383 if (D_is_set[macro]) {
20384 # Preserve the white space surrounding the "#".
20385 print prefix "define", macro P[macro] D[macro]
20386 next
20387 } else {
20388 # Replace #undef with comments. This is necessary, for example,
20389 # in the case of _POSIX_SOURCE, which is predefined and required
20390 # on some systems where configure will not decide to define it.
20391 if (defundef == "undef") {
20392 print "/*", prefix defundef, macro, "*/"
20393 next
20394 }
20395 }
20396 }
20397 { print }
20398 _ACAWK
20399 _ACEOF
20400 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20401 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20402 fi # test -n "$CONFIG_HEADERS"
20403
20404
20405 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20406 shift
20407 for ac_tag
20408 do
20409 case $ac_tag in
20410 :[FHLC]) ac_mode=$ac_tag; continue;;
20411 esac
20412 case $ac_mode$ac_tag in
20413 :[FHL]*:*);;
20414 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20415 :[FH]-) ac_tag=-:-;;
20416 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20417 esac
20418 ac_save_IFS=$IFS
20419 IFS=:
20420 set x $ac_tag
20421 IFS=$ac_save_IFS
20422 shift
20423 ac_file=$1
20424 shift
20425
20426 case $ac_mode in
20427 :L) ac_source=$1;;
20428 :[FH])
20429 ac_file_inputs=
20430 for ac_f
20431 do
20432 case $ac_f in
20433 -) ac_f="$ac_tmp/stdin";;
20434 *) # Look for the file first in the build tree, then in the source tree
20435 # (if the path is not absolute). The absolute path cannot be DOS-style,
20436 # because $ac_f cannot contain `:'.
20437 test -f "$ac_f" ||
20438 case $ac_f in
20439 [\\/$]*) false;;
20440 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20441 esac ||
20442 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20443 esac
20444 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20445 as_fn_append ac_file_inputs " '$ac_f'"
20446 done
20447
20448 # Let's still pretend it is `configure' which instantiates (i.e., don't
20449 # use $as_me), people would be surprised to read:
20450 # /* config.h. Generated by config.status. */
20451 configure_input='Generated from '`
20452 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20453 `' by configure.'
20454 if test x"$ac_file" != x-; then
20455 configure_input="$ac_file. $configure_input"
20456 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20457 $as_echo "$as_me: creating $ac_file" >&6;}
20458 fi
20459 # Neutralize special characters interpreted by sed in replacement strings.
20460 case $configure_input in #(
20461 *\&* | *\|* | *\\* )
20462 ac_sed_conf_input=`$as_echo "$configure_input" |
20463 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20464 *) ac_sed_conf_input=$configure_input;;
20465 esac
20466
20467 case $ac_tag in
20468 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20469 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20470 esac
20471 ;;
20472 esac
20473
20474 ac_dir=`$as_dirname -- "$ac_file" ||
20475 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20476 X"$ac_file" : 'X\(//\)[^/]' \| \
20477 X"$ac_file" : 'X\(//\)$' \| \
20478 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20479 $as_echo X"$ac_file" |
20480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20481 s//\1/
20482 q
20483 }
20484 /^X\(\/\/\)[^/].*/{
20485 s//\1/
20486 q
20487 }
20488 /^X\(\/\/\)$/{
20489 s//\1/
20490 q
20491 }
20492 /^X\(\/\).*/{
20493 s//\1/
20494 q
20495 }
20496 s/.*/./; q'`
20497 as_dir="$ac_dir"; as_fn_mkdir_p
20498 ac_builddir=.
20499
20500 case "$ac_dir" in
20501 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20502 *)
20503 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20504 # A ".." for each directory in $ac_dir_suffix.
20505 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20506 case $ac_top_builddir_sub in
20507 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20508 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20509 esac ;;
20510 esac
20511 ac_abs_top_builddir=$ac_pwd
20512 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20513 # for backward compatibility:
20514 ac_top_builddir=$ac_top_build_prefix
20515
20516 case $srcdir in
20517 .) # We are building in place.
20518 ac_srcdir=.
20519 ac_top_srcdir=$ac_top_builddir_sub
20520 ac_abs_top_srcdir=$ac_pwd ;;
20521 [\\/]* | ?:[\\/]* ) # Absolute name.
20522 ac_srcdir=$srcdir$ac_dir_suffix;
20523 ac_top_srcdir=$srcdir
20524 ac_abs_top_srcdir=$srcdir ;;
20525 *) # Relative name.
20526 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20527 ac_top_srcdir=$ac_top_build_prefix$srcdir
20528 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20529 esac
20530 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20531
20532
20533 case $ac_mode in
20534 :F)
20535 #
20536 # CONFIG_FILE
20537 #
20538
20539 case $INSTALL in
20540 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20541 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20542 esac
20543 ac_MKDIR_P=$MKDIR_P
20544 case $MKDIR_P in
20545 [\\/$]* | ?:[\\/]* ) ;;
20546 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20547 esac
20548 _ACEOF
20549
20550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20551 # If the template does not know about datarootdir, expand it.
20552 # FIXME: This hack should be removed a few years after 2.60.
20553 ac_datarootdir_hack=; ac_datarootdir_seen=
20554 ac_sed_dataroot='
20555 /datarootdir/ {
20556 p
20557 q
20558 }
20559 /@datadir@/p
20560 /@docdir@/p
20561 /@infodir@/p
20562 /@localedir@/p
20563 /@mandir@/p'
20564 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20565 *datarootdir*) ac_datarootdir_seen=yes;;
20566 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20568 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20569 _ACEOF
20570 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20571 ac_datarootdir_hack='
20572 s&@datadir@&$datadir&g
20573 s&@docdir@&$docdir&g
20574 s&@infodir@&$infodir&g
20575 s&@localedir@&$localedir&g
20576 s&@mandir@&$mandir&g
20577 s&\\\${datarootdir}&$datarootdir&g' ;;
20578 esac
20579 _ACEOF
20580
20581 # Neutralize VPATH when `$srcdir' = `.'.
20582 # Shell code in configure.ac might set extrasub.
20583 # FIXME: do we really want to maintain this feature?
20584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20585 ac_sed_extra="$ac_vpsub
20586 $extrasub
20587 _ACEOF
20588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20589 :t
20590 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20591 s|@configure_input@|$ac_sed_conf_input|;t t
20592 s&@top_builddir@&$ac_top_builddir_sub&;t t
20593 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20594 s&@srcdir@&$ac_srcdir&;t t
20595 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20596 s&@top_srcdir@&$ac_top_srcdir&;t t
20597 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20598 s&@builddir@&$ac_builddir&;t t
20599 s&@abs_builddir@&$ac_abs_builddir&;t t
20600 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20601 s&@INSTALL@&$ac_INSTALL&;t t
20602 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20603 $ac_datarootdir_hack
20604 "
20605 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20606 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20607
20608 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20609 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20610 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20611 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20613 which seems to be undefined. Please make sure it is defined" >&5
20614 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20615 which seems to be undefined. Please make sure it is defined" >&2;}
20616
20617 rm -f "$ac_tmp/stdin"
20618 case $ac_file in
20619 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20620 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20621 esac \
20622 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20623 ;;
20624 :H)
20625 #
20626 # CONFIG_HEADER
20627 #
20628 if test x"$ac_file" != x-; then
20629 {
20630 $as_echo "/* $configure_input */" \
20631 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20632 } >"$ac_tmp/config.h" \
20633 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20634 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20635 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20636 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20637 else
20638 rm -f "$ac_file"
20639 mv "$ac_tmp/config.h" "$ac_file" \
20640 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20641 fi
20642 else
20643 $as_echo "/* $configure_input */" \
20644 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20645 || as_fn_error $? "could not create -" "$LINENO" 5
20646 fi
20647 # Compute "$ac_file"'s index in $config_headers.
20648 _am_arg="$ac_file"
20649 _am_stamp_count=1
20650 for _am_header in $config_headers :; do
20651 case $_am_header in
20652 $_am_arg | $_am_arg:* )
20653 break ;;
20654 * )
20655 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20656 esac
20657 done
20658 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20659 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20660 X"$_am_arg" : 'X\(//\)[^/]' \| \
20661 X"$_am_arg" : 'X\(//\)$' \| \
20662 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20663 $as_echo X"$_am_arg" |
20664 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20665 s//\1/
20666 q
20667 }
20668 /^X\(\/\/\)[^/].*/{
20669 s//\1/
20670 q
20671 }
20672 /^X\(\/\/\)$/{
20673 s//\1/
20674 q
20675 }
20676 /^X\(\/\).*/{
20677 s//\1/
20678 q
20679 }
20680 s/.*/./; q'`/stamp-h$_am_stamp_count
20681 ;;
20682
20683 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20684 $as_echo "$as_me: executing $ac_file commands" >&6;}
20685 ;;
20686 esac
20687
20688
20689 case $ac_file$ac_mode in
20690 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20691 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20692 # are listed without --file. Let's play safe and only enable the eval
20693 # if we detect the quoting.
20694 case $CONFIG_FILES in
20695 *\'*) eval set x "$CONFIG_FILES" ;;
20696 *) set x $CONFIG_FILES ;;
20697 esac
20698 shift
20699 for mf
20700 do
20701 # Strip MF so we end up with the name of the file.
20702 mf=`echo "$mf" | sed -e 's/:.*$//'`
20703 # Check whether this is an Automake generated Makefile or not.
20704 # We used to match only the files named `Makefile.in', but
20705 # some people rename them; so instead we look at the file content.
20706 # Grep'ing the first line is not enough: some people post-process
20707 # each Makefile.in and add a new line on top of each file to say so.
20708 # Grep'ing the whole file is not good either: AIX grep has a line
20709 # limit of 2048, but all sed's we know have understand at least 4000.
20710 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20711 dirpart=`$as_dirname -- "$mf" ||
20712 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20713 X"$mf" : 'X\(//\)[^/]' \| \
20714 X"$mf" : 'X\(//\)$' \| \
20715 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20716 $as_echo X"$mf" |
20717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20718 s//\1/
20719 q
20720 }
20721 /^X\(\/\/\)[^/].*/{
20722 s//\1/
20723 q
20724 }
20725 /^X\(\/\/\)$/{
20726 s//\1/
20727 q
20728 }
20729 /^X\(\/\).*/{
20730 s//\1/
20731 q
20732 }
20733 s/.*/./; q'`
20734 else
20735 continue
20736 fi
20737 # Extract the definition of DEPDIR, am__include, and am__quote
20738 # from the Makefile without running `make'.
20739 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20740 test -z "$DEPDIR" && continue
20741 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20742 test -z "am__include" && continue
20743 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20744 # When using ansi2knr, U may be empty or an underscore; expand it
20745 U=`sed -n 's/^U = //p' < "$mf"`
20746 # Find all dependency output files, they are included files with
20747 # $(DEPDIR) in their names. We invoke sed twice because it is the
20748 # simplest approach to changing $(DEPDIR) to its actual value in the
20749 # expansion.
20750 for file in `sed -n "
20751 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20752 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20753 # Make sure the directory exists.
20754 test -f "$dirpart/$file" && continue
20755 fdir=`$as_dirname -- "$file" ||
20756 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20757 X"$file" : 'X\(//\)[^/]' \| \
20758 X"$file" : 'X\(//\)$' \| \
20759 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20760 $as_echo X"$file" |
20761 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20762 s//\1/
20763 q
20764 }
20765 /^X\(\/\/\)[^/].*/{
20766 s//\1/
20767 q
20768 }
20769 /^X\(\/\/\)$/{
20770 s//\1/
20771 q
20772 }
20773 /^X\(\/\).*/{
20774 s//\1/
20775 q
20776 }
20777 s/.*/./; q'`
20778 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20779 # echo "creating $dirpart/$file"
20780 echo '# dummy' > "$dirpart/$file"
20781 done
20782 done
20783 }
20784 ;;
20785 "libtool":C)
20786
20787 # See if we are running on zsh, and set the options that allow our
20788 # commands through without removal of \ escapes.
20789 if test -n "${ZSH_VERSION+set}"; then
20790 setopt NO_GLOB_SUBST
20791 fi
20792
20793 cfgfile=${ofile}T
20794 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20795 $RM "$cfgfile"
20796
20797 cat <<_LT_EOF >> "$cfgfile"
20798 #! $SHELL
20799 # Generated automatically by $as_me ($PACKAGE) $VERSION
20800 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20801 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20802
20803 # Provide generalized library-building support services.
20804 # Written by Gordon Matzigkeit, 1996
20805
20806 # Copyright (C) 2014 Free Software Foundation, Inc.
20807 # This is free software; see the source for copying conditions. There is NO
20808 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20809
20810 # GNU Libtool is free software; you can redistribute it and/or modify
20811 # it under the terms of the GNU General Public License as published by
20812 # the Free Software Foundation; either version 2 of of the License, or
20813 # (at your option) any later version.
20814 #
20815 # As a special exception to the GNU General Public License, if you
20816 # distribute this file as part of a program or library that is built
20817 # using GNU Libtool, you may include this file under the same
20818 # distribution terms that you use for the rest of that program.
20819 #
20820 # GNU Libtool is distributed in the hope that it will be useful, but
20821 # WITHOUT ANY WARRANTY; without even the implied warranty of
20822 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20823 # GNU General Public License for more details.
20824 #
20825 # You should have received a copy of the GNU General Public License
20826 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20827
20828
20829 # The names of the tagged configurations supported by this script.
20830 available_tags=''
20831
20832 # Configured defaults for sys_lib_dlsearch_path munging.
20833 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20834
20835 # ### BEGIN LIBTOOL CONFIG
20836
20837 # Whether or not to build static libraries.
20838 build_old_libs=$enable_static
20839
20840 # Which release of libtool.m4 was used?
20841 macro_version=$macro_version
20842 macro_revision=$macro_revision
20843
20844 # Whether or not to build shared libraries.
20845 build_libtool_libs=$enable_shared
20846
20847 # What type of objects to build.
20848 pic_mode=$pic_mode
20849
20850 # Whether or not to optimize for fast installation.
20851 fast_install=$enable_fast_install
20852
20853 # Shared archive member basename,for filename based shared library versioning on AIX.
20854 shared_archive_member_spec=$shared_archive_member_spec
20855
20856 # Shell to use when invoking shell scripts.
20857 SHELL=$lt_SHELL
20858
20859 # An echo program that protects backslashes.
20860 ECHO=$lt_ECHO
20861
20862 # The PATH separator for the build system.
20863 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20864
20865 # The host system.
20866 host_alias=$host_alias
20867 host=$host
20868 host_os=$host_os
20869
20870 # The build system.
20871 build_alias=$build_alias
20872 build=$build
20873 build_os=$build_os
20874
20875 # A sed program that does not truncate output.
20876 SED=$lt_SED
20877
20878 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20879 Xsed="\$SED -e 1s/^X//"
20880
20881 # A grep program that handles long lines.
20882 GREP=$lt_GREP
20883
20884 # An ERE matcher.
20885 EGREP=$lt_EGREP
20886
20887 # A literal string matcher.
20888 FGREP=$lt_FGREP
20889
20890 # A BSD- or MS-compatible name lister.
20891 NM=$lt_NM
20892
20893 # Whether we need soft or hard links.
20894 LN_S=$lt_LN_S
20895
20896 # What is the maximum length of a command?
20897 max_cmd_len=$max_cmd_len
20898
20899 # Object file suffix (normally "o").
20900 objext=$ac_objext
20901
20902 # Executable file suffix (normally "").
20903 exeext=$exeext
20904
20905 # whether the shell understands "unset".
20906 lt_unset=$lt_unset
20907
20908 # turn spaces into newlines.
20909 SP2NL=$lt_lt_SP2NL
20910
20911 # turn newlines into spaces.
20912 NL2SP=$lt_lt_NL2SP
20913
20914 # convert \$build file names to \$host format.
20915 to_host_file_cmd=$lt_cv_to_host_file_cmd
20916
20917 # convert \$build files to toolchain format.
20918 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20919
20920 # An object symbol dumper.
20921 OBJDUMP=$lt_OBJDUMP
20922
20923 # Method to check whether dependent libraries are shared objects.
20924 deplibs_check_method=$lt_deplibs_check_method
20925
20926 # Command to use when deplibs_check_method = "file_magic".
20927 file_magic_cmd=$lt_file_magic_cmd
20928
20929 # How to find potential files when deplibs_check_method = "file_magic".
20930 file_magic_glob=$lt_file_magic_glob
20931
20932 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20933 want_nocaseglob=$lt_want_nocaseglob
20934
20935 # DLL creation program.
20936 DLLTOOL=$lt_DLLTOOL
20937
20938 # Command to associate shared and link libraries.
20939 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20940
20941 # The archiver.
20942 AR=$lt_AR
20943
20944 # Flags to create an archive.
20945 AR_FLAGS=$lt_AR_FLAGS
20946
20947 # How to feed a file listing to the archiver.
20948 archiver_list_spec=$lt_archiver_list_spec
20949
20950 # A symbol stripping program.
20951 STRIP=$lt_STRIP
20952
20953 # Commands used to install an old-style archive.
20954 RANLIB=$lt_RANLIB
20955 old_postinstall_cmds=$lt_old_postinstall_cmds
20956 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20957
20958 # Whether to use a lock for old archive extraction.
20959 lock_old_archive_extraction=$lock_old_archive_extraction
20960
20961 # A C compiler.
20962 LTCC=$lt_CC
20963
20964 # LTCC compiler flags.
20965 LTCFLAGS=$lt_CFLAGS
20966
20967 # Take the output of nm and produce a listing of raw symbols and C names.
20968 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20969
20970 # Transform the output of nm in a proper C declaration.
20971 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20972
20973 # Transform the output of nm into a list of symbols to manually relocate.
20974 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20975
20976 # Transform the output of nm in a C name address pair.
20977 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20978
20979 # Transform the output of nm in a C name address pair when lib prefix is needed.
20980 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20981
20982 # The name lister interface.
20983 nm_interface=$lt_lt_cv_nm_interface
20984
20985 # Specify filename containing input files for \$NM.
20986 nm_file_list_spec=$lt_nm_file_list_spec
20987
20988 # The root where to search for dependent libraries,and where our libraries should be installed.
20989 lt_sysroot=$lt_sysroot
20990
20991 # Command to truncate a binary pipe.
20992 lt_truncate_bin=$lt_lt_cv_truncate_bin
20993
20994 # The name of the directory that contains temporary libtool files.
20995 objdir=$objdir
20996
20997 # Used to examine libraries when file_magic_cmd begins with "file".
20998 MAGIC_CMD=$MAGIC_CMD
20999
21000 # Must we lock files when doing compilation?
21001 need_locks=$lt_need_locks
21002
21003 # Manifest tool.
21004 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21005
21006 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21007 DSYMUTIL=$lt_DSYMUTIL
21008
21009 # Tool to change global to local symbols on Mac OS X.
21010 NMEDIT=$lt_NMEDIT
21011
21012 # Tool to manipulate fat objects and archives on Mac OS X.
21013 LIPO=$lt_LIPO
21014
21015 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21016 OTOOL=$lt_OTOOL
21017
21018 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21019 OTOOL64=$lt_OTOOL64
21020
21021 # Old archive suffix (normally "a").
21022 libext=$libext
21023
21024 # Shared library suffix (normally ".so").
21025 shrext_cmds=$lt_shrext_cmds
21026
21027 # The commands to extract the exported symbol list from a shared archive.
21028 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21029
21030 # Variables whose values should be saved in libtool wrapper scripts and
21031 # restored at link time.
21032 variables_saved_for_relink=$lt_variables_saved_for_relink
21033
21034 # Do we need the "lib" prefix for modules?
21035 need_lib_prefix=$need_lib_prefix
21036
21037 # Do we need a version for libraries?
21038 need_version=$need_version
21039
21040 # Library versioning type.
21041 version_type=$version_type
21042
21043 # Shared library runtime path variable.
21044 runpath_var=$runpath_var
21045
21046 # Shared library path variable.
21047 shlibpath_var=$shlibpath_var
21048
21049 # Is shlibpath searched before the hard-coded library search path?
21050 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21051
21052 # Format of library name prefix.
21053 libname_spec=$lt_libname_spec
21054
21055 # List of archive names. First name is the real one, the rest are links.
21056 # The last name is the one that the linker finds with -lNAME
21057 library_names_spec=$lt_library_names_spec
21058
21059 # The coded name of the library, if different from the real name.
21060 soname_spec=$lt_soname_spec
21061
21062 # Permission mode override for installation of shared libraries.
21063 install_override_mode=$lt_install_override_mode
21064
21065 # Command to use after installation of a shared archive.
21066 postinstall_cmds=$lt_postinstall_cmds
21067
21068 # Command to use after uninstallation of a shared archive.
21069 postuninstall_cmds=$lt_postuninstall_cmds
21070
21071 # Commands used to finish a libtool library installation in a directory.
21072 finish_cmds=$lt_finish_cmds
21073
21074 # As "finish_cmds", except a single script fragment to be evaled but
21075 # not shown.
21076 finish_eval=$lt_finish_eval
21077
21078 # Whether we should hardcode library paths into libraries.
21079 hardcode_into_libs=$hardcode_into_libs
21080
21081 # Compile-time system search path for libraries.
21082 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21083
21084 # Detected run-time system search path for libraries.
21085 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21086
21087 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21088 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21089
21090 # Whether dlopen is supported.
21091 dlopen_support=$enable_dlopen
21092
21093 # Whether dlopen of programs is supported.
21094 dlopen_self=$enable_dlopen_self
21095
21096 # Whether dlopen of statically linked programs is supported.
21097 dlopen_self_static=$enable_dlopen_self_static
21098
21099 # Commands to strip libraries.
21100 old_striplib=$lt_old_striplib
21101 striplib=$lt_striplib
21102
21103
21104 # The linker used to build libraries.
21105 LD=$lt_LD
21106
21107 # How to create reloadable object files.
21108 reload_flag=$lt_reload_flag
21109 reload_cmds=$lt_reload_cmds
21110
21111 # Commands used to build an old-style archive.
21112 old_archive_cmds=$lt_old_archive_cmds
21113
21114 # A language specific compiler.
21115 CC=$lt_compiler
21116
21117 # Is the compiler the GNU compiler?
21118 with_gcc=$GCC
21119
21120 # Compiler flag to turn off builtin functions.
21121 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21122
21123 # Additional compiler flags for building library objects.
21124 pic_flag=$lt_lt_prog_compiler_pic
21125
21126 # How to pass a linker flag through the compiler.
21127 wl=$lt_lt_prog_compiler_wl
21128
21129 # Compiler flag to prevent dynamic linking.
21130 link_static_flag=$lt_lt_prog_compiler_static
21131
21132 # Does compiler simultaneously support -c and -o options?
21133 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21134
21135 # Whether or not to add -lc for building shared libraries.
21136 build_libtool_need_lc=$archive_cmds_need_lc
21137
21138 # Whether or not to disallow shared libs when runtime libs are static.
21139 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21140
21141 # Compiler flag to allow reflexive dlopens.
21142 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21143
21144 # Compiler flag to generate shared objects directly from archives.
21145 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21146
21147 # Whether the compiler copes with passing no objects directly.
21148 compiler_needs_object=$lt_compiler_needs_object
21149
21150 # Create an old-style archive from a shared archive.
21151 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21152
21153 # Create a temporary old-style archive to link instead of a shared archive.
21154 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21155
21156 # Commands used to build a shared archive.
21157 archive_cmds=$lt_archive_cmds
21158 archive_expsym_cmds=$lt_archive_expsym_cmds
21159
21160 # Commands used to build a loadable module if different from building
21161 # a shared archive.
21162 module_cmds=$lt_module_cmds
21163 module_expsym_cmds=$lt_module_expsym_cmds
21164
21165 # Whether we are building with GNU ld or not.
21166 with_gnu_ld=$lt_with_gnu_ld
21167
21168 # Flag that allows shared libraries with undefined symbols to be built.
21169 allow_undefined_flag=$lt_allow_undefined_flag
21170
21171 # Flag that enforces no undefined symbols.
21172 no_undefined_flag=$lt_no_undefined_flag
21173
21174 # Flag to hardcode \$libdir into a binary during linking.
21175 # This must work even if \$libdir does not exist
21176 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21177
21178 # Whether we need a single "-rpath" flag with a separated argument.
21179 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21180
21181 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21182 # DIR into the resulting binary.
21183 hardcode_direct=$hardcode_direct
21184
21185 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21186 # DIR into the resulting binary and the resulting library dependency is
21187 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21188 # library is relocated.
21189 hardcode_direct_absolute=$hardcode_direct_absolute
21190
21191 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21192 # into the resulting binary.
21193 hardcode_minus_L=$hardcode_minus_L
21194
21195 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21196 # into the resulting binary.
21197 hardcode_shlibpath_var=$hardcode_shlibpath_var
21198
21199 # Set to "yes" if building a shared library automatically hardcodes DIR
21200 # into the library and all subsequent libraries and executables linked
21201 # against it.
21202 hardcode_automatic=$hardcode_automatic
21203
21204 # Set to yes if linker adds runtime paths of dependent libraries
21205 # to runtime path list.
21206 inherit_rpath=$inherit_rpath
21207
21208 # Whether libtool must link a program against all its dependency libraries.
21209 link_all_deplibs=$link_all_deplibs
21210
21211 # Set to "yes" if exported symbols are required.
21212 always_export_symbols=$always_export_symbols
21213
21214 # The commands to list exported symbols.
21215 export_symbols_cmds=$lt_export_symbols_cmds
21216
21217 # Symbols that should not be listed in the preloaded symbols.
21218 exclude_expsyms=$lt_exclude_expsyms
21219
21220 # Symbols that must always be exported.
21221 include_expsyms=$lt_include_expsyms
21222
21223 # Commands necessary for linking programs (against libraries) with templates.
21224 prelink_cmds=$lt_prelink_cmds
21225
21226 # Commands necessary for finishing linking programs.
21227 postlink_cmds=$lt_postlink_cmds
21228
21229 # Specify filename containing input files.
21230 file_list_spec=$lt_file_list_spec
21231
21232 # How to hardcode a shared library path into an executable.
21233 hardcode_action=$hardcode_action
21234
21235 # ### END LIBTOOL CONFIG
21236
21237 _LT_EOF
21238
21239 cat <<'_LT_EOF' >> "$cfgfile"
21240
21241 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21242
21243 # func_munge_path_list VARIABLE PATH
21244 # -----------------------------------
21245 # VARIABLE is name of variable containing _space_ separated list of
21246 # directories to be munged by the contents of PATH, which is string
21247 # having a format:
21248 # "DIR[:DIR]:"
21249 # string "DIR[ DIR]" will be prepended to VARIABLE
21250 # ":DIR[:DIR]"
21251 # string "DIR[ DIR]" will be appended to VARIABLE
21252 # "DIRP[:DIRP]::[DIRA:]DIRA"
21253 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21254 # "DIRA[ DIRA]" will be appended to VARIABLE
21255 # "DIR[:DIR]"
21256 # VARIABLE will be replaced by "DIR[ DIR]"
21257 func_munge_path_list ()
21258 {
21259 case x$2 in
21260 x)
21261 ;;
21262 *:)
21263 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21264 ;;
21265 x:*)
21266 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21267 ;;
21268 *::*)
21269 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21270 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21271 ;;
21272 *)
21273 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21274 ;;
21275 esac
21276 }
21277
21278
21279 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21280 func_cc_basename ()
21281 {
21282 for cc_temp in $*""; do
21283 case $cc_temp in
21284 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21285 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21286 \-*) ;;
21287 *) break;;
21288 esac
21289 done
21290 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21291 }
21292
21293
21294 # ### END FUNCTIONS SHARED WITH CONFIGURE
21295
21296 _LT_EOF
21297
21298 case $host_os in
21299 aix3*)
21300 cat <<\_LT_EOF >> "$cfgfile"
21301 # AIX sometimes has problems with the GCC collect2 program. For some
21302 # reason, if we set the COLLECT_NAMES environment variable, the problems
21303 # vanish in a puff of smoke.
21304 if test set != "${COLLECT_NAMES+set}"; then
21305 COLLECT_NAMES=
21306 export COLLECT_NAMES
21307 fi
21308 _LT_EOF
21309 ;;
21310 esac
21311
21312
21313 ltmain=$ac_aux_dir/ltmain.sh
21314
21315
21316 # We use sed instead of cat because bash on DJGPP gets confused if
21317 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21318 # text mode, it properly converts lines to CR/LF. This bash problem
21319 # is reportedly fixed, but why not run on old versions too?
21320 sed '$q' "$ltmain" >> "$cfgfile" \
21321 || (rm -f "$cfgfile"; exit 1)
21322
21323 mv -f "$cfgfile" "$ofile" ||
21324 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21325 chmod +x "$ofile"
21326
21327 ;;
21328
21329 esac
21330 done # for ac_tag
21331
21332
21333 as_fn_exit 0
21334 _ACEOF
21335 ac_clean_files=$ac_clean_files_save
21336
21337 test $ac_write_fail = 0 ||
21338 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21339
21340
21341 # configure is writing to config.log, and then calls config.status.
21342 # config.status does its own redirection, appending to config.log.
21343 # Unfortunately, on DOS this fails, as config.log is still kept open
21344 # by configure, so config.status won't be able to write to it; its
21345 # output is simply discarded. So we exec the FD to /dev/null,
21346 # effectively closing config.log, so it can be properly (re)opened and
21347 # appended to by config.status. When coming back to configure, we
21348 # need to make the FD available again.
21349 if test "$no_create" != yes; then
21350 ac_cs_success=:
21351 ac_config_status_args=
21352 test "$silent" = yes &&
21353 ac_config_status_args="$ac_config_status_args --quiet"
21354 exec 5>/dev/null
21355 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21356 exec 5>>config.log
21357 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21358 # would make configure fail if this is the last instruction.
21359 $ac_cs_success || as_fn_exit 1
21360 fi
21361 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21363 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21364 fi
21365
21366