configure revision 1.1 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xf86-video-nouveau 1.0.11.
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-nouveau'
593 PACKAGE_TARNAME='xf86-video-nouveau'
594 PACKAGE_VERSION='1.0.11'
595 PACKAGE_STRING='xf86-video-nouveau 1.0.11'
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 LIBUDEV_FALSE
643 LIBUDEV_TRUE
644 LIBUDEV_LIBS
645 LIBUDEV_CFLAGS
646 PCIACCESS_LIBS
647 PCIACCESS_CFLAGS
648 HAVE_XEXTPROTO_71_FALSE
649 HAVE_XEXTPROTO_71_TRUE
650 XEXT_LIBS
651 XEXT_CFLAGS
652 XORG_LIBS
653 XORG_CFLAGS
654 LIBDRM_NOUVEAU_LIBS
655 LIBDRM_NOUVEAU_CFLAGS
656 LIBDRM_LIBS
657 LIBDRM_CFLAGS
658 OTOOL64
659 OTOOL
660 LIPO
661 NMEDIT
662 DSYMUTIL
663 MANIFEST_TOOL
664 RANLIB
665 ac_ct_AR
666 AR
667 DLLTOOL
668 OBJDUMP
669 LN_S
670 NM
671 ac_ct_DUMPBIN
672 DUMPBIN
673 LD
674 FGREP
675 LIBTOOL
676 MAN_SUBSTS
677 XORG_MAN_PAGE
678 ADMIN_MAN_DIR
679 DRIVER_MAN_DIR
680 MISC_MAN_DIR
681 FILE_MAN_DIR
682 LIB_MAN_DIR
683 APP_MAN_DIR
684 ADMIN_MAN_SUFFIX
685 DRIVER_MAN_SUFFIX
686 MISC_MAN_SUFFIX
687 FILE_MAN_SUFFIX
688 LIB_MAN_SUFFIX
689 APP_MAN_SUFFIX
690 SED
691 host_os
692 host_vendor
693 host_cpu
694 host
695 build_os
696 build_vendor
697 build_cpu
698 build
699 INSTALL_CMD
700 PKG_CONFIG_LIBDIR
701 PKG_CONFIG_PATH
702 PKG_CONFIG
703 CHANGELOG_CMD
704 STRICT_CFLAGS
705 CWARNFLAGS
706 BASE_CFLAGS
707 EGREP
708 GREP
709 CPP
710 am__fastdepCC_FALSE
711 am__fastdepCC_TRUE
712 CCDEPMODE
713 am__nodep
714 AMDEPBACKSLASH
715 AMDEP_FALSE
716 AMDEP_TRUE
717 am__quote
718 am__include
719 DEPDIR
720 OBJEXT
721 EXEEXT
722 ac_ct_CC
723 CPPFLAGS
724 LDFLAGS
725 CFLAGS
726 CC
727 AM_BACKSLASH
728 AM_DEFAULT_VERBOSITY
729 AM_DEFAULT_V
730 AM_V
731 am__untar
732 am__tar
733 AMTAR
734 am__leading_dot
735 SET_MAKE
736 AWK
737 mkdir_p
738 MKDIR_P
739 INSTALL_STRIP_PROGRAM
740 STRIP
741 install_sh
742 MAKEINFO
743 AUTOHEADER
744 AUTOMAKE
745 AUTOCONF
746 ACLOCAL
747 VERSION
748 PACKAGE
749 CYGPATH_W
750 am__isrc
751 INSTALL_DATA
752 INSTALL_SCRIPT
753 INSTALL_PROGRAM
754 target_alias
755 host_alias
756 build_alias
757 LIBS
758 ECHO_T
759 ECHO_N
760 ECHO_C
761 DEFS
762 mandir
763 localedir
764 libdir
765 psdir
766 pdfdir
767 dvidir
768 htmldir
769 infodir
770 docdir
771 oldincludedir
772 includedir
773 localstatedir
774 sharedstatedir
775 sysconfdir
776 datadir
777 datarootdir
778 libexecdir
779 sbindir
780 bindir
781 program_transform_name
782 prefix
783 exec_prefix
784 PACKAGE_URL
785 PACKAGE_BUGREPORT
786 PACKAGE_STRING
787 PACKAGE_VERSION
788 PACKAGE_TARNAME
789 PACKAGE_NAME
790 PATH_SEPARATOR
791 SHELL'
792 ac_subst_files=''
793 ac_user_opts='
794 enable_option_checking
795 enable_silent_rules
796 enable_dependency_tracking
797 enable_selective_werror
798 enable_strict_compilation
799 enable_static
800 enable_shared
801 with_pic
802 enable_fast_install
803 with_gnu_ld
804 with_sysroot
805 enable_libtool_lock
806 with_xorg_module_dir
807 '
808 ac_precious_vars='build_alias
809 host_alias
810 target_alias
811 CC
812 CFLAGS
813 LDFLAGS
814 LIBS
815 CPPFLAGS
816 CPP
817 PKG_CONFIG
818 PKG_CONFIG_PATH
819 PKG_CONFIG_LIBDIR
820 LIBDRM_CFLAGS
821 LIBDRM_LIBS
822 LIBDRM_NOUVEAU_CFLAGS
823 LIBDRM_NOUVEAU_LIBS
824 XORG_CFLAGS
825 XORG_LIBS
826 XEXT_CFLAGS
827 XEXT_LIBS
828 PCIACCESS_CFLAGS
829 PCIACCESS_LIBS
830 LIBUDEV_CFLAGS
831 LIBUDEV_LIBS'
832
833
834 # Initialize some variables set by options.
835 ac_init_help=
836 ac_init_version=false
837 ac_unrecognized_opts=
838 ac_unrecognized_sep=
839 # The variables have the same names as the options, with
840 # dashes changed to underlines.
841 cache_file=/dev/null
842 exec_prefix=NONE
843 no_create=
844 no_recursion=
845 prefix=NONE
846 program_prefix=NONE
847 program_suffix=NONE
848 program_transform_name=s,x,x,
849 silent=
850 site=
851 srcdir=
852 verbose=
853 x_includes=NONE
854 x_libraries=NONE
855
856 # Installation directory options.
857 # These are left unexpanded so users can "make install exec_prefix=/foo"
858 # and all the variables that are supposed to be based on exec_prefix
859 # by default will actually change.
860 # Use braces instead of parens because sh, perl, etc. also accept them.
861 # (The list follows the same order as the GNU Coding Standards.)
862 bindir='${exec_prefix}/bin'
863 sbindir='${exec_prefix}/sbin'
864 libexecdir='${exec_prefix}/libexec'
865 datarootdir='${prefix}/share'
866 datadir='${datarootdir}'
867 sysconfdir='${prefix}/etc'
868 sharedstatedir='${prefix}/com'
869 localstatedir='${prefix}/var'
870 includedir='${prefix}/include'
871 oldincludedir='/usr/include'
872 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
873 infodir='${datarootdir}/info'
874 htmldir='${docdir}'
875 dvidir='${docdir}'
876 pdfdir='${docdir}'
877 psdir='${docdir}'
878 libdir='${exec_prefix}/lib'
879 localedir='${datarootdir}/locale'
880 mandir='${datarootdir}/man'
881
882 ac_prev=
883 ac_dashdash=
884 for ac_option
885 do
886 # If the previous option needs an argument, assign it.
887 if test -n "$ac_prev"; then
888 eval $ac_prev=\$ac_option
889 ac_prev=
890 continue
891 fi
892
893 case $ac_option in
894 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
895 *=) ac_optarg= ;;
896 *) ac_optarg=yes ;;
897 esac
898
899 # Accept the important Cygnus configure options, so we can diagnose typos.
900
901 case $ac_dashdash$ac_option in
902 --)
903 ac_dashdash=yes ;;
904
905 -bindir | --bindir | --bindi | --bind | --bin | --bi)
906 ac_prev=bindir ;;
907 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
908 bindir=$ac_optarg ;;
909
910 -build | --build | --buil | --bui | --bu)
911 ac_prev=build_alias ;;
912 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
913 build_alias=$ac_optarg ;;
914
915 -cache-file | --cache-file | --cache-fil | --cache-fi \
916 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
917 ac_prev=cache_file ;;
918 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
919 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
920 cache_file=$ac_optarg ;;
921
922 --config-cache | -C)
923 cache_file=config.cache ;;
924
925 -datadir | --datadir | --datadi | --datad)
926 ac_prev=datadir ;;
927 -datadir=* | --datadir=* | --datadi=* | --datad=*)
928 datadir=$ac_optarg ;;
929
930 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
931 | --dataroo | --dataro | --datar)
932 ac_prev=datarootdir ;;
933 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
934 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
935 datarootdir=$ac_optarg ;;
936
937 -disable-* | --disable-*)
938 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
939 # Reject names that are not valid shell variable names.
940 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
941 as_fn_error $? "invalid feature name: $ac_useropt"
942 ac_useropt_orig=$ac_useropt
943 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
944 case $ac_user_opts in
945 *"
946 "enable_$ac_useropt"
947 "*) ;;
948 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
949 ac_unrecognized_sep=', ';;
950 esac
951 eval enable_$ac_useropt=no ;;
952
953 -docdir | --docdir | --docdi | --doc | --do)
954 ac_prev=docdir ;;
955 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
956 docdir=$ac_optarg ;;
957
958 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
959 ac_prev=dvidir ;;
960 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
961 dvidir=$ac_optarg ;;
962
963 -enable-* | --enable-*)
964 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967 as_fn_error $? "invalid feature name: $ac_useropt"
968 ac_useropt_orig=$ac_useropt
969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
971 *"
972 "enable_$ac_useropt"
973 "*) ;;
974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
975 ac_unrecognized_sep=', ';;
976 esac
977 eval enable_$ac_useropt=\$ac_optarg ;;
978
979 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
980 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
981 | --exec | --exe | --ex)
982 ac_prev=exec_prefix ;;
983 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
984 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
985 | --exec=* | --exe=* | --ex=*)
986 exec_prefix=$ac_optarg ;;
987
988 -gas | --gas | --ga | --g)
989 # Obsolete; use --with-gas.
990 with_gas=yes ;;
991
992 -help | --help | --hel | --he | -h)
993 ac_init_help=long ;;
994 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
995 ac_init_help=recursive ;;
996 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
997 ac_init_help=short ;;
998
999 -host | --host | --hos | --ho)
1000 ac_prev=host_alias ;;
1001 -host=* | --host=* | --hos=* | --ho=*)
1002 host_alias=$ac_optarg ;;
1003
1004 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1005 ac_prev=htmldir ;;
1006 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1007 | --ht=*)
1008 htmldir=$ac_optarg ;;
1009
1010 -includedir | --includedir | --includedi | --included | --include \
1011 | --includ | --inclu | --incl | --inc)
1012 ac_prev=includedir ;;
1013 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1014 | --includ=* | --inclu=* | --incl=* | --inc=*)
1015 includedir=$ac_optarg ;;
1016
1017 -infodir | --infodir | --infodi | --infod | --info | --inf)
1018 ac_prev=infodir ;;
1019 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1020 infodir=$ac_optarg ;;
1021
1022 -libdir | --libdir | --libdi | --libd)
1023 ac_prev=libdir ;;
1024 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1025 libdir=$ac_optarg ;;
1026
1027 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1028 | --libexe | --libex | --libe)
1029 ac_prev=libexecdir ;;
1030 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1031 | --libexe=* | --libex=* | --libe=*)
1032 libexecdir=$ac_optarg ;;
1033
1034 -localedir | --localedir | --localedi | --localed | --locale)
1035 ac_prev=localedir ;;
1036 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1037 localedir=$ac_optarg ;;
1038
1039 -localstatedir | --localstatedir | --localstatedi | --localstated \
1040 | --localstate | --localstat | --localsta | --localst | --locals)
1041 ac_prev=localstatedir ;;
1042 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1043 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1044 localstatedir=$ac_optarg ;;
1045
1046 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1047 ac_prev=mandir ;;
1048 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1049 mandir=$ac_optarg ;;
1050
1051 -nfp | --nfp | --nf)
1052 # Obsolete; use --without-fp.
1053 with_fp=no ;;
1054
1055 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1056 | --no-cr | --no-c | -n)
1057 no_create=yes ;;
1058
1059 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1060 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1061 no_recursion=yes ;;
1062
1063 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1064 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1065 | --oldin | --oldi | --old | --ol | --o)
1066 ac_prev=oldincludedir ;;
1067 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1068 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1069 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1070 oldincludedir=$ac_optarg ;;
1071
1072 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1073 ac_prev=prefix ;;
1074 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1075 prefix=$ac_optarg ;;
1076
1077 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1078 | --program-pre | --program-pr | --program-p)
1079 ac_prev=program_prefix ;;
1080 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1081 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1082 program_prefix=$ac_optarg ;;
1083
1084 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1085 | --program-suf | --program-su | --program-s)
1086 ac_prev=program_suffix ;;
1087 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1088 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1089 program_suffix=$ac_optarg ;;
1090
1091 -program-transform-name | --program-transform-name \
1092 | --program-transform-nam | --program-transform-na \
1093 | --program-transform-n | --program-transform- \
1094 | --program-transform | --program-transfor \
1095 | --program-transfo | --program-transf \
1096 | --program-trans | --program-tran \
1097 | --progr-tra | --program-tr | --program-t)
1098 ac_prev=program_transform_name ;;
1099 -program-transform-name=* | --program-transform-name=* \
1100 | --program-transform-nam=* | --program-transform-na=* \
1101 | --program-transform-n=* | --program-transform-=* \
1102 | --program-transform=* | --program-transfor=* \
1103 | --program-transfo=* | --program-transf=* \
1104 | --program-trans=* | --program-tran=* \
1105 | --progr-tra=* | --program-tr=* | --program-t=*)
1106 program_transform_name=$ac_optarg ;;
1107
1108 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1109 ac_prev=pdfdir ;;
1110 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1111 pdfdir=$ac_optarg ;;
1112
1113 -psdir | --psdir | --psdi | --psd | --ps)
1114 ac_prev=psdir ;;
1115 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1116 psdir=$ac_optarg ;;
1117
1118 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1119 | -silent | --silent | --silen | --sile | --sil)
1120 silent=yes ;;
1121
1122 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1123 ac_prev=sbindir ;;
1124 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1125 | --sbi=* | --sb=*)
1126 sbindir=$ac_optarg ;;
1127
1128 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1129 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1130 | --sharedst | --shareds | --shared | --share | --shar \
1131 | --sha | --sh)
1132 ac_prev=sharedstatedir ;;
1133 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1134 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1135 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1136 | --sha=* | --sh=*)
1137 sharedstatedir=$ac_optarg ;;
1138
1139 -site | --site | --sit)
1140 ac_prev=site ;;
1141 -site=* | --site=* | --sit=*)
1142 site=$ac_optarg ;;
1143
1144 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1145 ac_prev=srcdir ;;
1146 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1147 srcdir=$ac_optarg ;;
1148
1149 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1150 | --syscon | --sysco | --sysc | --sys | --sy)
1151 ac_prev=sysconfdir ;;
1152 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1153 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1154 sysconfdir=$ac_optarg ;;
1155
1156 -target | --target | --targe | --targ | --tar | --ta | --t)
1157 ac_prev=target_alias ;;
1158 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1159 target_alias=$ac_optarg ;;
1160
1161 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1162 verbose=yes ;;
1163
1164 -version | --version | --versio | --versi | --vers | -V)
1165 ac_init_version=: ;;
1166
1167 -with-* | --with-*)
1168 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171 as_fn_error $? "invalid package name: $ac_useropt"
1172 ac_useropt_orig=$ac_useropt
1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1175 *"
1176 "with_$ac_useropt"
1177 "*) ;;
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1180 esac
1181 eval with_$ac_useropt=\$ac_optarg ;;
1182
1183 -without-* | --without-*)
1184 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1187 as_fn_error $? "invalid package name: $ac_useropt"
1188 ac_useropt_orig=$ac_useropt
1189 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1190 case $ac_user_opts in
1191 *"
1192 "with_$ac_useropt"
1193 "*) ;;
1194 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1195 ac_unrecognized_sep=', ';;
1196 esac
1197 eval with_$ac_useropt=no ;;
1198
1199 --x)
1200 # Obsolete; use --with-x.
1201 with_x=yes ;;
1202
1203 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1204 | --x-incl | --x-inc | --x-in | --x-i)
1205 ac_prev=x_includes ;;
1206 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1207 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1208 x_includes=$ac_optarg ;;
1209
1210 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1211 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1212 ac_prev=x_libraries ;;
1213 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1214 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1215 x_libraries=$ac_optarg ;;
1216
1217 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1218 Try \`$0 --help' for more information"
1219 ;;
1220
1221 *=*)
1222 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1223 # Reject names that are not valid shell variable names.
1224 case $ac_envvar in #(
1225 '' | [0-9]* | *[!_$as_cr_alnum]* )
1226 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1227 esac
1228 eval $ac_envvar=\$ac_optarg
1229 export $ac_envvar ;;
1230
1231 *)
1232 # FIXME: should be removed in autoconf 3.0.
1233 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1234 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1235 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1236 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1237 ;;
1238
1239 esac
1240 done
1241
1242 if test -n "$ac_prev"; then
1243 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1244 as_fn_error $? "missing argument to $ac_option"
1245 fi
1246
1247 if test -n "$ac_unrecognized_opts"; then
1248 case $enable_option_checking in
1249 no) ;;
1250 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1251 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1252 esac
1253 fi
1254
1255 # Check all directory arguments for consistency.
1256 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1257 datadir sysconfdir sharedstatedir localstatedir includedir \
1258 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1259 libdir localedir mandir
1260 do
1261 eval ac_val=\$$ac_var
1262 # Remove trailing slashes.
1263 case $ac_val in
1264 */ )
1265 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1266 eval $ac_var=\$ac_val;;
1267 esac
1268 # Be sure to have absolute directory names.
1269 case $ac_val in
1270 [\\/$]* | ?:[\\/]* ) continue;;
1271 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1272 esac
1273 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1274 done
1275
1276 # There might be people who depend on the old broken behavior: `$host'
1277 # used to hold the argument of --host etc.
1278 # FIXME: To remove some day.
1279 build=$build_alias
1280 host=$host_alias
1281 target=$target_alias
1282
1283 # FIXME: To remove some day.
1284 if test "x$host_alias" != x; then
1285 if test "x$build_alias" = x; then
1286 cross_compiling=maybe
1287 elif test "x$build_alias" != "x$host_alias"; then
1288 cross_compiling=yes
1289 fi
1290 fi
1291
1292 ac_tool_prefix=
1293 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1294
1295 test "$silent" = yes && exec 6>/dev/null
1296
1297
1298 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1299 ac_ls_di=`ls -di .` &&
1300 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1301 as_fn_error $? "working directory cannot be determined"
1302 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1303 as_fn_error $? "pwd does not report name of working directory"
1304
1305
1306 # Find the source files, if location was not specified.
1307 if test -z "$srcdir"; then
1308 ac_srcdir_defaulted=yes
1309 # Try the directory containing this script, then the parent directory.
1310 ac_confdir=`$as_dirname -- "$as_myself" ||
1311 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1312 X"$as_myself" : 'X\(//\)[^/]' \| \
1313 X"$as_myself" : 'X\(//\)$' \| \
1314 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1315 $as_echo X"$as_myself" |
1316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1317 s//\1/
1318 q
1319 }
1320 /^X\(\/\/\)[^/].*/{
1321 s//\1/
1322 q
1323 }
1324 /^X\(\/\/\)$/{
1325 s//\1/
1326 q
1327 }
1328 /^X\(\/\).*/{
1329 s//\1/
1330 q
1331 }
1332 s/.*/./; q'`
1333 srcdir=$ac_confdir
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1335 srcdir=..
1336 fi
1337 else
1338 ac_srcdir_defaulted=no
1339 fi
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1341 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1342 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1343 fi
1344 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1345 ac_abs_confdir=`(
1346 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1347 pwd)`
1348 # When building in place, set srcdir=.
1349 if test "$ac_abs_confdir" = "$ac_pwd"; then
1350 srcdir=.
1351 fi
1352 # Remove unnecessary trailing slashes from srcdir.
1353 # Double slashes in file names in object file debugging info
1354 # mess up M-x gdb in Emacs.
1355 case $srcdir in
1356 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1357 esac
1358 for ac_var in $ac_precious_vars; do
1359 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_env_${ac_var}_value=\$${ac_var}
1361 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1363 done
1364
1365 #
1366 # Report the --help message.
1367 #
1368 if test "$ac_init_help" = "long"; then
1369 # Omit some internal or obsolete options to make the list less imposing.
1370 # This message is too long to be a string in the A/UX 3.1 sh.
1371 cat <<_ACEOF
1372 \`configure' configures xf86-video-nouveau 1.0.11 to adapt to many kinds of systems.
1373
1374 Usage: $0 [OPTION]... [VAR=VALUE]...
1375
1376 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1377 VAR=VALUE. See below for descriptions of some of the useful variables.
1378
1379 Defaults for the options are specified in brackets.
1380
1381 Configuration:
1382 -h, --help display this help and exit
1383 --help=short display options specific to this package
1384 --help=recursive display the short help of all the included packages
1385 -V, --version display version information and exit
1386 -q, --quiet, --silent do not print \`checking ...' messages
1387 --cache-file=FILE cache test results in FILE [disabled]
1388 -C, --config-cache alias for \`--cache-file=config.cache'
1389 -n, --no-create do not create output files
1390 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1391
1392 Installation directories:
1393 --prefix=PREFIX install architecture-independent files in PREFIX
1394 [$ac_default_prefix]
1395 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1396 [PREFIX]
1397
1398 By default, \`make install' will install all the files in
1399 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1400 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1401 for instance \`--prefix=\$HOME'.
1402
1403 For better control, use the options below.
1404
1405 Fine tuning of the installation directories:
1406 --bindir=DIR user executables [EPREFIX/bin]
1407 --sbindir=DIR system admin executables [EPREFIX/sbin]
1408 --libexecdir=DIR program executables [EPREFIX/libexec]
1409 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1410 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1411 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1412 --libdir=DIR object code libraries [EPREFIX/lib]
1413 --includedir=DIR C header files [PREFIX/include]
1414 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1415 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1416 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1417 --infodir=DIR info documentation [DATAROOTDIR/info]
1418 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1419 --mandir=DIR man documentation [DATAROOTDIR/man]
1420 --docdir=DIR documentation root
1421 [DATAROOTDIR/doc/xf86-video-nouveau]
1422 --htmldir=DIR html documentation [DOCDIR]
1423 --dvidir=DIR dvi documentation [DOCDIR]
1424 --pdfdir=DIR pdf documentation [DOCDIR]
1425 --psdir=DIR ps documentation [DOCDIR]
1426 _ACEOF
1427
1428 cat <<\_ACEOF
1429
1430 Program names:
1431 --program-prefix=PREFIX prepend PREFIX to installed program names
1432 --program-suffix=SUFFIX append SUFFIX to installed program names
1433 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1434
1435 System types:
1436 --build=BUILD configure for building on BUILD [guessed]
1437 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1438 _ACEOF
1439 fi
1440
1441 if test -n "$ac_init_help"; then
1442 case $ac_init_help in
1443 short | recursive ) echo "Configuration of xf86-video-nouveau 1.0.11:";;
1444 esac
1445 cat <<\_ACEOF
1446
1447 Optional Features:
1448 --disable-option-checking ignore unrecognized --enable/--with options
1449 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1450 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1451 --enable-silent-rules less verbose build output (undo: "make V=1")
1452 --disable-silent-rules verbose build output (undo: "make V=0")
1453 --enable-dependency-tracking
1454 do not reject slow dependency extractors
1455 --disable-dependency-tracking
1456 speeds up one-time build
1457 --disable-selective-werror
1458 Turn off selective compiler errors. (default:
1459 enabled)
1460 --enable-strict-compilation
1461 Enable all warnings from compiler and make them
1462 errors (default: disabled)
1463 --enable-static[=PKGS] build static libraries [default=no]
1464 --enable-shared[=PKGS] build shared libraries [default=yes]
1465 --enable-fast-install[=PKGS]
1466 optimize for fast installation [default=yes]
1467 --disable-libtool-lock avoid locking (might break parallel builds)
1468
1469 Optional Packages:
1470 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1471 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1472 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1473 both]
1474 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1475 --with-sysroot=DIR Search for dependent libraries within DIR
1476 (or the compiler's sysroot if not specified).
1477 --with-xorg-module-dir=DIR
1478 Default xorg module directory
1479 [[default=$libdir/xorg/modules]]
1480
1481 Some influential environment variables:
1482 CC C compiler command
1483 CFLAGS C compiler flags
1484 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1485 nonstandard directory <lib dir>
1486 LIBS libraries to pass to the linker, e.g. -l<library>
1487 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1488 you have headers in a nonstandard directory <include dir>
1489 CPP C preprocessor
1490 PKG_CONFIG path to pkg-config utility
1491 PKG_CONFIG_PATH
1492 directories to add to pkg-config's search path
1493 PKG_CONFIG_LIBDIR
1494 path overriding pkg-config's built-in search path
1495 LIBDRM_CFLAGS
1496 C compiler flags for LIBDRM, overriding pkg-config
1497 LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
1498 LIBDRM_NOUVEAU_CFLAGS
1499 C compiler flags for LIBDRM_NOUVEAU, overriding pkg-config
1500 LIBDRM_NOUVEAU_LIBS
1501 linker flags for LIBDRM_NOUVEAU, overriding pkg-config
1502 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1503 XORG_LIBS linker flags for XORG, overriding pkg-config
1504 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1505 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1506 PCIACCESS_CFLAGS
1507 C compiler flags for PCIACCESS, overriding pkg-config
1508 PCIACCESS_LIBS
1509 linker flags for PCIACCESS, overriding pkg-config
1510 LIBUDEV_CFLAGS
1511 C compiler flags for LIBUDEV, overriding pkg-config
1512 LIBUDEV_LIBS
1513 linker flags for LIBUDEV, overriding pkg-config
1514
1515 Use these variables to override the choices made by `configure' or to help
1516 it to find libraries and programs with nonstandard names/locations.
1517
1518 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1519 _ACEOF
1520 ac_status=$?
1521 fi
1522
1523 if test "$ac_init_help" = "recursive"; then
1524 # If there are subdirs, report their specific --help.
1525 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1526 test -d "$ac_dir" ||
1527 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1528 continue
1529 ac_builddir=.
1530
1531 case "$ac_dir" in
1532 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 *)
1534 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1535 # A ".." for each directory in $ac_dir_suffix.
1536 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1537 case $ac_top_builddir_sub in
1538 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1540 esac ;;
1541 esac
1542 ac_abs_top_builddir=$ac_pwd
1543 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1544 # for backward compatibility:
1545 ac_top_builddir=$ac_top_build_prefix
1546
1547 case $srcdir in
1548 .) # We are building in place.
1549 ac_srcdir=.
1550 ac_top_srcdir=$ac_top_builddir_sub
1551 ac_abs_top_srcdir=$ac_pwd ;;
1552 [\\/]* | ?:[\\/]* ) # Absolute name.
1553 ac_srcdir=$srcdir$ac_dir_suffix;
1554 ac_top_srcdir=$srcdir
1555 ac_abs_top_srcdir=$srcdir ;;
1556 *) # Relative name.
1557 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1558 ac_top_srcdir=$ac_top_build_prefix$srcdir
1559 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1560 esac
1561 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1562
1563 cd "$ac_dir" || { ac_status=$?; continue; }
1564 # Check for guested configure.
1565 if test -f "$ac_srcdir/configure.gnu"; then
1566 echo &&
1567 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1568 elif test -f "$ac_srcdir/configure"; then
1569 echo &&
1570 $SHELL "$ac_srcdir/configure" --help=recursive
1571 else
1572 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1573 fi || ac_status=$?
1574 cd "$ac_pwd" || { ac_status=$?; break; }
1575 done
1576 fi
1577
1578 test -n "$ac_init_help" && exit $ac_status
1579 if $ac_init_version; then
1580 cat <<\_ACEOF
1581 xf86-video-nouveau configure 1.0.11
1582 generated by GNU Autoconf 2.69
1583
1584 Copyright (C) 2012 Free Software Foundation, Inc.
1585 This configure script is free software; the Free Software Foundation
1586 gives unlimited permission to copy, distribute and modify it.
1587 _ACEOF
1588 exit
1589 fi
1590
1591 ## ------------------------ ##
1592 ## Autoconf initialization. ##
1593 ## ------------------------ ##
1594
1595 # ac_fn_c_try_compile LINENO
1596 # --------------------------
1597 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1598 ac_fn_c_try_compile ()
1599 {
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 rm -f conftest.$ac_objext
1602 if { { ac_try="$ac_compile"
1603 case "(($ac_try" in
1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605 *) ac_try_echo=$ac_try;;
1606 esac
1607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608 $as_echo "$ac_try_echo"; } >&5
1609 (eval "$ac_compile") 2>conftest.err
1610 ac_status=$?
1611 if test -s conftest.err; then
1612 grep -v '^ *+' conftest.err >conftest.er1
1613 cat conftest.er1 >&5
1614 mv -f conftest.er1 conftest.err
1615 fi
1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617 test $ac_status = 0; } && {
1618 test -z "$ac_c_werror_flag" ||
1619 test ! -s conftest.err
1620 } && test -s conftest.$ac_objext; then :
1621 ac_retval=0
1622 else
1623 $as_echo "$as_me: failed program was:" >&5
1624 sed 's/^/| /' conftest.$ac_ext >&5
1625
1626 ac_retval=1
1627 fi
1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629 as_fn_set_status $ac_retval
1630
1631 } # ac_fn_c_try_compile
1632
1633 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1634 # ---------------------------------------------
1635 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1636 # accordingly.
1637 ac_fn_c_check_decl ()
1638 {
1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640 as_decl_name=`echo $2|sed 's/ *(.*//'`
1641 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1643 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1644 if eval \${$3+:} false; then :
1645 $as_echo_n "(cached) " >&6
1646 else
1647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1648 /* end confdefs.h. */
1649 $4
1650 int
1651 main ()
1652 {
1653 #ifndef $as_decl_name
1654 #ifdef __cplusplus
1655 (void) $as_decl_use;
1656 #else
1657 (void) $as_decl_name;
1658 #endif
1659 #endif
1660
1661 ;
1662 return 0;
1663 }
1664 _ACEOF
1665 if ac_fn_c_try_compile "$LINENO"; then :
1666 eval "$3=yes"
1667 else
1668 eval "$3=no"
1669 fi
1670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1671 fi
1672 eval ac_res=\$$3
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1674 $as_echo "$ac_res" >&6; }
1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676
1677 } # ac_fn_c_check_decl
1678
1679 # ac_fn_c_try_cpp LINENO
1680 # ----------------------
1681 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1682 ac_fn_c_try_cpp ()
1683 {
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 if { { ac_try="$ac_cpp conftest.$ac_ext"
1686 case "(($ac_try" in
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1689 esac
1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691 $as_echo "$ac_try_echo"; } >&5
1692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1693 ac_status=$?
1694 if test -s conftest.err; then
1695 grep -v '^ *+' conftest.err >conftest.er1
1696 cat conftest.er1 >&5
1697 mv -f conftest.er1 conftest.err
1698 fi
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; } > conftest.i && {
1701 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1702 test ! -s conftest.err
1703 }; then :
1704 ac_retval=0
1705 else
1706 $as_echo "$as_me: failed program was:" >&5
1707 sed 's/^/| /' conftest.$ac_ext >&5
1708
1709 ac_retval=1
1710 fi
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712 as_fn_set_status $ac_retval
1713
1714 } # ac_fn_c_try_cpp
1715
1716 # ac_fn_c_try_run LINENO
1717 # ----------------------
1718 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1719 # that executables *can* be run.
1720 ac_fn_c_try_run ()
1721 {
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 if { { ac_try="$ac_link"
1724 case "(($ac_try" in
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1727 esac
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_link") 2>&5
1731 ac_status=$?
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1734 { { case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_try") 2>&5
1741 ac_status=$?
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; }; }; then :
1744 ac_retval=0
1745 else
1746 $as_echo "$as_me: program exited with status $ac_status" >&5
1747 $as_echo "$as_me: failed program was:" >&5
1748 sed 's/^/| /' conftest.$ac_ext >&5
1749
1750 ac_retval=$ac_status
1751 fi
1752 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754 as_fn_set_status $ac_retval
1755
1756 } # ac_fn_c_try_run
1757
1758 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1759 # -------------------------------------------------------
1760 # Tests whether HEADER exists and can be compiled using the include files in
1761 # INCLUDES, setting the cache variable VAR accordingly.
1762 ac_fn_c_check_header_compile ()
1763 {
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1766 $as_echo_n "checking for $2... " >&6; }
1767 if eval \${$3+:} false; then :
1768 $as_echo_n "(cached) " >&6
1769 else
1770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1771 /* end confdefs.h. */
1772 $4
1773 #include <$2>
1774 _ACEOF
1775 if ac_fn_c_try_compile "$LINENO"; then :
1776 eval "$3=yes"
1777 else
1778 eval "$3=no"
1779 fi
1780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1781 fi
1782 eval ac_res=\$$3
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784 $as_echo "$ac_res" >&6; }
1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786
1787 } # ac_fn_c_check_header_compile
1788
1789 # ac_fn_c_try_link LINENO
1790 # -----------------------
1791 # Try to link conftest.$ac_ext, and return whether this succeeded.
1792 ac_fn_c_try_link ()
1793 {
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 rm -f conftest.$ac_objext conftest$ac_exeext
1796 if { { ac_try="$ac_link"
1797 case "(($ac_try" in
1798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799 *) ac_try_echo=$ac_try;;
1800 esac
1801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802 $as_echo "$ac_try_echo"; } >&5
1803 (eval "$ac_link") 2>conftest.err
1804 ac_status=$?
1805 if test -s conftest.err; then
1806 grep -v '^ *+' conftest.err >conftest.er1
1807 cat conftest.er1 >&5
1808 mv -f conftest.er1 conftest.err
1809 fi
1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; } && {
1812 test -z "$ac_c_werror_flag" ||
1813 test ! -s conftest.err
1814 } && test -s conftest$ac_exeext && {
1815 test "$cross_compiling" = yes ||
1816 test -x conftest$ac_exeext
1817 }; then :
1818 ac_retval=0
1819 else
1820 $as_echo "$as_me: failed program was:" >&5
1821 sed 's/^/| /' conftest.$ac_ext >&5
1822
1823 ac_retval=1
1824 fi
1825 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1826 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1827 # interfere with the next link command; also delete a directory that is
1828 # left behind by Apple's compiler. We do this before executing the actions.
1829 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1831 as_fn_set_status $ac_retval
1832
1833 } # ac_fn_c_try_link
1834
1835 # ac_fn_c_check_func LINENO FUNC VAR
1836 # ----------------------------------
1837 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1838 ac_fn_c_check_func ()
1839 {
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842 $as_echo_n "checking for $2... " >&6; }
1843 if eval \${$3+:} false; then :
1844 $as_echo_n "(cached) " >&6
1845 else
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847 /* end confdefs.h. */
1848 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1850 #define $2 innocuous_$2
1851
1852 /* System header to define __stub macros and hopefully few prototypes,
1853 which can conflict with char $2 (); below.
1854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1855 <limits.h> exists even on freestanding compilers. */
1856
1857 #ifdef __STDC__
1858 # include <limits.h>
1859 #else
1860 # include <assert.h>
1861 #endif
1862
1863 #undef $2
1864
1865 /* Override any GCC internal prototype to avoid an error.
1866 Use char because int might match the return type of a GCC
1867 builtin and then its argument prototype would still apply. */
1868 #ifdef __cplusplus
1869 extern "C"
1870 #endif
1871 char $2 ();
1872 /* The GNU C library defines this for functions which it implements
1873 to always fail with ENOSYS. Some functions are actually named
1874 something starting with __ and the normal name is an alias. */
1875 #if defined __stub_$2 || defined __stub___$2
1876 choke me
1877 #endif
1878
1879 int
1880 main ()
1881 {
1882 return $2 ();
1883 ;
1884 return 0;
1885 }
1886 _ACEOF
1887 if ac_fn_c_try_link "$LINENO"; then :
1888 eval "$3=yes"
1889 else
1890 eval "$3=no"
1891 fi
1892 rm -f core conftest.err conftest.$ac_objext \
1893 conftest$ac_exeext conftest.$ac_ext
1894 fi
1895 eval ac_res=\$$3
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1897 $as_echo "$ac_res" >&6; }
1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899
1900 } # ac_fn_c_check_func
1901 cat >config.log <<_ACEOF
1902 This file contains any messages produced by compilers while
1903 running configure, to aid debugging if configure makes a mistake.
1904
1905 It was created by xf86-video-nouveau $as_me 1.0.11, which was
1906 generated by GNU Autoconf 2.69. Invocation command line was
1907
1908 $ $0 $@
1909
1910 _ACEOF
1911 exec 5>>config.log
1912 {
1913 cat <<_ASUNAME
1914 ## --------- ##
1915 ## Platform. ##
1916 ## --------- ##
1917
1918 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1919 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1920 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1921 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1922 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1923
1924 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1925 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1926
1927 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1928 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1929 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1930 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1931 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1932 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1933 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1934
1935 _ASUNAME
1936
1937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938 for as_dir in $PATH
1939 do
1940 IFS=$as_save_IFS
1941 test -z "$as_dir" && as_dir=.
1942 $as_echo "PATH: $as_dir"
1943 done
1944 IFS=$as_save_IFS
1945
1946 } >&5
1947
1948 cat >&5 <<_ACEOF
1949
1950
1951 ## ----------- ##
1952 ## Core tests. ##
1953 ## ----------- ##
1954
1955 _ACEOF
1956
1957
1958 # Keep a trace of the command line.
1959 # Strip out --no-create and --no-recursion so they do not pile up.
1960 # Strip out --silent because we don't want to record it for future runs.
1961 # Also quote any args containing shell meta-characters.
1962 # Make two passes to allow for proper duplicate-argument suppression.
1963 ac_configure_args=
1964 ac_configure_args0=
1965 ac_configure_args1=
1966 ac_must_keep_next=false
1967 for ac_pass in 1 2
1968 do
1969 for ac_arg
1970 do
1971 case $ac_arg in
1972 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1973 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1974 | -silent | --silent | --silen | --sile | --sil)
1975 continue ;;
1976 *\'*)
1977 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1978 esac
1979 case $ac_pass in
1980 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1981 2)
1982 as_fn_append ac_configure_args1 " '$ac_arg'"
1983 if test $ac_must_keep_next = true; then
1984 ac_must_keep_next=false # Got value, back to normal.
1985 else
1986 case $ac_arg in
1987 *=* | --config-cache | -C | -disable-* | --disable-* \
1988 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1989 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1990 | -with-* | --with-* | -without-* | --without-* | --x)
1991 case "$ac_configure_args0 " in
1992 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1993 esac
1994 ;;
1995 -* ) ac_must_keep_next=true ;;
1996 esac
1997 fi
1998 as_fn_append ac_configure_args " '$ac_arg'"
1999 ;;
2000 esac
2001 done
2002 done
2003 { ac_configure_args0=; unset ac_configure_args0;}
2004 { ac_configure_args1=; unset ac_configure_args1;}
2005
2006 # When interrupted or exit'd, cleanup temporary files, and complete
2007 # config.log. We remove comments because anyway the quotes in there
2008 # would cause problems or look ugly.
2009 # WARNING: Use '\'' to represent an apostrophe within the trap.
2010 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2011 trap 'exit_status=$?
2012 # Save into config.log some information that might help in debugging.
2013 {
2014 echo
2015
2016 $as_echo "## ---------------- ##
2017 ## Cache variables. ##
2018 ## ---------------- ##"
2019 echo
2020 # The following way of writing the cache mishandles newlines in values,
2021 (
2022 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2023 eval ac_val=\$$ac_var
2024 case $ac_val in #(
2025 *${as_nl}*)
2026 case $ac_var in #(
2027 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2028 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2029 esac
2030 case $ac_var in #(
2031 _ | IFS | as_nl) ;; #(
2032 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2033 *) { eval $ac_var=; unset $ac_var;} ;;
2034 esac ;;
2035 esac
2036 done
2037 (set) 2>&1 |
2038 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2039 *${as_nl}ac_space=\ *)
2040 sed -n \
2041 "s/'\''/'\''\\\\'\'''\''/g;
2042 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2043 ;; #(
2044 *)
2045 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2046 ;;
2047 esac |
2048 sort
2049 )
2050 echo
2051
2052 $as_echo "## ----------------- ##
2053 ## Output variables. ##
2054 ## ----------------- ##"
2055 echo
2056 for ac_var in $ac_subst_vars
2057 do
2058 eval ac_val=\$$ac_var
2059 case $ac_val in
2060 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2061 esac
2062 $as_echo "$ac_var='\''$ac_val'\''"
2063 done | sort
2064 echo
2065
2066 if test -n "$ac_subst_files"; then
2067 $as_echo "## ------------------- ##
2068 ## File substitutions. ##
2069 ## ------------------- ##"
2070 echo
2071 for ac_var in $ac_subst_files
2072 do
2073 eval ac_val=\$$ac_var
2074 case $ac_val in
2075 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2076 esac
2077 $as_echo "$ac_var='\''$ac_val'\''"
2078 done | sort
2079 echo
2080 fi
2081
2082 if test -s confdefs.h; then
2083 $as_echo "## ----------- ##
2084 ## confdefs.h. ##
2085 ## ----------- ##"
2086 echo
2087 cat confdefs.h
2088 echo
2089 fi
2090 test "$ac_signal" != 0 &&
2091 $as_echo "$as_me: caught signal $ac_signal"
2092 $as_echo "$as_me: exit $exit_status"
2093 } >&5
2094 rm -f core *.core core.conftest.* &&
2095 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2096 exit $exit_status
2097 ' 0
2098 for ac_signal in 1 2 13 15; do
2099 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2100 done
2101 ac_signal=0
2102
2103 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2104 rm -f -r conftest* confdefs.h
2105
2106 $as_echo "/* confdefs.h */" > confdefs.h
2107
2108 # Predefined preprocessor variables.
2109
2110 cat >>confdefs.h <<_ACEOF
2111 #define PACKAGE_NAME "$PACKAGE_NAME"
2112 _ACEOF
2113
2114 cat >>confdefs.h <<_ACEOF
2115 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2116 _ACEOF
2117
2118 cat >>confdefs.h <<_ACEOF
2119 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2120 _ACEOF
2121
2122 cat >>confdefs.h <<_ACEOF
2123 #define PACKAGE_STRING "$PACKAGE_STRING"
2124 _ACEOF
2125
2126 cat >>confdefs.h <<_ACEOF
2127 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2128 _ACEOF
2129
2130 cat >>confdefs.h <<_ACEOF
2131 #define PACKAGE_URL "$PACKAGE_URL"
2132 _ACEOF
2133
2134
2135 # Let the site file select an alternate cache file if it wants to.
2136 # Prefer an explicitly selected file to automatically selected ones.
2137 ac_site_file1=NONE
2138 ac_site_file2=NONE
2139 if test -n "$CONFIG_SITE"; then
2140 # We do not want a PATH search for config.site.
2141 case $CONFIG_SITE in #((
2142 -*) ac_site_file1=./$CONFIG_SITE;;
2143 */*) ac_site_file1=$CONFIG_SITE;;
2144 *) ac_site_file1=./$CONFIG_SITE;;
2145 esac
2146 elif test "x$prefix" != xNONE; then
2147 ac_site_file1=$prefix/share/config.site
2148 ac_site_file2=$prefix/etc/config.site
2149 else
2150 ac_site_file1=$ac_default_prefix/share/config.site
2151 ac_site_file2=$ac_default_prefix/etc/config.site
2152 fi
2153 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2154 do
2155 test "x$ac_site_file" = xNONE && continue
2156 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2158 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2159 sed 's/^/| /' "$ac_site_file" >&5
2160 . "$ac_site_file" \
2161 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2163 as_fn_error $? "failed to load site script $ac_site_file
2164 See \`config.log' for more details" "$LINENO" 5; }
2165 fi
2166 done
2167
2168 if test -r "$cache_file"; then
2169 # Some versions of bash will fail to source /dev/null (special files
2170 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2171 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2173 $as_echo "$as_me: loading cache $cache_file" >&6;}
2174 case $cache_file in
2175 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2176 *) . "./$cache_file";;
2177 esac
2178 fi
2179 else
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2181 $as_echo "$as_me: creating cache $cache_file" >&6;}
2182 >$cache_file
2183 fi
2184
2185 # Check that the precious variables saved in the cache have kept the same
2186 # value.
2187 ac_cache_corrupted=false
2188 for ac_var in $ac_precious_vars; do
2189 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2190 eval ac_new_set=\$ac_env_${ac_var}_set
2191 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2192 eval ac_new_val=\$ac_env_${ac_var}_value
2193 case $ac_old_set,$ac_new_set in
2194 set,)
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2196 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2197 ac_cache_corrupted=: ;;
2198 ,set)
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2200 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2201 ac_cache_corrupted=: ;;
2202 ,);;
2203 *)
2204 if test "x$ac_old_val" != "x$ac_new_val"; then
2205 # differences in whitespace do not lead to failure.
2206 ac_old_val_w=`echo x $ac_old_val`
2207 ac_new_val_w=`echo x $ac_new_val`
2208 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2210 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2211 ac_cache_corrupted=:
2212 else
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2214 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2215 eval $ac_var=\$ac_old_val
2216 fi
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2218 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2220 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2221 fi;;
2222 esac
2223 # Pass precious variables to config.status.
2224 if test "$ac_new_set" = set; then
2225 case $ac_new_val in
2226 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2227 *) ac_arg=$ac_var=$ac_new_val ;;
2228 esac
2229 case " $ac_configure_args " in
2230 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2231 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2232 esac
2233 fi
2234 done
2235 if $ac_cache_corrupted; then
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2237 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2239 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2240 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2241 fi
2242 ## -------------------- ##
2243 ## Main body of script. ##
2244 ## -------------------- ##
2245
2246 ac_ext=c
2247 ac_cpp='$CPP $CPPFLAGS'
2248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2251
2252
2253
2254
2255 cat >>confdefs.h <<_ACEOF
2256 #define NV_MAJOR_VERSION $(echo $PACKAGE_VERSION | sed -e 's/^\([0-9]*\)\.[0-9]*\.[0-9]*/\1/')
2257 _ACEOF
2258
2259
2260 cat >>confdefs.h <<_ACEOF
2261 #define NV_MINOR_VERSION $(echo $PACKAGE_VERSION | sed -e 's/^[0-9]*\.\([0-9]*\)\.[0-9]*/\1/')
2262 _ACEOF
2263
2264
2265 cat >>confdefs.h <<_ACEOF
2266 #define NV_PATCHLEVEL $(echo $PACKAGE_VERSION | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)/\1/')
2267 _ACEOF
2268
2269
2270 cat >>confdefs.h <<_ACEOF
2271 #define NV_DRIVER_DATE $(echo -n \";git log |head -3|tail -1|tr -d '\n';echo -n \")
2272 _ACEOF
2273
2274
2275
2276 ac_config_headers="$ac_config_headers config.h"
2277
2278 ac_aux_dir=
2279 for ac_dir in . "$srcdir"/.; do
2280 if test -f "$ac_dir/install-sh"; then
2281 ac_aux_dir=$ac_dir
2282 ac_install_sh="$ac_aux_dir/install-sh -c"
2283 break
2284 elif test -f "$ac_dir/install.sh"; then
2285 ac_aux_dir=$ac_dir
2286 ac_install_sh="$ac_aux_dir/install.sh -c"
2287 break
2288 elif test -f "$ac_dir/shtool"; then
2289 ac_aux_dir=$ac_dir
2290 ac_install_sh="$ac_aux_dir/shtool install -c"
2291 break
2292 fi
2293 done
2294 if test -z "$ac_aux_dir"; then
2295 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2296 fi
2297
2298 # These three variables are undocumented and unsupported,
2299 # and are intended to be withdrawn in a future Autoconf release.
2300 # They can cause serious problems if a builder's source tree is in a directory
2301 # whose full name contains unusual characters.
2302 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2303 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2304 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2305
2306
2307
2308 am__api_version='1.14'
2309
2310 # Find a good install program. We prefer a C program (faster),
2311 # so one script is as good as another. But avoid the broken or
2312 # incompatible versions:
2313 # SysV /etc/install, /usr/sbin/install
2314 # SunOS /usr/etc/install
2315 # IRIX /sbin/install
2316 # AIX /bin/install
2317 # AmigaOS /C/install, which installs bootblocks on floppy discs
2318 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2319 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2320 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2321 # OS/2's system install, which has a completely different semantic
2322 # ./install, which can be erroneously created by make from ./install.sh.
2323 # Reject install programs that cannot install multiple files.
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2325 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2326 if test -z "$INSTALL"; then
2327 if ${ac_cv_path_install+:} false; then :
2328 $as_echo_n "(cached) " >&6
2329 else
2330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2331 for as_dir in $PATH
2332 do
2333 IFS=$as_save_IFS
2334 test -z "$as_dir" && as_dir=.
2335 # Account for people who put trailing slashes in PATH elements.
2336 case $as_dir/ in #((
2337 ./ | .// | /[cC]/* | \
2338 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2339 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2340 /usr/ucb/* ) ;;
2341 *)
2342 # OSF1 and SCO ODT 3.0 have their own names for install.
2343 # Don't use installbsd from OSF since it installs stuff as root
2344 # by default.
2345 for ac_prog in ginstall scoinst install; do
2346 for ac_exec_ext in '' $ac_executable_extensions; do
2347 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2348 if test $ac_prog = install &&
2349 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2350 # AIX install. It has an incompatible calling convention.
2351 :
2352 elif test $ac_prog = install &&
2353 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2354 # program-specific install script used by HP pwplus--don't use.
2355 :
2356 else
2357 rm -rf conftest.one conftest.two conftest.dir
2358 echo one > conftest.one
2359 echo two > conftest.two
2360 mkdir conftest.dir
2361 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2362 test -s conftest.one && test -s conftest.two &&
2363 test -s conftest.dir/conftest.one &&
2364 test -s conftest.dir/conftest.two
2365 then
2366 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2367 break 3
2368 fi
2369 fi
2370 fi
2371 done
2372 done
2373 ;;
2374 esac
2375
2376 done
2377 IFS=$as_save_IFS
2378
2379 rm -rf conftest.one conftest.two conftest.dir
2380
2381 fi
2382 if test "${ac_cv_path_install+set}" = set; then
2383 INSTALL=$ac_cv_path_install
2384 else
2385 # As a last resort, use the slow shell script. Don't cache a
2386 # value for INSTALL within a source directory, because that will
2387 # break other packages using the cache if that directory is
2388 # removed, or if the value is a relative name.
2389 INSTALL=$ac_install_sh
2390 fi
2391 fi
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2393 $as_echo "$INSTALL" >&6; }
2394
2395 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2396 # It thinks the first close brace ends the variable substitution.
2397 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2398
2399 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2400
2401 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2402
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2404 $as_echo_n "checking whether build environment is sane... " >&6; }
2405 # Reject unsafe characters in $srcdir or the absolute working directory
2406 # name. Accept space and tab only in the latter.
2407 am_lf='
2408 '
2409 case `pwd` in
2410 *[\\\"\#\$\&\'\`$am_lf]*)
2411 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2412 esac
2413 case $srcdir in
2414 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2415 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2416 esac
2417
2418 # Do 'set' in a subshell so we don't clobber the current shell's
2419 # arguments. Must try -L first in case configure is actually a
2420 # symlink; some systems play weird games with the mod time of symlinks
2421 # (eg FreeBSD returns the mod time of the symlink's containing
2422 # directory).
2423 if (
2424 am_has_slept=no
2425 for am_try in 1 2; do
2426 echo "timestamp, slept: $am_has_slept" > conftest.file
2427 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2428 if test "$*" = "X"; then
2429 # -L didn't work.
2430 set X `ls -t "$srcdir/configure" conftest.file`
2431 fi
2432 if test "$*" != "X $srcdir/configure conftest.file" \
2433 && test "$*" != "X conftest.file $srcdir/configure"; then
2434
2435 # If neither matched, then we have a broken ls. This can happen
2436 # if, for instance, CONFIG_SHELL is bash and it inherits a
2437 # broken ls alias from the environment. This has actually
2438 # happened. Such a system could not be considered "sane".
2439 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2440 alias in your environment" "$LINENO" 5
2441 fi
2442 if test "$2" = conftest.file || test $am_try -eq 2; then
2443 break
2444 fi
2445 # Just in case.
2446 sleep 1
2447 am_has_slept=yes
2448 done
2449 test "$2" = conftest.file
2450 )
2451 then
2452 # Ok.
2453 :
2454 else
2455 as_fn_error $? "newly created file is older than distributed files!
2456 Check your system clock" "$LINENO" 5
2457 fi
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2459 $as_echo "yes" >&6; }
2460 # If we didn't sleep, we still need to ensure time stamps of config.status and
2461 # generated files are strictly newer.
2462 am_sleep_pid=
2463 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2464 ( sleep 1 ) &
2465 am_sleep_pid=$!
2466 fi
2467
2468 rm -f conftest.file
2469
2470 test "$program_prefix" != NONE &&
2471 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2472 # Use a double $ so make ignores it.
2473 test "$program_suffix" != NONE &&
2474 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2475 # Double any \ or $.
2476 # By default was `s,x,x', remove it if useless.
2477 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2478 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2479
2480 # expand $ac_aux_dir to an absolute path
2481 am_aux_dir=`cd $ac_aux_dir && pwd`
2482
2483 if test x"${MISSING+set}" != xset; then
2484 case $am_aux_dir in
2485 *\ * | *\ *)
2486 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2487 *)
2488 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2489 esac
2490 fi
2491 # Use eval to expand $SHELL
2492 if eval "$MISSING --is-lightweight"; then
2493 am_missing_run="$MISSING "
2494 else
2495 am_missing_run=
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2497 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2498 fi
2499
2500 if test x"${install_sh}" != xset; then
2501 case $am_aux_dir in
2502 *\ * | *\ *)
2503 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2504 *)
2505 install_sh="\${SHELL} $am_aux_dir/install-sh"
2506 esac
2507 fi
2508
2509 # Installed binaries are usually stripped using 'strip' when the user
2510 # run "make install-strip". However 'strip' might not be the right
2511 # tool to use in cross-compilation environments, therefore Automake
2512 # will honor the 'STRIP' environment variable to overrule this program.
2513 if test "$cross_compiling" != no; then
2514 if test -n "$ac_tool_prefix"; then
2515 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2516 set dummy ${ac_tool_prefix}strip; ac_word=$2
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2518 $as_echo_n "checking for $ac_word... " >&6; }
2519 if ${ac_cv_prog_STRIP+:} false; then :
2520 $as_echo_n "(cached) " >&6
2521 else
2522 if test -n "$STRIP"; then
2523 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2524 else
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 for as_dir in $PATH
2527 do
2528 IFS=$as_save_IFS
2529 test -z "$as_dir" && as_dir=.
2530 for ac_exec_ext in '' $ac_executable_extensions; do
2531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2532 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2534 break 2
2535 fi
2536 done
2537 done
2538 IFS=$as_save_IFS
2539
2540 fi
2541 fi
2542 STRIP=$ac_cv_prog_STRIP
2543 if test -n "$STRIP"; then
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2545 $as_echo "$STRIP" >&6; }
2546 else
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2548 $as_echo "no" >&6; }
2549 fi
2550
2551
2552 fi
2553 if test -z "$ac_cv_prog_STRIP"; then
2554 ac_ct_STRIP=$STRIP
2555 # Extract the first word of "strip", so it can be a program name with args.
2556 set dummy strip; ac_word=$2
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2558 $as_echo_n "checking for $ac_word... " >&6; }
2559 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2560 $as_echo_n "(cached) " >&6
2561 else
2562 if test -n "$ac_ct_STRIP"; then
2563 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2564 else
2565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566 for as_dir in $PATH
2567 do
2568 IFS=$as_save_IFS
2569 test -z "$as_dir" && as_dir=.
2570 for ac_exec_ext in '' $ac_executable_extensions; do
2571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2572 ac_cv_prog_ac_ct_STRIP="strip"
2573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2574 break 2
2575 fi
2576 done
2577 done
2578 IFS=$as_save_IFS
2579
2580 fi
2581 fi
2582 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2583 if test -n "$ac_ct_STRIP"; then
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2585 $as_echo "$ac_ct_STRIP" >&6; }
2586 else
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2588 $as_echo "no" >&6; }
2589 fi
2590
2591 if test "x$ac_ct_STRIP" = x; then
2592 STRIP=":"
2593 else
2594 case $cross_compiling:$ac_tool_warned in
2595 yes:)
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2598 ac_tool_warned=yes ;;
2599 esac
2600 STRIP=$ac_ct_STRIP
2601 fi
2602 else
2603 STRIP="$ac_cv_prog_STRIP"
2604 fi
2605
2606 fi
2607 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2608
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2610 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2611 if test -z "$MKDIR_P"; then
2612 if ${ac_cv_path_mkdir+:} false; then :
2613 $as_echo_n "(cached) " >&6
2614 else
2615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2617 do
2618 IFS=$as_save_IFS
2619 test -z "$as_dir" && as_dir=.
2620 for ac_prog in mkdir gmkdir; do
2621 for ac_exec_ext in '' $ac_executable_extensions; do
2622 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2623 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2624 'mkdir (GNU coreutils) '* | \
2625 'mkdir (coreutils) '* | \
2626 'mkdir (fileutils) '4.1*)
2627 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2628 break 3;;
2629 esac
2630 done
2631 done
2632 done
2633 IFS=$as_save_IFS
2634
2635 fi
2636
2637 test -d ./--version && rmdir ./--version
2638 if test "${ac_cv_path_mkdir+set}" = set; then
2639 MKDIR_P="$ac_cv_path_mkdir -p"
2640 else
2641 # As a last resort, use the slow shell script. Don't cache a
2642 # value for MKDIR_P within a source directory, because that will
2643 # break other packages using the cache if that directory is
2644 # removed, or if the value is a relative name.
2645 MKDIR_P="$ac_install_sh -d"
2646 fi
2647 fi
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2649 $as_echo "$MKDIR_P" >&6; }
2650
2651 for ac_prog in gawk mawk nawk awk
2652 do
2653 # Extract the first word of "$ac_prog", so it can be a program name with args.
2654 set dummy $ac_prog; ac_word=$2
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2656 $as_echo_n "checking for $ac_word... " >&6; }
2657 if ${ac_cv_prog_AWK+:} false; then :
2658 $as_echo_n "(cached) " >&6
2659 else
2660 if test -n "$AWK"; then
2661 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2662 else
2663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664 for as_dir in $PATH
2665 do
2666 IFS=$as_save_IFS
2667 test -z "$as_dir" && as_dir=.
2668 for ac_exec_ext in '' $ac_executable_extensions; do
2669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2670 ac_cv_prog_AWK="$ac_prog"
2671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2672 break 2
2673 fi
2674 done
2675 done
2676 IFS=$as_save_IFS
2677
2678 fi
2679 fi
2680 AWK=$ac_cv_prog_AWK
2681 if test -n "$AWK"; then
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2683 $as_echo "$AWK" >&6; }
2684 else
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2686 $as_echo "no" >&6; }
2687 fi
2688
2689
2690 test -n "$AWK" && break
2691 done
2692
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2694 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2695 set x ${MAKE-make}
2696 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2697 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2698 $as_echo_n "(cached) " >&6
2699 else
2700 cat >conftest.make <<\_ACEOF
2701 SHELL = /bin/sh
2702 all:
2703 @echo '@@@%%%=$(MAKE)=@@@%%%'
2704 _ACEOF
2705 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2706 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2707 *@@@%%%=?*=@@@%%%*)
2708 eval ac_cv_prog_make_${ac_make}_set=yes;;
2709 *)
2710 eval ac_cv_prog_make_${ac_make}_set=no;;
2711 esac
2712 rm -f conftest.make
2713 fi
2714 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2716 $as_echo "yes" >&6; }
2717 SET_MAKE=
2718 else
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2720 $as_echo "no" >&6; }
2721 SET_MAKE="MAKE=${MAKE-make}"
2722 fi
2723
2724 rm -rf .tst 2>/dev/null
2725 mkdir .tst 2>/dev/null
2726 if test -d .tst; then
2727 am__leading_dot=.
2728 else
2729 am__leading_dot=_
2730 fi
2731 rmdir .tst 2>/dev/null
2732
2733 # Check whether --enable-silent-rules was given.
2734 if test "${enable_silent_rules+set}" = set; then :
2735 enableval=$enable_silent_rules;
2736 fi
2737
2738 case $enable_silent_rules in # (((
2739 yes) AM_DEFAULT_VERBOSITY=0;;
2740 no) AM_DEFAULT_VERBOSITY=1;;
2741 *) AM_DEFAULT_VERBOSITY=1;;
2742 esac
2743 am_make=${MAKE-make}
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2745 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2746 if ${am_cv_make_support_nested_variables+:} false; then :
2747 $as_echo_n "(cached) " >&6
2748 else
2749 if $as_echo 'TRUE=$(BAR$(V))
2750 BAR0=false
2751 BAR1=true
2752 V=1
2753 am__doit:
2754 @$(TRUE)
2755 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2756 am_cv_make_support_nested_variables=yes
2757 else
2758 am_cv_make_support_nested_variables=no
2759 fi
2760 fi
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2762 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2763 if test $am_cv_make_support_nested_variables = yes; then
2764 AM_V='$(V)'
2765 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2766 else
2767 AM_V=$AM_DEFAULT_VERBOSITY
2768 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2769 fi
2770 AM_BACKSLASH='\'
2771
2772 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2773 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2774 # is not polluted with repeated "-I."
2775 am__isrc=' -I$(srcdir)'
2776 # test to see if srcdir already configured
2777 if test -f $srcdir/config.status; then
2778 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2779 fi
2780 fi
2781
2782 # test whether we have cygpath
2783 if test -z "$CYGPATH_W"; then
2784 if (cygpath --version) >/dev/null 2>/dev/null; then
2785 CYGPATH_W='cygpath -w'
2786 else
2787 CYGPATH_W=echo
2788 fi
2789 fi
2790
2791
2792 # Define the identity of the package.
2793 PACKAGE='xf86-video-nouveau'
2794 VERSION='1.0.11'
2795
2796
2797 cat >>confdefs.h <<_ACEOF
2798 #define PACKAGE "$PACKAGE"
2799 _ACEOF
2800
2801
2802 cat >>confdefs.h <<_ACEOF
2803 #define VERSION "$VERSION"
2804 _ACEOF
2805
2806 # Some tools Automake needs.
2807
2808 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2809
2810
2811 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2812
2813
2814 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2815
2816
2817 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2818
2819
2820 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2821
2822 # For better backward compatibility. To be removed once Automake 1.9.x
2823 # dies out for good. For more background, see:
2824 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2825 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2826 mkdir_p='$(MKDIR_P)'
2827
2828 # We need awk for the "check" target. The system "awk" is bad on
2829 # some platforms.
2830 # Always define AMTAR for backward compatibility. Yes, it's still used
2831 # in the wild :-( We should find a proper way to deprecate it ...
2832 AMTAR='$${TAR-tar}'
2833
2834
2835 # We'll loop over all known methods to create a tar archive until one works.
2836 _am_tools='gnutar pax cpio none'
2837
2838 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2839
2840
2841
2842
2843
2844
2845 # POSIX will say in a future version that running "rm -f" with no argument
2846 # is OK; and we want to be able to make that assumption in our Makefile
2847 # recipes. So use an aggressive probe to check that the usage we want is
2848 # actually supported "in the wild" to an acceptable degree.
2849 # See automake bug#10828.
2850 # To make any issue more visible, cause the running configure to be aborted
2851 # by default if the 'rm' program in use doesn't match our expectations; the
2852 # user can still override this though.
2853 if rm -f && rm -fr && rm -rf; then : OK; else
2854 cat >&2 <<'END'
2855 Oops!
2856
2857 Your 'rm' program seems unable to run without file operands specified
2858 on the command line, even when the '-f' option is present. This is contrary
2859 to the behaviour of most rm programs out there, and not conforming with
2860 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2861
2862 Please tell bug-automake@gnu.org about your system, including the value
2863 of your $PATH and any error possibly output before this message. This
2864 can help us improve future automake versions.
2865
2866 END
2867 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2868 echo 'Configuration will proceed anyway, since you have set the' >&2
2869 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2870 echo >&2
2871 else
2872 cat >&2 <<'END'
2873 Aborting the configuration process, to ensure you take notice of the issue.
2874
2875 You can download and install GNU coreutils to get an 'rm' implementation
2876 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2877
2878 If you want to complete the configuration process using your problematic
2879 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2880 to "yes", and re-run configure.
2881
2882 END
2883 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2884 fi
2885 fi
2886
2887 # Check whether --enable-silent-rules was given.
2888 if test "${enable_silent_rules+set}" = set; then :
2889 enableval=$enable_silent_rules;
2890 fi
2891
2892 case $enable_silent_rules in # (((
2893 yes) AM_DEFAULT_VERBOSITY=0;;
2894 no) AM_DEFAULT_VERBOSITY=1;;
2895 *) AM_DEFAULT_VERBOSITY=0;;
2896 esac
2897 am_make=${MAKE-make}
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2899 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2900 if ${am_cv_make_support_nested_variables+:} false; then :
2901 $as_echo_n "(cached) " >&6
2902 else
2903 if $as_echo 'TRUE=$(BAR$(V))
2904 BAR0=false
2905 BAR1=true
2906 V=1
2907 am__doit:
2908 @$(TRUE)
2909 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2910 am_cv_make_support_nested_variables=yes
2911 else
2912 am_cv_make_support_nested_variables=no
2913 fi
2914 fi
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2916 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2917 if test $am_cv_make_support_nested_variables = yes; then
2918 AM_V='$(V)'
2919 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2920 else
2921 AM_V=$AM_DEFAULT_VERBOSITY
2922 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2923 fi
2924 AM_BACKSLASH='\'
2925
2926
2927 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940 DEPDIR="${am__leading_dot}deps"
2941
2942 ac_config_commands="$ac_config_commands depfiles"
2943
2944
2945 am_make=${MAKE-make}
2946 cat > confinc << 'END'
2947 am__doit:
2948 @echo this is the am__doit target
2949 .PHONY: am__doit
2950 END
2951 # If we don't find an include directive, just comment out the code.
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2953 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2954 am__include="#"
2955 am__quote=
2956 _am_result=none
2957 # First try GNU make style include.
2958 echo "include confinc" > confmf
2959 # Ignore all kinds of additional output from 'make'.
2960 case `$am_make -s -f confmf 2> /dev/null` in #(
2961 *the\ am__doit\ target*)
2962 am__include=include
2963 am__quote=
2964 _am_result=GNU
2965 ;;
2966 esac
2967 # Now try BSD make style include.
2968 if test "$am__include" = "#"; then
2969 echo '.include "confinc"' > confmf
2970 case `$am_make -s -f confmf 2> /dev/null` in #(
2971 *the\ am__doit\ target*)
2972 am__include=.include
2973 am__quote="\""
2974 _am_result=BSD
2975 ;;
2976 esac
2977 fi
2978
2979
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2981 $as_echo "$_am_result" >&6; }
2982 rm -f confinc confmf
2983
2984 # Check whether --enable-dependency-tracking was given.
2985 if test "${enable_dependency_tracking+set}" = set; then :
2986 enableval=$enable_dependency_tracking;
2987 fi
2988
2989 if test "x$enable_dependency_tracking" != xno; then
2990 am_depcomp="$ac_aux_dir/depcomp"
2991 AMDEPBACKSLASH='\'
2992 am__nodep='_no'
2993 fi
2994 if test "x$enable_dependency_tracking" != xno; then
2995 AMDEP_TRUE=
2996 AMDEP_FALSE='#'
2997 else
2998 AMDEP_TRUE='#'
2999 AMDEP_FALSE=
3000 fi
3001
3002
3003 ac_ext=c
3004 ac_cpp='$CPP $CPPFLAGS'
3005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3008 if test -n "$ac_tool_prefix"; then
3009 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3010 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3012 $as_echo_n "checking for $ac_word... " >&6; }
3013 if ${ac_cv_prog_CC+:} false; then :
3014 $as_echo_n "(cached) " >&6
3015 else
3016 if test -n "$CC"; then
3017 ac_cv_prog_CC="$CC" # Let the user override the test.
3018 else
3019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020 for as_dir in $PATH
3021 do
3022 IFS=$as_save_IFS
3023 test -z "$as_dir" && as_dir=.
3024 for ac_exec_ext in '' $ac_executable_extensions; do
3025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3026 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3028 break 2
3029 fi
3030 done
3031 done
3032 IFS=$as_save_IFS
3033
3034 fi
3035 fi
3036 CC=$ac_cv_prog_CC
3037 if test -n "$CC"; then
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3039 $as_echo "$CC" >&6; }
3040 else
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042 $as_echo "no" >&6; }
3043 fi
3044
3045
3046 fi
3047 if test -z "$ac_cv_prog_CC"; then
3048 ac_ct_CC=$CC
3049 # Extract the first word of "gcc", so it can be a program name with args.
3050 set dummy gcc; ac_word=$2
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3052 $as_echo_n "checking for $ac_word... " >&6; }
3053 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3054 $as_echo_n "(cached) " >&6
3055 else
3056 if test -n "$ac_ct_CC"; then
3057 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3058 else
3059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060 for as_dir in $PATH
3061 do
3062 IFS=$as_save_IFS
3063 test -z "$as_dir" && as_dir=.
3064 for ac_exec_ext in '' $ac_executable_extensions; do
3065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3066 ac_cv_prog_ac_ct_CC="gcc"
3067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3068 break 2
3069 fi
3070 done
3071 done
3072 IFS=$as_save_IFS
3073
3074 fi
3075 fi
3076 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3077 if test -n "$ac_ct_CC"; then
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3079 $as_echo "$ac_ct_CC" >&6; }
3080 else
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3082 $as_echo "no" >&6; }
3083 fi
3084
3085 if test "x$ac_ct_CC" = x; then
3086 CC=""
3087 else
3088 case $cross_compiling:$ac_tool_warned in
3089 yes:)
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3092 ac_tool_warned=yes ;;
3093 esac
3094 CC=$ac_ct_CC
3095 fi
3096 else
3097 CC="$ac_cv_prog_CC"
3098 fi
3099
3100 if test -z "$CC"; then
3101 if test -n "$ac_tool_prefix"; then
3102 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3103 set dummy ${ac_tool_prefix}cc; ac_word=$2
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3105 $as_echo_n "checking for $ac_word... " >&6; }
3106 if ${ac_cv_prog_CC+:} false; then :
3107 $as_echo_n "(cached) " >&6
3108 else
3109 if test -n "$CC"; then
3110 ac_cv_prog_CC="$CC" # Let the user override the test.
3111 else
3112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113 for as_dir in $PATH
3114 do
3115 IFS=$as_save_IFS
3116 test -z "$as_dir" && as_dir=.
3117 for ac_exec_ext in '' $ac_executable_extensions; do
3118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3119 ac_cv_prog_CC="${ac_tool_prefix}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 fi
3128 fi
3129 CC=$ac_cv_prog_CC
3130 if test -n "$CC"; then
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3132 $as_echo "$CC" >&6; }
3133 else
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135 $as_echo "no" >&6; }
3136 fi
3137
3138
3139 fi
3140 fi
3141 if test -z "$CC"; then
3142 # Extract the first word of "cc", so it can be a program name with args.
3143 set dummy cc; ac_word=$2
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3145 $as_echo_n "checking for $ac_word... " >&6; }
3146 if ${ac_cv_prog_CC+:} false; then :
3147 $as_echo_n "(cached) " >&6
3148 else
3149 if test -n "$CC"; then
3150 ac_cv_prog_CC="$CC" # Let the user override the test.
3151 else
3152 ac_prog_rejected=no
3153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154 for as_dir in $PATH
3155 do
3156 IFS=$as_save_IFS
3157 test -z "$as_dir" && as_dir=.
3158 for ac_exec_ext in '' $ac_executable_extensions; do
3159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3160 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3161 ac_prog_rejected=yes
3162 continue
3163 fi
3164 ac_cv_prog_CC="cc"
3165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3166 break 2
3167 fi
3168 done
3169 done
3170 IFS=$as_save_IFS
3171
3172 if test $ac_prog_rejected = yes; then
3173 # We found a bogon in the path, so make sure we never use it.
3174 set dummy $ac_cv_prog_CC
3175 shift
3176 if test $# != 0; then
3177 # We chose a different compiler from the bogus one.
3178 # However, it has the same basename, so the bogon will be chosen
3179 # first if we set CC to just the basename; use the full file name.
3180 shift
3181 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3182 fi
3183 fi
3184 fi
3185 fi
3186 CC=$ac_cv_prog_CC
3187 if test -n "$CC"; then
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3189 $as_echo "$CC" >&6; }
3190 else
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192 $as_echo "no" >&6; }
3193 fi
3194
3195
3196 fi
3197 if test -z "$CC"; then
3198 if test -n "$ac_tool_prefix"; then
3199 for ac_prog in cl.exe
3200 do
3201 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3202 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3204 $as_echo_n "checking for $ac_word... " >&6; }
3205 if ${ac_cv_prog_CC+:} false; then :
3206 $as_echo_n "(cached) " >&6
3207 else
3208 if test -n "$CC"; then
3209 ac_cv_prog_CC="$CC" # Let the user override the test.
3210 else
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212 for as_dir in $PATH
3213 do
3214 IFS=$as_save_IFS
3215 test -z "$as_dir" && as_dir=.
3216 for ac_exec_ext in '' $ac_executable_extensions; do
3217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3218 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3220 break 2
3221 fi
3222 done
3223 done
3224 IFS=$as_save_IFS
3225
3226 fi
3227 fi
3228 CC=$ac_cv_prog_CC
3229 if test -n "$CC"; then
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3231 $as_echo "$CC" >&6; }
3232 else
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 $as_echo "no" >&6; }
3235 fi
3236
3237
3238 test -n "$CC" && break
3239 done
3240 fi
3241 if test -z "$CC"; then
3242 ac_ct_CC=$CC
3243 for ac_prog in cl.exe
3244 do
3245 # Extract the first word of "$ac_prog", so it can be a program name with args.
3246 set dummy $ac_prog; ac_word=$2
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3248 $as_echo_n "checking for $ac_word... " >&6; }
3249 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3250 $as_echo_n "(cached) " >&6
3251 else
3252 if test -n "$ac_ct_CC"; then
3253 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3254 else
3255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256 for as_dir in $PATH
3257 do
3258 IFS=$as_save_IFS
3259 test -z "$as_dir" && as_dir=.
3260 for ac_exec_ext in '' $ac_executable_extensions; do
3261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3262 ac_cv_prog_ac_ct_CC="$ac_prog"
3263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3264 break 2
3265 fi
3266 done
3267 done
3268 IFS=$as_save_IFS
3269
3270 fi
3271 fi
3272 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3273 if test -n "$ac_ct_CC"; then
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3275 $as_echo "$ac_ct_CC" >&6; }
3276 else
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278 $as_echo "no" >&6; }
3279 fi
3280
3281
3282 test -n "$ac_ct_CC" && break
3283 done
3284
3285 if test "x$ac_ct_CC" = x; then
3286 CC=""
3287 else
3288 case $cross_compiling:$ac_tool_warned in
3289 yes:)
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3292 ac_tool_warned=yes ;;
3293 esac
3294 CC=$ac_ct_CC
3295 fi
3296 fi
3297
3298 fi
3299
3300
3301 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3303 as_fn_error $? "no acceptable C compiler found in \$PATH
3304 See \`config.log' for more details" "$LINENO" 5; }
3305
3306 # Provide some information about the compiler.
3307 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3308 set X $ac_compile
3309 ac_compiler=$2
3310 for ac_option in --version -v -V -qversion; do
3311 { { ac_try="$ac_compiler $ac_option >&5"
3312 case "(($ac_try" in
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3315 esac
3316 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3317 $as_echo "$ac_try_echo"; } >&5
3318 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3319 ac_status=$?
3320 if test -s conftest.err; then
3321 sed '10a\
3322 ... rest of stderr output deleted ...
3323 10q' conftest.err >conftest.er1
3324 cat conftest.er1 >&5
3325 fi
3326 rm -f conftest.er1 conftest.err
3327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3328 test $ac_status = 0; }
3329 done
3330
3331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332 /* end confdefs.h. */
3333
3334 int
3335 main ()
3336 {
3337
3338 ;
3339 return 0;
3340 }
3341 _ACEOF
3342 ac_clean_files_save=$ac_clean_files
3343 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3344 # Try to create an executable without -o first, disregard a.out.
3345 # It will help us diagnose broken compilers, and finding out an intuition
3346 # of exeext.
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3348 $as_echo_n "checking whether the C compiler works... " >&6; }
3349 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3350
3351 # The possible output files:
3352 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3353
3354 ac_rmfiles=
3355 for ac_file in $ac_files
3356 do
3357 case $ac_file in
3358 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3359 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3360 esac
3361 done
3362 rm -f $ac_rmfiles
3363
3364 if { { ac_try="$ac_link_default"
3365 case "(($ac_try" in
3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3368 esac
3369 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3370 $as_echo "$ac_try_echo"; } >&5
3371 (eval "$ac_link_default") 2>&5
3372 ac_status=$?
3373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3374 test $ac_status = 0; }; then :
3375 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3376 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3377 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3378 # so that the user can short-circuit this test for compilers unknown to
3379 # Autoconf.
3380 for ac_file in $ac_files ''
3381 do
3382 test -f "$ac_file" || continue
3383 case $ac_file in
3384 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3385 ;;
3386 [ab].out )
3387 # We found the default executable, but exeext='' is most
3388 # certainly right.
3389 break;;
3390 *.* )
3391 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3392 then :; else
3393 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3394 fi
3395 # We set ac_cv_exeext here because the later test for it is not
3396 # safe: cross compilers may not add the suffix if given an `-o'
3397 # argument, so we may need to know it at that point already.
3398 # Even if this section looks crufty: it has the advantage of
3399 # actually working.
3400 break;;
3401 * )
3402 break;;
3403 esac
3404 done
3405 test "$ac_cv_exeext" = no && ac_cv_exeext=
3406
3407 else
3408 ac_file=''
3409 fi
3410 if test -z "$ac_file"; then :
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3412 $as_echo "no" >&6; }
3413 $as_echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3415
3416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3418 as_fn_error 77 "C compiler cannot create executables
3419 See \`config.log' for more details" "$LINENO" 5; }
3420 else
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3422 $as_echo "yes" >&6; }
3423 fi
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3425 $as_echo_n "checking for C compiler default output file name... " >&6; }
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3427 $as_echo "$ac_file" >&6; }
3428 ac_exeext=$ac_cv_exeext
3429
3430 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3431 ac_clean_files=$ac_clean_files_save
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3433 $as_echo_n "checking for suffix of executables... " >&6; }
3434 if { { ac_try="$ac_link"
3435 case "(($ac_try" in
3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437 *) ac_try_echo=$ac_try;;
3438 esac
3439 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3440 $as_echo "$ac_try_echo"; } >&5
3441 (eval "$ac_link") 2>&5
3442 ac_status=$?
3443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3444 test $ac_status = 0; }; then :
3445 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3446 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3447 # work properly (i.e., refer to `conftest.exe'), while it won't with
3448 # `rm'.
3449 for ac_file in conftest.exe conftest conftest.*; do
3450 test -f "$ac_file" || continue
3451 case $ac_file in
3452 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3453 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3454 break;;
3455 * ) break;;
3456 esac
3457 done
3458 else
3459 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3461 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3462 See \`config.log' for more details" "$LINENO" 5; }
3463 fi
3464 rm -f conftest conftest$ac_cv_exeext
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3466 $as_echo "$ac_cv_exeext" >&6; }
3467
3468 rm -f conftest.$ac_ext
3469 EXEEXT=$ac_cv_exeext
3470 ac_exeext=$EXEEXT
3471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3472 /* end confdefs.h. */
3473 #include <stdio.h>
3474 int
3475 main ()
3476 {
3477 FILE *f = fopen ("conftest.out", "w");
3478 return ferror (f) || fclose (f) != 0;
3479
3480 ;
3481 return 0;
3482 }
3483 _ACEOF
3484 ac_clean_files="$ac_clean_files conftest.out"
3485 # Check that the compiler produces executables we can run. If not, either
3486 # the compiler is broken, or we cross compile.
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3488 $as_echo_n "checking whether we are cross compiling... " >&6; }
3489 if test "$cross_compiling" != yes; then
3490 { { ac_try="$ac_link"
3491 case "(($ac_try" in
3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493 *) ac_try_echo=$ac_try;;
3494 esac
3495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3496 $as_echo "$ac_try_echo"; } >&5
3497 (eval "$ac_link") 2>&5
3498 ac_status=$?
3499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3500 test $ac_status = 0; }
3501 if { ac_try='./conftest$ac_cv_exeext'
3502 { { case "(($ac_try" in
3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3505 esac
3506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3507 $as_echo "$ac_try_echo"; } >&5
3508 (eval "$ac_try") 2>&5
3509 ac_status=$?
3510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3511 test $ac_status = 0; }; }; then
3512 cross_compiling=no
3513 else
3514 if test "$cross_compiling" = maybe; then
3515 cross_compiling=yes
3516 else
3517 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3519 as_fn_error $? "cannot run C compiled programs.
3520 If you meant to cross compile, use \`--host'.
3521 See \`config.log' for more details" "$LINENO" 5; }
3522 fi
3523 fi
3524 fi
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3526 $as_echo "$cross_compiling" >&6; }
3527
3528 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3529 ac_clean_files=$ac_clean_files_save
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3531 $as_echo_n "checking for suffix of object files... " >&6; }
3532 if ${ac_cv_objext+:} false; then :
3533 $as_echo_n "(cached) " >&6
3534 else
3535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536 /* end confdefs.h. */
3537
3538 int
3539 main ()
3540 {
3541
3542 ;
3543 return 0;
3544 }
3545 _ACEOF
3546 rm -f conftest.o conftest.obj
3547 if { { ac_try="$ac_compile"
3548 case "(($ac_try" in
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3551 esac
3552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3553 $as_echo "$ac_try_echo"; } >&5
3554 (eval "$ac_compile") 2>&5
3555 ac_status=$?
3556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3557 test $ac_status = 0; }; then :
3558 for ac_file in conftest.o conftest.obj conftest.*; do
3559 test -f "$ac_file" || continue;
3560 case $ac_file in
3561 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3562 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3563 break;;
3564 esac
3565 done
3566 else
3567 $as_echo "$as_me: failed program was:" >&5
3568 sed 's/^/| /' conftest.$ac_ext >&5
3569
3570 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3572 as_fn_error $? "cannot compute suffix of object files: cannot compile
3573 See \`config.log' for more details" "$LINENO" 5; }
3574 fi
3575 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3576 fi
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3578 $as_echo "$ac_cv_objext" >&6; }
3579 OBJEXT=$ac_cv_objext
3580 ac_objext=$OBJEXT
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3582 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3583 if ${ac_cv_c_compiler_gnu+:} false; then :
3584 $as_echo_n "(cached) " >&6
3585 else
3586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587 /* end confdefs.h. */
3588
3589 int
3590 main ()
3591 {
3592 #ifndef __GNUC__
3593 choke me
3594 #endif
3595
3596 ;
3597 return 0;
3598 }
3599 _ACEOF
3600 if ac_fn_c_try_compile "$LINENO"; then :
3601 ac_compiler_gnu=yes
3602 else
3603 ac_compiler_gnu=no
3604 fi
3605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3606 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3607
3608 fi
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3610 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3611 if test $ac_compiler_gnu = yes; then
3612 GCC=yes
3613 else
3614 GCC=
3615 fi
3616 ac_test_CFLAGS=${CFLAGS+set}
3617 ac_save_CFLAGS=$CFLAGS
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3619 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3620 if ${ac_cv_prog_cc_g+:} false; then :
3621 $as_echo_n "(cached) " >&6
3622 else
3623 ac_save_c_werror_flag=$ac_c_werror_flag
3624 ac_c_werror_flag=yes
3625 ac_cv_prog_cc_g=no
3626 CFLAGS="-g"
3627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3628 /* end confdefs.h. */
3629
3630 int
3631 main ()
3632 {
3633
3634 ;
3635 return 0;
3636 }
3637 _ACEOF
3638 if ac_fn_c_try_compile "$LINENO"; then :
3639 ac_cv_prog_cc_g=yes
3640 else
3641 CFLAGS=""
3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643 /* end confdefs.h. */
3644
3645 int
3646 main ()
3647 {
3648
3649 ;
3650 return 0;
3651 }
3652 _ACEOF
3653 if ac_fn_c_try_compile "$LINENO"; then :
3654
3655 else
3656 ac_c_werror_flag=$ac_save_c_werror_flag
3657 CFLAGS="-g"
3658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659 /* end confdefs.h. */
3660
3661 int
3662 main ()
3663 {
3664
3665 ;
3666 return 0;
3667 }
3668 _ACEOF
3669 if ac_fn_c_try_compile "$LINENO"; then :
3670 ac_cv_prog_cc_g=yes
3671 fi
3672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3673 fi
3674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3675 fi
3676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3677 ac_c_werror_flag=$ac_save_c_werror_flag
3678 fi
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3680 $as_echo "$ac_cv_prog_cc_g" >&6; }
3681 if test "$ac_test_CFLAGS" = set; then
3682 CFLAGS=$ac_save_CFLAGS
3683 elif test $ac_cv_prog_cc_g = yes; then
3684 if test "$GCC" = yes; then
3685 CFLAGS="-g -O2"
3686 else
3687 CFLAGS="-g"
3688 fi
3689 else
3690 if test "$GCC" = yes; then
3691 CFLAGS="-O2"
3692 else
3693 CFLAGS=
3694 fi
3695 fi
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3697 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3698 if ${ac_cv_prog_cc_c89+:} false; then :
3699 $as_echo_n "(cached) " >&6
3700 else
3701 ac_cv_prog_cc_c89=no
3702 ac_save_CC=$CC
3703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3704 /* end confdefs.h. */
3705 #include <stdarg.h>
3706 #include <stdio.h>
3707 struct stat;
3708 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3709 struct buf { int x; };
3710 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3711 static char *e (p, i)
3712 char **p;
3713 int i;
3714 {
3715 return p[i];
3716 }
3717 static char *f (char * (*g) (char **, int), char **p, ...)
3718 {
3719 char *s;
3720 va_list v;
3721 va_start (v,p);
3722 s = g (p, va_arg (v,int));
3723 va_end (v);
3724 return s;
3725 }
3726
3727 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3728 function prototypes and stuff, but not '\xHH' hex character constants.
3729 These don't provoke an error unfortunately, instead are silently treated
3730 as 'x'. The following induces an error, until -std is added to get
3731 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3732 array size at least. It's necessary to write '\x00'==0 to get something
3733 that's true only with -std. */
3734 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3735
3736 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3737 inside strings and character constants. */
3738 #define FOO(x) 'x'
3739 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3740
3741 int test (int i, double x);
3742 struct s1 {int (*f) (int a);};
3743 struct s2 {int (*f) (double a);};
3744 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3745 int argc;
3746 char **argv;
3747 int
3748 main ()
3749 {
3750 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3751 ;
3752 return 0;
3753 }
3754 _ACEOF
3755 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3756 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3757 do
3758 CC="$ac_save_CC $ac_arg"
3759 if ac_fn_c_try_compile "$LINENO"; then :
3760 ac_cv_prog_cc_c89=$ac_arg
3761 fi
3762 rm -f core conftest.err conftest.$ac_objext
3763 test "x$ac_cv_prog_cc_c89" != "xno" && break
3764 done
3765 rm -f conftest.$ac_ext
3766 CC=$ac_save_CC
3767
3768 fi
3769 # AC_CACHE_VAL
3770 case "x$ac_cv_prog_cc_c89" in
3771 x)
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3773 $as_echo "none needed" >&6; } ;;
3774 xno)
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3776 $as_echo "unsupported" >&6; } ;;
3777 *)
3778 CC="$CC $ac_cv_prog_cc_c89"
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3780 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3781 esac
3782 if test "x$ac_cv_prog_cc_c89" != xno; then :
3783
3784 fi
3785
3786 ac_ext=c
3787 ac_cpp='$CPP $CPPFLAGS'
3788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3791
3792 ac_ext=c
3793 ac_cpp='$CPP $CPPFLAGS'
3794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3798 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3799 if ${am_cv_prog_cc_c_o+:} false; then :
3800 $as_echo_n "(cached) " >&6
3801 else
3802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3803 /* end confdefs.h. */
3804
3805 int
3806 main ()
3807 {
3808
3809 ;
3810 return 0;
3811 }
3812 _ACEOF
3813 # Make sure it works both with $CC and with simple cc.
3814 # Following AC_PROG_CC_C_O, we do the test twice because some
3815 # compilers refuse to overwrite an existing .o file with -o,
3816 # though they will create one.
3817 am_cv_prog_cc_c_o=yes
3818 for am_i in 1 2; do
3819 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3820 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3821 ac_status=$?
3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 (exit $ac_status); } \
3824 && test -f conftest2.$ac_objext; then
3825 : OK
3826 else
3827 am_cv_prog_cc_c_o=no
3828 break
3829 fi
3830 done
3831 rm -f core conftest*
3832 unset am_i
3833 fi
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3835 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3836 if test "$am_cv_prog_cc_c_o" != yes; then
3837 # Losing compiler, so override with the script.
3838 # FIXME: It is wrong to rewrite CC.
3839 # But if we don't then we get into trouble of one sort or another.
3840 # A longer-term fix would be to have automake use am__CC in this case,
3841 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3842 CC="$am_aux_dir/compile $CC"
3843 fi
3844 ac_ext=c
3845 ac_cpp='$CPP $CPPFLAGS'
3846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3849
3850
3851 depcc="$CC" am_compiler_list=
3852
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3854 $as_echo_n "checking dependency style of $depcc... " >&6; }
3855 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3856 $as_echo_n "(cached) " >&6
3857 else
3858 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3859 # We make a subdir and do the tests there. Otherwise we can end up
3860 # making bogus files that we don't know about and never remove. For
3861 # instance it was reported that on HP-UX the gcc test will end up
3862 # making a dummy file named 'D' -- because '-MD' means "put the output
3863 # in D".
3864 rm -rf conftest.dir
3865 mkdir conftest.dir
3866 # Copy depcomp to subdir because otherwise we won't find it if we're
3867 # using a relative directory.
3868 cp "$am_depcomp" conftest.dir
3869 cd conftest.dir
3870 # We will build objects and dependencies in a subdirectory because
3871 # it helps to detect inapplicable dependency modes. For instance
3872 # both Tru64's cc and ICC support -MD to output dependencies as a
3873 # side effect of compilation, but ICC will put the dependencies in
3874 # the current directory while Tru64 will put them in the object
3875 # directory.
3876 mkdir sub
3877
3878 am_cv_CC_dependencies_compiler_type=none
3879 if test "$am_compiler_list" = ""; then
3880 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3881 fi
3882 am__universal=false
3883 case " $depcc " in #(
3884 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3885 esac
3886
3887 for depmode in $am_compiler_list; do
3888 # Setup a source with many dependencies, because some compilers
3889 # like to wrap large dependency lists on column 80 (with \), and
3890 # we should not choose a depcomp mode which is confused by this.
3891 #
3892 # We need to recreate these files for each test, as the compiler may
3893 # overwrite some of them when testing with obscure command lines.
3894 # This happens at least with the AIX C compiler.
3895 : > sub/conftest.c
3896 for i in 1 2 3 4 5 6; do
3897 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3898 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3899 # Solaris 10 /bin/sh.
3900 echo '/* dummy */' > sub/conftst$i.h
3901 done
3902 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3903
3904 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3905 # mode. It turns out that the SunPro C++ compiler does not properly
3906 # handle '-M -o', and we need to detect this. Also, some Intel
3907 # versions had trouble with output in subdirs.
3908 am__obj=sub/conftest.${OBJEXT-o}
3909 am__minus_obj="-o $am__obj"
3910 case $depmode in
3911 gcc)
3912 # This depmode causes a compiler race in universal mode.
3913 test "$am__universal" = false || continue
3914 ;;
3915 nosideeffect)
3916 # After this tag, mechanisms are not by side-effect, so they'll
3917 # only be used when explicitly requested.
3918 if test "x$enable_dependency_tracking" = xyes; then
3919 continue
3920 else
3921 break
3922 fi
3923 ;;
3924 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3925 # This compiler won't grok '-c -o', but also, the minuso test has
3926 # not run yet. These depmodes are late enough in the game, and
3927 # so weak that their functioning should not be impacted.
3928 am__obj=conftest.${OBJEXT-o}
3929 am__minus_obj=
3930 ;;
3931 none) break ;;
3932 esac
3933 if depmode=$depmode \
3934 source=sub/conftest.c object=$am__obj \
3935 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3936 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3937 >/dev/null 2>conftest.err &&
3938 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3939 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3940 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3941 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3942 # icc doesn't choke on unknown options, it will just issue warnings
3943 # or remarks (even with -Werror). So we grep stderr for any message
3944 # that says an option was ignored or not supported.
3945 # When given -MP, icc 7.0 and 7.1 complain thusly:
3946 # icc: Command line warning: ignoring option '-M'; no argument required
3947 # The diagnosis changed in icc 8.0:
3948 # icc: Command line remark: option '-MP' not supported
3949 if (grep 'ignoring option' conftest.err ||
3950 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3951 am_cv_CC_dependencies_compiler_type=$depmode
3952 break
3953 fi
3954 fi
3955 done
3956
3957 cd ..
3958 rm -rf conftest.dir
3959 else
3960 am_cv_CC_dependencies_compiler_type=none
3961 fi
3962
3963 fi
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3965 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3966 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3967
3968 if
3969 test "x$enable_dependency_tracking" != xno \
3970 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3971 am__fastdepCC_TRUE=
3972 am__fastdepCC_FALSE='#'
3973 else
3974 am__fastdepCC_TRUE='#'
3975 am__fastdepCC_FALSE=
3976 fi
3977
3978
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3980 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3981 if ${ac_cv_prog_cc_c99+:} false; then :
3982 $as_echo_n "(cached) " >&6
3983 else
3984 ac_cv_prog_cc_c99=no
3985 ac_save_CC=$CC
3986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h. */
3988 #include <stdarg.h>
3989 #include <stdbool.h>
3990 #include <stdlib.h>
3991 #include <wchar.h>
3992 #include <stdio.h>
3993
3994 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3995 #define debug(...) fprintf (stderr, __VA_ARGS__)
3996 #define showlist(...) puts (#__VA_ARGS__)
3997 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3998 static void
3999 test_varargs_macros (void)
4000 {
4001 int x = 1234;
4002 int y = 5678;
4003 debug ("Flag");
4004 debug ("X = %d\n", x);
4005 showlist (The first, second, and third items.);
4006 report (x>y, "x is %d but y is %d", x, y);
4007 }
4008
4009 // Check long long types.
4010 #define BIG64 18446744073709551615ull
4011 #define BIG32 4294967295ul
4012 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4013 #if !BIG_OK
4014 your preprocessor is broken;
4015 #endif
4016 #if BIG_OK
4017 #else
4018 your preprocessor is broken;
4019 #endif
4020 static long long int bignum = -9223372036854775807LL;
4021 static unsigned long long int ubignum = BIG64;
4022
4023 struct incomplete_array
4024 {
4025 int datasize;
4026 double data[];
4027 };
4028
4029 struct named_init {
4030 int number;
4031 const wchar_t *name;
4032 double average;
4033 };
4034
4035 typedef const char *ccp;
4036
4037 static inline int
4038 test_restrict (ccp restrict text)
4039 {
4040 // See if C++-style comments work.
4041 // Iterate through items via the restricted pointer.
4042 // Also check for declarations in for loops.
4043 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4044 continue;
4045 return 0;
4046 }
4047
4048 // Check varargs and va_copy.
4049 static void
4050 test_varargs (const char *format, ...)
4051 {
4052 va_list args;
4053 va_start (args, format);
4054 va_list args_copy;
4055 va_copy (args_copy, args);
4056
4057 const char *str;
4058 int number;
4059 float fnumber;
4060
4061 while (*format)
4062 {
4063 switch (*format++)
4064 {
4065 case 's': // string
4066 str = va_arg (args_copy, const char *);
4067 break;
4068 case 'd': // int
4069 number = va_arg (args_copy, int);
4070 break;
4071 case 'f': // float
4072 fnumber = va_arg (args_copy, double);
4073 break;
4074 default:
4075 break;
4076 }
4077 }
4078 va_end (args_copy);
4079 va_end (args);
4080 }
4081
4082 int
4083 main ()
4084 {
4085
4086 // Check bool.
4087 _Bool success = false;
4088
4089 // Check restrict.
4090 if (test_restrict ("String literal") == 0)
4091 success = true;
4092 char *restrict newvar = "Another string";
4093
4094 // Check varargs.
4095 test_varargs ("s, d' f .", "string", 65, 34.234);
4096 test_varargs_macros ();
4097
4098 // Check flexible array members.
4099 struct incomplete_array *ia =
4100 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4101 ia->datasize = 10;
4102 for (int i = 0; i < ia->datasize; ++i)
4103 ia->data[i] = i * 1.234;
4104
4105 // Check named initializers.
4106 struct named_init ni = {
4107 .number = 34,
4108 .name = L"Test wide string",
4109 .average = 543.34343,
4110 };
4111
4112 ni.number = 58;
4113
4114 int dynamic_array[ni.number];
4115 dynamic_array[ni.number - 1] = 543;
4116
4117 // work around unused variable warnings
4118 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4119 || dynamic_array[ni.number - 1] != 543);
4120
4121 ;
4122 return 0;
4123 }
4124 _ACEOF
4125 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4126 do
4127 CC="$ac_save_CC $ac_arg"
4128 if ac_fn_c_try_compile "$LINENO"; then :
4129 ac_cv_prog_cc_c99=$ac_arg
4130 fi
4131 rm -f core conftest.err conftest.$ac_objext
4132 test "x$ac_cv_prog_cc_c99" != "xno" && break
4133 done
4134 rm -f conftest.$ac_ext
4135 CC=$ac_save_CC
4136
4137 fi
4138 # AC_CACHE_VAL
4139 case "x$ac_cv_prog_cc_c99" in
4140 x)
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4142 $as_echo "none needed" >&6; } ;;
4143 xno)
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4145 $as_echo "unsupported" >&6; } ;;
4146 *)
4147 CC="$CC $ac_cv_prog_cc_c99"
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4149 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4150 esac
4151 if test "x$ac_cv_prog_cc_c99" != xno; then :
4152
4153 fi
4154
4155
4156
4157 ac_ext=c
4158 ac_cpp='$CPP $CPPFLAGS'
4159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4163 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4164 # On Suns, sometimes $CPP names a directory.
4165 if test -n "$CPP" && test -d "$CPP"; then
4166 CPP=
4167 fi
4168 if test -z "$CPP"; then
4169 if ${ac_cv_prog_CPP+:} false; then :
4170 $as_echo_n "(cached) " >&6
4171 else
4172 # Double quotes because CPP needs to be expanded
4173 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4174 do
4175 ac_preproc_ok=false
4176 for ac_c_preproc_warn_flag in '' yes
4177 do
4178 # Use a header file that comes with gcc, so configuring glibc
4179 # with a fresh cross-compiler works.
4180 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4181 # <limits.h> exists even on freestanding compilers.
4182 # On the NeXT, cc -E runs the code through the compiler's parser,
4183 # not just through cpp. "Syntax error" is here to catch this case.
4184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h. */
4186 #ifdef __STDC__
4187 # include <limits.h>
4188 #else
4189 # include <assert.h>
4190 #endif
4191 Syntax error
4192 _ACEOF
4193 if ac_fn_c_try_cpp "$LINENO"; then :
4194
4195 else
4196 # Broken: fails on valid input.
4197 continue
4198 fi
4199 rm -f conftest.err conftest.i conftest.$ac_ext
4200
4201 # OK, works on sane cases. Now check whether nonexistent headers
4202 # can be detected and how.
4203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204 /* end confdefs.h. */
4205 #include <ac_nonexistent.h>
4206 _ACEOF
4207 if ac_fn_c_try_cpp "$LINENO"; then :
4208 # Broken: success on invalid input.
4209 continue
4210 else
4211 # Passes both tests.
4212 ac_preproc_ok=:
4213 break
4214 fi
4215 rm -f conftest.err conftest.i conftest.$ac_ext
4216
4217 done
4218 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4219 rm -f conftest.i conftest.err conftest.$ac_ext
4220 if $ac_preproc_ok; then :
4221 break
4222 fi
4223
4224 done
4225 ac_cv_prog_CPP=$CPP
4226
4227 fi
4228 CPP=$ac_cv_prog_CPP
4229 else
4230 ac_cv_prog_CPP=$CPP
4231 fi
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4233 $as_echo "$CPP" >&6; }
4234 ac_preproc_ok=false
4235 for ac_c_preproc_warn_flag in '' yes
4236 do
4237 # Use a header file that comes with gcc, so configuring glibc
4238 # with a fresh cross-compiler works.
4239 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4240 # <limits.h> exists even on freestanding compilers.
4241 # On the NeXT, cc -E runs the code through the compiler's parser,
4242 # not just through cpp. "Syntax error" is here to catch this case.
4243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4244 /* end confdefs.h. */
4245 #ifdef __STDC__
4246 # include <limits.h>
4247 #else
4248 # include <assert.h>
4249 #endif
4250 Syntax error
4251 _ACEOF
4252 if ac_fn_c_try_cpp "$LINENO"; then :
4253
4254 else
4255 # Broken: fails on valid input.
4256 continue
4257 fi
4258 rm -f conftest.err conftest.i conftest.$ac_ext
4259
4260 # OK, works on sane cases. Now check whether nonexistent headers
4261 # can be detected and how.
4262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263 /* end confdefs.h. */
4264 #include <ac_nonexistent.h>
4265 _ACEOF
4266 if ac_fn_c_try_cpp "$LINENO"; then :
4267 # Broken: success on invalid input.
4268 continue
4269 else
4270 # Passes both tests.
4271 ac_preproc_ok=:
4272 break
4273 fi
4274 rm -f conftest.err conftest.i conftest.$ac_ext
4275
4276 done
4277 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4278 rm -f conftest.i conftest.err conftest.$ac_ext
4279 if $ac_preproc_ok; then :
4280
4281 else
4282 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4283 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4284 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4285 See \`config.log' for more details" "$LINENO" 5; }
4286 fi
4287
4288 ac_ext=c
4289 ac_cpp='$CPP $CPPFLAGS'
4290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4293
4294
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4296 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4297 if ${ac_cv_path_GREP+:} false; then :
4298 $as_echo_n "(cached) " >&6
4299 else
4300 if test -z "$GREP"; then
4301 ac_path_GREP_found=false
4302 # Loop through the user's path and test for each of PROGNAME-LIST
4303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4305 do
4306 IFS=$as_save_IFS
4307 test -z "$as_dir" && as_dir=.
4308 for ac_prog in grep ggrep; do
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4311 as_fn_executable_p "$ac_path_GREP" || continue
4312 # Check for GNU ac_path_GREP and select it if it is found.
4313 # Check for GNU $ac_path_GREP
4314 case `"$ac_path_GREP" --version 2>&1` in
4315 *GNU*)
4316 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4317 *)
4318 ac_count=0
4319 $as_echo_n 0123456789 >"conftest.in"
4320 while :
4321 do
4322 cat "conftest.in" "conftest.in" >"conftest.tmp"
4323 mv "conftest.tmp" "conftest.in"
4324 cp "conftest.in" "conftest.nl"
4325 $as_echo 'GREP' >> "conftest.nl"
4326 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4327 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4328 as_fn_arith $ac_count + 1 && ac_count=$as_val
4329 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4330 # Best one so far, save it but keep looking for a better one
4331 ac_cv_path_GREP="$ac_path_GREP"
4332 ac_path_GREP_max=$ac_count
4333 fi
4334 # 10*(2^10) chars as input seems more than enough
4335 test $ac_count -gt 10 && break
4336 done
4337 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4338 esac
4339
4340 $ac_path_GREP_found && break 3
4341 done
4342 done
4343 done
4344 IFS=$as_save_IFS
4345 if test -z "$ac_cv_path_GREP"; then
4346 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4347 fi
4348 else
4349 ac_cv_path_GREP=$GREP
4350 fi
4351
4352 fi
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4354 $as_echo "$ac_cv_path_GREP" >&6; }
4355 GREP="$ac_cv_path_GREP"
4356
4357
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4359 $as_echo_n "checking for egrep... " >&6; }
4360 if ${ac_cv_path_EGREP+:} false; then :
4361 $as_echo_n "(cached) " >&6
4362 else
4363 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4364 then ac_cv_path_EGREP="$GREP -E"
4365 else
4366 if test -z "$EGREP"; then
4367 ac_path_EGREP_found=false
4368 # Loop through the user's path and test for each of PROGNAME-LIST
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4371 do
4372 IFS=$as_save_IFS
4373 test -z "$as_dir" && as_dir=.
4374 for ac_prog in egrep; do
4375 for ac_exec_ext in '' $ac_executable_extensions; do
4376 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4377 as_fn_executable_p "$ac_path_EGREP" || continue
4378 # Check for GNU ac_path_EGREP and select it if it is found.
4379 # Check for GNU $ac_path_EGREP
4380 case `"$ac_path_EGREP" --version 2>&1` in
4381 *GNU*)
4382 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4383 *)
4384 ac_count=0
4385 $as_echo_n 0123456789 >"conftest.in"
4386 while :
4387 do
4388 cat "conftest.in" "conftest.in" >"conftest.tmp"
4389 mv "conftest.tmp" "conftest.in"
4390 cp "conftest.in" "conftest.nl"
4391 $as_echo 'EGREP' >> "conftest.nl"
4392 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4393 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4394 as_fn_arith $ac_count + 1 && ac_count=$as_val
4395 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4396 # Best one so far, save it but keep looking for a better one
4397 ac_cv_path_EGREP="$ac_path_EGREP"
4398 ac_path_EGREP_max=$ac_count
4399 fi
4400 # 10*(2^10) chars as input seems more than enough
4401 test $ac_count -gt 10 && break
4402 done
4403 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4404 esac
4405
4406 $ac_path_EGREP_found && break 3
4407 done
4408 done
4409 done
4410 IFS=$as_save_IFS
4411 if test -z "$ac_cv_path_EGREP"; then
4412 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4413 fi
4414 else
4415 ac_cv_path_EGREP=$EGREP
4416 fi
4417
4418 fi
4419 fi
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4421 $as_echo "$ac_cv_path_EGREP" >&6; }
4422 EGREP="$ac_cv_path_EGREP"
4423
4424
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4426 $as_echo_n "checking for ANSI C header files... " >&6; }
4427 if ${ac_cv_header_stdc+:} false; then :
4428 $as_echo_n "(cached) " >&6
4429 else
4430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4431 /* end confdefs.h. */
4432 #include <stdlib.h>
4433 #include <stdarg.h>
4434 #include <string.h>
4435 #include <float.h>
4436
4437 int
4438 main ()
4439 {
4440
4441 ;
4442 return 0;
4443 }
4444 _ACEOF
4445 if ac_fn_c_try_compile "$LINENO"; then :
4446 ac_cv_header_stdc=yes
4447 else
4448 ac_cv_header_stdc=no
4449 fi
4450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4451
4452 if test $ac_cv_header_stdc = yes; then
4453 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h. */
4456 #include <string.h>
4457
4458 _ACEOF
4459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4460 $EGREP "memchr" >/dev/null 2>&1; then :
4461
4462 else
4463 ac_cv_header_stdc=no
4464 fi
4465 rm -f conftest*
4466
4467 fi
4468
4469 if test $ac_cv_header_stdc = yes; then
4470 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4472 /* end confdefs.h. */
4473 #include <stdlib.h>
4474
4475 _ACEOF
4476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4477 $EGREP "free" >/dev/null 2>&1; then :
4478
4479 else
4480 ac_cv_header_stdc=no
4481 fi
4482 rm -f conftest*
4483
4484 fi
4485
4486 if test $ac_cv_header_stdc = yes; then
4487 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4488 if test "$cross_compiling" = yes; then :
4489 :
4490 else
4491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492 /* end confdefs.h. */
4493 #include <ctype.h>
4494 #include <stdlib.h>
4495 #if ((' ' & 0x0FF) == 0x020)
4496 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4497 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4498 #else
4499 # define ISLOWER(c) \
4500 (('a' <= (c) && (c) <= 'i') \
4501 || ('j' <= (c) && (c) <= 'r') \
4502 || ('s' <= (c) && (c) <= 'z'))
4503 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4504 #endif
4505
4506 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4507 int
4508 main ()
4509 {
4510 int i;
4511 for (i = 0; i < 256; i++)
4512 if (XOR (islower (i), ISLOWER (i))
4513 || toupper (i) != TOUPPER (i))
4514 return 2;
4515 return 0;
4516 }
4517 _ACEOF
4518 if ac_fn_c_try_run "$LINENO"; then :
4519
4520 else
4521 ac_cv_header_stdc=no
4522 fi
4523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4524 conftest.$ac_objext conftest.beam conftest.$ac_ext
4525 fi
4526
4527 fi
4528 fi
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4530 $as_echo "$ac_cv_header_stdc" >&6; }
4531 if test $ac_cv_header_stdc = yes; then
4532
4533 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4534
4535 fi
4536
4537 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4538 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4539 inttypes.h stdint.h unistd.h
4540 do :
4541 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4542 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4543 "
4544 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4545 cat >>confdefs.h <<_ACEOF
4546 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4547 _ACEOF
4548
4549 fi
4550
4551 done
4552
4553
4554
4555
4556
4557
4558 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4559 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4560 CLANGCC="yes"
4561 else
4562 CLANGCC="no"
4563 fi
4564
4565 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4566 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4567 INTELCC="yes"
4568 else
4569 INTELCC="no"
4570 fi
4571
4572 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4573 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4574 SUNCC="yes"
4575 else
4576 SUNCC="no"
4577 fi
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4588 if test -n "$ac_tool_prefix"; then
4589 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4590 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4592 $as_echo_n "checking for $ac_word... " >&6; }
4593 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4594 $as_echo_n "(cached) " >&6
4595 else
4596 case $PKG_CONFIG in
4597 [\\/]* | ?:[\\/]*)
4598 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4599 ;;
4600 *)
4601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602 for as_dir in $PATH
4603 do
4604 IFS=$as_save_IFS
4605 test -z "$as_dir" && as_dir=.
4606 for ac_exec_ext in '' $ac_executable_extensions; do
4607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4608 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4610 break 2
4611 fi
4612 done
4613 done
4614 IFS=$as_save_IFS
4615
4616 ;;
4617 esac
4618 fi
4619 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4620 if test -n "$PKG_CONFIG"; then
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4622 $as_echo "$PKG_CONFIG" >&6; }
4623 else
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4625 $as_echo "no" >&6; }
4626 fi
4627
4628
4629 fi
4630 if test -z "$ac_cv_path_PKG_CONFIG"; then
4631 ac_pt_PKG_CONFIG=$PKG_CONFIG
4632 # Extract the first word of "pkg-config", so it can be a program name with args.
4633 set dummy pkg-config; ac_word=$2
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4635 $as_echo_n "checking for $ac_word... " >&6; }
4636 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4637 $as_echo_n "(cached) " >&6
4638 else
4639 case $ac_pt_PKG_CONFIG in
4640 [\\/]* | ?:[\\/]*)
4641 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4642 ;;
4643 *)
4644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645 for as_dir in $PATH
4646 do
4647 IFS=$as_save_IFS
4648 test -z "$as_dir" && as_dir=.
4649 for ac_exec_ext in '' $ac_executable_extensions; do
4650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4651 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4653 break 2
4654 fi
4655 done
4656 done
4657 IFS=$as_save_IFS
4658
4659 ;;
4660 esac
4661 fi
4662 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4663 if test -n "$ac_pt_PKG_CONFIG"; then
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4665 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4666 else
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4668 $as_echo "no" >&6; }
4669 fi
4670
4671 if test "x$ac_pt_PKG_CONFIG" = x; then
4672 PKG_CONFIG=""
4673 else
4674 case $cross_compiling:$ac_tool_warned in
4675 yes:)
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4677 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4678 ac_tool_warned=yes ;;
4679 esac
4680 PKG_CONFIG=$ac_pt_PKG_CONFIG
4681 fi
4682 else
4683 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4684 fi
4685
4686 fi
4687 if test -n "$PKG_CONFIG"; then
4688 _pkg_min_version=0.9.0
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4690 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4691 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4693 $as_echo "yes" >&6; }
4694 else
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4696 $as_echo "no" >&6; }
4697 PKG_CONFIG=""
4698 fi
4699 fi
4700 # Make sure we can run config.sub.
4701 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4702 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4703
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4705 $as_echo_n "checking build system type... " >&6; }
4706 if ${ac_cv_build+:} false; then :
4707 $as_echo_n "(cached) " >&6
4708 else
4709 ac_build_alias=$build_alias
4710 test "x$ac_build_alias" = x &&
4711 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4712 test "x$ac_build_alias" = x &&
4713 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4714 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4715 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4716
4717 fi
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4719 $as_echo "$ac_cv_build" >&6; }
4720 case $ac_cv_build in
4721 *-*-*) ;;
4722 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4723 esac
4724 build=$ac_cv_build
4725 ac_save_IFS=$IFS; IFS='-'
4726 set x $ac_cv_build
4727 shift
4728 build_cpu=$1
4729 build_vendor=$2
4730 shift; shift
4731 # Remember, the first character of IFS is used to create $*,
4732 # except with old shells:
4733 build_os=$*
4734 IFS=$ac_save_IFS
4735 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4736
4737
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4739 $as_echo_n "checking host system type... " >&6; }
4740 if ${ac_cv_host+:} false; then :
4741 $as_echo_n "(cached) " >&6
4742 else
4743 if test "x$host_alias" = x; then
4744 ac_cv_host=$ac_cv_build
4745 else
4746 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4747 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4748 fi
4749
4750 fi
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4752 $as_echo "$ac_cv_host" >&6; }
4753 case $ac_cv_host in
4754 *-*-*) ;;
4755 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4756 esac
4757 host=$ac_cv_host
4758 ac_save_IFS=$IFS; IFS='-'
4759 set x $ac_cv_host
4760 shift
4761 host_cpu=$1
4762 host_vendor=$2
4763 shift; shift
4764 # Remember, the first character of IFS is used to create $*,
4765 # except with old shells:
4766 host_os=$*
4767 IFS=$ac_save_IFS
4768 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4769
4770
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4772 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4773 if ${ac_cv_path_SED+:} false; then :
4774 $as_echo_n "(cached) " >&6
4775 else
4776 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4777 for ac_i in 1 2 3 4 5 6 7; do
4778 ac_script="$ac_script$as_nl$ac_script"
4779 done
4780 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4781 { ac_script=; unset ac_script;}
4782 if test -z "$SED"; then
4783 ac_path_SED_found=false
4784 # Loop through the user's path and test for each of PROGNAME-LIST
4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786 for as_dir in $PATH
4787 do
4788 IFS=$as_save_IFS
4789 test -z "$as_dir" && as_dir=.
4790 for ac_prog in sed gsed; do
4791 for ac_exec_ext in '' $ac_executable_extensions; do
4792 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4793 as_fn_executable_p "$ac_path_SED" || continue
4794 # Check for GNU ac_path_SED and select it if it is found.
4795 # Check for GNU $ac_path_SED
4796 case `"$ac_path_SED" --version 2>&1` in
4797 *GNU*)
4798 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4799 *)
4800 ac_count=0
4801 $as_echo_n 0123456789 >"conftest.in"
4802 while :
4803 do
4804 cat "conftest.in" "conftest.in" >"conftest.tmp"
4805 mv "conftest.tmp" "conftest.in"
4806 cp "conftest.in" "conftest.nl"
4807 $as_echo '' >> "conftest.nl"
4808 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4809 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4810 as_fn_arith $ac_count + 1 && ac_count=$as_val
4811 if test $ac_count -gt ${ac_path_SED_max-0}; then
4812 # Best one so far, save it but keep looking for a better one
4813 ac_cv_path_SED="$ac_path_SED"
4814 ac_path_SED_max=$ac_count
4815 fi
4816 # 10*(2^10) chars as input seems more than enough
4817 test $ac_count -gt 10 && break
4818 done
4819 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4820 esac
4821
4822 $ac_path_SED_found && break 3
4823 done
4824 done
4825 done
4826 IFS=$as_save_IFS
4827 if test -z "$ac_cv_path_SED"; then
4828 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4829 fi
4830 else
4831 ac_cv_path_SED=$SED
4832 fi
4833
4834 fi
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4836 $as_echo "$ac_cv_path_SED" >&6; }
4837 SED="$ac_cv_path_SED"
4838 rm -f conftest.sed
4839
4840
4841
4842
4843
4844
4845 # Check whether --enable-selective-werror was given.
4846 if test "${enable_selective_werror+set}" = set; then :
4847 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4848 else
4849 SELECTIVE_WERROR=yes
4850 fi
4851
4852
4853
4854
4855
4856 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4857 if test "x$SUNCC" = "xyes"; then
4858 BASE_CFLAGS="-v"
4859 else
4860 BASE_CFLAGS=""
4861 fi
4862
4863 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877 xorg_testset_save_CFLAGS="$CFLAGS"
4878
4879 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4880 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4882 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4883 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4884 $as_echo_n "(cached) " >&6
4885 else
4886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4887 /* end confdefs.h. */
4888 int i;
4889 _ACEOF
4890 if ac_fn_c_try_compile "$LINENO"; then :
4891 xorg_cv_cc_flag_unknown_warning_option=yes
4892 else
4893 xorg_cv_cc_flag_unknown_warning_option=no
4894 fi
4895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4896 fi
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4898 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4899 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4900 CFLAGS="$xorg_testset_save_CFLAGS"
4901 fi
4902
4903 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4904 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4905 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4906 fi
4907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4909 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4910 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4911 $as_echo_n "(cached) " >&6
4912 else
4913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4914 /* end confdefs.h. */
4915 int i;
4916 _ACEOF
4917 if ac_fn_c_try_compile "$LINENO"; then :
4918 xorg_cv_cc_flag_unused_command_line_argument=yes
4919 else
4920 xorg_cv_cc_flag_unused_command_line_argument=no
4921 fi
4922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4923 fi
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4925 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4926 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4927 CFLAGS="$xorg_testset_save_CFLAGS"
4928 fi
4929
4930 found="no"
4931
4932 if test $found = "no" ; then
4933 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4934 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4935 fi
4936
4937 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4939 fi
4940
4941 CFLAGS="$CFLAGS -Wall"
4942
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5
4944 $as_echo_n "checking if $CC supports-Wall... " >&6; }
4945 cacheid=xorg_cv_cc_flag__Wall
4946 if eval \${$cacheid+:} false; then :
4947 $as_echo_n "(cached) " >&6
4948 else
4949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4950 /* end confdefs.h. */
4951 int i;
4952 int
4953 main ()
4954 {
4955
4956 ;
4957 return 0;
4958 }
4959 _ACEOF
4960 if ac_fn_c_try_link "$LINENO"; then :
4961 eval $cacheid=yes
4962 else
4963 eval $cacheid=no
4964 fi
4965 rm -f core conftest.err conftest.$ac_objext \
4966 conftest$ac_exeext conftest.$ac_ext
4967 fi
4968
4969
4970 CFLAGS="$xorg_testset_save_CFLAGS"
4971
4972 eval supported=\$$cacheid
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4974 $as_echo "$supported" >&6; }
4975 if test "$supported" = "yes" ; then
4976 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4977 found="yes"
4978 fi
4979 fi
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995 xorg_testset_save_CFLAGS="$CFLAGS"
4996
4997 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4998 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5000 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5001 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5002 $as_echo_n "(cached) " >&6
5003 else
5004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5005 /* end confdefs.h. */
5006 int i;
5007 _ACEOF
5008 if ac_fn_c_try_compile "$LINENO"; then :
5009 xorg_cv_cc_flag_unknown_warning_option=yes
5010 else
5011 xorg_cv_cc_flag_unknown_warning_option=no
5012 fi
5013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5014 fi
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5016 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5017 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5018 CFLAGS="$xorg_testset_save_CFLAGS"
5019 fi
5020
5021 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5023 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5024 fi
5025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5027 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5028 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5029 $as_echo_n "(cached) " >&6
5030 else
5031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5032 /* end confdefs.h. */
5033 int i;
5034 _ACEOF
5035 if ac_fn_c_try_compile "$LINENO"; then :
5036 xorg_cv_cc_flag_unused_command_line_argument=yes
5037 else
5038 xorg_cv_cc_flag_unused_command_line_argument=no
5039 fi
5040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5041 fi
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5043 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5044 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5045 CFLAGS="$xorg_testset_save_CFLAGS"
5046 fi
5047
5048 found="no"
5049
5050 if test $found = "no" ; then
5051 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5052 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5053 fi
5054
5055 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5056 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5057 fi
5058
5059 CFLAGS="$CFLAGS -Wpointer-arith"
5060
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5
5062 $as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; }
5063 cacheid=xorg_cv_cc_flag__Wpointer_arith
5064 if eval \${$cacheid+:} false; then :
5065 $as_echo_n "(cached) " >&6
5066 else
5067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068 /* end confdefs.h. */
5069 int i;
5070 int
5071 main ()
5072 {
5073
5074 ;
5075 return 0;
5076 }
5077 _ACEOF
5078 if ac_fn_c_try_link "$LINENO"; then :
5079 eval $cacheid=yes
5080 else
5081 eval $cacheid=no
5082 fi
5083 rm -f core conftest.err conftest.$ac_objext \
5084 conftest$ac_exeext conftest.$ac_ext
5085 fi
5086
5087
5088 CFLAGS="$xorg_testset_save_CFLAGS"
5089
5090 eval supported=\$$cacheid
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5092 $as_echo "$supported" >&6; }
5093 if test "$supported" = "yes" ; then
5094 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5095 found="yes"
5096 fi
5097 fi
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113 xorg_testset_save_CFLAGS="$CFLAGS"
5114
5115 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5116 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5118 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5119 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5120 $as_echo_n "(cached) " >&6
5121 else
5122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123 /* end confdefs.h. */
5124 int i;
5125 _ACEOF
5126 if ac_fn_c_try_compile "$LINENO"; then :
5127 xorg_cv_cc_flag_unknown_warning_option=yes
5128 else
5129 xorg_cv_cc_flag_unknown_warning_option=no
5130 fi
5131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5132 fi
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5134 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5135 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5136 CFLAGS="$xorg_testset_save_CFLAGS"
5137 fi
5138
5139 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5140 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5141 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5142 fi
5143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5145 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5146 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5147 $as_echo_n "(cached) " >&6
5148 else
5149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5150 /* end confdefs.h. */
5151 int i;
5152 _ACEOF
5153 if ac_fn_c_try_compile "$LINENO"; then :
5154 xorg_cv_cc_flag_unused_command_line_argument=yes
5155 else
5156 xorg_cv_cc_flag_unused_command_line_argument=no
5157 fi
5158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5159 fi
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5161 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5162 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5163 CFLAGS="$xorg_testset_save_CFLAGS"
5164 fi
5165
5166 found="no"
5167
5168 if test $found = "no" ; then
5169 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5170 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5171 fi
5172
5173 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5175 fi
5176
5177 CFLAGS="$CFLAGS -Wmissing-declarations"
5178
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5
5180 $as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; }
5181 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5182 if eval \${$cacheid+:} false; then :
5183 $as_echo_n "(cached) " >&6
5184 else
5185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5186 /* end confdefs.h. */
5187 int i;
5188 int
5189 main ()
5190 {
5191
5192 ;
5193 return 0;
5194 }
5195 _ACEOF
5196 if ac_fn_c_try_link "$LINENO"; then :
5197 eval $cacheid=yes
5198 else
5199 eval $cacheid=no
5200 fi
5201 rm -f core conftest.err conftest.$ac_objext \
5202 conftest$ac_exeext conftest.$ac_ext
5203 fi
5204
5205
5206 CFLAGS="$xorg_testset_save_CFLAGS"
5207
5208 eval supported=\$$cacheid
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5210 $as_echo "$supported" >&6; }
5211 if test "$supported" = "yes" ; then
5212 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5213 found="yes"
5214 fi
5215 fi
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231 xorg_testset_save_CFLAGS="$CFLAGS"
5232
5233 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5234 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5236 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5237 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5238 $as_echo_n "(cached) " >&6
5239 else
5240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5241 /* end confdefs.h. */
5242 int i;
5243 _ACEOF
5244 if ac_fn_c_try_compile "$LINENO"; then :
5245 xorg_cv_cc_flag_unknown_warning_option=yes
5246 else
5247 xorg_cv_cc_flag_unknown_warning_option=no
5248 fi
5249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5250 fi
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5252 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5253 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5254 CFLAGS="$xorg_testset_save_CFLAGS"
5255 fi
5256
5257 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5258 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5259 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5260 fi
5261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5263 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5264 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5265 $as_echo_n "(cached) " >&6
5266 else
5267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5268 /* end confdefs.h. */
5269 int i;
5270 _ACEOF
5271 if ac_fn_c_try_compile "$LINENO"; then :
5272 xorg_cv_cc_flag_unused_command_line_argument=yes
5273 else
5274 xorg_cv_cc_flag_unused_command_line_argument=no
5275 fi
5276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5277 fi
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5279 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5280 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5281 CFLAGS="$xorg_testset_save_CFLAGS"
5282 fi
5283
5284 found="no"
5285
5286 if test $found = "no" ; then
5287 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5288 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5289 fi
5290
5291 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5293 fi
5294
5295 CFLAGS="$CFLAGS -Wformat=2"
5296
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5
5298 $as_echo_n "checking if $CC supports-Wformat=2... " >&6; }
5299 cacheid=xorg_cv_cc_flag__Wformat_2
5300 if eval \${$cacheid+:} false; then :
5301 $as_echo_n "(cached) " >&6
5302 else
5303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5304 /* end confdefs.h. */
5305 int i;
5306 int
5307 main ()
5308 {
5309
5310 ;
5311 return 0;
5312 }
5313 _ACEOF
5314 if ac_fn_c_try_link "$LINENO"; then :
5315 eval $cacheid=yes
5316 else
5317 eval $cacheid=no
5318 fi
5319 rm -f core conftest.err conftest.$ac_objext \
5320 conftest$ac_exeext conftest.$ac_ext
5321 fi
5322
5323
5324 CFLAGS="$xorg_testset_save_CFLAGS"
5325
5326 eval supported=\$$cacheid
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5328 $as_echo "$supported" >&6; }
5329 if test "$supported" = "yes" ; then
5330 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5331 found="yes"
5332 fi
5333 fi
5334
5335 if test $found = "no" ; then
5336 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5337 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5338 fi
5339
5340 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5342 fi
5343
5344 CFLAGS="$CFLAGS -Wformat"
5345
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5
5347 $as_echo_n "checking if $CC supports-Wformat... " >&6; }
5348 cacheid=xorg_cv_cc_flag__Wformat
5349 if eval \${$cacheid+:} false; then :
5350 $as_echo_n "(cached) " >&6
5351 else
5352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353 /* end confdefs.h. */
5354 int i;
5355 int
5356 main ()
5357 {
5358
5359 ;
5360 return 0;
5361 }
5362 _ACEOF
5363 if ac_fn_c_try_link "$LINENO"; then :
5364 eval $cacheid=yes
5365 else
5366 eval $cacheid=no
5367 fi
5368 rm -f core conftest.err conftest.$ac_objext \
5369 conftest$ac_exeext conftest.$ac_ext
5370 fi
5371
5372
5373 CFLAGS="$xorg_testset_save_CFLAGS"
5374
5375 eval supported=\$$cacheid
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5377 $as_echo "$supported" >&6; }
5378 if test "$supported" = "yes" ; then
5379 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5380 found="yes"
5381 fi
5382 fi
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400 xorg_testset_save_CFLAGS="$CFLAGS"
5401
5402 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5403 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5405 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5406 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5407 $as_echo_n "(cached) " >&6
5408 else
5409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5410 /* end confdefs.h. */
5411 int i;
5412 _ACEOF
5413 if ac_fn_c_try_compile "$LINENO"; then :
5414 xorg_cv_cc_flag_unknown_warning_option=yes
5415 else
5416 xorg_cv_cc_flag_unknown_warning_option=no
5417 fi
5418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5419 fi
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5421 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5422 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5423 CFLAGS="$xorg_testset_save_CFLAGS"
5424 fi
5425
5426 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5427 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5428 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5429 fi
5430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5432 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5433 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5434 $as_echo_n "(cached) " >&6
5435 else
5436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5437 /* end confdefs.h. */
5438 int i;
5439 _ACEOF
5440 if ac_fn_c_try_compile "$LINENO"; then :
5441 xorg_cv_cc_flag_unused_command_line_argument=yes
5442 else
5443 xorg_cv_cc_flag_unused_command_line_argument=no
5444 fi
5445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5446 fi
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5448 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5449 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5450 CFLAGS="$xorg_testset_save_CFLAGS"
5451 fi
5452
5453 found="no"
5454
5455 if test $found = "no" ; then
5456 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5457 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5458 fi
5459
5460 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5462 fi
5463
5464 CFLAGS="$CFLAGS -Wstrict-prototypes"
5465
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5
5467 $as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; }
5468 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5469 if eval \${$cacheid+:} false; then :
5470 $as_echo_n "(cached) " >&6
5471 else
5472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5473 /* end confdefs.h. */
5474 int i;
5475 int
5476 main ()
5477 {
5478
5479 ;
5480 return 0;
5481 }
5482 _ACEOF
5483 if ac_fn_c_try_link "$LINENO"; then :
5484 eval $cacheid=yes
5485 else
5486 eval $cacheid=no
5487 fi
5488 rm -f core conftest.err conftest.$ac_objext \
5489 conftest$ac_exeext conftest.$ac_ext
5490 fi
5491
5492
5493 CFLAGS="$xorg_testset_save_CFLAGS"
5494
5495 eval supported=\$$cacheid
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5497 $as_echo "$supported" >&6; }
5498 if test "$supported" = "yes" ; then
5499 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5500 found="yes"
5501 fi
5502 fi
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518 xorg_testset_save_CFLAGS="$CFLAGS"
5519
5520 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5521 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5523 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5524 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5525 $as_echo_n "(cached) " >&6
5526 else
5527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5528 /* end confdefs.h. */
5529 int i;
5530 _ACEOF
5531 if ac_fn_c_try_compile "$LINENO"; then :
5532 xorg_cv_cc_flag_unknown_warning_option=yes
5533 else
5534 xorg_cv_cc_flag_unknown_warning_option=no
5535 fi
5536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537 fi
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5539 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5540 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5541 CFLAGS="$xorg_testset_save_CFLAGS"
5542 fi
5543
5544 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5545 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5546 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5547 fi
5548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5550 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5551 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5552 $as_echo_n "(cached) " >&6
5553 else
5554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5555 /* end confdefs.h. */
5556 int i;
5557 _ACEOF
5558 if ac_fn_c_try_compile "$LINENO"; then :
5559 xorg_cv_cc_flag_unused_command_line_argument=yes
5560 else
5561 xorg_cv_cc_flag_unused_command_line_argument=no
5562 fi
5563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5564 fi
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5566 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5567 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5568 CFLAGS="$xorg_testset_save_CFLAGS"
5569 fi
5570
5571 found="no"
5572
5573 if test $found = "no" ; then
5574 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5575 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5576 fi
5577
5578 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5580 fi
5581
5582 CFLAGS="$CFLAGS -Wmissing-prototypes"
5583
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5
5585 $as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; }
5586 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5587 if eval \${$cacheid+:} false; then :
5588 $as_echo_n "(cached) " >&6
5589 else
5590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5591 /* end confdefs.h. */
5592 int i;
5593 int
5594 main ()
5595 {
5596
5597 ;
5598 return 0;
5599 }
5600 _ACEOF
5601 if ac_fn_c_try_link "$LINENO"; then :
5602 eval $cacheid=yes
5603 else
5604 eval $cacheid=no
5605 fi
5606 rm -f core conftest.err conftest.$ac_objext \
5607 conftest$ac_exeext conftest.$ac_ext
5608 fi
5609
5610
5611 CFLAGS="$xorg_testset_save_CFLAGS"
5612
5613 eval supported=\$$cacheid
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5615 $as_echo "$supported" >&6; }
5616 if test "$supported" = "yes" ; then
5617 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5618 found="yes"
5619 fi
5620 fi
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636 xorg_testset_save_CFLAGS="$CFLAGS"
5637
5638 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5639 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5641 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5642 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5643 $as_echo_n "(cached) " >&6
5644 else
5645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646 /* end confdefs.h. */
5647 int i;
5648 _ACEOF
5649 if ac_fn_c_try_compile "$LINENO"; then :
5650 xorg_cv_cc_flag_unknown_warning_option=yes
5651 else
5652 xorg_cv_cc_flag_unknown_warning_option=no
5653 fi
5654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5655 fi
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5657 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5658 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5659 CFLAGS="$xorg_testset_save_CFLAGS"
5660 fi
5661
5662 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5663 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5664 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5665 fi
5666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5668 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5669 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5670 $as_echo_n "(cached) " >&6
5671 else
5672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5673 /* end confdefs.h. */
5674 int i;
5675 _ACEOF
5676 if ac_fn_c_try_compile "$LINENO"; then :
5677 xorg_cv_cc_flag_unused_command_line_argument=yes
5678 else
5679 xorg_cv_cc_flag_unused_command_line_argument=no
5680 fi
5681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5682 fi
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5684 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5685 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5686 CFLAGS="$xorg_testset_save_CFLAGS"
5687 fi
5688
5689 found="no"
5690
5691 if test $found = "no" ; then
5692 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5693 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5694 fi
5695
5696 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5698 fi
5699
5700 CFLAGS="$CFLAGS -Wnested-externs"
5701
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5
5703 $as_echo_n "checking if $CC supports-Wnested-externs... " >&6; }
5704 cacheid=xorg_cv_cc_flag__Wnested_externs
5705 if eval \${$cacheid+:} false; then :
5706 $as_echo_n "(cached) " >&6
5707 else
5708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5709 /* end confdefs.h. */
5710 int i;
5711 int
5712 main ()
5713 {
5714
5715 ;
5716 return 0;
5717 }
5718 _ACEOF
5719 if ac_fn_c_try_link "$LINENO"; then :
5720 eval $cacheid=yes
5721 else
5722 eval $cacheid=no
5723 fi
5724 rm -f core conftest.err conftest.$ac_objext \
5725 conftest$ac_exeext conftest.$ac_ext
5726 fi
5727
5728
5729 CFLAGS="$xorg_testset_save_CFLAGS"
5730
5731 eval supported=\$$cacheid
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5733 $as_echo "$supported" >&6; }
5734 if test "$supported" = "yes" ; then
5735 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5736 found="yes"
5737 fi
5738 fi
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754 xorg_testset_save_CFLAGS="$CFLAGS"
5755
5756 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5757 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5759 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5760 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5761 $as_echo_n "(cached) " >&6
5762 else
5763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5764 /* end confdefs.h. */
5765 int i;
5766 _ACEOF
5767 if ac_fn_c_try_compile "$LINENO"; then :
5768 xorg_cv_cc_flag_unknown_warning_option=yes
5769 else
5770 xorg_cv_cc_flag_unknown_warning_option=no
5771 fi
5772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5773 fi
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5775 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5776 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5777 CFLAGS="$xorg_testset_save_CFLAGS"
5778 fi
5779
5780 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5781 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5782 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5783 fi
5784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5786 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5787 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5788 $as_echo_n "(cached) " >&6
5789 else
5790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5791 /* end confdefs.h. */
5792 int i;
5793 _ACEOF
5794 if ac_fn_c_try_compile "$LINENO"; then :
5795 xorg_cv_cc_flag_unused_command_line_argument=yes
5796 else
5797 xorg_cv_cc_flag_unused_command_line_argument=no
5798 fi
5799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5800 fi
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5802 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5803 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5804 CFLAGS="$xorg_testset_save_CFLAGS"
5805 fi
5806
5807 found="no"
5808
5809 if test $found = "no" ; then
5810 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5811 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5812 fi
5813
5814 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5816 fi
5817
5818 CFLAGS="$CFLAGS -Wbad-function-cast"
5819
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5
5821 $as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; }
5822 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5823 if eval \${$cacheid+:} false; then :
5824 $as_echo_n "(cached) " >&6
5825 else
5826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5827 /* end confdefs.h. */
5828 int i;
5829 int
5830 main ()
5831 {
5832
5833 ;
5834 return 0;
5835 }
5836 _ACEOF
5837 if ac_fn_c_try_link "$LINENO"; then :
5838 eval $cacheid=yes
5839 else
5840 eval $cacheid=no
5841 fi
5842 rm -f core conftest.err conftest.$ac_objext \
5843 conftest$ac_exeext conftest.$ac_ext
5844 fi
5845
5846
5847 CFLAGS="$xorg_testset_save_CFLAGS"
5848
5849 eval supported=\$$cacheid
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5851 $as_echo "$supported" >&6; }
5852 if test "$supported" = "yes" ; then
5853 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5854 found="yes"
5855 fi
5856 fi
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872 xorg_testset_save_CFLAGS="$CFLAGS"
5873
5874 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5875 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5877 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5878 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5879 $as_echo_n "(cached) " >&6
5880 else
5881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5882 /* end confdefs.h. */
5883 int i;
5884 _ACEOF
5885 if ac_fn_c_try_compile "$LINENO"; then :
5886 xorg_cv_cc_flag_unknown_warning_option=yes
5887 else
5888 xorg_cv_cc_flag_unknown_warning_option=no
5889 fi
5890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5891 fi
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5893 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5894 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5895 CFLAGS="$xorg_testset_save_CFLAGS"
5896 fi
5897
5898 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5899 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5900 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5901 fi
5902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5904 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5905 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5906 $as_echo_n "(cached) " >&6
5907 else
5908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5909 /* end confdefs.h. */
5910 int i;
5911 _ACEOF
5912 if ac_fn_c_try_compile "$LINENO"; then :
5913 xorg_cv_cc_flag_unused_command_line_argument=yes
5914 else
5915 xorg_cv_cc_flag_unused_command_line_argument=no
5916 fi
5917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5918 fi
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5920 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5921 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5922 CFLAGS="$xorg_testset_save_CFLAGS"
5923 fi
5924
5925 found="no"
5926
5927 if test $found = "no" ; then
5928 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5929 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5930 fi
5931
5932 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5933 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5934 fi
5935
5936 CFLAGS="$CFLAGS -Wold-style-definition"
5937
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5
5939 $as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; }
5940 cacheid=xorg_cv_cc_flag__Wold_style_definition
5941 if eval \${$cacheid+:} 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 int
5948 main ()
5949 {
5950
5951 ;
5952 return 0;
5953 }
5954 _ACEOF
5955 if ac_fn_c_try_link "$LINENO"; then :
5956 eval $cacheid=yes
5957 else
5958 eval $cacheid=no
5959 fi
5960 rm -f core conftest.err conftest.$ac_objext \
5961 conftest$ac_exeext conftest.$ac_ext
5962 fi
5963
5964
5965 CFLAGS="$xorg_testset_save_CFLAGS"
5966
5967 eval supported=\$$cacheid
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5969 $as_echo "$supported" >&6; }
5970 if test "$supported" = "yes" ; then
5971 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5972 found="yes"
5973 fi
5974 fi
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990 xorg_testset_save_CFLAGS="$CFLAGS"
5991
5992 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5993 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5995 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5996 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5997 $as_echo_n "(cached) " >&6
5998 else
5999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6000 /* end confdefs.h. */
6001 int i;
6002 _ACEOF
6003 if ac_fn_c_try_compile "$LINENO"; then :
6004 xorg_cv_cc_flag_unknown_warning_option=yes
6005 else
6006 xorg_cv_cc_flag_unknown_warning_option=no
6007 fi
6008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6009 fi
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6011 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6012 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6013 CFLAGS="$xorg_testset_save_CFLAGS"
6014 fi
6015
6016 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6017 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6018 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6019 fi
6020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6022 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6023 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6024 $as_echo_n "(cached) " >&6
6025 else
6026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6027 /* end confdefs.h. */
6028 int i;
6029 _ACEOF
6030 if ac_fn_c_try_compile "$LINENO"; then :
6031 xorg_cv_cc_flag_unused_command_line_argument=yes
6032 else
6033 xorg_cv_cc_flag_unused_command_line_argument=no
6034 fi
6035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6036 fi
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6038 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6039 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6040 CFLAGS="$xorg_testset_save_CFLAGS"
6041 fi
6042
6043 found="no"
6044
6045 if test $found = "no" ; then
6046 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6047 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6048 fi
6049
6050 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6052 fi
6053
6054 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6055
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5
6057 $as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; }
6058 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6059 if eval \${$cacheid+:} false; then :
6060 $as_echo_n "(cached) " >&6
6061 else
6062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6063 /* end confdefs.h. */
6064 int i;
6065 int
6066 main ()
6067 {
6068
6069 ;
6070 return 0;
6071 }
6072 _ACEOF
6073 if ac_fn_c_try_link "$LINENO"; then :
6074 eval $cacheid=yes
6075 else
6076 eval $cacheid=no
6077 fi
6078 rm -f core conftest.err conftest.$ac_objext \
6079 conftest$ac_exeext conftest.$ac_ext
6080 fi
6081
6082
6083 CFLAGS="$xorg_testset_save_CFLAGS"
6084
6085 eval supported=\$$cacheid
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6087 $as_echo "$supported" >&6; }
6088 if test "$supported" = "yes" ; then
6089 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6090 found="yes"
6091 fi
6092 fi
6093
6094
6095
6096
6097
6098 # This chunk adds additional warnings that could catch undesired effects.
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112 xorg_testset_save_CFLAGS="$CFLAGS"
6113
6114 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6115 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6117 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6118 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6119 $as_echo_n "(cached) " >&6
6120 else
6121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6122 /* end confdefs.h. */
6123 int i;
6124 _ACEOF
6125 if ac_fn_c_try_compile "$LINENO"; then :
6126 xorg_cv_cc_flag_unknown_warning_option=yes
6127 else
6128 xorg_cv_cc_flag_unknown_warning_option=no
6129 fi
6130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6131 fi
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6133 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6134 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6135 CFLAGS="$xorg_testset_save_CFLAGS"
6136 fi
6137
6138 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6141 fi
6142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6144 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6145 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6146 $as_echo_n "(cached) " >&6
6147 else
6148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6149 /* end confdefs.h. */
6150 int i;
6151 _ACEOF
6152 if ac_fn_c_try_compile "$LINENO"; then :
6153 xorg_cv_cc_flag_unused_command_line_argument=yes
6154 else
6155 xorg_cv_cc_flag_unused_command_line_argument=no
6156 fi
6157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6158 fi
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6160 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6161 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6162 CFLAGS="$xorg_testset_save_CFLAGS"
6163 fi
6164
6165 found="no"
6166
6167 if test $found = "no" ; then
6168 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6169 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6170 fi
6171
6172 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6174 fi
6175
6176 CFLAGS="$CFLAGS -Wunused"
6177
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5
6179 $as_echo_n "checking if $CC supports-Wunused... " >&6; }
6180 cacheid=xorg_cv_cc_flag__Wunused
6181 if eval \${$cacheid+:} 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 int
6188 main ()
6189 {
6190
6191 ;
6192 return 0;
6193 }
6194 _ACEOF
6195 if ac_fn_c_try_link "$LINENO"; then :
6196 eval $cacheid=yes
6197 else
6198 eval $cacheid=no
6199 fi
6200 rm -f core conftest.err conftest.$ac_objext \
6201 conftest$ac_exeext conftest.$ac_ext
6202 fi
6203
6204
6205 CFLAGS="$xorg_testset_save_CFLAGS"
6206
6207 eval supported=\$$cacheid
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6209 $as_echo "$supported" >&6; }
6210 if test "$supported" = "yes" ; then
6211 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6212 found="yes"
6213 fi
6214 fi
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230 xorg_testset_save_CFLAGS="$CFLAGS"
6231
6232 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6235 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6236 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6237 $as_echo_n "(cached) " >&6
6238 else
6239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6240 /* end confdefs.h. */
6241 int i;
6242 _ACEOF
6243 if ac_fn_c_try_compile "$LINENO"; then :
6244 xorg_cv_cc_flag_unknown_warning_option=yes
6245 else
6246 xorg_cv_cc_flag_unknown_warning_option=no
6247 fi
6248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6249 fi
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6251 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6252 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6253 CFLAGS="$xorg_testset_save_CFLAGS"
6254 fi
6255
6256 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6258 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6259 fi
6260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6262 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6263 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6264 $as_echo_n "(cached) " >&6
6265 else
6266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6267 /* end confdefs.h. */
6268 int i;
6269 _ACEOF
6270 if ac_fn_c_try_compile "$LINENO"; then :
6271 xorg_cv_cc_flag_unused_command_line_argument=yes
6272 else
6273 xorg_cv_cc_flag_unused_command_line_argument=no
6274 fi
6275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6276 fi
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6278 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6279 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6280 CFLAGS="$xorg_testset_save_CFLAGS"
6281 fi
6282
6283 found="no"
6284
6285 if test $found = "no" ; then
6286 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6287 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6288 fi
6289
6290 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6292 fi
6293
6294 CFLAGS="$CFLAGS -Wuninitialized"
6295
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5
6297 $as_echo_n "checking if $CC supports-Wuninitialized... " >&6; }
6298 cacheid=xorg_cv_cc_flag__Wuninitialized
6299 if eval \${$cacheid+:} 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 int
6306 main ()
6307 {
6308
6309 ;
6310 return 0;
6311 }
6312 _ACEOF
6313 if ac_fn_c_try_link "$LINENO"; then :
6314 eval $cacheid=yes
6315 else
6316 eval $cacheid=no
6317 fi
6318 rm -f core conftest.err conftest.$ac_objext \
6319 conftest$ac_exeext conftest.$ac_ext
6320 fi
6321
6322
6323 CFLAGS="$xorg_testset_save_CFLAGS"
6324
6325 eval supported=\$$cacheid
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6327 $as_echo "$supported" >&6; }
6328 if test "$supported" = "yes" ; then
6329 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6330 found="yes"
6331 fi
6332 fi
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348 xorg_testset_save_CFLAGS="$CFLAGS"
6349
6350 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6351 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6353 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6354 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6355 $as_echo_n "(cached) " >&6
6356 else
6357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6358 /* end confdefs.h. */
6359 int i;
6360 _ACEOF
6361 if ac_fn_c_try_compile "$LINENO"; then :
6362 xorg_cv_cc_flag_unknown_warning_option=yes
6363 else
6364 xorg_cv_cc_flag_unknown_warning_option=no
6365 fi
6366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6367 fi
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6369 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6370 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6371 CFLAGS="$xorg_testset_save_CFLAGS"
6372 fi
6373
6374 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6376 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6377 fi
6378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6380 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6381 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6382 $as_echo_n "(cached) " >&6
6383 else
6384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6385 /* end confdefs.h. */
6386 int i;
6387 _ACEOF
6388 if ac_fn_c_try_compile "$LINENO"; then :
6389 xorg_cv_cc_flag_unused_command_line_argument=yes
6390 else
6391 xorg_cv_cc_flag_unused_command_line_argument=no
6392 fi
6393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6394 fi
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6396 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6397 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6398 CFLAGS="$xorg_testset_save_CFLAGS"
6399 fi
6400
6401 found="no"
6402
6403 if test $found = "no" ; then
6404 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6405 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6406 fi
6407
6408 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6410 fi
6411
6412 CFLAGS="$CFLAGS -Wshadow"
6413
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5
6415 $as_echo_n "checking if $CC supports-Wshadow... " >&6; }
6416 cacheid=xorg_cv_cc_flag__Wshadow
6417 if eval \${$cacheid+:} 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 int
6424 main ()
6425 {
6426
6427 ;
6428 return 0;
6429 }
6430 _ACEOF
6431 if ac_fn_c_try_link "$LINENO"; then :
6432 eval $cacheid=yes
6433 else
6434 eval $cacheid=no
6435 fi
6436 rm -f core conftest.err conftest.$ac_objext \
6437 conftest$ac_exeext conftest.$ac_ext
6438 fi
6439
6440
6441 CFLAGS="$xorg_testset_save_CFLAGS"
6442
6443 eval supported=\$$cacheid
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6445 $as_echo "$supported" >&6; }
6446 if test "$supported" = "yes" ; then
6447 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6448 found="yes"
6449 fi
6450 fi
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466 xorg_testset_save_CFLAGS="$CFLAGS"
6467
6468 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6471 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6472 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6473 $as_echo_n "(cached) " >&6
6474 else
6475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6476 /* end confdefs.h. */
6477 int i;
6478 _ACEOF
6479 if ac_fn_c_try_compile "$LINENO"; then :
6480 xorg_cv_cc_flag_unknown_warning_option=yes
6481 else
6482 xorg_cv_cc_flag_unknown_warning_option=no
6483 fi
6484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6485 fi
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6487 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6488 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6489 CFLAGS="$xorg_testset_save_CFLAGS"
6490 fi
6491
6492 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6494 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6495 fi
6496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6498 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6499 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6500 $as_echo_n "(cached) " >&6
6501 else
6502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6503 /* end confdefs.h. */
6504 int i;
6505 _ACEOF
6506 if ac_fn_c_try_compile "$LINENO"; then :
6507 xorg_cv_cc_flag_unused_command_line_argument=yes
6508 else
6509 xorg_cv_cc_flag_unused_command_line_argument=no
6510 fi
6511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6512 fi
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6514 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6515 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6516 CFLAGS="$xorg_testset_save_CFLAGS"
6517 fi
6518
6519 found="no"
6520
6521 if test $found = "no" ; then
6522 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6523 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6524 fi
6525
6526 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6528 fi
6529
6530 CFLAGS="$CFLAGS -Wcast-qual"
6531
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5
6533 $as_echo_n "checking if $CC supports-Wcast-qual... " >&6; }
6534 cacheid=xorg_cv_cc_flag__Wcast_qual
6535 if eval \${$cacheid+:} 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 int
6542 main ()
6543 {
6544
6545 ;
6546 return 0;
6547 }
6548 _ACEOF
6549 if ac_fn_c_try_link "$LINENO"; then :
6550 eval $cacheid=yes
6551 else
6552 eval $cacheid=no
6553 fi
6554 rm -f core conftest.err conftest.$ac_objext \
6555 conftest$ac_exeext conftest.$ac_ext
6556 fi
6557
6558
6559 CFLAGS="$xorg_testset_save_CFLAGS"
6560
6561 eval supported=\$$cacheid
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6563 $as_echo "$supported" >&6; }
6564 if test "$supported" = "yes" ; then
6565 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6566 found="yes"
6567 fi
6568 fi
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584 xorg_testset_save_CFLAGS="$CFLAGS"
6585
6586 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6587 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6589 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6590 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6591 $as_echo_n "(cached) " >&6
6592 else
6593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6594 /* end confdefs.h. */
6595 int i;
6596 _ACEOF
6597 if ac_fn_c_try_compile "$LINENO"; then :
6598 xorg_cv_cc_flag_unknown_warning_option=yes
6599 else
6600 xorg_cv_cc_flag_unknown_warning_option=no
6601 fi
6602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6603 fi
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6605 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6606 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6607 CFLAGS="$xorg_testset_save_CFLAGS"
6608 fi
6609
6610 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6611 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6612 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6613 fi
6614 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6616 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6617 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6618 $as_echo_n "(cached) " >&6
6619 else
6620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6621 /* end confdefs.h. */
6622 int i;
6623 _ACEOF
6624 if ac_fn_c_try_compile "$LINENO"; then :
6625 xorg_cv_cc_flag_unused_command_line_argument=yes
6626 else
6627 xorg_cv_cc_flag_unused_command_line_argument=no
6628 fi
6629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6630 fi
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6632 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6633 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6634 CFLAGS="$xorg_testset_save_CFLAGS"
6635 fi
6636
6637 found="no"
6638
6639 if test $found = "no" ; then
6640 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6641 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6642 fi
6643
6644 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6646 fi
6647
6648 CFLAGS="$CFLAGS -Wmissing-noreturn"
6649
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5
6651 $as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; }
6652 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6653 if eval \${$cacheid+:} 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 int
6660 main ()
6661 {
6662
6663 ;
6664 return 0;
6665 }
6666 _ACEOF
6667 if ac_fn_c_try_link "$LINENO"; then :
6668 eval $cacheid=yes
6669 else
6670 eval $cacheid=no
6671 fi
6672 rm -f core conftest.err conftest.$ac_objext \
6673 conftest$ac_exeext conftest.$ac_ext
6674 fi
6675
6676
6677 CFLAGS="$xorg_testset_save_CFLAGS"
6678
6679 eval supported=\$$cacheid
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6681 $as_echo "$supported" >&6; }
6682 if test "$supported" = "yes" ; then
6683 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6684 found="yes"
6685 fi
6686 fi
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702 xorg_testset_save_CFLAGS="$CFLAGS"
6703
6704 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6705 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6707 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6708 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6709 $as_echo_n "(cached) " >&6
6710 else
6711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6712 /* end confdefs.h. */
6713 int i;
6714 _ACEOF
6715 if ac_fn_c_try_compile "$LINENO"; then :
6716 xorg_cv_cc_flag_unknown_warning_option=yes
6717 else
6718 xorg_cv_cc_flag_unknown_warning_option=no
6719 fi
6720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6721 fi
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6723 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6724 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6725 CFLAGS="$xorg_testset_save_CFLAGS"
6726 fi
6727
6728 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6730 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6731 fi
6732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6734 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6735 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6736 $as_echo_n "(cached) " >&6
6737 else
6738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739 /* end confdefs.h. */
6740 int i;
6741 _ACEOF
6742 if ac_fn_c_try_compile "$LINENO"; then :
6743 xorg_cv_cc_flag_unused_command_line_argument=yes
6744 else
6745 xorg_cv_cc_flag_unused_command_line_argument=no
6746 fi
6747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6748 fi
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6750 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6751 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6752 CFLAGS="$xorg_testset_save_CFLAGS"
6753 fi
6754
6755 found="no"
6756
6757 if test $found = "no" ; then
6758 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6759 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6760 fi
6761
6762 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6764 fi
6765
6766 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6767
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5
6769 $as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; }
6770 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6771 if eval \${$cacheid+:} 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 int
6778 main ()
6779 {
6780
6781 ;
6782 return 0;
6783 }
6784 _ACEOF
6785 if ac_fn_c_try_link "$LINENO"; then :
6786 eval $cacheid=yes
6787 else
6788 eval $cacheid=no
6789 fi
6790 rm -f core conftest.err conftest.$ac_objext \
6791 conftest$ac_exeext conftest.$ac_ext
6792 fi
6793
6794
6795 CFLAGS="$xorg_testset_save_CFLAGS"
6796
6797 eval supported=\$$cacheid
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6799 $as_echo "$supported" >&6; }
6800 if test "$supported" = "yes" ; then
6801 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6802 found="yes"
6803 fi
6804 fi
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820 xorg_testset_save_CFLAGS="$CFLAGS"
6821
6822 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6823 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6825 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6826 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6827 $as_echo_n "(cached) " >&6
6828 else
6829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6830 /* end confdefs.h. */
6831 int i;
6832 _ACEOF
6833 if ac_fn_c_try_compile "$LINENO"; then :
6834 xorg_cv_cc_flag_unknown_warning_option=yes
6835 else
6836 xorg_cv_cc_flag_unknown_warning_option=no
6837 fi
6838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6839 fi
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6841 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6842 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6843 CFLAGS="$xorg_testset_save_CFLAGS"
6844 fi
6845
6846 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6847 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6848 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6849 fi
6850 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6852 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6853 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6854 $as_echo_n "(cached) " >&6
6855 else
6856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6857 /* end confdefs.h. */
6858 int i;
6859 _ACEOF
6860 if ac_fn_c_try_compile "$LINENO"; then :
6861 xorg_cv_cc_flag_unused_command_line_argument=yes
6862 else
6863 xorg_cv_cc_flag_unused_command_line_argument=no
6864 fi
6865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6866 fi
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6868 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6869 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6870 CFLAGS="$xorg_testset_save_CFLAGS"
6871 fi
6872
6873 found="no"
6874
6875 if test $found = "no" ; then
6876 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6877 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6878 fi
6879
6880 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6882 fi
6883
6884 CFLAGS="$CFLAGS -Wredundant-decls"
6885
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5
6887 $as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; }
6888 cacheid=xorg_cv_cc_flag__Wredundant_decls
6889 if eval \${$cacheid+:} false; then :
6890 $as_echo_n "(cached) " >&6
6891 else
6892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6893 /* end confdefs.h. */
6894 int i;
6895 int
6896 main ()
6897 {
6898
6899 ;
6900 return 0;
6901 }
6902 _ACEOF
6903 if ac_fn_c_try_link "$LINENO"; then :
6904 eval $cacheid=yes
6905 else
6906 eval $cacheid=no
6907 fi
6908 rm -f core conftest.err conftest.$ac_objext \
6909 conftest$ac_exeext conftest.$ac_ext
6910 fi
6911
6912
6913 CFLAGS="$xorg_testset_save_CFLAGS"
6914
6915 eval supported=\$$cacheid
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6917 $as_echo "$supported" >&6; }
6918 if test "$supported" = "yes" ; then
6919 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6920 found="yes"
6921 fi
6922 fi
6923
6924
6925
6926 # These are currently disabled because they are noisy. They will be enabled
6927 # in the future once the codebase is sufficiently modernized to silence
6928 # them. For now, I don't want them to drown out the other warnings.
6929 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6930 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6931 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6932
6933 # Turn some warnings into errors, so we don't accidently get successful builds
6934 # when there are problems that should be fixed.
6935
6936 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950 xorg_testset_save_CFLAGS="$CFLAGS"
6951
6952 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6953 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6955 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6956 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6957 $as_echo_n "(cached) " >&6
6958 else
6959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6960 /* end confdefs.h. */
6961 int i;
6962 _ACEOF
6963 if ac_fn_c_try_compile "$LINENO"; then :
6964 xorg_cv_cc_flag_unknown_warning_option=yes
6965 else
6966 xorg_cv_cc_flag_unknown_warning_option=no
6967 fi
6968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6969 fi
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6971 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6972 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6973 CFLAGS="$xorg_testset_save_CFLAGS"
6974 fi
6975
6976 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6978 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6979 fi
6980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6982 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6983 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6984 $as_echo_n "(cached) " >&6
6985 else
6986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6987 /* end confdefs.h. */
6988 int i;
6989 _ACEOF
6990 if ac_fn_c_try_compile "$LINENO"; then :
6991 xorg_cv_cc_flag_unused_command_line_argument=yes
6992 else
6993 xorg_cv_cc_flag_unused_command_line_argument=no
6994 fi
6995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6996 fi
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6998 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6999 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7000 CFLAGS="$xorg_testset_save_CFLAGS"
7001 fi
7002
7003 found="no"
7004
7005 if test $found = "no" ; then
7006 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7007 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7008 fi
7009
7010 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7012 fi
7013
7014 CFLAGS="$CFLAGS -Werror=implicit"
7015
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5
7017 $as_echo_n "checking if $CC supports-Werror=implicit... " >&6; }
7018 cacheid=xorg_cv_cc_flag__Werror_implicit
7019 if eval \${$cacheid+:} false; then :
7020 $as_echo_n "(cached) " >&6
7021 else
7022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7023 /* end confdefs.h. */
7024 int i;
7025 int
7026 main ()
7027 {
7028
7029 ;
7030 return 0;
7031 }
7032 _ACEOF
7033 if ac_fn_c_try_link "$LINENO"; then :
7034 eval $cacheid=yes
7035 else
7036 eval $cacheid=no
7037 fi
7038 rm -f core conftest.err conftest.$ac_objext \
7039 conftest$ac_exeext conftest.$ac_ext
7040 fi
7041
7042
7043 CFLAGS="$xorg_testset_save_CFLAGS"
7044
7045 eval supported=\$$cacheid
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7047 $as_echo "$supported" >&6; }
7048 if test "$supported" = "yes" ; then
7049 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7050 found="yes"
7051 fi
7052 fi
7053
7054 if test $found = "no" ; then
7055 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7057 fi
7058
7059 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7061 fi
7062
7063 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7064
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7066 $as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7067 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7068 if eval \${$cacheid+:} 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 int
7075 main ()
7076 {
7077
7078 ;
7079 return 0;
7080 }
7081 _ACEOF
7082 if ac_fn_c_try_link "$LINENO"; then :
7083 eval $cacheid=yes
7084 else
7085 eval $cacheid=no
7086 fi
7087 rm -f core conftest.err conftest.$ac_objext \
7088 conftest$ac_exeext conftest.$ac_ext
7089 fi
7090
7091
7092 CFLAGS="$xorg_testset_save_CFLAGS"
7093
7094 eval supported=\$$cacheid
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7096 $as_echo "$supported" >&6; }
7097 if test "$supported" = "yes" ; then
7098 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7099 found="yes"
7100 fi
7101 fi
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117 xorg_testset_save_CFLAGS="$CFLAGS"
7118
7119 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7120 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7122 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7123 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7124 $as_echo_n "(cached) " >&6
7125 else
7126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7127 /* end confdefs.h. */
7128 int i;
7129 _ACEOF
7130 if ac_fn_c_try_compile "$LINENO"; then :
7131 xorg_cv_cc_flag_unknown_warning_option=yes
7132 else
7133 xorg_cv_cc_flag_unknown_warning_option=no
7134 fi
7135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7136 fi
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7138 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7139 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7140 CFLAGS="$xorg_testset_save_CFLAGS"
7141 fi
7142
7143 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7144 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7145 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7146 fi
7147 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7149 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7150 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7151 $as_echo_n "(cached) " >&6
7152 else
7153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7154 /* end confdefs.h. */
7155 int i;
7156 _ACEOF
7157 if ac_fn_c_try_compile "$LINENO"; then :
7158 xorg_cv_cc_flag_unused_command_line_argument=yes
7159 else
7160 xorg_cv_cc_flag_unused_command_line_argument=no
7161 fi
7162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7163 fi
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7165 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7166 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7167 CFLAGS="$xorg_testset_save_CFLAGS"
7168 fi
7169
7170 found="no"
7171
7172 if test $found = "no" ; then
7173 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7174 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7175 fi
7176
7177 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7179 fi
7180
7181 CFLAGS="$CFLAGS -Werror=nonnull"
7182
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5
7184 $as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; }
7185 cacheid=xorg_cv_cc_flag__Werror_nonnull
7186 if eval \${$cacheid+:} 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 int
7193 main ()
7194 {
7195
7196 ;
7197 return 0;
7198 }
7199 _ACEOF
7200 if ac_fn_c_try_link "$LINENO"; then :
7201 eval $cacheid=yes
7202 else
7203 eval $cacheid=no
7204 fi
7205 rm -f core conftest.err conftest.$ac_objext \
7206 conftest$ac_exeext conftest.$ac_ext
7207 fi
7208
7209
7210 CFLAGS="$xorg_testset_save_CFLAGS"
7211
7212 eval supported=\$$cacheid
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7214 $as_echo "$supported" >&6; }
7215 if test "$supported" = "yes" ; then
7216 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7217 found="yes"
7218 fi
7219 fi
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235 xorg_testset_save_CFLAGS="$CFLAGS"
7236
7237 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7238 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7240 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7241 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7242 $as_echo_n "(cached) " >&6
7243 else
7244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7245 /* end confdefs.h. */
7246 int i;
7247 _ACEOF
7248 if ac_fn_c_try_compile "$LINENO"; then :
7249 xorg_cv_cc_flag_unknown_warning_option=yes
7250 else
7251 xorg_cv_cc_flag_unknown_warning_option=no
7252 fi
7253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7254 fi
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7256 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7257 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7258 CFLAGS="$xorg_testset_save_CFLAGS"
7259 fi
7260
7261 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7263 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7264 fi
7265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7267 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7268 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7269 $as_echo_n "(cached) " >&6
7270 else
7271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7272 /* end confdefs.h. */
7273 int i;
7274 _ACEOF
7275 if ac_fn_c_try_compile "$LINENO"; then :
7276 xorg_cv_cc_flag_unused_command_line_argument=yes
7277 else
7278 xorg_cv_cc_flag_unused_command_line_argument=no
7279 fi
7280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7281 fi
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7283 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7284 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7285 CFLAGS="$xorg_testset_save_CFLAGS"
7286 fi
7287
7288 found="no"
7289
7290 if test $found = "no" ; then
7291 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7292 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7293 fi
7294
7295 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7297 fi
7298
7299 CFLAGS="$CFLAGS -Werror=init-self"
7300
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5
7302 $as_echo_n "checking if $CC supports-Werror=init-self... " >&6; }
7303 cacheid=xorg_cv_cc_flag__Werror_init_self
7304 if eval \${$cacheid+:} 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 int
7311 main ()
7312 {
7313
7314 ;
7315 return 0;
7316 }
7317 _ACEOF
7318 if ac_fn_c_try_link "$LINENO"; then :
7319 eval $cacheid=yes
7320 else
7321 eval $cacheid=no
7322 fi
7323 rm -f core conftest.err conftest.$ac_objext \
7324 conftest$ac_exeext conftest.$ac_ext
7325 fi
7326
7327
7328 CFLAGS="$xorg_testset_save_CFLAGS"
7329
7330 eval supported=\$$cacheid
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7332 $as_echo "$supported" >&6; }
7333 if test "$supported" = "yes" ; then
7334 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7335 found="yes"
7336 fi
7337 fi
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353 xorg_testset_save_CFLAGS="$CFLAGS"
7354
7355 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7356 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7358 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7359 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7360 $as_echo_n "(cached) " >&6
7361 else
7362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7363 /* end confdefs.h. */
7364 int i;
7365 _ACEOF
7366 if ac_fn_c_try_compile "$LINENO"; then :
7367 xorg_cv_cc_flag_unknown_warning_option=yes
7368 else
7369 xorg_cv_cc_flag_unknown_warning_option=no
7370 fi
7371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7372 fi
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7374 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7375 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7376 CFLAGS="$xorg_testset_save_CFLAGS"
7377 fi
7378
7379 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7381 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7382 fi
7383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7385 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7386 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7387 $as_echo_n "(cached) " >&6
7388 else
7389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7390 /* end confdefs.h. */
7391 int i;
7392 _ACEOF
7393 if ac_fn_c_try_compile "$LINENO"; then :
7394 xorg_cv_cc_flag_unused_command_line_argument=yes
7395 else
7396 xorg_cv_cc_flag_unused_command_line_argument=no
7397 fi
7398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7399 fi
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7401 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7402 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7403 CFLAGS="$xorg_testset_save_CFLAGS"
7404 fi
7405
7406 found="no"
7407
7408 if test $found = "no" ; then
7409 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7410 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7411 fi
7412
7413 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7415 fi
7416
7417 CFLAGS="$CFLAGS -Werror=main"
7418
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5
7420 $as_echo_n "checking if $CC supports-Werror=main... " >&6; }
7421 cacheid=xorg_cv_cc_flag__Werror_main
7422 if eval \${$cacheid+:} 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 int
7429 main ()
7430 {
7431
7432 ;
7433 return 0;
7434 }
7435 _ACEOF
7436 if ac_fn_c_try_link "$LINENO"; then :
7437 eval $cacheid=yes
7438 else
7439 eval $cacheid=no
7440 fi
7441 rm -f core conftest.err conftest.$ac_objext \
7442 conftest$ac_exeext conftest.$ac_ext
7443 fi
7444
7445
7446 CFLAGS="$xorg_testset_save_CFLAGS"
7447
7448 eval supported=\$$cacheid
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7450 $as_echo "$supported" >&6; }
7451 if test "$supported" = "yes" ; then
7452 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7453 found="yes"
7454 fi
7455 fi
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471 xorg_testset_save_CFLAGS="$CFLAGS"
7472
7473 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7474 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7476 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7477 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7478 $as_echo_n "(cached) " >&6
7479 else
7480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481 /* end confdefs.h. */
7482 int i;
7483 _ACEOF
7484 if ac_fn_c_try_compile "$LINENO"; then :
7485 xorg_cv_cc_flag_unknown_warning_option=yes
7486 else
7487 xorg_cv_cc_flag_unknown_warning_option=no
7488 fi
7489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7490 fi
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7492 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7493 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7494 CFLAGS="$xorg_testset_save_CFLAGS"
7495 fi
7496
7497 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7498 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7499 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7500 fi
7501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7503 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7504 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7505 $as_echo_n "(cached) " >&6
7506 else
7507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7508 /* end confdefs.h. */
7509 int i;
7510 _ACEOF
7511 if ac_fn_c_try_compile "$LINENO"; then :
7512 xorg_cv_cc_flag_unused_command_line_argument=yes
7513 else
7514 xorg_cv_cc_flag_unused_command_line_argument=no
7515 fi
7516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7517 fi
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7519 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7520 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7521 CFLAGS="$xorg_testset_save_CFLAGS"
7522 fi
7523
7524 found="no"
7525
7526 if test $found = "no" ; then
7527 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7528 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7529 fi
7530
7531 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7532 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7533 fi
7534
7535 CFLAGS="$CFLAGS -Werror=missing-braces"
7536
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5
7538 $as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; }
7539 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7540 if eval \${$cacheid+:} 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 int
7547 main ()
7548 {
7549
7550 ;
7551 return 0;
7552 }
7553 _ACEOF
7554 if ac_fn_c_try_link "$LINENO"; then :
7555 eval $cacheid=yes
7556 else
7557 eval $cacheid=no
7558 fi
7559 rm -f core conftest.err conftest.$ac_objext \
7560 conftest$ac_exeext conftest.$ac_ext
7561 fi
7562
7563
7564 CFLAGS="$xorg_testset_save_CFLAGS"
7565
7566 eval supported=\$$cacheid
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7568 $as_echo "$supported" >&6; }
7569 if test "$supported" = "yes" ; then
7570 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7571 found="yes"
7572 fi
7573 fi
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589 xorg_testset_save_CFLAGS="$CFLAGS"
7590
7591 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7592 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7594 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7595 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7596 $as_echo_n "(cached) " >&6
7597 else
7598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7599 /* end confdefs.h. */
7600 int i;
7601 _ACEOF
7602 if ac_fn_c_try_compile "$LINENO"; then :
7603 xorg_cv_cc_flag_unknown_warning_option=yes
7604 else
7605 xorg_cv_cc_flag_unknown_warning_option=no
7606 fi
7607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7608 fi
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7610 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7611 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7612 CFLAGS="$xorg_testset_save_CFLAGS"
7613 fi
7614
7615 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7616 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7617 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7618 fi
7619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7621 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7622 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7623 $as_echo_n "(cached) " >&6
7624 else
7625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7626 /* end confdefs.h. */
7627 int i;
7628 _ACEOF
7629 if ac_fn_c_try_compile "$LINENO"; then :
7630 xorg_cv_cc_flag_unused_command_line_argument=yes
7631 else
7632 xorg_cv_cc_flag_unused_command_line_argument=no
7633 fi
7634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7635 fi
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7637 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7638 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7639 CFLAGS="$xorg_testset_save_CFLAGS"
7640 fi
7641
7642 found="no"
7643
7644 if test $found = "no" ; then
7645 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7646 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7647 fi
7648
7649 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7651 fi
7652
7653 CFLAGS="$CFLAGS -Werror=sequence-point"
7654
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5
7656 $as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; }
7657 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7658 if eval \${$cacheid+:} 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 int
7665 main ()
7666 {
7667
7668 ;
7669 return 0;
7670 }
7671 _ACEOF
7672 if ac_fn_c_try_link "$LINENO"; then :
7673 eval $cacheid=yes
7674 else
7675 eval $cacheid=no
7676 fi
7677 rm -f core conftest.err conftest.$ac_objext \
7678 conftest$ac_exeext conftest.$ac_ext
7679 fi
7680
7681
7682 CFLAGS="$xorg_testset_save_CFLAGS"
7683
7684 eval supported=\$$cacheid
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7686 $as_echo "$supported" >&6; }
7687 if test "$supported" = "yes" ; then
7688 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7689 found="yes"
7690 fi
7691 fi
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707 xorg_testset_save_CFLAGS="$CFLAGS"
7708
7709 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7710 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7712 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7713 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7714 $as_echo_n "(cached) " >&6
7715 else
7716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7717 /* end confdefs.h. */
7718 int i;
7719 _ACEOF
7720 if ac_fn_c_try_compile "$LINENO"; then :
7721 xorg_cv_cc_flag_unknown_warning_option=yes
7722 else
7723 xorg_cv_cc_flag_unknown_warning_option=no
7724 fi
7725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7726 fi
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7728 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7729 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7730 CFLAGS="$xorg_testset_save_CFLAGS"
7731 fi
7732
7733 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7734 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7735 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7736 fi
7737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7739 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7740 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7741 $as_echo_n "(cached) " >&6
7742 else
7743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7744 /* end confdefs.h. */
7745 int i;
7746 _ACEOF
7747 if ac_fn_c_try_compile "$LINENO"; then :
7748 xorg_cv_cc_flag_unused_command_line_argument=yes
7749 else
7750 xorg_cv_cc_flag_unused_command_line_argument=no
7751 fi
7752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7753 fi
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7755 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7756 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7757 CFLAGS="$xorg_testset_save_CFLAGS"
7758 fi
7759
7760 found="no"
7761
7762 if test $found = "no" ; then
7763 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7764 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7765 fi
7766
7767 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7769 fi
7770
7771 CFLAGS="$CFLAGS -Werror=return-type"
7772
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5
7774 $as_echo_n "checking if $CC supports-Werror=return-type... " >&6; }
7775 cacheid=xorg_cv_cc_flag__Werror_return_type
7776 if eval \${$cacheid+:} false; then :
7777 $as_echo_n "(cached) " >&6
7778 else
7779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7780 /* end confdefs.h. */
7781 int i;
7782 int
7783 main ()
7784 {
7785
7786 ;
7787 return 0;
7788 }
7789 _ACEOF
7790 if ac_fn_c_try_link "$LINENO"; then :
7791 eval $cacheid=yes
7792 else
7793 eval $cacheid=no
7794 fi
7795 rm -f core conftest.err conftest.$ac_objext \
7796 conftest$ac_exeext conftest.$ac_ext
7797 fi
7798
7799
7800 CFLAGS="$xorg_testset_save_CFLAGS"
7801
7802 eval supported=\$$cacheid
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7804 $as_echo "$supported" >&6; }
7805 if test "$supported" = "yes" ; then
7806 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7807 found="yes"
7808 fi
7809 fi
7810
7811 if test $found = "no" ; then
7812 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7813 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7814 fi
7815
7816 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7818 fi
7819
7820 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7821
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7823 $as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7824 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7825 if eval \${$cacheid+:} 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 int
7832 main ()
7833 {
7834
7835 ;
7836 return 0;
7837 }
7838 _ACEOF
7839 if ac_fn_c_try_link "$LINENO"; then :
7840 eval $cacheid=yes
7841 else
7842 eval $cacheid=no
7843 fi
7844 rm -f core conftest.err conftest.$ac_objext \
7845 conftest$ac_exeext conftest.$ac_ext
7846 fi
7847
7848
7849 CFLAGS="$xorg_testset_save_CFLAGS"
7850
7851 eval supported=\$$cacheid
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7853 $as_echo "$supported" >&6; }
7854 if test "$supported" = "yes" ; then
7855 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7856 found="yes"
7857 fi
7858 fi
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874 xorg_testset_save_CFLAGS="$CFLAGS"
7875
7876 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7877 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7879 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7880 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7881 $as_echo_n "(cached) " >&6
7882 else
7883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7884 /* end confdefs.h. */
7885 int i;
7886 _ACEOF
7887 if ac_fn_c_try_compile "$LINENO"; then :
7888 xorg_cv_cc_flag_unknown_warning_option=yes
7889 else
7890 xorg_cv_cc_flag_unknown_warning_option=no
7891 fi
7892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7893 fi
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7895 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7896 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7897 CFLAGS="$xorg_testset_save_CFLAGS"
7898 fi
7899
7900 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7901 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7902 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7903 fi
7904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7906 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7907 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7908 $as_echo_n "(cached) " >&6
7909 else
7910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7911 /* end confdefs.h. */
7912 int i;
7913 _ACEOF
7914 if ac_fn_c_try_compile "$LINENO"; then :
7915 xorg_cv_cc_flag_unused_command_line_argument=yes
7916 else
7917 xorg_cv_cc_flag_unused_command_line_argument=no
7918 fi
7919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7920 fi
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7922 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7923 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7924 CFLAGS="$xorg_testset_save_CFLAGS"
7925 fi
7926
7927 found="no"
7928
7929 if test $found = "no" ; then
7930 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7931 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7932 fi
7933
7934 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7936 fi
7937
7938 CFLAGS="$CFLAGS -Werror=trigraphs"
7939
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5
7941 $as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; }
7942 cacheid=xorg_cv_cc_flag__Werror_trigraphs
7943 if eval \${$cacheid+:} 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 int
7950 main ()
7951 {
7952
7953 ;
7954 return 0;
7955 }
7956 _ACEOF
7957 if ac_fn_c_try_link "$LINENO"; then :
7958 eval $cacheid=yes
7959 else
7960 eval $cacheid=no
7961 fi
7962 rm -f core conftest.err conftest.$ac_objext \
7963 conftest$ac_exeext conftest.$ac_ext
7964 fi
7965
7966
7967 CFLAGS="$xorg_testset_save_CFLAGS"
7968
7969 eval supported=\$$cacheid
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7971 $as_echo "$supported" >&6; }
7972 if test "$supported" = "yes" ; then
7973 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7974 found="yes"
7975 fi
7976 fi
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992 xorg_testset_save_CFLAGS="$CFLAGS"
7993
7994 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7995 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7997 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7998 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7999 $as_echo_n "(cached) " >&6
8000 else
8001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8002 /* end confdefs.h. */
8003 int i;
8004 _ACEOF
8005 if ac_fn_c_try_compile "$LINENO"; then :
8006 xorg_cv_cc_flag_unknown_warning_option=yes
8007 else
8008 xorg_cv_cc_flag_unknown_warning_option=no
8009 fi
8010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8011 fi
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8013 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8014 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8015 CFLAGS="$xorg_testset_save_CFLAGS"
8016 fi
8017
8018 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8020 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8021 fi
8022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8024 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8025 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8026 $as_echo_n "(cached) " >&6
8027 else
8028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8029 /* end confdefs.h. */
8030 int i;
8031 _ACEOF
8032 if ac_fn_c_try_compile "$LINENO"; then :
8033 xorg_cv_cc_flag_unused_command_line_argument=yes
8034 else
8035 xorg_cv_cc_flag_unused_command_line_argument=no
8036 fi
8037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8038 fi
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8040 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8041 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8042 CFLAGS="$xorg_testset_save_CFLAGS"
8043 fi
8044
8045 found="no"
8046
8047 if test $found = "no" ; then
8048 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8049 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8050 fi
8051
8052 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8054 fi
8055
8056 CFLAGS="$CFLAGS -Werror=array-bounds"
8057
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5
8059 $as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; }
8060 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8061 if eval \${$cacheid+:} 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 int
8068 main ()
8069 {
8070
8071 ;
8072 return 0;
8073 }
8074 _ACEOF
8075 if ac_fn_c_try_link "$LINENO"; then :
8076 eval $cacheid=yes
8077 else
8078 eval $cacheid=no
8079 fi
8080 rm -f core conftest.err conftest.$ac_objext \
8081 conftest$ac_exeext conftest.$ac_ext
8082 fi
8083
8084
8085 CFLAGS="$xorg_testset_save_CFLAGS"
8086
8087 eval supported=\$$cacheid
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8089 $as_echo "$supported" >&6; }
8090 if test "$supported" = "yes" ; then
8091 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8092 found="yes"
8093 fi
8094 fi
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110 xorg_testset_save_CFLAGS="$CFLAGS"
8111
8112 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8113 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8115 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8116 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8117 $as_echo_n "(cached) " >&6
8118 else
8119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8120 /* end confdefs.h. */
8121 int i;
8122 _ACEOF
8123 if ac_fn_c_try_compile "$LINENO"; then :
8124 xorg_cv_cc_flag_unknown_warning_option=yes
8125 else
8126 xorg_cv_cc_flag_unknown_warning_option=no
8127 fi
8128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8129 fi
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8131 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8132 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8133 CFLAGS="$xorg_testset_save_CFLAGS"
8134 fi
8135
8136 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8137 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8138 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8139 fi
8140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8142 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8143 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8144 $as_echo_n "(cached) " >&6
8145 else
8146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8147 /* end confdefs.h. */
8148 int i;
8149 _ACEOF
8150 if ac_fn_c_try_compile "$LINENO"; then :
8151 xorg_cv_cc_flag_unused_command_line_argument=yes
8152 else
8153 xorg_cv_cc_flag_unused_command_line_argument=no
8154 fi
8155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8156 fi
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8158 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8159 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8160 CFLAGS="$xorg_testset_save_CFLAGS"
8161 fi
8162
8163 found="no"
8164
8165 if test $found = "no" ; then
8166 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8167 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8168 fi
8169
8170 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8172 fi
8173
8174 CFLAGS="$CFLAGS -Werror=write-strings"
8175
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5
8177 $as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; }
8178 cacheid=xorg_cv_cc_flag__Werror_write_strings
8179 if eval \${$cacheid+:} 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 int
8186 main ()
8187 {
8188
8189 ;
8190 return 0;
8191 }
8192 _ACEOF
8193 if ac_fn_c_try_link "$LINENO"; then :
8194 eval $cacheid=yes
8195 else
8196 eval $cacheid=no
8197 fi
8198 rm -f core conftest.err conftest.$ac_objext \
8199 conftest$ac_exeext conftest.$ac_ext
8200 fi
8201
8202
8203 CFLAGS="$xorg_testset_save_CFLAGS"
8204
8205 eval supported=\$$cacheid
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8207 $as_echo "$supported" >&6; }
8208 if test "$supported" = "yes" ; then
8209 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8210 found="yes"
8211 fi
8212 fi
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228 xorg_testset_save_CFLAGS="$CFLAGS"
8229
8230 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8231 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8233 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8234 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8235 $as_echo_n "(cached) " >&6
8236 else
8237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8238 /* end confdefs.h. */
8239 int i;
8240 _ACEOF
8241 if ac_fn_c_try_compile "$LINENO"; then :
8242 xorg_cv_cc_flag_unknown_warning_option=yes
8243 else
8244 xorg_cv_cc_flag_unknown_warning_option=no
8245 fi
8246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8247 fi
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8249 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8250 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8251 CFLAGS="$xorg_testset_save_CFLAGS"
8252 fi
8253
8254 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8256 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8257 fi
8258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8260 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8261 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8262 $as_echo_n "(cached) " >&6
8263 else
8264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8265 /* end confdefs.h. */
8266 int i;
8267 _ACEOF
8268 if ac_fn_c_try_compile "$LINENO"; then :
8269 xorg_cv_cc_flag_unused_command_line_argument=yes
8270 else
8271 xorg_cv_cc_flag_unused_command_line_argument=no
8272 fi
8273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8274 fi
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8276 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8277 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8278 CFLAGS="$xorg_testset_save_CFLAGS"
8279 fi
8280
8281 found="no"
8282
8283 if test $found = "no" ; then
8284 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8285 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8286 fi
8287
8288 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8290 fi
8291
8292 CFLAGS="$CFLAGS -Werror=address"
8293
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5
8295 $as_echo_n "checking if $CC supports-Werror=address... " >&6; }
8296 cacheid=xorg_cv_cc_flag__Werror_address
8297 if eval \${$cacheid+:} 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 int
8304 main ()
8305 {
8306
8307 ;
8308 return 0;
8309 }
8310 _ACEOF
8311 if ac_fn_c_try_link "$LINENO"; then :
8312 eval $cacheid=yes
8313 else
8314 eval $cacheid=no
8315 fi
8316 rm -f core conftest.err conftest.$ac_objext \
8317 conftest$ac_exeext conftest.$ac_ext
8318 fi
8319
8320
8321 CFLAGS="$xorg_testset_save_CFLAGS"
8322
8323 eval supported=\$$cacheid
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8325 $as_echo "$supported" >&6; }
8326 if test "$supported" = "yes" ; then
8327 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8328 found="yes"
8329 fi
8330 fi
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346 xorg_testset_save_CFLAGS="$CFLAGS"
8347
8348 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8349 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8351 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8352 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8353 $as_echo_n "(cached) " >&6
8354 else
8355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8356 /* end confdefs.h. */
8357 int i;
8358 _ACEOF
8359 if ac_fn_c_try_compile "$LINENO"; then :
8360 xorg_cv_cc_flag_unknown_warning_option=yes
8361 else
8362 xorg_cv_cc_flag_unknown_warning_option=no
8363 fi
8364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8365 fi
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8367 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8368 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8369 CFLAGS="$xorg_testset_save_CFLAGS"
8370 fi
8371
8372 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8374 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8375 fi
8376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8378 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8379 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8380 $as_echo_n "(cached) " >&6
8381 else
8382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8383 /* end confdefs.h. */
8384 int i;
8385 _ACEOF
8386 if ac_fn_c_try_compile "$LINENO"; then :
8387 xorg_cv_cc_flag_unused_command_line_argument=yes
8388 else
8389 xorg_cv_cc_flag_unused_command_line_argument=no
8390 fi
8391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8392 fi
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8394 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8395 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8396 CFLAGS="$xorg_testset_save_CFLAGS"
8397 fi
8398
8399 found="no"
8400
8401 if test $found = "no" ; then
8402 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8403 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8404 fi
8405
8406 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8408 fi
8409
8410 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8411
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5
8413 $as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; }
8414 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8415 if eval \${$cacheid+:} false; then :
8416 $as_echo_n "(cached) " >&6
8417 else
8418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8419 /* end confdefs.h. */
8420 int i;
8421 int
8422 main ()
8423 {
8424
8425 ;
8426 return 0;
8427 }
8428 _ACEOF
8429 if ac_fn_c_try_link "$LINENO"; then :
8430 eval $cacheid=yes
8431 else
8432 eval $cacheid=no
8433 fi
8434 rm -f core conftest.err conftest.$ac_objext \
8435 conftest$ac_exeext conftest.$ac_ext
8436 fi
8437
8438
8439 CFLAGS="$xorg_testset_save_CFLAGS"
8440
8441 eval supported=\$$cacheid
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8443 $as_echo "$supported" >&6; }
8444 if test "$supported" = "yes" ; then
8445 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8446 found="yes"
8447 fi
8448 fi
8449
8450 if test $found = "no" ; then
8451 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8452 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8453 fi
8454
8455 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8457 fi
8458
8459 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8460
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8462 $as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8463 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8464 if eval \${$cacheid+:} 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 int
8471 main ()
8472 {
8473
8474 ;
8475 return 0;
8476 }
8477 _ACEOF
8478 if ac_fn_c_try_link "$LINENO"; then :
8479 eval $cacheid=yes
8480 else
8481 eval $cacheid=no
8482 fi
8483 rm -f core conftest.err conftest.$ac_objext \
8484 conftest$ac_exeext conftest.$ac_ext
8485 fi
8486
8487
8488 CFLAGS="$xorg_testset_save_CFLAGS"
8489
8490 eval supported=\$$cacheid
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8492 $as_echo "$supported" >&6; }
8493 if test "$supported" = "yes" ; then
8494 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8495 found="yes"
8496 fi
8497 fi
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513 xorg_testset_save_CFLAGS="$CFLAGS"
8514
8515 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8516 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8518 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8519 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8520 $as_echo_n "(cached) " >&6
8521 else
8522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8523 /* end confdefs.h. */
8524 int i;
8525 _ACEOF
8526 if ac_fn_c_try_compile "$LINENO"; then :
8527 xorg_cv_cc_flag_unknown_warning_option=yes
8528 else
8529 xorg_cv_cc_flag_unknown_warning_option=no
8530 fi
8531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8532 fi
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8534 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8535 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8536 CFLAGS="$xorg_testset_save_CFLAGS"
8537 fi
8538
8539 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8541 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8542 fi
8543 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8545 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8546 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8547 $as_echo_n "(cached) " >&6
8548 else
8549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8550 /* end confdefs.h. */
8551 int i;
8552 _ACEOF
8553 if ac_fn_c_try_compile "$LINENO"; then :
8554 xorg_cv_cc_flag_unused_command_line_argument=yes
8555 else
8556 xorg_cv_cc_flag_unused_command_line_argument=no
8557 fi
8558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8559 fi
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8561 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8562 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8563 CFLAGS="$xorg_testset_save_CFLAGS"
8564 fi
8565
8566 found="no"
8567
8568 if test $found = "no" ; then
8569 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8570 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8571 fi
8572
8573 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8574 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8575 fi
8576
8577 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8578
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5
8580 $as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; }
8581 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8582 if eval \${$cacheid+:} false; then :
8583 $as_echo_n "(cached) " >&6
8584 else
8585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8586 /* end confdefs.h. */
8587 int i;
8588 int
8589 main ()
8590 {
8591
8592 ;
8593 return 0;
8594 }
8595 _ACEOF
8596 if ac_fn_c_try_link "$LINENO"; then :
8597 eval $cacheid=yes
8598 else
8599 eval $cacheid=no
8600 fi
8601 rm -f core conftest.err conftest.$ac_objext \
8602 conftest$ac_exeext conftest.$ac_ext
8603 fi
8604
8605
8606 CFLAGS="$xorg_testset_save_CFLAGS"
8607
8608 eval supported=\$$cacheid
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8610 $as_echo "$supported" >&6; }
8611 if test "$supported" = "yes" ; then
8612 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8613 found="yes"
8614 fi
8615 fi
8616
8617 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8618 else
8619 { $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
8620 $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;}
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634 xorg_testset_save_CFLAGS="$CFLAGS"
8635
8636 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8637 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8639 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8640 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8641 $as_echo_n "(cached) " >&6
8642 else
8643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8644 /* end confdefs.h. */
8645 int i;
8646 _ACEOF
8647 if ac_fn_c_try_compile "$LINENO"; then :
8648 xorg_cv_cc_flag_unknown_warning_option=yes
8649 else
8650 xorg_cv_cc_flag_unknown_warning_option=no
8651 fi
8652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8653 fi
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8655 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8656 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8657 CFLAGS="$xorg_testset_save_CFLAGS"
8658 fi
8659
8660 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8661 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8662 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8663 fi
8664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8666 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8667 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8668 $as_echo_n "(cached) " >&6
8669 else
8670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8671 /* end confdefs.h. */
8672 int i;
8673 _ACEOF
8674 if ac_fn_c_try_compile "$LINENO"; then :
8675 xorg_cv_cc_flag_unused_command_line_argument=yes
8676 else
8677 xorg_cv_cc_flag_unused_command_line_argument=no
8678 fi
8679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8680 fi
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8682 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8683 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8684 CFLAGS="$xorg_testset_save_CFLAGS"
8685 fi
8686
8687 found="no"
8688
8689 if test $found = "no" ; then
8690 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8691 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8692 fi
8693
8694 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8696 fi
8697
8698 CFLAGS="$CFLAGS -Wimplicit"
8699
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5
8701 $as_echo_n "checking if $CC supports-Wimplicit... " >&6; }
8702 cacheid=xorg_cv_cc_flag__Wimplicit
8703 if eval \${$cacheid+:} 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 int
8710 main ()
8711 {
8712
8713 ;
8714 return 0;
8715 }
8716 _ACEOF
8717 if ac_fn_c_try_link "$LINENO"; then :
8718 eval $cacheid=yes
8719 else
8720 eval $cacheid=no
8721 fi
8722 rm -f core conftest.err conftest.$ac_objext \
8723 conftest$ac_exeext conftest.$ac_ext
8724 fi
8725
8726
8727 CFLAGS="$xorg_testset_save_CFLAGS"
8728
8729 eval supported=\$$cacheid
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8731 $as_echo "$supported" >&6; }
8732 if test "$supported" = "yes" ; then
8733 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8734 found="yes"
8735 fi
8736 fi
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752 xorg_testset_save_CFLAGS="$CFLAGS"
8753
8754 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8755 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8757 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8758 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8759 $as_echo_n "(cached) " >&6
8760 else
8761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8762 /* end confdefs.h. */
8763 int i;
8764 _ACEOF
8765 if ac_fn_c_try_compile "$LINENO"; then :
8766 xorg_cv_cc_flag_unknown_warning_option=yes
8767 else
8768 xorg_cv_cc_flag_unknown_warning_option=no
8769 fi
8770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8771 fi
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8773 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8774 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8775 CFLAGS="$xorg_testset_save_CFLAGS"
8776 fi
8777
8778 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8780 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8781 fi
8782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8784 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8785 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8786 $as_echo_n "(cached) " >&6
8787 else
8788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8789 /* end confdefs.h. */
8790 int i;
8791 _ACEOF
8792 if ac_fn_c_try_compile "$LINENO"; then :
8793 xorg_cv_cc_flag_unused_command_line_argument=yes
8794 else
8795 xorg_cv_cc_flag_unused_command_line_argument=no
8796 fi
8797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8798 fi
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8800 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8801 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8802 CFLAGS="$xorg_testset_save_CFLAGS"
8803 fi
8804
8805 found="no"
8806
8807 if test $found = "no" ; then
8808 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8809 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8810 fi
8811
8812 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8813 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8814 fi
8815
8816 CFLAGS="$CFLAGS -Wnonnull"
8817
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5
8819 $as_echo_n "checking if $CC supports-Wnonnull... " >&6; }
8820 cacheid=xorg_cv_cc_flag__Wnonnull
8821 if eval \${$cacheid+:} 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 int
8828 main ()
8829 {
8830
8831 ;
8832 return 0;
8833 }
8834 _ACEOF
8835 if ac_fn_c_try_link "$LINENO"; then :
8836 eval $cacheid=yes
8837 else
8838 eval $cacheid=no
8839 fi
8840 rm -f core conftest.err conftest.$ac_objext \
8841 conftest$ac_exeext conftest.$ac_ext
8842 fi
8843
8844
8845 CFLAGS="$xorg_testset_save_CFLAGS"
8846
8847 eval supported=\$$cacheid
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8849 $as_echo "$supported" >&6; }
8850 if test "$supported" = "yes" ; then
8851 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8852 found="yes"
8853 fi
8854 fi
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870 xorg_testset_save_CFLAGS="$CFLAGS"
8871
8872 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8873 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8875 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8876 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8877 $as_echo_n "(cached) " >&6
8878 else
8879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8880 /* end confdefs.h. */
8881 int i;
8882 _ACEOF
8883 if ac_fn_c_try_compile "$LINENO"; then :
8884 xorg_cv_cc_flag_unknown_warning_option=yes
8885 else
8886 xorg_cv_cc_flag_unknown_warning_option=no
8887 fi
8888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8889 fi
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8891 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8892 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8893 CFLAGS="$xorg_testset_save_CFLAGS"
8894 fi
8895
8896 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8898 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8899 fi
8900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8902 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8903 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8904 $as_echo_n "(cached) " >&6
8905 else
8906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8907 /* end confdefs.h. */
8908 int i;
8909 _ACEOF
8910 if ac_fn_c_try_compile "$LINENO"; then :
8911 xorg_cv_cc_flag_unused_command_line_argument=yes
8912 else
8913 xorg_cv_cc_flag_unused_command_line_argument=no
8914 fi
8915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8916 fi
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8918 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8919 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8920 CFLAGS="$xorg_testset_save_CFLAGS"
8921 fi
8922
8923 found="no"
8924
8925 if test $found = "no" ; then
8926 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8927 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8928 fi
8929
8930 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8932 fi
8933
8934 CFLAGS="$CFLAGS -Winit-self"
8935
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5
8937 $as_echo_n "checking if $CC supports-Winit-self... " >&6; }
8938 cacheid=xorg_cv_cc_flag__Winit_self
8939 if eval \${$cacheid+:} 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 int
8946 main ()
8947 {
8948
8949 ;
8950 return 0;
8951 }
8952 _ACEOF
8953 if ac_fn_c_try_link "$LINENO"; then :
8954 eval $cacheid=yes
8955 else
8956 eval $cacheid=no
8957 fi
8958 rm -f core conftest.err conftest.$ac_objext \
8959 conftest$ac_exeext conftest.$ac_ext
8960 fi
8961
8962
8963 CFLAGS="$xorg_testset_save_CFLAGS"
8964
8965 eval supported=\$$cacheid
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8967 $as_echo "$supported" >&6; }
8968 if test "$supported" = "yes" ; then
8969 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8970 found="yes"
8971 fi
8972 fi
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988 xorg_testset_save_CFLAGS="$CFLAGS"
8989
8990 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8991 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8993 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8994 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8995 $as_echo_n "(cached) " >&6
8996 else
8997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8998 /* end confdefs.h. */
8999 int i;
9000 _ACEOF
9001 if ac_fn_c_try_compile "$LINENO"; then :
9002 xorg_cv_cc_flag_unknown_warning_option=yes
9003 else
9004 xorg_cv_cc_flag_unknown_warning_option=no
9005 fi
9006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9007 fi
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9009 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9010 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9011 CFLAGS="$xorg_testset_save_CFLAGS"
9012 fi
9013
9014 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9016 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9017 fi
9018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9020 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9021 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9022 $as_echo_n "(cached) " >&6
9023 else
9024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9025 /* end confdefs.h. */
9026 int i;
9027 _ACEOF
9028 if ac_fn_c_try_compile "$LINENO"; then :
9029 xorg_cv_cc_flag_unused_command_line_argument=yes
9030 else
9031 xorg_cv_cc_flag_unused_command_line_argument=no
9032 fi
9033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9034 fi
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9036 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9037 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9038 CFLAGS="$xorg_testset_save_CFLAGS"
9039 fi
9040
9041 found="no"
9042
9043 if test $found = "no" ; then
9044 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9045 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9046 fi
9047
9048 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9050 fi
9051
9052 CFLAGS="$CFLAGS -Wmain"
9053
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5
9055 $as_echo_n "checking if $CC supports-Wmain... " >&6; }
9056 cacheid=xorg_cv_cc_flag__Wmain
9057 if eval \${$cacheid+:} 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 int
9064 main ()
9065 {
9066
9067 ;
9068 return 0;
9069 }
9070 _ACEOF
9071 if ac_fn_c_try_link "$LINENO"; then :
9072 eval $cacheid=yes
9073 else
9074 eval $cacheid=no
9075 fi
9076 rm -f core conftest.err conftest.$ac_objext \
9077 conftest$ac_exeext conftest.$ac_ext
9078 fi
9079
9080
9081 CFLAGS="$xorg_testset_save_CFLAGS"
9082
9083 eval supported=\$$cacheid
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9085 $as_echo "$supported" >&6; }
9086 if test "$supported" = "yes" ; then
9087 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9088 found="yes"
9089 fi
9090 fi
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106 xorg_testset_save_CFLAGS="$CFLAGS"
9107
9108 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9109 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9111 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9112 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9113 $as_echo_n "(cached) " >&6
9114 else
9115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9116 /* end confdefs.h. */
9117 int i;
9118 _ACEOF
9119 if ac_fn_c_try_compile "$LINENO"; then :
9120 xorg_cv_cc_flag_unknown_warning_option=yes
9121 else
9122 xorg_cv_cc_flag_unknown_warning_option=no
9123 fi
9124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9125 fi
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9127 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9128 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9129 CFLAGS="$xorg_testset_save_CFLAGS"
9130 fi
9131
9132 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9133 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9134 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9135 fi
9136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9138 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9139 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9140 $as_echo_n "(cached) " >&6
9141 else
9142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9143 /* end confdefs.h. */
9144 int i;
9145 _ACEOF
9146 if ac_fn_c_try_compile "$LINENO"; then :
9147 xorg_cv_cc_flag_unused_command_line_argument=yes
9148 else
9149 xorg_cv_cc_flag_unused_command_line_argument=no
9150 fi
9151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9152 fi
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9154 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9155 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9156 CFLAGS="$xorg_testset_save_CFLAGS"
9157 fi
9158
9159 found="no"
9160
9161 if test $found = "no" ; then
9162 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9163 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9164 fi
9165
9166 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9168 fi
9169
9170 CFLAGS="$CFLAGS -Wmissing-braces"
9171
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5
9173 $as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; }
9174 cacheid=xorg_cv_cc_flag__Wmissing_braces
9175 if eval \${$cacheid+:} 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 int
9182 main ()
9183 {
9184
9185 ;
9186 return 0;
9187 }
9188 _ACEOF
9189 if ac_fn_c_try_link "$LINENO"; then :
9190 eval $cacheid=yes
9191 else
9192 eval $cacheid=no
9193 fi
9194 rm -f core conftest.err conftest.$ac_objext \
9195 conftest$ac_exeext conftest.$ac_ext
9196 fi
9197
9198
9199 CFLAGS="$xorg_testset_save_CFLAGS"
9200
9201 eval supported=\$$cacheid
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9203 $as_echo "$supported" >&6; }
9204 if test "$supported" = "yes" ; then
9205 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9206 found="yes"
9207 fi
9208 fi
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224 xorg_testset_save_CFLAGS="$CFLAGS"
9225
9226 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9227 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9229 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9230 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9231 $as_echo_n "(cached) " >&6
9232 else
9233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9234 /* end confdefs.h. */
9235 int i;
9236 _ACEOF
9237 if ac_fn_c_try_compile "$LINENO"; then :
9238 xorg_cv_cc_flag_unknown_warning_option=yes
9239 else
9240 xorg_cv_cc_flag_unknown_warning_option=no
9241 fi
9242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9243 fi
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9245 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9246 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9247 CFLAGS="$xorg_testset_save_CFLAGS"
9248 fi
9249
9250 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9251 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9252 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9253 fi
9254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9256 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9257 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9258 $as_echo_n "(cached) " >&6
9259 else
9260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9261 /* end confdefs.h. */
9262 int i;
9263 _ACEOF
9264 if ac_fn_c_try_compile "$LINENO"; then :
9265 xorg_cv_cc_flag_unused_command_line_argument=yes
9266 else
9267 xorg_cv_cc_flag_unused_command_line_argument=no
9268 fi
9269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9270 fi
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9272 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9273 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9274 CFLAGS="$xorg_testset_save_CFLAGS"
9275 fi
9276
9277 found="no"
9278
9279 if test $found = "no" ; then
9280 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9281 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9282 fi
9283
9284 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9286 fi
9287
9288 CFLAGS="$CFLAGS -Wsequence-point"
9289
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5
9291 $as_echo_n "checking if $CC supports-Wsequence-point... " >&6; }
9292 cacheid=xorg_cv_cc_flag__Wsequence_point
9293 if eval \${$cacheid+:} 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 int
9300 main ()
9301 {
9302
9303 ;
9304 return 0;
9305 }
9306 _ACEOF
9307 if ac_fn_c_try_link "$LINENO"; then :
9308 eval $cacheid=yes
9309 else
9310 eval $cacheid=no
9311 fi
9312 rm -f core conftest.err conftest.$ac_objext \
9313 conftest$ac_exeext conftest.$ac_ext
9314 fi
9315
9316
9317 CFLAGS="$xorg_testset_save_CFLAGS"
9318
9319 eval supported=\$$cacheid
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9321 $as_echo "$supported" >&6; }
9322 if test "$supported" = "yes" ; then
9323 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9324 found="yes"
9325 fi
9326 fi
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342 xorg_testset_save_CFLAGS="$CFLAGS"
9343
9344 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9345 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9347 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9348 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9349 $as_echo_n "(cached) " >&6
9350 else
9351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9352 /* end confdefs.h. */
9353 int i;
9354 _ACEOF
9355 if ac_fn_c_try_compile "$LINENO"; then :
9356 xorg_cv_cc_flag_unknown_warning_option=yes
9357 else
9358 xorg_cv_cc_flag_unknown_warning_option=no
9359 fi
9360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9361 fi
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9363 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9364 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9365 CFLAGS="$xorg_testset_save_CFLAGS"
9366 fi
9367
9368 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9370 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9371 fi
9372 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9374 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9375 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9376 $as_echo_n "(cached) " >&6
9377 else
9378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9379 /* end confdefs.h. */
9380 int i;
9381 _ACEOF
9382 if ac_fn_c_try_compile "$LINENO"; then :
9383 xorg_cv_cc_flag_unused_command_line_argument=yes
9384 else
9385 xorg_cv_cc_flag_unused_command_line_argument=no
9386 fi
9387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9388 fi
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9390 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9391 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9392 CFLAGS="$xorg_testset_save_CFLAGS"
9393 fi
9394
9395 found="no"
9396
9397 if test $found = "no" ; then
9398 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9399 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9400 fi
9401
9402 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9404 fi
9405
9406 CFLAGS="$CFLAGS -Wreturn-type"
9407
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5
9409 $as_echo_n "checking if $CC supports-Wreturn-type... " >&6; }
9410 cacheid=xorg_cv_cc_flag__Wreturn_type
9411 if eval \${$cacheid+:} 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 int
9418 main ()
9419 {
9420
9421 ;
9422 return 0;
9423 }
9424 _ACEOF
9425 if ac_fn_c_try_link "$LINENO"; then :
9426 eval $cacheid=yes
9427 else
9428 eval $cacheid=no
9429 fi
9430 rm -f core conftest.err conftest.$ac_objext \
9431 conftest$ac_exeext conftest.$ac_ext
9432 fi
9433
9434
9435 CFLAGS="$xorg_testset_save_CFLAGS"
9436
9437 eval supported=\$$cacheid
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9439 $as_echo "$supported" >&6; }
9440 if test "$supported" = "yes" ; then
9441 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9442 found="yes"
9443 fi
9444 fi
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460 xorg_testset_save_CFLAGS="$CFLAGS"
9461
9462 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9463 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9465 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9466 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9467 $as_echo_n "(cached) " >&6
9468 else
9469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9470 /* end confdefs.h. */
9471 int i;
9472 _ACEOF
9473 if ac_fn_c_try_compile "$LINENO"; then :
9474 xorg_cv_cc_flag_unknown_warning_option=yes
9475 else
9476 xorg_cv_cc_flag_unknown_warning_option=no
9477 fi
9478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9479 fi
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9481 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9482 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9483 CFLAGS="$xorg_testset_save_CFLAGS"
9484 fi
9485
9486 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9487 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9488 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9489 fi
9490 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9492 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9493 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9494 $as_echo_n "(cached) " >&6
9495 else
9496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9497 /* end confdefs.h. */
9498 int i;
9499 _ACEOF
9500 if ac_fn_c_try_compile "$LINENO"; then :
9501 xorg_cv_cc_flag_unused_command_line_argument=yes
9502 else
9503 xorg_cv_cc_flag_unused_command_line_argument=no
9504 fi
9505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9506 fi
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9508 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9509 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9510 CFLAGS="$xorg_testset_save_CFLAGS"
9511 fi
9512
9513 found="no"
9514
9515 if test $found = "no" ; then
9516 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9517 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9518 fi
9519
9520 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9522 fi
9523
9524 CFLAGS="$CFLAGS -Wtrigraphs"
9525
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5
9527 $as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; }
9528 cacheid=xorg_cv_cc_flag__Wtrigraphs
9529 if eval \${$cacheid+:} 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 int
9536 main ()
9537 {
9538
9539 ;
9540 return 0;
9541 }
9542 _ACEOF
9543 if ac_fn_c_try_link "$LINENO"; then :
9544 eval $cacheid=yes
9545 else
9546 eval $cacheid=no
9547 fi
9548 rm -f core conftest.err conftest.$ac_objext \
9549 conftest$ac_exeext conftest.$ac_ext
9550 fi
9551
9552
9553 CFLAGS="$xorg_testset_save_CFLAGS"
9554
9555 eval supported=\$$cacheid
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9557 $as_echo "$supported" >&6; }
9558 if test "$supported" = "yes" ; then
9559 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9560 found="yes"
9561 fi
9562 fi
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578 xorg_testset_save_CFLAGS="$CFLAGS"
9579
9580 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9581 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9583 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9584 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9585 $as_echo_n "(cached) " >&6
9586 else
9587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9588 /* end confdefs.h. */
9589 int i;
9590 _ACEOF
9591 if ac_fn_c_try_compile "$LINENO"; then :
9592 xorg_cv_cc_flag_unknown_warning_option=yes
9593 else
9594 xorg_cv_cc_flag_unknown_warning_option=no
9595 fi
9596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9597 fi
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9599 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9600 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9601 CFLAGS="$xorg_testset_save_CFLAGS"
9602 fi
9603
9604 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9605 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9606 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9607 fi
9608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9610 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9611 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9612 $as_echo_n "(cached) " >&6
9613 else
9614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9615 /* end confdefs.h. */
9616 int i;
9617 _ACEOF
9618 if ac_fn_c_try_compile "$LINENO"; then :
9619 xorg_cv_cc_flag_unused_command_line_argument=yes
9620 else
9621 xorg_cv_cc_flag_unused_command_line_argument=no
9622 fi
9623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9624 fi
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9626 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9627 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9628 CFLAGS="$xorg_testset_save_CFLAGS"
9629 fi
9630
9631 found="no"
9632
9633 if test $found = "no" ; then
9634 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9635 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9636 fi
9637
9638 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9639 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9640 fi
9641
9642 CFLAGS="$CFLAGS -Warray-bounds"
9643
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5
9645 $as_echo_n "checking if $CC supports-Warray-bounds... " >&6; }
9646 cacheid=xorg_cv_cc_flag__Warray_bounds
9647 if eval \${$cacheid+:} 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 int
9654 main ()
9655 {
9656
9657 ;
9658 return 0;
9659 }
9660 _ACEOF
9661 if ac_fn_c_try_link "$LINENO"; then :
9662 eval $cacheid=yes
9663 else
9664 eval $cacheid=no
9665 fi
9666 rm -f core conftest.err conftest.$ac_objext \
9667 conftest$ac_exeext conftest.$ac_ext
9668 fi
9669
9670
9671 CFLAGS="$xorg_testset_save_CFLAGS"
9672
9673 eval supported=\$$cacheid
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9675 $as_echo "$supported" >&6; }
9676 if test "$supported" = "yes" ; then
9677 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9678 found="yes"
9679 fi
9680 fi
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696 xorg_testset_save_CFLAGS="$CFLAGS"
9697
9698 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9699 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9701 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9702 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9703 $as_echo_n "(cached) " >&6
9704 else
9705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9706 /* end confdefs.h. */
9707 int i;
9708 _ACEOF
9709 if ac_fn_c_try_compile "$LINENO"; then :
9710 xorg_cv_cc_flag_unknown_warning_option=yes
9711 else
9712 xorg_cv_cc_flag_unknown_warning_option=no
9713 fi
9714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9715 fi
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9717 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9718 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9719 CFLAGS="$xorg_testset_save_CFLAGS"
9720 fi
9721
9722 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9723 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9724 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9725 fi
9726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9728 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9729 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9730 $as_echo_n "(cached) " >&6
9731 else
9732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9733 /* end confdefs.h. */
9734 int i;
9735 _ACEOF
9736 if ac_fn_c_try_compile "$LINENO"; then :
9737 xorg_cv_cc_flag_unused_command_line_argument=yes
9738 else
9739 xorg_cv_cc_flag_unused_command_line_argument=no
9740 fi
9741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9742 fi
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9744 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9745 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9746 CFLAGS="$xorg_testset_save_CFLAGS"
9747 fi
9748
9749 found="no"
9750
9751 if test $found = "no" ; then
9752 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9753 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9754 fi
9755
9756 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9757 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9758 fi
9759
9760 CFLAGS="$CFLAGS -Wwrite-strings"
9761
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5
9763 $as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; }
9764 cacheid=xorg_cv_cc_flag__Wwrite_strings
9765 if eval \${$cacheid+:} 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 int
9772 main ()
9773 {
9774
9775 ;
9776 return 0;
9777 }
9778 _ACEOF
9779 if ac_fn_c_try_link "$LINENO"; then :
9780 eval $cacheid=yes
9781 else
9782 eval $cacheid=no
9783 fi
9784 rm -f core conftest.err conftest.$ac_objext \
9785 conftest$ac_exeext conftest.$ac_ext
9786 fi
9787
9788
9789 CFLAGS="$xorg_testset_save_CFLAGS"
9790
9791 eval supported=\$$cacheid
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9793 $as_echo "$supported" >&6; }
9794 if test "$supported" = "yes" ; then
9795 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9796 found="yes"
9797 fi
9798 fi
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814 xorg_testset_save_CFLAGS="$CFLAGS"
9815
9816 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9817 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9819 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9820 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9821 $as_echo_n "(cached) " >&6
9822 else
9823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9824 /* end confdefs.h. */
9825 int i;
9826 _ACEOF
9827 if ac_fn_c_try_compile "$LINENO"; then :
9828 xorg_cv_cc_flag_unknown_warning_option=yes
9829 else
9830 xorg_cv_cc_flag_unknown_warning_option=no
9831 fi
9832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9833 fi
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9835 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9836 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9837 CFLAGS="$xorg_testset_save_CFLAGS"
9838 fi
9839
9840 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9841 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9842 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9843 fi
9844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9846 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9847 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9848 $as_echo_n "(cached) " >&6
9849 else
9850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9851 /* end confdefs.h. */
9852 int i;
9853 _ACEOF
9854 if ac_fn_c_try_compile "$LINENO"; then :
9855 xorg_cv_cc_flag_unused_command_line_argument=yes
9856 else
9857 xorg_cv_cc_flag_unused_command_line_argument=no
9858 fi
9859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9860 fi
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9862 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9863 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9864 CFLAGS="$xorg_testset_save_CFLAGS"
9865 fi
9866
9867 found="no"
9868
9869 if test $found = "no" ; then
9870 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9871 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9872 fi
9873
9874 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9875 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9876 fi
9877
9878 CFLAGS="$CFLAGS -Waddress"
9879
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5
9881 $as_echo_n "checking if $CC supports-Waddress... " >&6; }
9882 cacheid=xorg_cv_cc_flag__Waddress
9883 if eval \${$cacheid+:} 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 int
9890 main ()
9891 {
9892
9893 ;
9894 return 0;
9895 }
9896 _ACEOF
9897 if ac_fn_c_try_link "$LINENO"; then :
9898 eval $cacheid=yes
9899 else
9900 eval $cacheid=no
9901 fi
9902 rm -f core conftest.err conftest.$ac_objext \
9903 conftest$ac_exeext conftest.$ac_ext
9904 fi
9905
9906
9907 CFLAGS="$xorg_testset_save_CFLAGS"
9908
9909 eval supported=\$$cacheid
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9911 $as_echo "$supported" >&6; }
9912 if test "$supported" = "yes" ; then
9913 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9914 found="yes"
9915 fi
9916 fi
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932 xorg_testset_save_CFLAGS="$CFLAGS"
9933
9934 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9935 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9937 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9938 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9939 $as_echo_n "(cached) " >&6
9940 else
9941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9942 /* end confdefs.h. */
9943 int i;
9944 _ACEOF
9945 if ac_fn_c_try_compile "$LINENO"; then :
9946 xorg_cv_cc_flag_unknown_warning_option=yes
9947 else
9948 xorg_cv_cc_flag_unknown_warning_option=no
9949 fi
9950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9951 fi
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9953 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9954 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9955 CFLAGS="$xorg_testset_save_CFLAGS"
9956 fi
9957
9958 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9959 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9960 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9961 fi
9962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9964 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9965 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9966 $as_echo_n "(cached) " >&6
9967 else
9968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9969 /* end confdefs.h. */
9970 int i;
9971 _ACEOF
9972 if ac_fn_c_try_compile "$LINENO"; then :
9973 xorg_cv_cc_flag_unused_command_line_argument=yes
9974 else
9975 xorg_cv_cc_flag_unused_command_line_argument=no
9976 fi
9977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9978 fi
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9980 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9981 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9982 CFLAGS="$xorg_testset_save_CFLAGS"
9983 fi
9984
9985 found="no"
9986
9987 if test $found = "no" ; then
9988 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9990 fi
9991
9992 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9994 fi
9995
9996 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9997
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5
9999 $as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; }
10000 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10001 if eval \${$cacheid+:} 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 int
10008 main ()
10009 {
10010
10011 ;
10012 return 0;
10013 }
10014 _ACEOF
10015 if ac_fn_c_try_link "$LINENO"; then :
10016 eval $cacheid=yes
10017 else
10018 eval $cacheid=no
10019 fi
10020 rm -f core conftest.err conftest.$ac_objext \
10021 conftest$ac_exeext conftest.$ac_ext
10022 fi
10023
10024
10025 CFLAGS="$xorg_testset_save_CFLAGS"
10026
10027 eval supported=\$$cacheid
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10029 $as_echo "$supported" >&6; }
10030 if test "$supported" = "yes" ; then
10031 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10032 found="yes"
10033 fi
10034 fi
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050 xorg_testset_save_CFLAGS="$CFLAGS"
10051
10052 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10053 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10055 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10056 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10057 $as_echo_n "(cached) " >&6
10058 else
10059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10060 /* end confdefs.h. */
10061 int i;
10062 _ACEOF
10063 if ac_fn_c_try_compile "$LINENO"; then :
10064 xorg_cv_cc_flag_unknown_warning_option=yes
10065 else
10066 xorg_cv_cc_flag_unknown_warning_option=no
10067 fi
10068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10069 fi
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10071 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10072 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10073 CFLAGS="$xorg_testset_save_CFLAGS"
10074 fi
10075
10076 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10078 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10079 fi
10080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10082 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10083 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10084 $as_echo_n "(cached) " >&6
10085 else
10086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10087 /* end confdefs.h. */
10088 int i;
10089 _ACEOF
10090 if ac_fn_c_try_compile "$LINENO"; then :
10091 xorg_cv_cc_flag_unused_command_line_argument=yes
10092 else
10093 xorg_cv_cc_flag_unused_command_line_argument=no
10094 fi
10095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10096 fi
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10098 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10099 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10100 CFLAGS="$xorg_testset_save_CFLAGS"
10101 fi
10102
10103 found="no"
10104
10105 if test $found = "no" ; then
10106 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10108 fi
10109
10110 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10112 fi
10113
10114 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10115
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5
10117 $as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; }
10118 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10119 if eval \${$cacheid+:} false; then :
10120 $as_echo_n "(cached) " >&6
10121 else
10122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10123 /* end confdefs.h. */
10124 int i;
10125 int
10126 main ()
10127 {
10128
10129 ;
10130 return 0;
10131 }
10132 _ACEOF
10133 if ac_fn_c_try_link "$LINENO"; then :
10134 eval $cacheid=yes
10135 else
10136 eval $cacheid=no
10137 fi
10138 rm -f core conftest.err conftest.$ac_objext \
10139 conftest$ac_exeext conftest.$ac_ext
10140 fi
10141
10142
10143 CFLAGS="$xorg_testset_save_CFLAGS"
10144
10145 eval supported=\$$cacheid
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10147 $as_echo "$supported" >&6; }
10148 if test "$supported" = "yes" ; then
10149 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10150 found="yes"
10151 fi
10152 fi
10153
10154
10155 fi
10156
10157
10158
10159
10160
10161
10162
10163 CWARNFLAGS="$BASE_CFLAGS"
10164 if test "x$GCC" = xyes ; then
10165 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10166 fi
10167
10168
10169
10170
10171
10172
10173
10174
10175 # Check whether --enable-strict-compilation was given.
10176 if test "${enable_strict_compilation+set}" = set; then :
10177 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10178 else
10179 STRICT_COMPILE=no
10180 fi
10181
10182
10183
10184
10185
10186
10187 STRICT_CFLAGS=""
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201 xorg_testset_save_CFLAGS="$CFLAGS"
10202
10203 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10204 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10206 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10207 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10208 $as_echo_n "(cached) " >&6
10209 else
10210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10211 /* end confdefs.h. */
10212 int i;
10213 _ACEOF
10214 if ac_fn_c_try_compile "$LINENO"; then :
10215 xorg_cv_cc_flag_unknown_warning_option=yes
10216 else
10217 xorg_cv_cc_flag_unknown_warning_option=no
10218 fi
10219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10220 fi
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10222 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10223 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10224 CFLAGS="$xorg_testset_save_CFLAGS"
10225 fi
10226
10227 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10229 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10230 fi
10231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10233 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10234 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10235 $as_echo_n "(cached) " >&6
10236 else
10237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10238 /* end confdefs.h. */
10239 int i;
10240 _ACEOF
10241 if ac_fn_c_try_compile "$LINENO"; then :
10242 xorg_cv_cc_flag_unused_command_line_argument=yes
10243 else
10244 xorg_cv_cc_flag_unused_command_line_argument=no
10245 fi
10246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10247 fi
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10249 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10250 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10251 CFLAGS="$xorg_testset_save_CFLAGS"
10252 fi
10253
10254 found="no"
10255
10256 if test $found = "no" ; then
10257 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10258 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10259 fi
10260
10261 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10263 fi
10264
10265 CFLAGS="$CFLAGS -pedantic"
10266
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5
10268 $as_echo_n "checking if $CC supports-pedantic... " >&6; }
10269 cacheid=xorg_cv_cc_flag__pedantic
10270 if eval \${$cacheid+:} 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 int
10277 main ()
10278 {
10279
10280 ;
10281 return 0;
10282 }
10283 _ACEOF
10284 if ac_fn_c_try_link "$LINENO"; then :
10285 eval $cacheid=yes
10286 else
10287 eval $cacheid=no
10288 fi
10289 rm -f core conftest.err conftest.$ac_objext \
10290 conftest$ac_exeext conftest.$ac_ext
10291 fi
10292
10293
10294 CFLAGS="$xorg_testset_save_CFLAGS"
10295
10296 eval supported=\$$cacheid
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10298 $as_echo "$supported" >&6; }
10299 if test "$supported" = "yes" ; then
10300 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10301 found="yes"
10302 fi
10303 fi
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319 xorg_testset_save_CFLAGS="$CFLAGS"
10320
10321 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10324 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10325 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10326 $as_echo_n "(cached) " >&6
10327 else
10328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10329 /* end confdefs.h. */
10330 int i;
10331 _ACEOF
10332 if ac_fn_c_try_compile "$LINENO"; then :
10333 xorg_cv_cc_flag_unknown_warning_option=yes
10334 else
10335 xorg_cv_cc_flag_unknown_warning_option=no
10336 fi
10337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10338 fi
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10340 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10341 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10342 CFLAGS="$xorg_testset_save_CFLAGS"
10343 fi
10344
10345 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10347 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10348 fi
10349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10351 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10352 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10353 $as_echo_n "(cached) " >&6
10354 else
10355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10356 /* end confdefs.h. */
10357 int i;
10358 _ACEOF
10359 if ac_fn_c_try_compile "$LINENO"; then :
10360 xorg_cv_cc_flag_unused_command_line_argument=yes
10361 else
10362 xorg_cv_cc_flag_unused_command_line_argument=no
10363 fi
10364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10365 fi
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10367 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10368 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10369 CFLAGS="$xorg_testset_save_CFLAGS"
10370 fi
10371
10372 found="no"
10373
10374 if test $found = "no" ; then
10375 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10376 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10377 fi
10378
10379 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10381 fi
10382
10383 CFLAGS="$CFLAGS -Werror"
10384
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5
10386 $as_echo_n "checking if $CC supports-Werror... " >&6; }
10387 cacheid=xorg_cv_cc_flag__Werror
10388 if eval \${$cacheid+:} false; then :
10389 $as_echo_n "(cached) " >&6
10390 else
10391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10392 /* end confdefs.h. */
10393 int i;
10394 int
10395 main ()
10396 {
10397
10398 ;
10399 return 0;
10400 }
10401 _ACEOF
10402 if ac_fn_c_try_link "$LINENO"; then :
10403 eval $cacheid=yes
10404 else
10405 eval $cacheid=no
10406 fi
10407 rm -f core conftest.err conftest.$ac_objext \
10408 conftest$ac_exeext conftest.$ac_ext
10409 fi
10410
10411
10412 CFLAGS="$xorg_testset_save_CFLAGS"
10413
10414 eval supported=\$$cacheid
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10416 $as_echo "$supported" >&6; }
10417 if test "$supported" = "yes" ; then
10418 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10419 found="yes"
10420 fi
10421 fi
10422
10423 if test $found = "no" ; then
10424 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10425 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10426 fi
10427
10428 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10430 fi
10431
10432 CFLAGS="$CFLAGS -errwarn"
10433
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5
10435 $as_echo_n "checking if $CC supports-errwarn... " >&6; }
10436 cacheid=xorg_cv_cc_flag__errwarn
10437 if eval \${$cacheid+:} false; then :
10438 $as_echo_n "(cached) " >&6
10439 else
10440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10441 /* end confdefs.h. */
10442 int i;
10443 int
10444 main ()
10445 {
10446
10447 ;
10448 return 0;
10449 }
10450 _ACEOF
10451 if ac_fn_c_try_link "$LINENO"; then :
10452 eval $cacheid=yes
10453 else
10454 eval $cacheid=no
10455 fi
10456 rm -f core conftest.err conftest.$ac_objext \
10457 conftest$ac_exeext conftest.$ac_ext
10458 fi
10459
10460
10461 CFLAGS="$xorg_testset_save_CFLAGS"
10462
10463 eval supported=\$$cacheid
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10465 $as_echo "$supported" >&6; }
10466 if test "$supported" = "yes" ; then
10467 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10468 found="yes"
10469 fi
10470 fi
10471
10472
10473
10474 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10475 # activate it with -Werror, so we add it here explicitly.
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489 xorg_testset_save_CFLAGS="$CFLAGS"
10490
10491 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10492 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10494 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10495 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10496 $as_echo_n "(cached) " >&6
10497 else
10498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10499 /* end confdefs.h. */
10500 int i;
10501 _ACEOF
10502 if ac_fn_c_try_compile "$LINENO"; then :
10503 xorg_cv_cc_flag_unknown_warning_option=yes
10504 else
10505 xorg_cv_cc_flag_unknown_warning_option=no
10506 fi
10507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10508 fi
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10510 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10511 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10512 CFLAGS="$xorg_testset_save_CFLAGS"
10513 fi
10514
10515 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10516 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10517 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10518 fi
10519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10521 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10522 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10523 $as_echo_n "(cached) " >&6
10524 else
10525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10526 /* end confdefs.h. */
10527 int i;
10528 _ACEOF
10529 if ac_fn_c_try_compile "$LINENO"; then :
10530 xorg_cv_cc_flag_unused_command_line_argument=yes
10531 else
10532 xorg_cv_cc_flag_unused_command_line_argument=no
10533 fi
10534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10535 fi
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10537 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10538 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10539 CFLAGS="$xorg_testset_save_CFLAGS"
10540 fi
10541
10542 found="no"
10543
10544 if test $found = "no" ; then
10545 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10546 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10547 fi
10548
10549 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10551 fi
10552
10553 CFLAGS="$CFLAGS -Werror=attributes"
10554
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5
10556 $as_echo_n "checking if $CC supports-Werror=attributes... " >&6; }
10557 cacheid=xorg_cv_cc_flag__Werror_attributes
10558 if eval \${$cacheid+:} false; then :
10559 $as_echo_n "(cached) " >&6
10560 else
10561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10562 /* end confdefs.h. */
10563 int i;
10564 int
10565 main ()
10566 {
10567
10568 ;
10569 return 0;
10570 }
10571 _ACEOF
10572 if ac_fn_c_try_link "$LINENO"; then :
10573 eval $cacheid=yes
10574 else
10575 eval $cacheid=no
10576 fi
10577 rm -f core conftest.err conftest.$ac_objext \
10578 conftest$ac_exeext conftest.$ac_ext
10579 fi
10580
10581
10582 CFLAGS="$xorg_testset_save_CFLAGS"
10583
10584 eval supported=\$$cacheid
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10586 $as_echo "$supported" >&6; }
10587 if test "$supported" = "yes" ; then
10588 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10589 found="yes"
10590 fi
10591 fi
10592
10593
10594
10595 if test "x$STRICT_COMPILE" = "xyes"; then
10596 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10597 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10598 fi
10599
10600
10601
10602
10603
10604
10605 cat >>confdefs.h <<_ACEOF
10606 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10607 _ACEOF
10608
10609 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10610 if test "x$PVM" = "x"; then
10611 PVM="0"
10612 fi
10613
10614 cat >>confdefs.h <<_ACEOF
10615 #define PACKAGE_VERSION_MINOR $PVM
10616 _ACEOF
10617
10618 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10619 if test "x$PVP" = "x"; then
10620 PVP="0"
10621 fi
10622
10623 cat >>confdefs.h <<_ACEOF
10624 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10625 _ACEOF
10626
10627
10628
10629 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10630 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10631 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10632 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10633
10634
10635
10636
10637 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10638 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10639 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10640 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10641 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10642
10643
10644
10645
10646
10647
10648 if test x$APP_MAN_SUFFIX = x ; then
10649 APP_MAN_SUFFIX=1
10650 fi
10651 if test x$APP_MAN_DIR = x ; then
10652 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10653 fi
10654
10655 if test x$LIB_MAN_SUFFIX = x ; then
10656 LIB_MAN_SUFFIX=3
10657 fi
10658 if test x$LIB_MAN_DIR = x ; then
10659 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10660 fi
10661
10662 if test x$FILE_MAN_SUFFIX = x ; then
10663 case $host_os in
10664 solaris*) FILE_MAN_SUFFIX=4 ;;
10665 *) FILE_MAN_SUFFIX=5 ;;
10666 esac
10667 fi
10668 if test x$FILE_MAN_DIR = x ; then
10669 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10670 fi
10671
10672 if test x$MISC_MAN_SUFFIX = x ; then
10673 case $host_os in
10674 solaris*) MISC_MAN_SUFFIX=5 ;;
10675 *) MISC_MAN_SUFFIX=7 ;;
10676 esac
10677 fi
10678 if test x$MISC_MAN_DIR = x ; then
10679 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10680 fi
10681
10682 if test x$DRIVER_MAN_SUFFIX = x ; then
10683 case $host_os in
10684 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10685 *) DRIVER_MAN_SUFFIX=4 ;;
10686 esac
10687 fi
10688 if test x$DRIVER_MAN_DIR = x ; then
10689 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10690 fi
10691
10692 if test x$ADMIN_MAN_SUFFIX = x ; then
10693 case $host_os in
10694 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10695 *) ADMIN_MAN_SUFFIX=8 ;;
10696 esac
10697 fi
10698 if test x$ADMIN_MAN_DIR = x ; then
10699 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10700 fi
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716 XORG_MAN_PAGE="X Version 11"
10717
10718 MAN_SUBSTS="\
10719 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10720 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10721 -e 's|__xservername__|Xorg|g' \
10722 -e 's|__xconfigfile__|xorg.conf|g' \
10723 -e 's|__projectroot__|\$(prefix)|g' \
10724 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10725 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10726 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10727 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10728 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10729 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10730 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10731
10732
10733
10734 # Check whether --enable-silent-rules was given.
10735 if test "${enable_silent_rules+set}" = set; then :
10736 enableval=$enable_silent_rules;
10737 fi
10738
10739 case $enable_silent_rules in # (((
10740 yes) AM_DEFAULT_VERBOSITY=0;;
10741 no) AM_DEFAULT_VERBOSITY=1;;
10742 *) AM_DEFAULT_VERBOSITY=0;;
10743 esac
10744 am_make=${MAKE-make}
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10746 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10747 if ${am_cv_make_support_nested_variables+:} false; then :
10748 $as_echo_n "(cached) " >&6
10749 else
10750 if $as_echo 'TRUE=$(BAR$(V))
10751 BAR0=false
10752 BAR1=true
10753 V=1
10754 am__doit:
10755 @$(TRUE)
10756 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10757 am_cv_make_support_nested_variables=yes
10758 else
10759 am_cv_make_support_nested_variables=no
10760 fi
10761 fi
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10763 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10764 if test $am_cv_make_support_nested_variables = yes; then
10765 AM_V='$(V)'
10766 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10767 else
10768 AM_V=$AM_DEFAULT_VERBOSITY
10769 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10770 fi
10771 AM_BACKSLASH='\'
10772
10773
10774
10775 # Require X.Org server macros (i.e. XORG_DRIVER_CHECK_EXT) to check for required modules
10776
10777
10778
10779 # Checks for programs.
10780 # Check whether --enable-static was given.
10781 if test "${enable_static+set}" = set; then :
10782 enableval=$enable_static; p=${PACKAGE-default}
10783 case $enableval in
10784 yes) enable_static=yes ;;
10785 no) enable_static=no ;;
10786 *)
10787 enable_static=no
10788 # Look at the argument we got. We use all the common list separators.
10789 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10790 for pkg in $enableval; do
10791 IFS="$lt_save_ifs"
10792 if test "X$pkg" = "X$p"; then
10793 enable_static=yes
10794 fi
10795 done
10796 IFS="$lt_save_ifs"
10797 ;;
10798 esac
10799 else
10800 enable_static=no
10801 fi
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811 case `pwd` in
10812 *\ * | *\ *)
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10814 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10815 esac
10816
10817
10818
10819 macro_version='2.4.2'
10820 macro_revision='1.3337'
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834 ltmain="$ac_aux_dir/ltmain.sh"
10835
10836 # Backslashify metacharacters that are still active within
10837 # double-quoted strings.
10838 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10839
10840 # Same as above, but do not quote variable references.
10841 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10842
10843 # Sed substitution to delay expansion of an escaped shell variable in a
10844 # double_quote_subst'ed string.
10845 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10846
10847 # Sed substitution to delay expansion of an escaped single quote.
10848 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10849
10850 # Sed substitution to avoid accidental globbing in evaled expressions
10851 no_glob_subst='s/\*/\\\*/g'
10852
10853 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10854 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10855 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10856
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10858 $as_echo_n "checking how to print strings... " >&6; }
10859 # Test print first, because it will be a builtin if present.
10860 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10861 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10862 ECHO='print -r --'
10863 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10864 ECHO='printf %s\n'
10865 else
10866 # Use this function as a fallback that always works.
10867 func_fallback_echo ()
10868 {
10869 eval 'cat <<_LTECHO_EOF
10870 $1
10871 _LTECHO_EOF'
10872 }
10873 ECHO='func_fallback_echo'
10874 fi
10875
10876 # func_echo_all arg...
10877 # Invoke $ECHO with all args, space-separated.
10878 func_echo_all ()
10879 {
10880 $ECHO ""
10881 }
10882
10883 case "$ECHO" in
10884 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10885 $as_echo "printf" >&6; } ;;
10886 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10887 $as_echo "print -r" >&6; } ;;
10888 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10889 $as_echo "cat" >&6; } ;;
10890 esac
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10906 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
10907 if ${ac_cv_path_SED+:} false; then :
10908 $as_echo_n "(cached) " >&6
10909 else
10910 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10911 for ac_i in 1 2 3 4 5 6 7; do
10912 ac_script="$ac_script$as_nl$ac_script"
10913 done
10914 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10915 { ac_script=; unset ac_script;}
10916 if test -z "$SED"; then
10917 ac_path_SED_found=false
10918 # Loop through the user's path and test for each of PROGNAME-LIST
10919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10920 for as_dir in $PATH
10921 do
10922 IFS=$as_save_IFS
10923 test -z "$as_dir" && as_dir=.
10924 for ac_prog in sed gsed; do
10925 for ac_exec_ext in '' $ac_executable_extensions; do
10926 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10927 as_fn_executable_p "$ac_path_SED" || continue
10928 # Check for GNU ac_path_SED and select it if it is found.
10929 # Check for GNU $ac_path_SED
10930 case `"$ac_path_SED" --version 2>&1` in
10931 *GNU*)
10932 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10933 *)
10934 ac_count=0
10935 $as_echo_n 0123456789 >"conftest.in"
10936 while :
10937 do
10938 cat "conftest.in" "conftest.in" >"conftest.tmp"
10939 mv "conftest.tmp" "conftest.in"
10940 cp "conftest.in" "conftest.nl"
10941 $as_echo '' >> "conftest.nl"
10942 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10943 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10944 as_fn_arith $ac_count + 1 && ac_count=$as_val
10945 if test $ac_count -gt ${ac_path_SED_max-0}; then
10946 # Best one so far, save it but keep looking for a better one
10947 ac_cv_path_SED="$ac_path_SED"
10948 ac_path_SED_max=$ac_count
10949 fi
10950 # 10*(2^10) chars as input seems more than enough
10951 test $ac_count -gt 10 && break
10952 done
10953 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10954 esac
10955
10956 $ac_path_SED_found && break 3
10957 done
10958 done
10959 done
10960 IFS=$as_save_IFS
10961 if test -z "$ac_cv_path_SED"; then
10962 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10963 fi
10964 else
10965 ac_cv_path_SED=$SED
10966 fi
10967
10968 fi
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10970 $as_echo "$ac_cv_path_SED" >&6; }
10971 SED="$ac_cv_path_SED"
10972 rm -f conftest.sed
10973
10974 test -z "$SED" && SED=sed
10975 Xsed="$SED -e 1s/^X//"
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10988 $as_echo_n "checking for fgrep... " >&6; }
10989 if ${ac_cv_path_FGREP+:} false; then :
10990 $as_echo_n "(cached) " >&6
10991 else
10992 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10993 then ac_cv_path_FGREP="$GREP -F"
10994 else
10995 if test -z "$FGREP"; then
10996 ac_path_FGREP_found=false
10997 # Loop through the user's path and test for each of PROGNAME-LIST
10998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10999 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11000 do
11001 IFS=$as_save_IFS
11002 test -z "$as_dir" && as_dir=.
11003 for ac_prog in fgrep; do
11004 for ac_exec_ext in '' $ac_executable_extensions; do
11005 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11006 as_fn_executable_p "$ac_path_FGREP" || continue
11007 # Check for GNU ac_path_FGREP and select it if it is found.
11008 # Check for GNU $ac_path_FGREP
11009 case `"$ac_path_FGREP" --version 2>&1` in
11010 *GNU*)
11011 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11012 *)
11013 ac_count=0
11014 $as_echo_n 0123456789 >"conftest.in"
11015 while :
11016 do
11017 cat "conftest.in" "conftest.in" >"conftest.tmp"
11018 mv "conftest.tmp" "conftest.in"
11019 cp "conftest.in" "conftest.nl"
11020 $as_echo 'FGREP' >> "conftest.nl"
11021 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11022 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11023 as_fn_arith $ac_count + 1 && ac_count=$as_val
11024 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11025 # Best one so far, save it but keep looking for a better one
11026 ac_cv_path_FGREP="$ac_path_FGREP"
11027 ac_path_FGREP_max=$ac_count
11028 fi
11029 # 10*(2^10) chars as input seems more than enough
11030 test $ac_count -gt 10 && break
11031 done
11032 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11033 esac
11034
11035 $ac_path_FGREP_found && break 3
11036 done
11037 done
11038 done
11039 IFS=$as_save_IFS
11040 if test -z "$ac_cv_path_FGREP"; then
11041 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11042 fi
11043 else
11044 ac_cv_path_FGREP=$FGREP
11045 fi
11046
11047 fi
11048 fi
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11050 $as_echo "$ac_cv_path_FGREP" >&6; }
11051 FGREP="$ac_cv_path_FGREP"
11052
11053
11054 test -z "$GREP" && GREP=grep
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074 # Check whether --with-gnu-ld was given.
11075 if test "${with_gnu_ld+set}" = set; then :
11076 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11077 else
11078 with_gnu_ld=no
11079 fi
11080
11081 ac_prog=ld
11082 if test "$GCC" = yes; then
11083 # Check if gcc -print-prog-name=ld gives a path.
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11085 $as_echo_n "checking for ld used by $CC... " >&6; }
11086 case $host in
11087 *-*-mingw*)
11088 # gcc leaves a trailing carriage return which upsets mingw
11089 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11090 *)
11091 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11092 esac
11093 case $ac_prog in
11094 # Accept absolute paths.
11095 [\\/]* | ?:[\\/]*)
11096 re_direlt='/[^/][^/]*/\.\./'
11097 # Canonicalize the pathname of ld
11098 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11099 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11100 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11101 done
11102 test -z "$LD" && LD="$ac_prog"
11103 ;;
11104 "")
11105 # If it fails, then pretend we aren't using GCC.
11106 ac_prog=ld
11107 ;;
11108 *)
11109 # If it is relative, then search for the first ld in PATH.
11110 with_gnu_ld=unknown
11111 ;;
11112 esac
11113 elif test "$with_gnu_ld" = yes; then
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11115 $as_echo_n "checking for GNU ld... " >&6; }
11116 else
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11118 $as_echo_n "checking for non-GNU ld... " >&6; }
11119 fi
11120 if ${lt_cv_path_LD+:} false; then :
11121 $as_echo_n "(cached) " >&6
11122 else
11123 if test -z "$LD"; then
11124 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11125 for ac_dir in $PATH; do
11126 IFS="$lt_save_ifs"
11127 test -z "$ac_dir" && ac_dir=.
11128 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11129 lt_cv_path_LD="$ac_dir/$ac_prog"
11130 # Check to see if the program is GNU ld. I'd rather use --version,
11131 # but apparently some variants of GNU ld only accept -v.
11132 # Break only if it was the GNU/non-GNU ld that we prefer.
11133 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11134 *GNU* | *'with BFD'*)
11135 test "$with_gnu_ld" != no && break
11136 ;;
11137 *)
11138 test "$with_gnu_ld" != yes && break
11139 ;;
11140 esac
11141 fi
11142 done
11143 IFS="$lt_save_ifs"
11144 else
11145 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11146 fi
11147 fi
11148
11149 LD="$lt_cv_path_LD"
11150 if test -n "$LD"; then
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11152 $as_echo "$LD" >&6; }
11153 else
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11155 $as_echo "no" >&6; }
11156 fi
11157 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11159 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11160 if ${lt_cv_prog_gnu_ld+:} false; then :
11161 $as_echo_n "(cached) " >&6
11162 else
11163 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11164 case `$LD -v 2>&1 </dev/null` in
11165 *GNU* | *'with BFD'*)
11166 lt_cv_prog_gnu_ld=yes
11167 ;;
11168 *)
11169 lt_cv_prog_gnu_ld=no
11170 ;;
11171 esac
11172 fi
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11174 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11175 with_gnu_ld=$lt_cv_prog_gnu_ld
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11186 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11187 if ${lt_cv_path_NM+:} false; then :
11188 $as_echo_n "(cached) " >&6
11189 else
11190 if test -n "$NM"; then
11191 # Let the user override the test.
11192 lt_cv_path_NM="$NM"
11193 else
11194 lt_nm_to_check="${ac_tool_prefix}nm"
11195 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11196 lt_nm_to_check="$lt_nm_to_check nm"
11197 fi
11198 for lt_tmp_nm in $lt_nm_to_check; do
11199 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11200 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11201 IFS="$lt_save_ifs"
11202 test -z "$ac_dir" && ac_dir=.
11203 tmp_nm="$ac_dir/$lt_tmp_nm"
11204 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11205 # Check to see if the nm accepts a BSD-compat flag.
11206 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11207 # nm: unknown option "B" ignored
11208 # Tru64's nm complains that /dev/null is an invalid object file
11209 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11210 */dev/null* | *'Invalid file or object type'*)
11211 lt_cv_path_NM="$tmp_nm -B"
11212 break
11213 ;;
11214 *)
11215 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11216 */dev/null*)
11217 lt_cv_path_NM="$tmp_nm -p"
11218 break
11219 ;;
11220 *)
11221 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11222 continue # so that we can try to find one that supports BSD flags
11223 ;;
11224 esac
11225 ;;
11226 esac
11227 fi
11228 done
11229 IFS="$lt_save_ifs"
11230 done
11231 : ${lt_cv_path_NM=no}
11232 fi
11233 fi
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11235 $as_echo "$lt_cv_path_NM" >&6; }
11236 if test "$lt_cv_path_NM" != "no"; then
11237 NM="$lt_cv_path_NM"
11238 else
11239 # Didn't find any BSD compatible name lister, look for dumpbin.
11240 if test -n "$DUMPBIN"; then :
11241 # Let the user override the test.
11242 else
11243 if test -n "$ac_tool_prefix"; then
11244 for ac_prog in dumpbin "link -dump"
11245 do
11246 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11247 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11249 $as_echo_n "checking for $ac_word... " >&6; }
11250 if ${ac_cv_prog_DUMPBIN+:} false; then :
11251 $as_echo_n "(cached) " >&6
11252 else
11253 if test -n "$DUMPBIN"; then
11254 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11255 else
11256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11257 for as_dir in $PATH
11258 do
11259 IFS=$as_save_IFS
11260 test -z "$as_dir" && as_dir=.
11261 for ac_exec_ext in '' $ac_executable_extensions; do
11262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11263 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11265 break 2
11266 fi
11267 done
11268 done
11269 IFS=$as_save_IFS
11270
11271 fi
11272 fi
11273 DUMPBIN=$ac_cv_prog_DUMPBIN
11274 if test -n "$DUMPBIN"; then
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11276 $as_echo "$DUMPBIN" >&6; }
11277 else
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11279 $as_echo "no" >&6; }
11280 fi
11281
11282
11283 test -n "$DUMPBIN" && break
11284 done
11285 fi
11286 if test -z "$DUMPBIN"; then
11287 ac_ct_DUMPBIN=$DUMPBIN
11288 for ac_prog in dumpbin "link -dump"
11289 do
11290 # Extract the first word of "$ac_prog", so it can be a program name with args.
11291 set dummy $ac_prog; ac_word=$2
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11293 $as_echo_n "checking for $ac_word... " >&6; }
11294 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11295 $as_echo_n "(cached) " >&6
11296 else
11297 if test -n "$ac_ct_DUMPBIN"; then
11298 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11299 else
11300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11301 for as_dir in $PATH
11302 do
11303 IFS=$as_save_IFS
11304 test -z "$as_dir" && as_dir=.
11305 for ac_exec_ext in '' $ac_executable_extensions; do
11306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11307 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11309 break 2
11310 fi
11311 done
11312 done
11313 IFS=$as_save_IFS
11314
11315 fi
11316 fi
11317 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11318 if test -n "$ac_ct_DUMPBIN"; then
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11320 $as_echo "$ac_ct_DUMPBIN" >&6; }
11321 else
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11323 $as_echo "no" >&6; }
11324 fi
11325
11326
11327 test -n "$ac_ct_DUMPBIN" && break
11328 done
11329
11330 if test "x$ac_ct_DUMPBIN" = x; then
11331 DUMPBIN=":"
11332 else
11333 case $cross_compiling:$ac_tool_warned in
11334 yes:)
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11337 ac_tool_warned=yes ;;
11338 esac
11339 DUMPBIN=$ac_ct_DUMPBIN
11340 fi
11341 fi
11342
11343 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11344 *COFF*)
11345 DUMPBIN="$DUMPBIN -symbols"
11346 ;;
11347 *)
11348 DUMPBIN=:
11349 ;;
11350 esac
11351 fi
11352
11353 if test "$DUMPBIN" != ":"; then
11354 NM="$DUMPBIN"
11355 fi
11356 fi
11357 test -z "$NM" && NM=nm
11358
11359
11360
11361
11362
11363
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11365 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11366 if ${lt_cv_nm_interface+:} false; then :
11367 $as_echo_n "(cached) " >&6
11368 else
11369 lt_cv_nm_interface="BSD nm"
11370 echo "int some_variable = 0;" > conftest.$ac_ext
11371 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11372 (eval "$ac_compile" 2>conftest.err)
11373 cat conftest.err >&5
11374 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11375 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11376 cat conftest.err >&5
11377 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11378 cat conftest.out >&5
11379 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11380 lt_cv_nm_interface="MS dumpbin"
11381 fi
11382 rm -f conftest*
11383 fi
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11385 $as_echo "$lt_cv_nm_interface" >&6; }
11386
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11388 $as_echo_n "checking whether ln -s works... " >&6; }
11389 LN_S=$as_ln_s
11390 if test "$LN_S" = "ln -s"; then
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11392 $as_echo "yes" >&6; }
11393 else
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11395 $as_echo "no, using $LN_S" >&6; }
11396 fi
11397
11398 # find the maximum length of command line arguments
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11400 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11401 if ${lt_cv_sys_max_cmd_len+:} false; then :
11402 $as_echo_n "(cached) " >&6
11403 else
11404 i=0
11405 teststring="ABCD"
11406
11407 case $build_os in
11408 msdosdjgpp*)
11409 # On DJGPP, this test can blow up pretty badly due to problems in libc
11410 # (any single argument exceeding 2000 bytes causes a buffer overrun
11411 # during glob expansion). Even if it were fixed, the result of this
11412 # check would be larger than it should be.
11413 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11414 ;;
11415
11416 gnu*)
11417 # Under GNU Hurd, this test is not required because there is
11418 # no limit to the length of command line arguments.
11419 # Libtool will interpret -1 as no limit whatsoever
11420 lt_cv_sys_max_cmd_len=-1;
11421 ;;
11422
11423 cygwin* | mingw* | cegcc*)
11424 # On Win9x/ME, this test blows up -- it succeeds, but takes
11425 # about 5 minutes as the teststring grows exponentially.
11426 # Worse, since 9x/ME are not pre-emptively multitasking,
11427 # you end up with a "frozen" computer, even though with patience
11428 # the test eventually succeeds (with a max line length of 256k).
11429 # Instead, let's just punt: use the minimum linelength reported by
11430 # all of the supported platforms: 8192 (on NT/2K/XP).
11431 lt_cv_sys_max_cmd_len=8192;
11432 ;;
11433
11434 mint*)
11435 # On MiNT this can take a long time and run out of memory.
11436 lt_cv_sys_max_cmd_len=8192;
11437 ;;
11438
11439 amigaos*)
11440 # On AmigaOS with pdksh, this test takes hours, literally.
11441 # So we just punt and use a minimum line length of 8192.
11442 lt_cv_sys_max_cmd_len=8192;
11443 ;;
11444
11445 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11446 # This has been around since 386BSD, at least. Likely further.
11447 if test -x /sbin/sysctl; then
11448 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11449 elif test -x /usr/sbin/sysctl; then
11450 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11451 else
11452 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11453 fi
11454 # And add a safety zone
11455 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11456 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11457 ;;
11458
11459 interix*)
11460 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11461 lt_cv_sys_max_cmd_len=196608
11462 ;;
11463
11464 os2*)
11465 # The test takes a long time on OS/2.
11466 lt_cv_sys_max_cmd_len=8192
11467 ;;
11468
11469 osf*)
11470 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11471 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11472 # nice to cause kernel panics so lets avoid the loop below.
11473 # First set a reasonable default.
11474 lt_cv_sys_max_cmd_len=16384
11475 #
11476 if test -x /sbin/sysconfig; then
11477 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11478 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11479 esac
11480 fi
11481 ;;
11482 sco3.2v5*)
11483 lt_cv_sys_max_cmd_len=102400
11484 ;;
11485 sysv5* | sco5v6* | sysv4.2uw2*)
11486 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11487 if test -n "$kargmax"; then
11488 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11489 else
11490 lt_cv_sys_max_cmd_len=32768
11491 fi
11492 ;;
11493 *)
11494 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11495 if test -n "$lt_cv_sys_max_cmd_len" && \
11496 test undefined != "$lt_cv_sys_max_cmd_len"; then
11497 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11498 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11499 else
11500 # Make teststring a little bigger before we do anything with it.
11501 # a 1K string should be a reasonable start.
11502 for i in 1 2 3 4 5 6 7 8 ; do
11503 teststring=$teststring$teststring
11504 done
11505 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11506 # If test is not a shell built-in, we'll probably end up computing a
11507 # maximum length that is only half of the actual maximum length, but
11508 # we can't tell.
11509 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
11510 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11511 test $i != 17 # 1/2 MB should be enough
11512 do
11513 i=`expr $i + 1`
11514 teststring=$teststring$teststring
11515 done
11516 # Only check the string length outside the loop.
11517 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11518 teststring=
11519 # Add a significant safety factor because C++ compilers can tack on
11520 # massive amounts of additional arguments before passing them to the
11521 # linker. It appears as though 1/2 is a usable value.
11522 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11523 fi
11524 ;;
11525 esac
11526
11527 fi
11528
11529 if test -n $lt_cv_sys_max_cmd_len ; then
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11531 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11532 else
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11534 $as_echo "none" >&6; }
11535 fi
11536 max_cmd_len=$lt_cv_sys_max_cmd_len
11537
11538
11539
11540
11541
11542
11543 : ${CP="cp -f"}
11544 : ${MV="mv -f"}
11545 : ${RM="rm -f"}
11546
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11548 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11549 # Try some XSI features
11550 xsi_shell=no
11551 ( _lt_dummy="a/b/c"
11552 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11553 = c,a/b,b/c, \
11554 && eval 'test $(( 1 + 1 )) -eq 2 \
11555 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11556 && xsi_shell=yes
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11558 $as_echo "$xsi_shell" >&6; }
11559
11560
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11562 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11563 lt_shell_append=no
11564 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11565 >/dev/null 2>&1 \
11566 && lt_shell_append=yes
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11568 $as_echo "$lt_shell_append" >&6; }
11569
11570
11571 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11572 lt_unset=unset
11573 else
11574 lt_unset=false
11575 fi
11576
11577
11578
11579
11580
11581 # test EBCDIC or ASCII
11582 case `echo X|tr X '\101'` in
11583 A) # ASCII based system
11584 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11585 lt_SP2NL='tr \040 \012'
11586 lt_NL2SP='tr \015\012 \040\040'
11587 ;;
11588 *) # EBCDIC based system
11589 lt_SP2NL='tr \100 \n'
11590 lt_NL2SP='tr \r\n \100\100'
11591 ;;
11592 esac
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11603 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11604 if ${lt_cv_to_host_file_cmd+:} false; then :
11605 $as_echo_n "(cached) " >&6
11606 else
11607 case $host in
11608 *-*-mingw* )
11609 case $build in
11610 *-*-mingw* ) # actually msys
11611 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11612 ;;
11613 *-*-cygwin* )
11614 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11615 ;;
11616 * ) # otherwise, assume *nix
11617 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11618 ;;
11619 esac
11620 ;;
11621 *-*-cygwin* )
11622 case $build in
11623 *-*-mingw* ) # actually msys
11624 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11625 ;;
11626 *-*-cygwin* )
11627 lt_cv_to_host_file_cmd=func_convert_file_noop
11628 ;;
11629 * ) # otherwise, assume *nix
11630 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11631 ;;
11632 esac
11633 ;;
11634 * ) # unhandled hosts (and "normal" native builds)
11635 lt_cv_to_host_file_cmd=func_convert_file_noop
11636 ;;
11637 esac
11638
11639 fi
11640
11641 to_host_file_cmd=$lt_cv_to_host_file_cmd
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11643 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
11644
11645
11646
11647
11648
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11650 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11651 if ${lt_cv_to_tool_file_cmd+:} false; then :
11652 $as_echo_n "(cached) " >&6
11653 else
11654 #assume ordinary cross tools, or native build.
11655 lt_cv_to_tool_file_cmd=func_convert_file_noop
11656 case $host in
11657 *-*-mingw* )
11658 case $build in
11659 *-*-mingw* ) # actually msys
11660 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11661 ;;
11662 esac
11663 ;;
11664 esac
11665
11666 fi
11667
11668 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11670 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11671
11672
11673
11674
11675
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11677 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11678 if ${lt_cv_ld_reload_flag+:} false; then :
11679 $as_echo_n "(cached) " >&6
11680 else
11681 lt_cv_ld_reload_flag='-r'
11682 fi
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11684 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11685 reload_flag=$lt_cv_ld_reload_flag
11686 case $reload_flag in
11687 "" | " "*) ;;
11688 *) reload_flag=" $reload_flag" ;;
11689 esac
11690 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11691 case $host_os in
11692 cygwin* | mingw* | pw32* | cegcc*)
11693 if test "$GCC" != yes; then
11694 reload_cmds=false
11695 fi
11696 ;;
11697 darwin*)
11698 if test "$GCC" = yes; then
11699 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11700 else
11701 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11702 fi
11703 ;;
11704 esac
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714 if test -n "$ac_tool_prefix"; then
11715 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11716 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11718 $as_echo_n "checking for $ac_word... " >&6; }
11719 if ${ac_cv_prog_OBJDUMP+:} false; then :
11720 $as_echo_n "(cached) " >&6
11721 else
11722 if test -n "$OBJDUMP"; then
11723 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11724 else
11725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11726 for as_dir in $PATH
11727 do
11728 IFS=$as_save_IFS
11729 test -z "$as_dir" && as_dir=.
11730 for ac_exec_ext in '' $ac_executable_extensions; do
11731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11732 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11734 break 2
11735 fi
11736 done
11737 done
11738 IFS=$as_save_IFS
11739
11740 fi
11741 fi
11742 OBJDUMP=$ac_cv_prog_OBJDUMP
11743 if test -n "$OBJDUMP"; then
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11745 $as_echo "$OBJDUMP" >&6; }
11746 else
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11748 $as_echo "no" >&6; }
11749 fi
11750
11751
11752 fi
11753 if test -z "$ac_cv_prog_OBJDUMP"; then
11754 ac_ct_OBJDUMP=$OBJDUMP
11755 # Extract the first word of "objdump", so it can be a program name with args.
11756 set dummy objdump; ac_word=$2
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11758 $as_echo_n "checking for $ac_word... " >&6; }
11759 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11760 $as_echo_n "(cached) " >&6
11761 else
11762 if test -n "$ac_ct_OBJDUMP"; then
11763 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11764 else
11765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11766 for as_dir in $PATH
11767 do
11768 IFS=$as_save_IFS
11769 test -z "$as_dir" && as_dir=.
11770 for ac_exec_ext in '' $ac_executable_extensions; do
11771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11772 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11774 break 2
11775 fi
11776 done
11777 done
11778 IFS=$as_save_IFS
11779
11780 fi
11781 fi
11782 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11783 if test -n "$ac_ct_OBJDUMP"; then
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11785 $as_echo "$ac_ct_OBJDUMP" >&6; }
11786 else
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11788 $as_echo "no" >&6; }
11789 fi
11790
11791 if test "x$ac_ct_OBJDUMP" = x; then
11792 OBJDUMP="false"
11793 else
11794 case $cross_compiling:$ac_tool_warned in
11795 yes:)
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11798 ac_tool_warned=yes ;;
11799 esac
11800 OBJDUMP=$ac_ct_OBJDUMP
11801 fi
11802 else
11803 OBJDUMP="$ac_cv_prog_OBJDUMP"
11804 fi
11805
11806 test -z "$OBJDUMP" && OBJDUMP=objdump
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11817 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11818 if ${lt_cv_deplibs_check_method+:} false; then :
11819 $as_echo_n "(cached) " >&6
11820 else
11821 lt_cv_file_magic_cmd='$MAGIC_CMD'
11822 lt_cv_file_magic_test_file=
11823 lt_cv_deplibs_check_method='unknown'
11824 # Need to set the preceding variable on all platforms that support
11825 # interlibrary dependencies.
11826 # 'none' -- dependencies not supported.
11827 # `unknown' -- same as none, but documents that we really don't know.
11828 # 'pass_all' -- all dependencies passed with no checks.
11829 # 'test_compile' -- check by making test program.
11830 # 'file_magic [[regex]]' -- check by looking for files in library path
11831 # which responds to the $file_magic_cmd with a given extended regex.
11832 # If you have `file' or equivalent on your system and you're not sure
11833 # whether `pass_all' will *always* work, you probably want this one.
11834
11835 case $host_os in
11836 aix[4-9]*)
11837 lt_cv_deplibs_check_method=pass_all
11838 ;;
11839
11840 beos*)
11841 lt_cv_deplibs_check_method=pass_all
11842 ;;
11843
11844 bsdi[45]*)
11845 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11846 lt_cv_file_magic_cmd='/usr/bin/file -L'
11847 lt_cv_file_magic_test_file=/shlib/libc.so
11848 ;;
11849
11850 cygwin*)
11851 # func_win32_libid is a shell function defined in ltmain.sh
11852 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11853 lt_cv_file_magic_cmd='func_win32_libid'
11854 ;;
11855
11856 mingw* | pw32*)
11857 # Base MSYS/MinGW do not provide the 'file' command needed by
11858 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11859 # unless we find 'file', for example because we are cross-compiling.
11860 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11861 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11862 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11863 lt_cv_file_magic_cmd='func_win32_libid'
11864 else
11865 # Keep this pattern in sync with the one in func_win32_libid.
11866 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11867 lt_cv_file_magic_cmd='$OBJDUMP -f'
11868 fi
11869 ;;
11870
11871 cegcc*)
11872 # use the weaker test based on 'objdump'. See mingw*.
11873 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11874 lt_cv_file_magic_cmd='$OBJDUMP -f'
11875 ;;
11876
11877 darwin* | rhapsody*)
11878 lt_cv_deplibs_check_method=pass_all
11879 ;;
11880
11881 freebsd* | dragonfly*)
11882 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11883 case $host_cpu in
11884 i*86 )
11885 # Not sure whether the presence of OpenBSD here was a mistake.
11886 # Let's accept both of them until this is cleared up.
11887 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11888 lt_cv_file_magic_cmd=/usr/bin/file
11889 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11890 ;;
11891 esac
11892 else
11893 lt_cv_deplibs_check_method=pass_all
11894 fi
11895 ;;
11896
11897 haiku*)
11898 lt_cv_deplibs_check_method=pass_all
11899 ;;
11900
11901 hpux10.20* | hpux11*)
11902 lt_cv_file_magic_cmd=/usr/bin/file
11903 case $host_cpu in
11904 ia64*)
11905 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11906 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11907 ;;
11908 hppa*64*)
11909 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]'
11910 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11911 ;;
11912 *)
11913 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11914 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11915 ;;
11916 esac
11917 ;;
11918
11919 interix[3-9]*)
11920 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11921 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11922 ;;
11923
11924 irix5* | irix6* | nonstopux*)
11925 case $LD in
11926 *-32|*"-32 ") libmagic=32-bit;;
11927 *-n32|*"-n32 ") libmagic=N32;;
11928 *-64|*"-64 ") libmagic=64-bit;;
11929 *) libmagic=never-match;;
11930 esac
11931 lt_cv_deplibs_check_method=pass_all
11932 ;;
11933
11934 # This must be glibc/ELF.
11935 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11936 lt_cv_deplibs_check_method=pass_all
11937 ;;
11938
11939 netbsd* | netbsdelf*-gnu)
11940 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11941 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11942 else
11943 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11944 fi
11945 ;;
11946
11947 newos6*)
11948 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11949 lt_cv_file_magic_cmd=/usr/bin/file
11950 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11951 ;;
11952
11953 *nto* | *qnx*)
11954 lt_cv_deplibs_check_method=pass_all
11955 ;;
11956
11957 openbsd*)
11958 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11959 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11960 else
11961 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11962 fi
11963 ;;
11964
11965 osf3* | osf4* | osf5*)
11966 lt_cv_deplibs_check_method=pass_all
11967 ;;
11968
11969 rdos*)
11970 lt_cv_deplibs_check_method=pass_all
11971 ;;
11972
11973 solaris*)
11974 lt_cv_deplibs_check_method=pass_all
11975 ;;
11976
11977 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11978 lt_cv_deplibs_check_method=pass_all
11979 ;;
11980
11981 sysv4 | sysv4.3*)
11982 case $host_vendor in
11983 motorola)
11984 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]'
11985 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11986 ;;
11987 ncr)
11988 lt_cv_deplibs_check_method=pass_all
11989 ;;
11990 sequent)
11991 lt_cv_file_magic_cmd='/bin/file'
11992 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11993 ;;
11994 sni)
11995 lt_cv_file_magic_cmd='/bin/file'
11996 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11997 lt_cv_file_magic_test_file=/lib/libc.so
11998 ;;
11999 siemens)
12000 lt_cv_deplibs_check_method=pass_all
12001 ;;
12002 pc)
12003 lt_cv_deplibs_check_method=pass_all
12004 ;;
12005 esac
12006 ;;
12007
12008 tpf*)
12009 lt_cv_deplibs_check_method=pass_all
12010 ;;
12011 esac
12012
12013 fi
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12015 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12016
12017 file_magic_glob=
12018 want_nocaseglob=no
12019 if test "$build" = "$host"; then
12020 case $host_os in
12021 mingw* | pw32*)
12022 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12023 want_nocaseglob=yes
12024 else
12025 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12026 fi
12027 ;;
12028 esac
12029 fi
12030
12031 file_magic_cmd=$lt_cv_file_magic_cmd
12032 deplibs_check_method=$lt_cv_deplibs_check_method
12033 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056 if test -n "$ac_tool_prefix"; then
12057 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12058 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12060 $as_echo_n "checking for $ac_word... " >&6; }
12061 if ${ac_cv_prog_DLLTOOL+:} false; then :
12062 $as_echo_n "(cached) " >&6
12063 else
12064 if test -n "$DLLTOOL"; then
12065 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12066 else
12067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12068 for as_dir in $PATH
12069 do
12070 IFS=$as_save_IFS
12071 test -z "$as_dir" && as_dir=.
12072 for ac_exec_ext in '' $ac_executable_extensions; do
12073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12074 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12076 break 2
12077 fi
12078 done
12079 done
12080 IFS=$as_save_IFS
12081
12082 fi
12083 fi
12084 DLLTOOL=$ac_cv_prog_DLLTOOL
12085 if test -n "$DLLTOOL"; then
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12087 $as_echo "$DLLTOOL" >&6; }
12088 else
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12090 $as_echo "no" >&6; }
12091 fi
12092
12093
12094 fi
12095 if test -z "$ac_cv_prog_DLLTOOL"; then
12096 ac_ct_DLLTOOL=$DLLTOOL
12097 # Extract the first word of "dlltool", so it can be a program name with args.
12098 set dummy dlltool; ac_word=$2
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12100 $as_echo_n "checking for $ac_word... " >&6; }
12101 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12102 $as_echo_n "(cached) " >&6
12103 else
12104 if test -n "$ac_ct_DLLTOOL"; then
12105 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12106 else
12107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12108 for as_dir in $PATH
12109 do
12110 IFS=$as_save_IFS
12111 test -z "$as_dir" && as_dir=.
12112 for ac_exec_ext in '' $ac_executable_extensions; do
12113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12114 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12116 break 2
12117 fi
12118 done
12119 done
12120 IFS=$as_save_IFS
12121
12122 fi
12123 fi
12124 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12125 if test -n "$ac_ct_DLLTOOL"; then
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12127 $as_echo "$ac_ct_DLLTOOL" >&6; }
12128 else
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12130 $as_echo "no" >&6; }
12131 fi
12132
12133 if test "x$ac_ct_DLLTOOL" = x; then
12134 DLLTOOL="false"
12135 else
12136 case $cross_compiling:$ac_tool_warned in
12137 yes:)
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12139 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12140 ac_tool_warned=yes ;;
12141 esac
12142 DLLTOOL=$ac_ct_DLLTOOL
12143 fi
12144 else
12145 DLLTOOL="$ac_cv_prog_DLLTOOL"
12146 fi
12147
12148 test -z "$DLLTOOL" && DLLTOOL=dlltool
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12160 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12161 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12162 $as_echo_n "(cached) " >&6
12163 else
12164 lt_cv_sharedlib_from_linklib_cmd='unknown'
12165
12166 case $host_os in
12167 cygwin* | mingw* | pw32* | cegcc*)
12168 # two different shell functions defined in ltmain.sh
12169 # decide which to use based on capabilities of $DLLTOOL
12170 case `$DLLTOOL --help 2>&1` in
12171 *--identify-strict*)
12172 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12173 ;;
12174 *)
12175 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12176 ;;
12177 esac
12178 ;;
12179 *)
12180 # fallback: assume linklib IS sharedlib
12181 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12182 ;;
12183 esac
12184
12185 fi
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12187 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12188 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12189 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12190
12191
12192
12193
12194
12195
12196
12197 if test -n "$ac_tool_prefix"; then
12198 for ac_prog in ar
12199 do
12200 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12201 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12203 $as_echo_n "checking for $ac_word... " >&6; }
12204 if ${ac_cv_prog_AR+:} false; then :
12205 $as_echo_n "(cached) " >&6
12206 else
12207 if test -n "$AR"; then
12208 ac_cv_prog_AR="$AR" # Let the user override the test.
12209 else
12210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12211 for as_dir in $PATH
12212 do
12213 IFS=$as_save_IFS
12214 test -z "$as_dir" && as_dir=.
12215 for ac_exec_ext in '' $ac_executable_extensions; do
12216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12217 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12219 break 2
12220 fi
12221 done
12222 done
12223 IFS=$as_save_IFS
12224
12225 fi
12226 fi
12227 AR=$ac_cv_prog_AR
12228 if test -n "$AR"; then
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12230 $as_echo "$AR" >&6; }
12231 else
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12233 $as_echo "no" >&6; }
12234 fi
12235
12236
12237 test -n "$AR" && break
12238 done
12239 fi
12240 if test -z "$AR"; then
12241 ac_ct_AR=$AR
12242 for ac_prog in ar
12243 do
12244 # Extract the first word of "$ac_prog", so it can be a program name with args.
12245 set dummy $ac_prog; ac_word=$2
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12247 $as_echo_n "checking for $ac_word... " >&6; }
12248 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12249 $as_echo_n "(cached) " >&6
12250 else
12251 if test -n "$ac_ct_AR"; then
12252 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12253 else
12254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12255 for as_dir in $PATH
12256 do
12257 IFS=$as_save_IFS
12258 test -z "$as_dir" && as_dir=.
12259 for ac_exec_ext in '' $ac_executable_extensions; do
12260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12261 ac_cv_prog_ac_ct_AR="$ac_prog"
12262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12263 break 2
12264 fi
12265 done
12266 done
12267 IFS=$as_save_IFS
12268
12269 fi
12270 fi
12271 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12272 if test -n "$ac_ct_AR"; then
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12274 $as_echo "$ac_ct_AR" >&6; }
12275 else
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12277 $as_echo "no" >&6; }
12278 fi
12279
12280
12281 test -n "$ac_ct_AR" && break
12282 done
12283
12284 if test "x$ac_ct_AR" = x; then
12285 AR="false"
12286 else
12287 case $cross_compiling:$ac_tool_warned in
12288 yes:)
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12291 ac_tool_warned=yes ;;
12292 esac
12293 AR=$ac_ct_AR
12294 fi
12295 fi
12296
12297 : ${AR=ar}
12298 : ${AR_FLAGS=cru}
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12311 $as_echo_n "checking for archiver @FILE support... " >&6; }
12312 if ${lt_cv_ar_at_file+:} false; then :
12313 $as_echo_n "(cached) " >&6
12314 else
12315 lt_cv_ar_at_file=no
12316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12317 /* end confdefs.h. */
12318
12319 int
12320 main ()
12321 {
12322
12323 ;
12324 return 0;
12325 }
12326 _ACEOF
12327 if ac_fn_c_try_compile "$LINENO"; then :
12328 echo conftest.$ac_objext > conftest.lst
12329 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12331 (eval $lt_ar_try) 2>&5
12332 ac_status=$?
12333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12334 test $ac_status = 0; }
12335 if test "$ac_status" -eq 0; then
12336 # Ensure the archiver fails upon bogus file names.
12337 rm -f conftest.$ac_objext libconftest.a
12338 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12339 (eval $lt_ar_try) 2>&5
12340 ac_status=$?
12341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12342 test $ac_status = 0; }
12343 if test "$ac_status" -ne 0; then
12344 lt_cv_ar_at_file=@
12345 fi
12346 fi
12347 rm -f conftest.* libconftest.a
12348
12349 fi
12350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12351
12352 fi
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12354 $as_echo "$lt_cv_ar_at_file" >&6; }
12355
12356 if test "x$lt_cv_ar_at_file" = xno; then
12357 archiver_list_spec=
12358 else
12359 archiver_list_spec=$lt_cv_ar_at_file
12360 fi
12361
12362
12363
12364
12365
12366
12367
12368 if test -n "$ac_tool_prefix"; then
12369 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12370 set dummy ${ac_tool_prefix}strip; ac_word=$2
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12372 $as_echo_n "checking for $ac_word... " >&6; }
12373 if ${ac_cv_prog_STRIP+:} false; then :
12374 $as_echo_n "(cached) " >&6
12375 else
12376 if test -n "$STRIP"; then
12377 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12378 else
12379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12380 for as_dir in $PATH
12381 do
12382 IFS=$as_save_IFS
12383 test -z "$as_dir" && as_dir=.
12384 for ac_exec_ext in '' $ac_executable_extensions; do
12385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12386 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12388 break 2
12389 fi
12390 done
12391 done
12392 IFS=$as_save_IFS
12393
12394 fi
12395 fi
12396 STRIP=$ac_cv_prog_STRIP
12397 if test -n "$STRIP"; then
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12399 $as_echo "$STRIP" >&6; }
12400 else
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12402 $as_echo "no" >&6; }
12403 fi
12404
12405
12406 fi
12407 if test -z "$ac_cv_prog_STRIP"; then
12408 ac_ct_STRIP=$STRIP
12409 # Extract the first word of "strip", so it can be a program name with args.
12410 set dummy strip; ac_word=$2
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12412 $as_echo_n "checking for $ac_word... " >&6; }
12413 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12414 $as_echo_n "(cached) " >&6
12415 else
12416 if test -n "$ac_ct_STRIP"; then
12417 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12418 else
12419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12420 for as_dir in $PATH
12421 do
12422 IFS=$as_save_IFS
12423 test -z "$as_dir" && as_dir=.
12424 for ac_exec_ext in '' $ac_executable_extensions; do
12425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12426 ac_cv_prog_ac_ct_STRIP="strip"
12427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12428 break 2
12429 fi
12430 done
12431 done
12432 IFS=$as_save_IFS
12433
12434 fi
12435 fi
12436 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12437 if test -n "$ac_ct_STRIP"; then
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12439 $as_echo "$ac_ct_STRIP" >&6; }
12440 else
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12442 $as_echo "no" >&6; }
12443 fi
12444
12445 if test "x$ac_ct_STRIP" = x; then
12446 STRIP=":"
12447 else
12448 case $cross_compiling:$ac_tool_warned in
12449 yes:)
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12451 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12452 ac_tool_warned=yes ;;
12453 esac
12454 STRIP=$ac_ct_STRIP
12455 fi
12456 else
12457 STRIP="$ac_cv_prog_STRIP"
12458 fi
12459
12460 test -z "$STRIP" && STRIP=:
12461
12462
12463
12464
12465
12466
12467 if test -n "$ac_tool_prefix"; then
12468 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12469 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12471 $as_echo_n "checking for $ac_word... " >&6; }
12472 if ${ac_cv_prog_RANLIB+:} false; then :
12473 $as_echo_n "(cached) " >&6
12474 else
12475 if test -n "$RANLIB"; then
12476 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12477 else
12478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12479 for as_dir in $PATH
12480 do
12481 IFS=$as_save_IFS
12482 test -z "$as_dir" && as_dir=.
12483 for ac_exec_ext in '' $ac_executable_extensions; do
12484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12485 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12487 break 2
12488 fi
12489 done
12490 done
12491 IFS=$as_save_IFS
12492
12493 fi
12494 fi
12495 RANLIB=$ac_cv_prog_RANLIB
12496 if test -n "$RANLIB"; then
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12498 $as_echo "$RANLIB" >&6; }
12499 else
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12501 $as_echo "no" >&6; }
12502 fi
12503
12504
12505 fi
12506 if test -z "$ac_cv_prog_RANLIB"; then
12507 ac_ct_RANLIB=$RANLIB
12508 # Extract the first word of "ranlib", so it can be a program name with args.
12509 set dummy ranlib; ac_word=$2
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12511 $as_echo_n "checking for $ac_word... " >&6; }
12512 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12513 $as_echo_n "(cached) " >&6
12514 else
12515 if test -n "$ac_ct_RANLIB"; then
12516 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12517 else
12518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12519 for as_dir in $PATH
12520 do
12521 IFS=$as_save_IFS
12522 test -z "$as_dir" && as_dir=.
12523 for ac_exec_ext in '' $ac_executable_extensions; do
12524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12525 ac_cv_prog_ac_ct_RANLIB="ranlib"
12526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12527 break 2
12528 fi
12529 done
12530 done
12531 IFS=$as_save_IFS
12532
12533 fi
12534 fi
12535 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12536 if test -n "$ac_ct_RANLIB"; then
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12538 $as_echo "$ac_ct_RANLIB" >&6; }
12539 else
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12541 $as_echo "no" >&6; }
12542 fi
12543
12544 if test "x$ac_ct_RANLIB" = x; then
12545 RANLIB=":"
12546 else
12547 case $cross_compiling:$ac_tool_warned in
12548 yes:)
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12551 ac_tool_warned=yes ;;
12552 esac
12553 RANLIB=$ac_ct_RANLIB
12554 fi
12555 else
12556 RANLIB="$ac_cv_prog_RANLIB"
12557 fi
12558
12559 test -z "$RANLIB" && RANLIB=:
12560
12561
12562
12563
12564
12565
12566 # Determine commands to create old-style static archives.
12567 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12568 old_postinstall_cmds='chmod 644 $oldlib'
12569 old_postuninstall_cmds=
12570
12571 if test -n "$RANLIB"; then
12572 case $host_os in
12573 openbsd*)
12574 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12575 ;;
12576 *)
12577 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12578 ;;
12579 esac
12580 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12581 fi
12582
12583 case $host_os in
12584 darwin*)
12585 lock_old_archive_extraction=yes ;;
12586 *)
12587 lock_old_archive_extraction=no ;;
12588 esac
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628 # If no C compiler was specified, use CC.
12629 LTCC=${LTCC-"$CC"}
12630
12631 # If no C compiler flags were specified, use CFLAGS.
12632 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12633
12634 # Allow CC to be a program name with arguments.
12635 compiler=$CC
12636
12637
12638 # Check for command to grab the raw symbol name followed by C symbol from nm.
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12640 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12641 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12642 $as_echo_n "(cached) " >&6
12643 else
12644
12645 # These are sane defaults that work on at least a few old systems.
12646 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12647
12648 # Character class describing NM global symbol codes.
12649 symcode='[BCDEGRST]'
12650
12651 # Regexp to match symbols that can be accessed directly from C.
12652 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12653
12654 # Define system-specific variables.
12655 case $host_os in
12656 aix*)
12657 symcode='[BCDT]'
12658 ;;
12659 cygwin* | mingw* | pw32* | cegcc*)
12660 symcode='[ABCDGISTW]'
12661 ;;
12662 hpux*)
12663 if test "$host_cpu" = ia64; then
12664 symcode='[ABCDEGRST]'
12665 fi
12666 ;;
12667 irix* | nonstopux*)
12668 symcode='[BCDEGRST]'
12669 ;;
12670 osf*)
12671 symcode='[BCDEGQRST]'
12672 ;;
12673 solaris*)
12674 symcode='[BDRT]'
12675 ;;
12676 sco3.2v5*)
12677 symcode='[DT]'
12678 ;;
12679 sysv4.2uw2*)
12680 symcode='[DT]'
12681 ;;
12682 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12683 symcode='[ABDT]'
12684 ;;
12685 sysv4)
12686 symcode='[DFNSTU]'
12687 ;;
12688 esac
12689
12690 # If we're using GNU nm, then use its standard symbol codes.
12691 case `$NM -V 2>&1` in
12692 *GNU* | *'with BFD'*)
12693 symcode='[ABCDGIRSTW]' ;;
12694 esac
12695
12696 # Transform an extracted symbol line into a proper C declaration.
12697 # Some systems (esp. on ia64) link data and code symbols differently,
12698 # so use this general approach.
12699 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12700
12701 # Transform an extracted symbol line into symbol name and symbol address
12702 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12703 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
12704
12705 # Handle CRLF in mingw tool chain
12706 opt_cr=
12707 case $build_os in
12708 mingw*)
12709 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12710 ;;
12711 esac
12712
12713 # Try without a prefix underscore, then with it.
12714 for ac_symprfx in "" "_"; do
12715
12716 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12717 symxfrm="\\1 $ac_symprfx\\2 \\2"
12718
12719 # Write the raw and C identifiers.
12720 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12721 # Fake it for dumpbin and say T for any non-static function
12722 # and D for any global variable.
12723 # Also find C++ and __fastcall symbols from MSVC++,
12724 # which start with @ or ?.
12725 lt_cv_sys_global_symbol_pipe="$AWK '"\
12726 " {last_section=section; section=\$ 3};"\
12727 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12728 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12729 " \$ 0!~/External *\|/{next};"\
12730 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12731 " {if(hide[section]) next};"\
12732 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12733 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12734 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12735 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12736 " ' prfx=^$ac_symprfx"
12737 else
12738 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12739 fi
12740 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12741
12742 # Check to see that the pipe works correctly.
12743 pipe_works=no
12744
12745 rm -f conftest*
12746 cat > conftest.$ac_ext <<_LT_EOF
12747 #ifdef __cplusplus
12748 extern "C" {
12749 #endif
12750 char nm_test_var;
12751 void nm_test_func(void);
12752 void nm_test_func(void){}
12753 #ifdef __cplusplus
12754 }
12755 #endif
12756 int main(){nm_test_var='a';nm_test_func();return(0);}
12757 _LT_EOF
12758
12759 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12760 (eval $ac_compile) 2>&5
12761 ac_status=$?
12762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12763 test $ac_status = 0; }; then
12764 # Now try to grab the symbols.
12765 nlist=conftest.nm
12766 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12767 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12768 ac_status=$?
12769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12770 test $ac_status = 0; } && test -s "$nlist"; then
12771 # Try sorting and uniquifying the output.
12772 if sort "$nlist" | uniq > "$nlist"T; then
12773 mv -f "$nlist"T "$nlist"
12774 else
12775 rm -f "$nlist"T
12776 fi
12777
12778 # Make sure that we snagged all the symbols we need.
12779 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12780 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12781 cat <<_LT_EOF > conftest.$ac_ext
12782 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12783 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12784 /* DATA imports from DLLs on WIN32 con't be const, because runtime
12785 relocations are performed -- see ld's documentation on pseudo-relocs. */
12786 # define LT_DLSYM_CONST
12787 #elif defined(__osf__)
12788 /* This system does not cope well with relocations in const data. */
12789 # define LT_DLSYM_CONST
12790 #else
12791 # define LT_DLSYM_CONST const
12792 #endif
12793
12794 #ifdef __cplusplus
12795 extern "C" {
12796 #endif
12797
12798 _LT_EOF
12799 # Now generate the symbol file.
12800 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12801
12802 cat <<_LT_EOF >> conftest.$ac_ext
12803
12804 /* The mapping between symbol names and symbols. */
12805 LT_DLSYM_CONST struct {
12806 const char *name;
12807 void *address;
12808 }
12809 lt__PROGRAM__LTX_preloaded_symbols[] =
12810 {
12811 { "@PROGRAM@", (void *) 0 },
12812 _LT_EOF
12813 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12814 cat <<\_LT_EOF >> conftest.$ac_ext
12815 {0, (void *) 0}
12816 };
12817
12818 /* This works around a problem in FreeBSD linker */
12819 #ifdef FREEBSD_WORKAROUND
12820 static const void *lt_preloaded_setup() {
12821 return lt__PROGRAM__LTX_preloaded_symbols;
12822 }
12823 #endif
12824
12825 #ifdef __cplusplus
12826 }
12827 #endif
12828 _LT_EOF
12829 # Now try linking the two files.
12830 mv conftest.$ac_objext conftstm.$ac_objext
12831 lt_globsym_save_LIBS=$LIBS
12832 lt_globsym_save_CFLAGS=$CFLAGS
12833 LIBS="conftstm.$ac_objext"
12834 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12835 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12836 (eval $ac_link) 2>&5
12837 ac_status=$?
12838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12839 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12840 pipe_works=yes
12841 fi
12842 LIBS=$lt_globsym_save_LIBS
12843 CFLAGS=$lt_globsym_save_CFLAGS
12844 else
12845 echo "cannot find nm_test_func in $nlist" >&5
12846 fi
12847 else
12848 echo "cannot find nm_test_var in $nlist" >&5
12849 fi
12850 else
12851 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12852 fi
12853 else
12854 echo "$progname: failed program was:" >&5
12855 cat conftest.$ac_ext >&5
12856 fi
12857 rm -rf conftest* conftst*
12858
12859 # Do not use the global_symbol_pipe unless it works.
12860 if test "$pipe_works" = yes; then
12861 break
12862 else
12863 lt_cv_sys_global_symbol_pipe=
12864 fi
12865 done
12866
12867 fi
12868
12869 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12870 lt_cv_sys_global_symbol_to_cdecl=
12871 fi
12872 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12874 $as_echo "failed" >&6; }
12875 else
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12877 $as_echo "ok" >&6; }
12878 fi
12879
12880 # Response file support.
12881 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12882 nm_file_list_spec='@'
12883 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12884 nm_file_list_spec='@'
12885 fi
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12914 $as_echo_n "checking for sysroot... " >&6; }
12915
12916 # Check whether --with-sysroot was given.
12917 if test "${with_sysroot+set}" = set; then :
12918 withval=$with_sysroot;
12919 else
12920 with_sysroot=no
12921 fi
12922
12923
12924 lt_sysroot=
12925 case ${with_sysroot} in #(
12926 yes)
12927 if test "$GCC" = yes; then
12928 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12929 fi
12930 ;; #(
12931 /*)
12932 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12933 ;; #(
12934 no|'')
12935 ;; #(
12936 *)
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12938 $as_echo "${with_sysroot}" >&6; }
12939 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12940 ;;
12941 esac
12942
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12944 $as_echo "${lt_sysroot:-no}" >&6; }
12945
12946
12947
12948
12949
12950 # Check whether --enable-libtool-lock was given.
12951 if test "${enable_libtool_lock+set}" = set; then :
12952 enableval=$enable_libtool_lock;
12953 fi
12954
12955 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12956
12957 # Some flags need to be propagated to the compiler or linker for good
12958 # libtool support.
12959 case $host in
12960 ia64-*-hpux*)
12961 # Find out which ABI we are using.
12962 echo 'int i;' > conftest.$ac_ext
12963 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12964 (eval $ac_compile) 2>&5
12965 ac_status=$?
12966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12967 test $ac_status = 0; }; then
12968 case `/usr/bin/file conftest.$ac_objext` in
12969 *ELF-32*)
12970 HPUX_IA64_MODE="32"
12971 ;;
12972 *ELF-64*)
12973 HPUX_IA64_MODE="64"
12974 ;;
12975 esac
12976 fi
12977 rm -rf conftest*
12978 ;;
12979 *-*-irix6*)
12980 # Find out which ABI we are using.
12981 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12982 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12983 (eval $ac_compile) 2>&5
12984 ac_status=$?
12985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12986 test $ac_status = 0; }; then
12987 if test "$lt_cv_prog_gnu_ld" = yes; then
12988 case `/usr/bin/file conftest.$ac_objext` in
12989 *32-bit*)
12990 LD="${LD-ld} -melf32bsmip"
12991 ;;
12992 *N32*)
12993 LD="${LD-ld} -melf32bmipn32"
12994 ;;
12995 *64-bit*)
12996 LD="${LD-ld} -melf64bmip"
12997 ;;
12998 esac
12999 else
13000 case `/usr/bin/file conftest.$ac_objext` in
13001 *32-bit*)
13002 LD="${LD-ld} -32"
13003 ;;
13004 *N32*)
13005 LD="${LD-ld} -n32"
13006 ;;
13007 *64-bit*)
13008 LD="${LD-ld} -64"
13009 ;;
13010 esac
13011 fi
13012 fi
13013 rm -rf conftest*
13014 ;;
13015
13016 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13017 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13018 # Find out which ABI we are using.
13019 echo 'int i;' > conftest.$ac_ext
13020 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13021 (eval $ac_compile) 2>&5
13022 ac_status=$?
13023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13024 test $ac_status = 0; }; then
13025 case `/usr/bin/file conftest.o` in
13026 *32-bit*)
13027 case $host in
13028 x86_64-*kfreebsd*-gnu)
13029 LD="${LD-ld} -m elf_i386_fbsd"
13030 ;;
13031 x86_64-*linux*)
13032 case `/usr/bin/file conftest.o` in
13033 *x86-64*)
13034 LD="${LD-ld} -m elf32_x86_64"
13035 ;;
13036 *)
13037 LD="${LD-ld} -m elf_i386"
13038 ;;
13039 esac
13040 ;;
13041 powerpc64le-*)
13042 LD="${LD-ld} -m elf32lppclinux"
13043 ;;
13044 powerpc64-*)
13045 LD="${LD-ld} -m elf32ppclinux"
13046 ;;
13047 s390x-*linux*)
13048 LD="${LD-ld} -m elf_s390"
13049 ;;
13050 sparc64-*linux*)
13051 LD="${LD-ld} -m elf32_sparc"
13052 ;;
13053 esac
13054 ;;
13055 *64-bit*)
13056 case $host in
13057 x86_64-*kfreebsd*-gnu)
13058 LD="${LD-ld} -m elf_x86_64_fbsd"
13059 ;;
13060 x86_64-*linux*)
13061 LD="${LD-ld} -m elf_x86_64"
13062 ;;
13063 powerpcle-*)
13064 LD="${LD-ld} -m elf64lppc"
13065 ;;
13066 powerpc-*)
13067 LD="${LD-ld} -m elf64ppc"
13068 ;;
13069 s390*-*linux*|s390*-*tpf*)
13070 LD="${LD-ld} -m elf64_s390"
13071 ;;
13072 sparc*-*linux*)
13073 LD="${LD-ld} -m elf64_sparc"
13074 ;;
13075 esac
13076 ;;
13077 esac
13078 fi
13079 rm -rf conftest*
13080 ;;
13081
13082 *-*-sco3.2v5*)
13083 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13084 SAVE_CFLAGS="$CFLAGS"
13085 CFLAGS="$CFLAGS -belf"
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13087 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13088 if ${lt_cv_cc_needs_belf+:} false; then :
13089 $as_echo_n "(cached) " >&6
13090 else
13091 ac_ext=c
13092 ac_cpp='$CPP $CPPFLAGS'
13093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13096
13097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13098 /* end confdefs.h. */
13099
13100 int
13101 main ()
13102 {
13103
13104 ;
13105 return 0;
13106 }
13107 _ACEOF
13108 if ac_fn_c_try_link "$LINENO"; then :
13109 lt_cv_cc_needs_belf=yes
13110 else
13111 lt_cv_cc_needs_belf=no
13112 fi
13113 rm -f core conftest.err conftest.$ac_objext \
13114 conftest$ac_exeext conftest.$ac_ext
13115 ac_ext=c
13116 ac_cpp='$CPP $CPPFLAGS'
13117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13120
13121 fi
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13123 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13124 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13125 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13126 CFLAGS="$SAVE_CFLAGS"
13127 fi
13128 ;;
13129 *-*solaris*)
13130 # Find out which ABI we are using.
13131 echo 'int i;' > conftest.$ac_ext
13132 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13133 (eval $ac_compile) 2>&5
13134 ac_status=$?
13135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13136 test $ac_status = 0; }; then
13137 case `/usr/bin/file conftest.o` in
13138 *64-bit*)
13139 case $lt_cv_prog_gnu_ld in
13140 yes*)
13141 case $host in
13142 i?86-*-solaris*)
13143 LD="${LD-ld} -m elf_x86_64"
13144 ;;
13145 sparc*-*-solaris*)
13146 LD="${LD-ld} -m elf64_sparc"
13147 ;;
13148 esac
13149 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13150 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13151 LD="${LD-ld}_sol2"
13152 fi
13153 ;;
13154 *)
13155 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13156 LD="${LD-ld} -64"
13157 fi
13158 ;;
13159 esac
13160 ;;
13161 esac
13162 fi
13163 rm -rf conftest*
13164 ;;
13165 esac
13166
13167 need_locks="$enable_libtool_lock"
13168
13169 if test -n "$ac_tool_prefix"; then
13170 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13171 set dummy ${ac_tool_prefix}mt; ac_word=$2
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13173 $as_echo_n "checking for $ac_word... " >&6; }
13174 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13175 $as_echo_n "(cached) " >&6
13176 else
13177 if test -n "$MANIFEST_TOOL"; then
13178 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13179 else
13180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13181 for as_dir in $PATH
13182 do
13183 IFS=$as_save_IFS
13184 test -z "$as_dir" && as_dir=.
13185 for ac_exec_ext in '' $ac_executable_extensions; do
13186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13187 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13189 break 2
13190 fi
13191 done
13192 done
13193 IFS=$as_save_IFS
13194
13195 fi
13196 fi
13197 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13198 if test -n "$MANIFEST_TOOL"; then
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13200 $as_echo "$MANIFEST_TOOL" >&6; }
13201 else
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13203 $as_echo "no" >&6; }
13204 fi
13205
13206
13207 fi
13208 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13209 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13210 # Extract the first word of "mt", so it can be a program name with args.
13211 set dummy mt; ac_word=$2
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13213 $as_echo_n "checking for $ac_word... " >&6; }
13214 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13215 $as_echo_n "(cached) " >&6
13216 else
13217 if test -n "$ac_ct_MANIFEST_TOOL"; then
13218 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13219 else
13220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13221 for as_dir in $PATH
13222 do
13223 IFS=$as_save_IFS
13224 test -z "$as_dir" && as_dir=.
13225 for ac_exec_ext in '' $ac_executable_extensions; do
13226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13227 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13229 break 2
13230 fi
13231 done
13232 done
13233 IFS=$as_save_IFS
13234
13235 fi
13236 fi
13237 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13238 if test -n "$ac_ct_MANIFEST_TOOL"; then
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13240 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13241 else
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13243 $as_echo "no" >&6; }
13244 fi
13245
13246 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13247 MANIFEST_TOOL=":"
13248 else
13249 case $cross_compiling:$ac_tool_warned in
13250 yes:)
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13253 ac_tool_warned=yes ;;
13254 esac
13255 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13256 fi
13257 else
13258 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13259 fi
13260
13261 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13263 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13264 if ${lt_cv_path_mainfest_tool+:} false; then :
13265 $as_echo_n "(cached) " >&6
13266 else
13267 lt_cv_path_mainfest_tool=no
13268 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13269 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13270 cat conftest.err >&5
13271 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13272 lt_cv_path_mainfest_tool=yes
13273 fi
13274 rm -f conftest*
13275 fi
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13277 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
13278 if test "x$lt_cv_path_mainfest_tool" != xyes; then
13279 MANIFEST_TOOL=:
13280 fi
13281
13282
13283
13284
13285
13286
13287 case $host_os in
13288 rhapsody* | darwin*)
13289 if test -n "$ac_tool_prefix"; then
13290 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13291 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13293 $as_echo_n "checking for $ac_word... " >&6; }
13294 if ${ac_cv_prog_DSYMUTIL+:} false; then :
13295 $as_echo_n "(cached) " >&6
13296 else
13297 if test -n "$DSYMUTIL"; then
13298 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13299 else
13300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13301 for as_dir in $PATH
13302 do
13303 IFS=$as_save_IFS
13304 test -z "$as_dir" && as_dir=.
13305 for ac_exec_ext in '' $ac_executable_extensions; do
13306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13307 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13309 break 2
13310 fi
13311 done
13312 done
13313 IFS=$as_save_IFS
13314
13315 fi
13316 fi
13317 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13318 if test -n "$DSYMUTIL"; then
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13320 $as_echo "$DSYMUTIL" >&6; }
13321 else
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13323 $as_echo "no" >&6; }
13324 fi
13325
13326
13327 fi
13328 if test -z "$ac_cv_prog_DSYMUTIL"; then
13329 ac_ct_DSYMUTIL=$DSYMUTIL
13330 # Extract the first word of "dsymutil", so it can be a program name with args.
13331 set dummy dsymutil; ac_word=$2
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13333 $as_echo_n "checking for $ac_word... " >&6; }
13334 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13335 $as_echo_n "(cached) " >&6
13336 else
13337 if test -n "$ac_ct_DSYMUTIL"; then
13338 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13339 else
13340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13341 for as_dir in $PATH
13342 do
13343 IFS=$as_save_IFS
13344 test -z "$as_dir" && as_dir=.
13345 for ac_exec_ext in '' $ac_executable_extensions; do
13346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13347 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13349 break 2
13350 fi
13351 done
13352 done
13353 IFS=$as_save_IFS
13354
13355 fi
13356 fi
13357 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13358 if test -n "$ac_ct_DSYMUTIL"; then
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13360 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13361 else
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13363 $as_echo "no" >&6; }
13364 fi
13365
13366 if test "x$ac_ct_DSYMUTIL" = x; then
13367 DSYMUTIL=":"
13368 else
13369 case $cross_compiling:$ac_tool_warned in
13370 yes:)
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13373 ac_tool_warned=yes ;;
13374 esac
13375 DSYMUTIL=$ac_ct_DSYMUTIL
13376 fi
13377 else
13378 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13379 fi
13380
13381 if test -n "$ac_tool_prefix"; then
13382 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13383 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13385 $as_echo_n "checking for $ac_word... " >&6; }
13386 if ${ac_cv_prog_NMEDIT+:} false; then :
13387 $as_echo_n "(cached) " >&6
13388 else
13389 if test -n "$NMEDIT"; then
13390 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13391 else
13392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13393 for as_dir in $PATH
13394 do
13395 IFS=$as_save_IFS
13396 test -z "$as_dir" && as_dir=.
13397 for ac_exec_ext in '' $ac_executable_extensions; do
13398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13399 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13401 break 2
13402 fi
13403 done
13404 done
13405 IFS=$as_save_IFS
13406
13407 fi
13408 fi
13409 NMEDIT=$ac_cv_prog_NMEDIT
13410 if test -n "$NMEDIT"; then
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13412 $as_echo "$NMEDIT" >&6; }
13413 else
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13415 $as_echo "no" >&6; }
13416 fi
13417
13418
13419 fi
13420 if test -z "$ac_cv_prog_NMEDIT"; then
13421 ac_ct_NMEDIT=$NMEDIT
13422 # Extract the first word of "nmedit", so it can be a program name with args.
13423 set dummy nmedit; ac_word=$2
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13425 $as_echo_n "checking for $ac_word... " >&6; }
13426 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13427 $as_echo_n "(cached) " >&6
13428 else
13429 if test -n "$ac_ct_NMEDIT"; then
13430 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13431 else
13432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13433 for as_dir in $PATH
13434 do
13435 IFS=$as_save_IFS
13436 test -z "$as_dir" && as_dir=.
13437 for ac_exec_ext in '' $ac_executable_extensions; do
13438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13439 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13441 break 2
13442 fi
13443 done
13444 done
13445 IFS=$as_save_IFS
13446
13447 fi
13448 fi
13449 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13450 if test -n "$ac_ct_NMEDIT"; then
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13452 $as_echo "$ac_ct_NMEDIT" >&6; }
13453 else
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13455 $as_echo "no" >&6; }
13456 fi
13457
13458 if test "x$ac_ct_NMEDIT" = x; then
13459 NMEDIT=":"
13460 else
13461 case $cross_compiling:$ac_tool_warned in
13462 yes:)
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13464 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13465 ac_tool_warned=yes ;;
13466 esac
13467 NMEDIT=$ac_ct_NMEDIT
13468 fi
13469 else
13470 NMEDIT="$ac_cv_prog_NMEDIT"
13471 fi
13472
13473 if test -n "$ac_tool_prefix"; then
13474 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13475 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13477 $as_echo_n "checking for $ac_word... " >&6; }
13478 if ${ac_cv_prog_LIPO+:} false; then :
13479 $as_echo_n "(cached) " >&6
13480 else
13481 if test -n "$LIPO"; then
13482 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13483 else
13484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13485 for as_dir in $PATH
13486 do
13487 IFS=$as_save_IFS
13488 test -z "$as_dir" && as_dir=.
13489 for ac_exec_ext in '' $ac_executable_extensions; do
13490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13491 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13493 break 2
13494 fi
13495 done
13496 done
13497 IFS=$as_save_IFS
13498
13499 fi
13500 fi
13501 LIPO=$ac_cv_prog_LIPO
13502 if test -n "$LIPO"; then
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13504 $as_echo "$LIPO" >&6; }
13505 else
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13507 $as_echo "no" >&6; }
13508 fi
13509
13510
13511 fi
13512 if test -z "$ac_cv_prog_LIPO"; then
13513 ac_ct_LIPO=$LIPO
13514 # Extract the first word of "lipo", so it can be a program name with args.
13515 set dummy lipo; ac_word=$2
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13517 $as_echo_n "checking for $ac_word... " >&6; }
13518 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13519 $as_echo_n "(cached) " >&6
13520 else
13521 if test -n "$ac_ct_LIPO"; then
13522 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13523 else
13524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13525 for as_dir in $PATH
13526 do
13527 IFS=$as_save_IFS
13528 test -z "$as_dir" && as_dir=.
13529 for ac_exec_ext in '' $ac_executable_extensions; do
13530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13531 ac_cv_prog_ac_ct_LIPO="lipo"
13532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13533 break 2
13534 fi
13535 done
13536 done
13537 IFS=$as_save_IFS
13538
13539 fi
13540 fi
13541 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13542 if test -n "$ac_ct_LIPO"; then
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13544 $as_echo "$ac_ct_LIPO" >&6; }
13545 else
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13547 $as_echo "no" >&6; }
13548 fi
13549
13550 if test "x$ac_ct_LIPO" = x; then
13551 LIPO=":"
13552 else
13553 case $cross_compiling:$ac_tool_warned in
13554 yes:)
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13557 ac_tool_warned=yes ;;
13558 esac
13559 LIPO=$ac_ct_LIPO
13560 fi
13561 else
13562 LIPO="$ac_cv_prog_LIPO"
13563 fi
13564
13565 if test -n "$ac_tool_prefix"; then
13566 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13567 set dummy ${ac_tool_prefix}otool; ac_word=$2
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13569 $as_echo_n "checking for $ac_word... " >&6; }
13570 if ${ac_cv_prog_OTOOL+:} false; then :
13571 $as_echo_n "(cached) " >&6
13572 else
13573 if test -n "$OTOOL"; then
13574 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13575 else
13576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13577 for as_dir in $PATH
13578 do
13579 IFS=$as_save_IFS
13580 test -z "$as_dir" && as_dir=.
13581 for ac_exec_ext in '' $ac_executable_extensions; do
13582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13583 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13585 break 2
13586 fi
13587 done
13588 done
13589 IFS=$as_save_IFS
13590
13591 fi
13592 fi
13593 OTOOL=$ac_cv_prog_OTOOL
13594 if test -n "$OTOOL"; then
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13596 $as_echo "$OTOOL" >&6; }
13597 else
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13599 $as_echo "no" >&6; }
13600 fi
13601
13602
13603 fi
13604 if test -z "$ac_cv_prog_OTOOL"; then
13605 ac_ct_OTOOL=$OTOOL
13606 # Extract the first word of "otool", so it can be a program name with args.
13607 set dummy otool; ac_word=$2
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13609 $as_echo_n "checking for $ac_word... " >&6; }
13610 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13611 $as_echo_n "(cached) " >&6
13612 else
13613 if test -n "$ac_ct_OTOOL"; then
13614 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13615 else
13616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13617 for as_dir in $PATH
13618 do
13619 IFS=$as_save_IFS
13620 test -z "$as_dir" && as_dir=.
13621 for ac_exec_ext in '' $ac_executable_extensions; do
13622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13623 ac_cv_prog_ac_ct_OTOOL="otool"
13624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13625 break 2
13626 fi
13627 done
13628 done
13629 IFS=$as_save_IFS
13630
13631 fi
13632 fi
13633 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13634 if test -n "$ac_ct_OTOOL"; then
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13636 $as_echo "$ac_ct_OTOOL" >&6; }
13637 else
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13639 $as_echo "no" >&6; }
13640 fi
13641
13642 if test "x$ac_ct_OTOOL" = x; then
13643 OTOOL=":"
13644 else
13645 case $cross_compiling:$ac_tool_warned in
13646 yes:)
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13648 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13649 ac_tool_warned=yes ;;
13650 esac
13651 OTOOL=$ac_ct_OTOOL
13652 fi
13653 else
13654 OTOOL="$ac_cv_prog_OTOOL"
13655 fi
13656
13657 if test -n "$ac_tool_prefix"; then
13658 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13659 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13661 $as_echo_n "checking for $ac_word... " >&6; }
13662 if ${ac_cv_prog_OTOOL64+:} false; then :
13663 $as_echo_n "(cached) " >&6
13664 else
13665 if test -n "$OTOOL64"; then
13666 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13667 else
13668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13669 for as_dir in $PATH
13670 do
13671 IFS=$as_save_IFS
13672 test -z "$as_dir" && as_dir=.
13673 for ac_exec_ext in '' $ac_executable_extensions; do
13674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13675 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13677 break 2
13678 fi
13679 done
13680 done
13681 IFS=$as_save_IFS
13682
13683 fi
13684 fi
13685 OTOOL64=$ac_cv_prog_OTOOL64
13686 if test -n "$OTOOL64"; then
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13688 $as_echo "$OTOOL64" >&6; }
13689 else
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13691 $as_echo "no" >&6; }
13692 fi
13693
13694
13695 fi
13696 if test -z "$ac_cv_prog_OTOOL64"; then
13697 ac_ct_OTOOL64=$OTOOL64
13698 # Extract the first word of "otool64", so it can be a program name with args.
13699 set dummy otool64; ac_word=$2
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13701 $as_echo_n "checking for $ac_word... " >&6; }
13702 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13703 $as_echo_n "(cached) " >&6
13704 else
13705 if test -n "$ac_ct_OTOOL64"; then
13706 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13707 else
13708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13709 for as_dir in $PATH
13710 do
13711 IFS=$as_save_IFS
13712 test -z "$as_dir" && as_dir=.
13713 for ac_exec_ext in '' $ac_executable_extensions; do
13714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13715 ac_cv_prog_ac_ct_OTOOL64="otool64"
13716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13717 break 2
13718 fi
13719 done
13720 done
13721 IFS=$as_save_IFS
13722
13723 fi
13724 fi
13725 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13726 if test -n "$ac_ct_OTOOL64"; then
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13728 $as_echo "$ac_ct_OTOOL64" >&6; }
13729 else
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13731 $as_echo "no" >&6; }
13732 fi
13733
13734 if test "x$ac_ct_OTOOL64" = x; then
13735 OTOOL64=":"
13736 else
13737 case $cross_compiling:$ac_tool_warned in
13738 yes:)
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13741 ac_tool_warned=yes ;;
13742 esac
13743 OTOOL64=$ac_ct_OTOOL64
13744 fi
13745 else
13746 OTOOL64="$ac_cv_prog_OTOOL64"
13747 fi
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13776 $as_echo_n "checking for -single_module linker flag... " >&6; }
13777 if ${lt_cv_apple_cc_single_mod+:} false; then :
13778 $as_echo_n "(cached) " >&6
13779 else
13780 lt_cv_apple_cc_single_mod=no
13781 if test -z "${LT_MULTI_MODULE}"; then
13782 # By default we will add the -single_module flag. You can override
13783 # by either setting the environment variable LT_MULTI_MODULE
13784 # non-empty at configure time, or by adding -multi_module to the
13785 # link flags.
13786 rm -rf libconftest.dylib*
13787 echo "int foo(void){return 1;}" > conftest.c
13788 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13789 -dynamiclib -Wl,-single_module conftest.c" >&5
13790 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13791 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13792 _lt_result=$?
13793 # If there is a non-empty error log, and "single_module"
13794 # appears in it, assume the flag caused a linker warning
13795 if test -s conftest.err && $GREP single_module conftest.err; then
13796 cat conftest.err >&5
13797 # Otherwise, if the output was created with a 0 exit code from
13798 # the compiler, it worked.
13799 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13800 lt_cv_apple_cc_single_mod=yes
13801 else
13802 cat conftest.err >&5
13803 fi
13804 rm -rf libconftest.dylib*
13805 rm -f conftest.*
13806 fi
13807 fi
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13809 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13810
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13812 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13813 if ${lt_cv_ld_exported_symbols_list+:} false; then :
13814 $as_echo_n "(cached) " >&6
13815 else
13816 lt_cv_ld_exported_symbols_list=no
13817 save_LDFLAGS=$LDFLAGS
13818 echo "_main" > conftest.sym
13819 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13821 /* end confdefs.h. */
13822
13823 int
13824 main ()
13825 {
13826
13827 ;
13828 return 0;
13829 }
13830 _ACEOF
13831 if ac_fn_c_try_link "$LINENO"; then :
13832 lt_cv_ld_exported_symbols_list=yes
13833 else
13834 lt_cv_ld_exported_symbols_list=no
13835 fi
13836 rm -f core conftest.err conftest.$ac_objext \
13837 conftest$ac_exeext conftest.$ac_ext
13838 LDFLAGS="$save_LDFLAGS"
13839
13840 fi
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13842 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13843
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13845 $as_echo_n "checking for -force_load linker flag... " >&6; }
13846 if ${lt_cv_ld_force_load+:} false; then :
13847 $as_echo_n "(cached) " >&6
13848 else
13849 lt_cv_ld_force_load=no
13850 cat > conftest.c << _LT_EOF
13851 int forced_loaded() { return 2;}
13852 _LT_EOF
13853 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13854 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13855 echo "$AR cru libconftest.a conftest.o" >&5
13856 $AR cru libconftest.a conftest.o 2>&5
13857 echo "$RANLIB libconftest.a" >&5
13858 $RANLIB libconftest.a 2>&5
13859 cat > conftest.c << _LT_EOF
13860 int main() { return 0;}
13861 _LT_EOF
13862 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13863 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13864 _lt_result=$?
13865 if test -s conftest.err && $GREP force_load conftest.err; then
13866 cat conftest.err >&5
13867 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13868 lt_cv_ld_force_load=yes
13869 else
13870 cat conftest.err >&5
13871 fi
13872 rm -f conftest.err libconftest.a conftest conftest.c
13873 rm -rf conftest.dSYM
13874
13875 fi
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13877 $as_echo "$lt_cv_ld_force_load" >&6; }
13878 case $host_os in
13879 rhapsody* | darwin1.[012])
13880 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13881 darwin1.*)
13882 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13883 darwin*) # darwin 5.x on
13884 # if running on 10.5 or later, the deployment target defaults
13885 # to the OS version, if on x86, and 10.4, the deployment
13886 # target defaults to 10.4. Don't you love it?
13887 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13888 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13889 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13890 10.[012]*)
13891 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13892 10.*)
13893 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13894 esac
13895 ;;
13896 esac
13897 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13898 _lt_dar_single_mod='$single_module'
13899 fi
13900 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13901 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13902 else
13903 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13904 fi
13905 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13906 _lt_dsymutil='~$DSYMUTIL $lib || :'
13907 else
13908 _lt_dsymutil=
13909 fi
13910 ;;
13911 esac
13912
13913 for ac_header in dlfcn.h
13914 do :
13915 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13916 "
13917 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13918 cat >>confdefs.h <<_ACEOF
13919 #define HAVE_DLFCN_H 1
13920 _ACEOF
13921
13922 fi
13923
13924 done
13925
13926
13927
13928
13929
13930 # Set options
13931
13932
13933
13934 enable_dlopen=no
13935
13936
13937 enable_win32_dll=no
13938
13939
13940 # Check whether --enable-shared was given.
13941 if test "${enable_shared+set}" = set; then :
13942 enableval=$enable_shared; p=${PACKAGE-default}
13943 case $enableval in
13944 yes) enable_shared=yes ;;
13945 no) enable_shared=no ;;
13946 *)
13947 enable_shared=no
13948 # Look at the argument we got. We use all the common list separators.
13949 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13950 for pkg in $enableval; do
13951 IFS="$lt_save_ifs"
13952 if test "X$pkg" = "X$p"; then
13953 enable_shared=yes
13954 fi
13955 done
13956 IFS="$lt_save_ifs"
13957 ;;
13958 esac
13959 else
13960 enable_shared=yes
13961 fi
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973 # Check whether --with-pic was given.
13974 if test "${with_pic+set}" = set; then :
13975 withval=$with_pic; lt_p=${PACKAGE-default}
13976 case $withval in
13977 yes|no) pic_mode=$withval ;;
13978 *)
13979 pic_mode=default
13980 # Look at the argument we got. We use all the common list separators.
13981 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13982 for lt_pkg in $withval; do
13983 IFS="$lt_save_ifs"
13984 if test "X$lt_pkg" = "X$lt_p"; then
13985 pic_mode=yes
13986 fi
13987 done
13988 IFS="$lt_save_ifs"
13989 ;;
13990 esac
13991 else
13992 pic_mode=default
13993 fi
13994
13995
13996 test -z "$pic_mode" && pic_mode=default
13997
13998
13999
14000
14001
14002
14003
14004 # Check whether --enable-fast-install was given.
14005 if test "${enable_fast_install+set}" = set; then :
14006 enableval=$enable_fast_install; p=${PACKAGE-default}
14007 case $enableval in
14008 yes) enable_fast_install=yes ;;
14009 no) enable_fast_install=no ;;
14010 *)
14011 enable_fast_install=no
14012 # Look at the argument we got. We use all the common list separators.
14013 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14014 for pkg in $enableval; do
14015 IFS="$lt_save_ifs"
14016 if test "X$pkg" = "X$p"; then
14017 enable_fast_install=yes
14018 fi
14019 done
14020 IFS="$lt_save_ifs"
14021 ;;
14022 esac
14023 else
14024 enable_fast_install=yes
14025 fi
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037 # This can be used to rebuild libtool when needed
14038 LIBTOOL_DEPS="$ltmain"
14039
14040 # Always use our own libtool.
14041 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072 test -z "$LN_S" && LN_S="ln -s"
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087 if test -n "${ZSH_VERSION+set}" ; then
14088 setopt NO_GLOB_SUBST
14089 fi
14090
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14092 $as_echo_n "checking for objdir... " >&6; }
14093 if ${lt_cv_objdir+:} false; then :
14094 $as_echo_n "(cached) " >&6
14095 else
14096 rm -f .libs 2>/dev/null
14097 mkdir .libs 2>/dev/null
14098 if test -d .libs; then
14099 lt_cv_objdir=.libs
14100 else
14101 # MS-DOS does not allow filenames that begin with a dot.
14102 lt_cv_objdir=_libs
14103 fi
14104 rmdir .libs 2>/dev/null
14105 fi
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14107 $as_echo "$lt_cv_objdir" >&6; }
14108 objdir=$lt_cv_objdir
14109
14110
14111
14112
14113
14114 cat >>confdefs.h <<_ACEOF
14115 #define LT_OBJDIR "$lt_cv_objdir/"
14116 _ACEOF
14117
14118
14119
14120
14121 case $host_os in
14122 aix3*)
14123 # AIX sometimes has problems with the GCC collect2 program. For some
14124 # reason, if we set the COLLECT_NAMES environment variable, the problems
14125 # vanish in a puff of smoke.
14126 if test "X${COLLECT_NAMES+set}" != Xset; then
14127 COLLECT_NAMES=
14128 export COLLECT_NAMES
14129 fi
14130 ;;
14131 esac
14132
14133 # Global variables:
14134 ofile=libtool
14135 can_build_shared=yes
14136
14137 # All known linkers require a `.a' archive for static linking (except MSVC,
14138 # which needs '.lib').
14139 libext=a
14140
14141 with_gnu_ld="$lt_cv_prog_gnu_ld"
14142
14143 old_CC="$CC"
14144 old_CFLAGS="$CFLAGS"
14145
14146 # Set sane defaults for various variables
14147 test -z "$CC" && CC=cc
14148 test -z "$LTCC" && LTCC=$CC
14149 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14150 test -z "$LD" && LD=ld
14151 test -z "$ac_objext" && ac_objext=o
14152
14153 for cc_temp in $compiler""; do
14154 case $cc_temp in
14155 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14156 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14157 \-*) ;;
14158 *) break;;
14159 esac
14160 done
14161 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14162
14163
14164 # Only perform the check for file, if the check method requires it
14165 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14166 case $deplibs_check_method in
14167 file_magic*)
14168 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14170 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14171 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14172 $as_echo_n "(cached) " >&6
14173 else
14174 case $MAGIC_CMD in
14175 [\\/*] | ?:[\\/]*)
14176 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14177 ;;
14178 *)
14179 lt_save_MAGIC_CMD="$MAGIC_CMD"
14180 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14181 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14182 for ac_dir in $ac_dummy; do
14183 IFS="$lt_save_ifs"
14184 test -z "$ac_dir" && ac_dir=.
14185 if test -f $ac_dir/${ac_tool_prefix}file; then
14186 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14187 if test -n "$file_magic_test_file"; then
14188 case $deplibs_check_method in
14189 "file_magic "*)
14190 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14191 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14192 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14193 $EGREP "$file_magic_regex" > /dev/null; then
14194 :
14195 else
14196 cat <<_LT_EOF 1>&2
14197
14198 *** Warning: the command libtool uses to detect shared libraries,
14199 *** $file_magic_cmd, produces output that libtool cannot recognize.
14200 *** The result is that libtool may fail to recognize shared libraries
14201 *** as such. This will affect the creation of libtool libraries that
14202 *** depend on shared libraries, but programs linked with such libtool
14203 *** libraries will work regardless of this problem. Nevertheless, you
14204 *** may want to report the problem to your system manager and/or to
14205 *** bug-libtool@gnu.org
14206
14207 _LT_EOF
14208 fi ;;
14209 esac
14210 fi
14211 break
14212 fi
14213 done
14214 IFS="$lt_save_ifs"
14215 MAGIC_CMD="$lt_save_MAGIC_CMD"
14216 ;;
14217 esac
14218 fi
14219
14220 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14221 if test -n "$MAGIC_CMD"; then
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14223 $as_echo "$MAGIC_CMD" >&6; }
14224 else
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14226 $as_echo "no" >&6; }
14227 fi
14228
14229
14230
14231
14232
14233 if test -z "$lt_cv_path_MAGIC_CMD"; then
14234 if test -n "$ac_tool_prefix"; then
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14236 $as_echo_n "checking for file... " >&6; }
14237 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14238 $as_echo_n "(cached) " >&6
14239 else
14240 case $MAGIC_CMD in
14241 [\\/*] | ?:[\\/]*)
14242 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14243 ;;
14244 *)
14245 lt_save_MAGIC_CMD="$MAGIC_CMD"
14246 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14247 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14248 for ac_dir in $ac_dummy; do
14249 IFS="$lt_save_ifs"
14250 test -z "$ac_dir" && ac_dir=.
14251 if test -f $ac_dir/file; then
14252 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14253 if test -n "$file_magic_test_file"; then
14254 case $deplibs_check_method in
14255 "file_magic "*)
14256 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14257 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14258 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14259 $EGREP "$file_magic_regex" > /dev/null; then
14260 :
14261 else
14262 cat <<_LT_EOF 1>&2
14263
14264 *** Warning: the command libtool uses to detect shared libraries,
14265 *** $file_magic_cmd, produces output that libtool cannot recognize.
14266 *** The result is that libtool may fail to recognize shared libraries
14267 *** as such. This will affect the creation of libtool libraries that
14268 *** depend on shared libraries, but programs linked with such libtool
14269 *** libraries will work regardless of this problem. Nevertheless, you
14270 *** may want to report the problem to your system manager and/or to
14271 *** bug-libtool@gnu.org
14272
14273 _LT_EOF
14274 fi ;;
14275 esac
14276 fi
14277 break
14278 fi
14279 done
14280 IFS="$lt_save_ifs"
14281 MAGIC_CMD="$lt_save_MAGIC_CMD"
14282 ;;
14283 esac
14284 fi
14285
14286 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14287 if test -n "$MAGIC_CMD"; then
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14289 $as_echo "$MAGIC_CMD" >&6; }
14290 else
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14292 $as_echo "no" >&6; }
14293 fi
14294
14295
14296 else
14297 MAGIC_CMD=:
14298 fi
14299 fi
14300
14301 fi
14302 ;;
14303 esac
14304
14305 # Use C for the default configuration in the libtool script
14306
14307 lt_save_CC="$CC"
14308 ac_ext=c
14309 ac_cpp='$CPP $CPPFLAGS'
14310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14313
14314
14315 # Source file extension for C test sources.
14316 ac_ext=c
14317
14318 # Object file extension for compiled C test sources.
14319 objext=o
14320 objext=$objext
14321
14322 # Code to be used in simple compile tests
14323 lt_simple_compile_test_code="int some_variable = 0;"
14324
14325 # Code to be used in simple link tests
14326 lt_simple_link_test_code='int main(){return(0);}'
14327
14328
14329
14330
14331
14332
14333
14334 # If no C compiler was specified, use CC.
14335 LTCC=${LTCC-"$CC"}
14336
14337 # If no C compiler flags were specified, use CFLAGS.
14338 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14339
14340 # Allow CC to be a program name with arguments.
14341 compiler=$CC
14342
14343 # Save the default compiler, since it gets overwritten when the other
14344 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14345 compiler_DEFAULT=$CC
14346
14347 # save warnings/boilerplate of simple test code
14348 ac_outfile=conftest.$ac_objext
14349 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14350 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14351 _lt_compiler_boilerplate=`cat conftest.err`
14352 $RM conftest*
14353
14354 ac_outfile=conftest.$ac_objext
14355 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14356 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14357 _lt_linker_boilerplate=`cat conftest.err`
14358 $RM -r conftest*
14359
14360
14361 if test -n "$compiler"; then
14362
14363 lt_prog_compiler_no_builtin_flag=
14364
14365 if test "$GCC" = yes; then
14366 case $cc_basename in
14367 nvcc*)
14368 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14369 *)
14370 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14371 esac
14372
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14374 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14375 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14376 $as_echo_n "(cached) " >&6
14377 else
14378 lt_cv_prog_compiler_rtti_exceptions=no
14379 ac_outfile=conftest.$ac_objext
14380 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14381 lt_compiler_flag="-fno-rtti -fno-exceptions"
14382 # Insert the option either (1) after the last *FLAGS variable, or
14383 # (2) before a word containing "conftest.", or (3) at the end.
14384 # Note that $ac_compile itself does not contain backslashes and begins
14385 # with a dollar sign (not a hyphen), so the echo should work correctly.
14386 # The option is referenced via a variable to avoid confusing sed.
14387 lt_compile=`echo "$ac_compile" | $SED \
14388 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14389 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14390 -e 's:$: $lt_compiler_flag:'`
14391 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14392 (eval "$lt_compile" 2>conftest.err)
14393 ac_status=$?
14394 cat conftest.err >&5
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 if (exit $ac_status) && test -s "$ac_outfile"; then
14397 # The compiler can only warn and ignore the option if not recognized
14398 # So say no if there are warnings other than the usual output.
14399 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14400 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14401 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14402 lt_cv_prog_compiler_rtti_exceptions=yes
14403 fi
14404 fi
14405 $RM conftest*
14406
14407 fi
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14409 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14410
14411 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14412 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14413 else
14414 :
14415 fi
14416
14417 fi
14418
14419
14420
14421
14422
14423
14424 lt_prog_compiler_wl=
14425 lt_prog_compiler_pic=
14426 lt_prog_compiler_static=
14427
14428
14429 if test "$GCC" = yes; then
14430 lt_prog_compiler_wl='-Wl,'
14431 lt_prog_compiler_static='-static'
14432
14433 case $host_os in
14434 aix*)
14435 # All AIX code is PIC.
14436 if test "$host_cpu" = ia64; then
14437 # AIX 5 now supports IA64 processor
14438 lt_prog_compiler_static='-Bstatic'
14439 fi
14440 ;;
14441
14442 amigaos*)
14443 case $host_cpu in
14444 powerpc)
14445 # see comment about AmigaOS4 .so support
14446 lt_prog_compiler_pic='-fPIC'
14447 ;;
14448 m68k)
14449 # FIXME: we need at least 68020 code to build shared libraries, but
14450 # adding the `-m68020' flag to GCC prevents building anything better,
14451 # like `-m68040'.
14452 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14453 ;;
14454 esac
14455 ;;
14456
14457 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14458 # PIC is the default for these OSes.
14459 ;;
14460
14461 mingw* | cygwin* | pw32* | os2* | cegcc*)
14462 # This hack is so that the source file can tell whether it is being
14463 # built for inclusion in a dll (and should export symbols for example).
14464 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14465 # (--disable-auto-import) libraries
14466 lt_prog_compiler_pic='-DDLL_EXPORT'
14467 ;;
14468
14469 darwin* | rhapsody*)
14470 # PIC is the default on this platform
14471 # Common symbols not allowed in MH_DYLIB files
14472 lt_prog_compiler_pic='-fno-common'
14473 ;;
14474
14475 haiku*)
14476 # PIC is the default for Haiku.
14477 # The "-static" flag exists, but is broken.
14478 lt_prog_compiler_static=
14479 ;;
14480
14481 hpux*)
14482 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14483 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14484 # sets the default TLS model and affects inlining.
14485 case $host_cpu in
14486 hppa*64*)
14487 # +Z the default
14488 ;;
14489 *)
14490 lt_prog_compiler_pic='-fPIC'
14491 ;;
14492 esac
14493 ;;
14494
14495 interix[3-9]*)
14496 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14497 # Instead, we relocate shared libraries at runtime.
14498 ;;
14499
14500 msdosdjgpp*)
14501 # Just because we use GCC doesn't mean we suddenly get shared libraries
14502 # on systems that don't support them.
14503 lt_prog_compiler_can_build_shared=no
14504 enable_shared=no
14505 ;;
14506
14507 *nto* | *qnx*)
14508 # QNX uses GNU C++, but need to define -shared option too, otherwise
14509 # it will coredump.
14510 lt_prog_compiler_pic='-fPIC -shared'
14511 ;;
14512
14513 sysv4*MP*)
14514 if test -d /usr/nec; then
14515 lt_prog_compiler_pic=-Kconform_pic
14516 fi
14517 ;;
14518
14519 *)
14520 lt_prog_compiler_pic='-fPIC'
14521 ;;
14522 esac
14523
14524 case $cc_basename in
14525 nvcc*) # Cuda Compiler Driver 2.2
14526 lt_prog_compiler_wl='-Xlinker '
14527 if test -n "$lt_prog_compiler_pic"; then
14528 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14529 fi
14530 ;;
14531 esac
14532 else
14533 # PORTME Check for flag to pass linker flags through the system compiler.
14534 case $host_os in
14535 aix*)
14536 lt_prog_compiler_wl='-Wl,'
14537 if test "$host_cpu" = ia64; then
14538 # AIX 5 now supports IA64 processor
14539 lt_prog_compiler_static='-Bstatic'
14540 else
14541 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14542 fi
14543 ;;
14544
14545 mingw* | cygwin* | pw32* | os2* | cegcc*)
14546 # This hack is so that the source file can tell whether it is being
14547 # built for inclusion in a dll (and should export symbols for example).
14548 lt_prog_compiler_pic='-DDLL_EXPORT'
14549 ;;
14550
14551 hpux9* | hpux10* | hpux11*)
14552 lt_prog_compiler_wl='-Wl,'
14553 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14554 # not for PA HP-UX.
14555 case $host_cpu in
14556 hppa*64*|ia64*)
14557 # +Z the default
14558 ;;
14559 *)
14560 lt_prog_compiler_pic='+Z'
14561 ;;
14562 esac
14563 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14564 lt_prog_compiler_static='${wl}-a ${wl}archive'
14565 ;;
14566
14567 irix5* | irix6* | nonstopux*)
14568 lt_prog_compiler_wl='-Wl,'
14569 # PIC (with -KPIC) is the default.
14570 lt_prog_compiler_static='-non_shared'
14571 ;;
14572
14573 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14574 case $cc_basename in
14575 # old Intel for x86_64 which still supported -KPIC.
14576 ecc*)
14577 lt_prog_compiler_wl='-Wl,'
14578 lt_prog_compiler_pic='-KPIC'
14579 lt_prog_compiler_static='-static'
14580 ;;
14581 # icc used to be incompatible with GCC.
14582 # ICC 10 doesn't accept -KPIC any more.
14583 icc* | ifort*)
14584 lt_prog_compiler_wl='-Wl,'
14585 lt_prog_compiler_pic='-fPIC'
14586 lt_prog_compiler_static='-static'
14587 ;;
14588 # Lahey Fortran 8.1.
14589 lf95*)
14590 lt_prog_compiler_wl='-Wl,'
14591 lt_prog_compiler_pic='--shared'
14592 lt_prog_compiler_static='--static'
14593 ;;
14594 nagfor*)
14595 # NAG Fortran compiler
14596 lt_prog_compiler_wl='-Wl,-Wl,,'
14597 lt_prog_compiler_pic='-PIC'
14598 lt_prog_compiler_static='-Bstatic'
14599 ;;
14600 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14601 # Portland Group compilers (*not* the Pentium gcc compiler,
14602 # which looks to be a dead project)
14603 lt_prog_compiler_wl='-Wl,'
14604 lt_prog_compiler_pic='-fpic'
14605 lt_prog_compiler_static='-Bstatic'
14606 ;;
14607 ccc*)
14608 lt_prog_compiler_wl='-Wl,'
14609 # All Alpha code is PIC.
14610 lt_prog_compiler_static='-non_shared'
14611 ;;
14612 xl* | bgxl* | bgf* | mpixl*)
14613 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14614 lt_prog_compiler_wl='-Wl,'
14615 lt_prog_compiler_pic='-qpic'
14616 lt_prog_compiler_static='-qstaticlink'
14617 ;;
14618 *)
14619 case `$CC -V 2>&1 | sed 5q` in
14620 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14621 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14622 lt_prog_compiler_pic='-KPIC'
14623 lt_prog_compiler_static='-Bstatic'
14624 lt_prog_compiler_wl=''
14625 ;;
14626 *Sun\ F* | *Sun*Fortran*)
14627 lt_prog_compiler_pic='-KPIC'
14628 lt_prog_compiler_static='-Bstatic'
14629 lt_prog_compiler_wl='-Qoption ld '
14630 ;;
14631 *Sun\ C*)
14632 # Sun C 5.9
14633 lt_prog_compiler_pic='-KPIC'
14634 lt_prog_compiler_static='-Bstatic'
14635 lt_prog_compiler_wl='-Wl,'
14636 ;;
14637 *Intel*\ [CF]*Compiler*)
14638 lt_prog_compiler_wl='-Wl,'
14639 lt_prog_compiler_pic='-fPIC'
14640 lt_prog_compiler_static='-static'
14641 ;;
14642 *Portland\ Group*)
14643 lt_prog_compiler_wl='-Wl,'
14644 lt_prog_compiler_pic='-fpic'
14645 lt_prog_compiler_static='-Bstatic'
14646 ;;
14647 esac
14648 ;;
14649 esac
14650 ;;
14651
14652 newsos6)
14653 lt_prog_compiler_pic='-KPIC'
14654 lt_prog_compiler_static='-Bstatic'
14655 ;;
14656
14657 *nto* | *qnx*)
14658 # QNX uses GNU C++, but need to define -shared option too, otherwise
14659 # it will coredump.
14660 lt_prog_compiler_pic='-fPIC -shared'
14661 ;;
14662
14663 osf3* | osf4* | osf5*)
14664 lt_prog_compiler_wl='-Wl,'
14665 # All OSF/1 code is PIC.
14666 lt_prog_compiler_static='-non_shared'
14667 ;;
14668
14669 rdos*)
14670 lt_prog_compiler_static='-non_shared'
14671 ;;
14672
14673 solaris*)
14674 lt_prog_compiler_pic='-KPIC'
14675 lt_prog_compiler_static='-Bstatic'
14676 case $cc_basename in
14677 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14678 lt_prog_compiler_wl='-Qoption ld ';;
14679 *)
14680 lt_prog_compiler_wl='-Wl,';;
14681 esac
14682 ;;
14683
14684 sunos4*)
14685 lt_prog_compiler_wl='-Qoption ld '
14686 lt_prog_compiler_pic='-PIC'
14687 lt_prog_compiler_static='-Bstatic'
14688 ;;
14689
14690 sysv4 | sysv4.2uw2* | sysv4.3*)
14691 lt_prog_compiler_wl='-Wl,'
14692 lt_prog_compiler_pic='-KPIC'
14693 lt_prog_compiler_static='-Bstatic'
14694 ;;
14695
14696 sysv4*MP*)
14697 if test -d /usr/nec ;then
14698 lt_prog_compiler_pic='-Kconform_pic'
14699 lt_prog_compiler_static='-Bstatic'
14700 fi
14701 ;;
14702
14703 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14704 lt_prog_compiler_wl='-Wl,'
14705 lt_prog_compiler_pic='-KPIC'
14706 lt_prog_compiler_static='-Bstatic'
14707 ;;
14708
14709 unicos*)
14710 lt_prog_compiler_wl='-Wl,'
14711 lt_prog_compiler_can_build_shared=no
14712 ;;
14713
14714 uts4*)
14715 lt_prog_compiler_pic='-pic'
14716 lt_prog_compiler_static='-Bstatic'
14717 ;;
14718
14719 *)
14720 lt_prog_compiler_can_build_shared=no
14721 ;;
14722 esac
14723 fi
14724
14725 case $host_os in
14726 # For platforms which do not support PIC, -DPIC is meaningless:
14727 *djgpp*)
14728 lt_prog_compiler_pic=
14729 ;;
14730 *)
14731 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14732 ;;
14733 esac
14734
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14736 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14737 if ${lt_cv_prog_compiler_pic+:} false; then :
14738 $as_echo_n "(cached) " >&6
14739 else
14740 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14741 fi
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14743 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
14744 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14745
14746 #
14747 # Check to make sure the PIC flag actually works.
14748 #
14749 if test -n "$lt_prog_compiler_pic"; then
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14751 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14752 if ${lt_cv_prog_compiler_pic_works+:} false; then :
14753 $as_echo_n "(cached) " >&6
14754 else
14755 lt_cv_prog_compiler_pic_works=no
14756 ac_outfile=conftest.$ac_objext
14757 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14758 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14759 # Insert the option either (1) after the last *FLAGS variable, or
14760 # (2) before a word containing "conftest.", or (3) at the end.
14761 # Note that $ac_compile itself does not contain backslashes and begins
14762 # with a dollar sign (not a hyphen), so the echo should work correctly.
14763 # The option is referenced via a variable to avoid confusing sed.
14764 lt_compile=`echo "$ac_compile" | $SED \
14765 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14766 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14767 -e 's:$: $lt_compiler_flag:'`
14768 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14769 (eval "$lt_compile" 2>conftest.err)
14770 ac_status=$?
14771 cat conftest.err >&5
14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 if (exit $ac_status) && test -s "$ac_outfile"; then
14774 # The compiler can only warn and ignore the option if not recognized
14775 # So say no if there are warnings other than the usual output.
14776 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14777 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14778 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14779 lt_cv_prog_compiler_pic_works=yes
14780 fi
14781 fi
14782 $RM conftest*
14783
14784 fi
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14786 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14787
14788 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14789 case $lt_prog_compiler_pic in
14790 "" | " "*) ;;
14791 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14792 esac
14793 else
14794 lt_prog_compiler_pic=
14795 lt_prog_compiler_can_build_shared=no
14796 fi
14797
14798 fi
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810 #
14811 # Check to make sure the static flag actually works.
14812 #
14813 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14815 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14816 if ${lt_cv_prog_compiler_static_works+:} false; then :
14817 $as_echo_n "(cached) " >&6
14818 else
14819 lt_cv_prog_compiler_static_works=no
14820 save_LDFLAGS="$LDFLAGS"
14821 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14822 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14823 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14824 # The linker can only warn and ignore the option if not recognized
14825 # So say no if there are warnings
14826 if test -s conftest.err; then
14827 # Append any errors to the config.log.
14828 cat conftest.err 1>&5
14829 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14830 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14831 if diff conftest.exp conftest.er2 >/dev/null; then
14832 lt_cv_prog_compiler_static_works=yes
14833 fi
14834 else
14835 lt_cv_prog_compiler_static_works=yes
14836 fi
14837 fi
14838 $RM -r conftest*
14839 LDFLAGS="$save_LDFLAGS"
14840
14841 fi
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14843 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14844
14845 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14846 :
14847 else
14848 lt_prog_compiler_static=
14849 fi
14850
14851
14852
14853
14854
14855
14856
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14858 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14859 if ${lt_cv_prog_compiler_c_o+:} false; then :
14860 $as_echo_n "(cached) " >&6
14861 else
14862 lt_cv_prog_compiler_c_o=no
14863 $RM -r conftest 2>/dev/null
14864 mkdir conftest
14865 cd conftest
14866 mkdir out
14867 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14868
14869 lt_compiler_flag="-o out/conftest2.$ac_objext"
14870 # Insert the option either (1) after the last *FLAGS variable, or
14871 # (2) before a word containing "conftest.", or (3) at the end.
14872 # Note that $ac_compile itself does not contain backslashes and begins
14873 # with a dollar sign (not a hyphen), so the echo should work correctly.
14874 lt_compile=`echo "$ac_compile" | $SED \
14875 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14876 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14877 -e 's:$: $lt_compiler_flag:'`
14878 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14879 (eval "$lt_compile" 2>out/conftest.err)
14880 ac_status=$?
14881 cat out/conftest.err >&5
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14884 then
14885 # The compiler can only warn and ignore the option if not recognized
14886 # So say no if there are warnings
14887 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14888 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14889 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14890 lt_cv_prog_compiler_c_o=yes
14891 fi
14892 fi
14893 chmod u+w . 2>&5
14894 $RM conftest*
14895 # SGI C++ compiler will create directory out/ii_files/ for
14896 # template instantiation
14897 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14898 $RM out/* && rmdir out
14899 cd ..
14900 $RM -r conftest
14901 $RM conftest*
14902
14903 fi
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14905 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14906
14907
14908
14909
14910
14911
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14913 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14914 if ${lt_cv_prog_compiler_c_o+:} false; then :
14915 $as_echo_n "(cached) " >&6
14916 else
14917 lt_cv_prog_compiler_c_o=no
14918 $RM -r conftest 2>/dev/null
14919 mkdir conftest
14920 cd conftest
14921 mkdir out
14922 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14923
14924 lt_compiler_flag="-o out/conftest2.$ac_objext"
14925 # Insert the option either (1) after the last *FLAGS variable, or
14926 # (2) before a word containing "conftest.", or (3) at the end.
14927 # Note that $ac_compile itself does not contain backslashes and begins
14928 # with a dollar sign (not a hyphen), so the echo should work correctly.
14929 lt_compile=`echo "$ac_compile" | $SED \
14930 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14931 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14932 -e 's:$: $lt_compiler_flag:'`
14933 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14934 (eval "$lt_compile" 2>out/conftest.err)
14935 ac_status=$?
14936 cat out/conftest.err >&5
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14939 then
14940 # The compiler can only warn and ignore the option if not recognized
14941 # So say no if there are warnings
14942 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14943 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14944 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14945 lt_cv_prog_compiler_c_o=yes
14946 fi
14947 fi
14948 chmod u+w . 2>&5
14949 $RM conftest*
14950 # SGI C++ compiler will create directory out/ii_files/ for
14951 # template instantiation
14952 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14953 $RM out/* && rmdir out
14954 cd ..
14955 $RM -r conftest
14956 $RM conftest*
14957
14958 fi
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14960 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14961
14962
14963
14964
14965 hard_links="nottested"
14966 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14967 # do not overwrite the value of need_locks provided by the user
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14969 $as_echo_n "checking if we can lock with hard links... " >&6; }
14970 hard_links=yes
14971 $RM conftest*
14972 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14973 touch conftest.a
14974 ln conftest.a conftest.b 2>&5 || hard_links=no
14975 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14977 $as_echo "$hard_links" >&6; }
14978 if test "$hard_links" = no; then
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14980 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14981 need_locks=warn
14982 fi
14983 else
14984 need_locks=no
14985 fi
14986
14987
14988
14989
14990
14991
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14993 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14994
14995 runpath_var=
14996 allow_undefined_flag=
14997 always_export_symbols=no
14998 archive_cmds=
14999 archive_expsym_cmds=
15000 compiler_needs_object=no
15001 enable_shared_with_static_runtimes=no
15002 export_dynamic_flag_spec=
15003 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15004 hardcode_automatic=no
15005 hardcode_direct=no
15006 hardcode_direct_absolute=no
15007 hardcode_libdir_flag_spec=
15008 hardcode_libdir_separator=
15009 hardcode_minus_L=no
15010 hardcode_shlibpath_var=unsupported
15011 inherit_rpath=no
15012 link_all_deplibs=unknown
15013 module_cmds=
15014 module_expsym_cmds=
15015 old_archive_from_new_cmds=
15016 old_archive_from_expsyms_cmds=
15017 thread_safe_flag_spec=
15018 whole_archive_flag_spec=
15019 # include_expsyms should be a list of space-separated symbols to be *always*
15020 # included in the symbol list
15021 include_expsyms=
15022 # exclude_expsyms can be an extended regexp of symbols to exclude
15023 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15024 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15025 # as well as any symbol that contains `d'.
15026 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15027 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15028 # platforms (ab)use it in PIC code, but their linkers get confused if
15029 # the symbol is explicitly referenced. Since portable code cannot
15030 # rely on this symbol name, it's probably fine to never include it in
15031 # preloaded symbol tables.
15032 # Exclude shared library initialization/finalization symbols.
15033 extract_expsyms_cmds=
15034
15035 case $host_os in
15036 cygwin* | mingw* | pw32* | cegcc*)
15037 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15038 # When not using gcc, we currently assume that we are using
15039 # Microsoft Visual C++.
15040 if test "$GCC" != yes; then
15041 with_gnu_ld=no
15042 fi
15043 ;;
15044 interix*)
15045 # we just hope/assume this is gcc and not c89 (= MSVC++)
15046 with_gnu_ld=yes
15047 ;;
15048 openbsd*)
15049 with_gnu_ld=no
15050 ;;
15051 linux* | k*bsd*-gnu | gnu*)
15052 link_all_deplibs=no
15053 ;;
15054 esac
15055
15056 ld_shlibs=yes
15057
15058 # On some targets, GNU ld is compatible enough with the native linker
15059 # that we're better off using the native interface for both.
15060 lt_use_gnu_ld_interface=no
15061 if test "$with_gnu_ld" = yes; then
15062 case $host_os in
15063 aix*)
15064 # The AIX port of GNU ld has always aspired to compatibility
15065 # with the native linker. However, as the warning in the GNU ld
15066 # block says, versions before 2.19.5* couldn't really create working
15067 # shared libraries, regardless of the interface used.
15068 case `$LD -v 2>&1` in
15069 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15070 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15071 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15072 *)
15073 lt_use_gnu_ld_interface=yes
15074 ;;
15075 esac
15076 ;;
15077 *)
15078 lt_use_gnu_ld_interface=yes
15079 ;;
15080 esac
15081 fi
15082
15083 if test "$lt_use_gnu_ld_interface" = yes; then
15084 # If archive_cmds runs LD, not CC, wlarc should be empty
15085 wlarc='${wl}'
15086
15087 # Set some defaults for GNU ld with shared library support. These
15088 # are reset later if shared libraries are not supported. Putting them
15089 # here allows them to be overridden if necessary.
15090 runpath_var=LD_RUN_PATH
15091 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15092 export_dynamic_flag_spec='${wl}--export-dynamic'
15093 # ancient GNU ld didn't support --whole-archive et. al.
15094 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15095 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15096 else
15097 whole_archive_flag_spec=
15098 fi
15099 supports_anon_versioning=no
15100 case `$LD -v 2>&1` in
15101 *GNU\ gold*) supports_anon_versioning=yes ;;
15102 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15103 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15104 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15105 *\ 2.11.*) ;; # other 2.11 versions
15106 *) supports_anon_versioning=yes ;;
15107 esac
15108
15109 # See if GNU ld supports shared libraries.
15110 case $host_os in
15111 aix[3-9]*)
15112 # On AIX/PPC, the GNU linker is very broken
15113 if test "$host_cpu" != ia64; then
15114 ld_shlibs=no
15115 cat <<_LT_EOF 1>&2
15116
15117 *** Warning: the GNU linker, at least up to release 2.19, is reported
15118 *** to be unable to reliably create shared libraries on AIX.
15119 *** Therefore, libtool is disabling shared libraries support. If you
15120 *** really care for shared libraries, you may want to install binutils
15121 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15122 *** You will then need to restart the configuration process.
15123
15124 _LT_EOF
15125 fi
15126 ;;
15127
15128 amigaos*)
15129 case $host_cpu in
15130 powerpc)
15131 # see comment about AmigaOS4 .so support
15132 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15133 archive_expsym_cmds=''
15134 ;;
15135 m68k)
15136 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)'
15137 hardcode_libdir_flag_spec='-L$libdir'
15138 hardcode_minus_L=yes
15139 ;;
15140 esac
15141 ;;
15142
15143 beos*)
15144 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15145 allow_undefined_flag=unsupported
15146 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
15147 # support --undefined. This deserves some investigation. FIXME
15148 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15149 else
15150 ld_shlibs=no
15151 fi
15152 ;;
15153
15154 cygwin* | mingw* | pw32* | cegcc*)
15155 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15156 # as there is no search path for DLLs.
15157 hardcode_libdir_flag_spec='-L$libdir'
15158 export_dynamic_flag_spec='${wl}--export-all-symbols'
15159 allow_undefined_flag=unsupported
15160 always_export_symbols=no
15161 enable_shared_with_static_runtimes=yes
15162 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'
15163 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15164
15165 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15166 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15167 # If the export-symbols file already is a .def file (1st line
15168 # is EXPORTS), use it as is; otherwise, prepend...
15169 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15170 cp $export_symbols $output_objdir/$soname.def;
15171 else
15172 echo EXPORTS > $output_objdir/$soname.def;
15173 cat $export_symbols >> $output_objdir/$soname.def;
15174 fi~
15175 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15176 else
15177 ld_shlibs=no
15178 fi
15179 ;;
15180
15181 haiku*)
15182 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15183 link_all_deplibs=yes
15184 ;;
15185
15186 interix[3-9]*)
15187 hardcode_direct=no
15188 hardcode_shlibpath_var=no
15189 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15190 export_dynamic_flag_spec='${wl}-E'
15191 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15192 # Instead, shared libraries are loaded at an image base (0x10000000 by
15193 # default) and relocated if they conflict, which is a slow very memory
15194 # consuming and fragmenting process. To avoid this, we pick a random,
15195 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15196 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15197 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15198 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'
15199 ;;
15200
15201 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15202 tmp_diet=no
15203 if test "$host_os" = linux-dietlibc; then
15204 case $cc_basename in
15205 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15206 esac
15207 fi
15208 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15209 && test "$tmp_diet" = no
15210 then
15211 tmp_addflag=' $pic_flag'
15212 tmp_sharedflag='-shared'
15213 case $cc_basename,$host_cpu in
15214 pgcc*) # Portland Group C compiler
15215 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'
15216 tmp_addflag=' $pic_flag'
15217 ;;
15218 pgf77* | pgf90* | pgf95* | pgfortran*)
15219 # Portland Group f77 and f90 compilers
15220 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'
15221 tmp_addflag=' $pic_flag -Mnomain' ;;
15222 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15223 tmp_addflag=' -i_dynamic' ;;
15224 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15225 tmp_addflag=' -i_dynamic -nofor_main' ;;
15226 ifc* | ifort*) # Intel Fortran compiler
15227 tmp_addflag=' -nofor_main' ;;
15228 lf95*) # Lahey Fortran 8.1
15229 whole_archive_flag_spec=
15230 tmp_sharedflag='--shared' ;;
15231 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15232 tmp_sharedflag='-qmkshrobj'
15233 tmp_addflag= ;;
15234 nvcc*) # Cuda Compiler Driver 2.2
15235 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'
15236 compiler_needs_object=yes
15237 ;;
15238 esac
15239 case `$CC -V 2>&1 | sed 5q` in
15240 *Sun\ C*) # Sun C 5.9
15241 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'
15242 compiler_needs_object=yes
15243 tmp_sharedflag='-G' ;;
15244 *Sun\ F*) # Sun Fortran 8.3
15245 tmp_sharedflag='-G' ;;
15246 esac
15247 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15248
15249 if test "x$supports_anon_versioning" = xyes; then
15250 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15251 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15252 echo "local: *; };" >> $output_objdir/$libname.ver~
15253 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15254 fi
15255
15256 case $cc_basename in
15257 xlf* | bgf* | bgxlf* | mpixlf*)
15258 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15259 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15260 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15261 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15262 if test "x$supports_anon_versioning" = xyes; then
15263 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15264 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15265 echo "local: *; };" >> $output_objdir/$libname.ver~
15266 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15267 fi
15268 ;;
15269 esac
15270 else
15271 ld_shlibs=no
15272 fi
15273 ;;
15274
15275 netbsd* | netbsdelf*-gnu)
15276 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15277 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15278 wlarc=
15279 else
15280 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15281 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15282 fi
15283 ;;
15284
15285 solaris*)
15286 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15287 ld_shlibs=no
15288 cat <<_LT_EOF 1>&2
15289
15290 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15291 *** create shared libraries on Solaris systems. Therefore, libtool
15292 *** is disabling shared libraries support. We urge you to upgrade GNU
15293 *** binutils to release 2.9.1 or newer. Another option is to modify
15294 *** your PATH or compiler configuration so that the native linker is
15295 *** used, and then restart.
15296
15297 _LT_EOF
15298 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15299 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15300 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15301 else
15302 ld_shlibs=no
15303 fi
15304 ;;
15305
15306 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15307 case `$LD -v 2>&1` in
15308 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15309 ld_shlibs=no
15310 cat <<_LT_EOF 1>&2
15311
15312 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15313 *** reliably create shared libraries on SCO systems. Therefore, libtool
15314 *** is disabling shared libraries support. We urge you to upgrade GNU
15315 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15316 *** your PATH or compiler configuration so that the native linker is
15317 *** used, and then restart.
15318
15319 _LT_EOF
15320 ;;
15321 *)
15322 # For security reasons, it is highly recommended that you always
15323 # use absolute paths for naming shared libraries, and exclude the
15324 # DT_RUNPATH tag from executables and libraries. But doing so
15325 # requires that you compile everything twice, which is a pain.
15326 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15327 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15328 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15329 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15330 else
15331 ld_shlibs=no
15332 fi
15333 ;;
15334 esac
15335 ;;
15336
15337 sunos4*)
15338 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15339 wlarc=
15340 hardcode_direct=yes
15341 hardcode_shlibpath_var=no
15342 ;;
15343
15344 *)
15345 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15346 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15347 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15348 else
15349 ld_shlibs=no
15350 fi
15351 ;;
15352 esac
15353
15354 if test "$ld_shlibs" = no; then
15355 runpath_var=
15356 hardcode_libdir_flag_spec=
15357 export_dynamic_flag_spec=
15358 whole_archive_flag_spec=
15359 fi
15360 else
15361 # PORTME fill in a description of your system's linker (not GNU ld)
15362 case $host_os in
15363 aix3*)
15364 allow_undefined_flag=unsupported
15365 always_export_symbols=yes
15366 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'
15367 # Note: this linker hardcodes the directories in LIBPATH if there
15368 # are no directories specified by -L.
15369 hardcode_minus_L=yes
15370 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15371 # Neither direct hardcoding nor static linking is supported with a
15372 # broken collect2.
15373 hardcode_direct=unsupported
15374 fi
15375 ;;
15376
15377 aix[4-9]*)
15378 if test "$host_cpu" = ia64; then
15379 # On IA64, the linker does run time linking by default, so we don't
15380 # have to do anything special.
15381 aix_use_runtimelinking=no
15382 exp_sym_flag='-Bexport'
15383 no_entry_flag=""
15384 else
15385 # If we're using GNU nm, then we don't want the "-C" option.
15386 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15387 # Also, AIX nm treats weak defined symbols like other global
15388 # defined symbols, whereas GNU nm marks them as "W".
15389 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15390 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15391 else
15392 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15393 fi
15394 aix_use_runtimelinking=no
15395
15396 # Test if we are trying to use run time linking or normal
15397 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15398 # need to do runtime linking.
15399 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15400 for ld_flag in $LDFLAGS; do
15401 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15402 aix_use_runtimelinking=yes
15403 break
15404 fi
15405 done
15406 ;;
15407 esac
15408
15409 exp_sym_flag='-bexport'
15410 no_entry_flag='-bnoentry'
15411 fi
15412
15413 # When large executables or shared objects are built, AIX ld can
15414 # have problems creating the table of contents. If linking a library
15415 # or program results in "error TOC overflow" add -mminimal-toc to
15416 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15417 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15418
15419 archive_cmds=''
15420 hardcode_direct=yes
15421 hardcode_direct_absolute=yes
15422 hardcode_libdir_separator=':'
15423 link_all_deplibs=yes
15424 file_list_spec='${wl}-f,'
15425
15426 if test "$GCC" = yes; then
15427 case $host_os in aix4.[012]|aix4.[012].*)
15428 # We only want to do this on AIX 4.2 and lower, the check
15429 # below for broken collect2 doesn't work under 4.3+
15430 collect2name=`${CC} -print-prog-name=collect2`
15431 if test -f "$collect2name" &&
15432 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15433 then
15434 # We have reworked collect2
15435 :
15436 else
15437 # We have old collect2
15438 hardcode_direct=unsupported
15439 # It fails to find uninstalled libraries when the uninstalled
15440 # path is not listed in the libpath. Setting hardcode_minus_L
15441 # to unsupported forces relinking
15442 hardcode_minus_L=yes
15443 hardcode_libdir_flag_spec='-L$libdir'
15444 hardcode_libdir_separator=
15445 fi
15446 ;;
15447 esac
15448 shared_flag='-shared'
15449 if test "$aix_use_runtimelinking" = yes; then
15450 shared_flag="$shared_flag "'${wl}-G'
15451 fi
15452 link_all_deplibs=no
15453 else
15454 # not using gcc
15455 if test "$host_cpu" = ia64; then
15456 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15457 # chokes on -Wl,-G. The following line is correct:
15458 shared_flag='-G'
15459 else
15460 if test "$aix_use_runtimelinking" = yes; then
15461 shared_flag='${wl}-G'
15462 else
15463 shared_flag='${wl}-bM:SRE'
15464 fi
15465 fi
15466 fi
15467
15468 export_dynamic_flag_spec='${wl}-bexpall'
15469 # It seems that -bexpall does not export symbols beginning with
15470 # underscore (_), so it is better to generate a list of symbols to export.
15471 always_export_symbols=yes
15472 if test "$aix_use_runtimelinking" = yes; then
15473 # Warning - without using the other runtime loading flags (-brtl),
15474 # -berok will link without error, but may produce a broken library.
15475 allow_undefined_flag='-berok'
15476 # Determine the default libpath from the value encoded in an
15477 # empty executable.
15478 if test "${lt_cv_aix_libpath+set}" = set; then
15479 aix_libpath=$lt_cv_aix_libpath
15480 else
15481 if ${lt_cv_aix_libpath_+:} false; then :
15482 $as_echo_n "(cached) " >&6
15483 else
15484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15485 /* end confdefs.h. */
15486
15487 int
15488 main ()
15489 {
15490
15491 ;
15492 return 0;
15493 }
15494 _ACEOF
15495 if ac_fn_c_try_link "$LINENO"; then :
15496
15497 lt_aix_libpath_sed='
15498 /Import File Strings/,/^$/ {
15499 /^0/ {
15500 s/^0 *\([^ ]*\) *$/\1/
15501 p
15502 }
15503 }'
15504 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15505 # Check for a 64-bit object if we didn't find anything.
15506 if test -z "$lt_cv_aix_libpath_"; then
15507 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15508 fi
15509 fi
15510 rm -f core conftest.err conftest.$ac_objext \
15511 conftest$ac_exeext conftest.$ac_ext
15512 if test -z "$lt_cv_aix_libpath_"; then
15513 lt_cv_aix_libpath_="/usr/lib:/lib"
15514 fi
15515
15516 fi
15517
15518 aix_libpath=$lt_cv_aix_libpath_
15519 fi
15520
15521 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15522 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15523 else
15524 if test "$host_cpu" = ia64; then
15525 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15526 allow_undefined_flag="-z nodefs"
15527 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"
15528 else
15529 # Determine the default libpath from the value encoded in an
15530 # empty executable.
15531 if test "${lt_cv_aix_libpath+set}" = set; then
15532 aix_libpath=$lt_cv_aix_libpath
15533 else
15534 if ${lt_cv_aix_libpath_+:} false; then :
15535 $as_echo_n "(cached) " >&6
15536 else
15537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15538 /* end confdefs.h. */
15539
15540 int
15541 main ()
15542 {
15543
15544 ;
15545 return 0;
15546 }
15547 _ACEOF
15548 if ac_fn_c_try_link "$LINENO"; then :
15549
15550 lt_aix_libpath_sed='
15551 /Import File Strings/,/^$/ {
15552 /^0/ {
15553 s/^0 *\([^ ]*\) *$/\1/
15554 p
15555 }
15556 }'
15557 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15558 # Check for a 64-bit object if we didn't find anything.
15559 if test -z "$lt_cv_aix_libpath_"; then
15560 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15561 fi
15562 fi
15563 rm -f core conftest.err conftest.$ac_objext \
15564 conftest$ac_exeext conftest.$ac_ext
15565 if test -z "$lt_cv_aix_libpath_"; then
15566 lt_cv_aix_libpath_="/usr/lib:/lib"
15567 fi
15568
15569 fi
15570
15571 aix_libpath=$lt_cv_aix_libpath_
15572 fi
15573
15574 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15575 # Warning - without using the other run time loading flags,
15576 # -berok will link without error, but may produce a broken library.
15577 no_undefined_flag=' ${wl}-bernotok'
15578 allow_undefined_flag=' ${wl}-berok'
15579 if test "$with_gnu_ld" = yes; then
15580 # We only use this code for GNU lds that support --whole-archive.
15581 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15582 else
15583 # Exported symbols can be pulled into shared objects from archives
15584 whole_archive_flag_spec='$convenience'
15585 fi
15586 archive_cmds_need_lc=yes
15587 # This is similar to how AIX traditionally builds its shared libraries.
15588 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15589 fi
15590 fi
15591 ;;
15592
15593 amigaos*)
15594 case $host_cpu in
15595 powerpc)
15596 # see comment about AmigaOS4 .so support
15597 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15598 archive_expsym_cmds=''
15599 ;;
15600 m68k)
15601 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)'
15602 hardcode_libdir_flag_spec='-L$libdir'
15603 hardcode_minus_L=yes
15604 ;;
15605 esac
15606 ;;
15607
15608 bsdi[45]*)
15609 export_dynamic_flag_spec=-rdynamic
15610 ;;
15611
15612 cygwin* | mingw* | pw32* | cegcc*)
15613 # When not using gcc, we currently assume that we are using
15614 # Microsoft Visual C++.
15615 # hardcode_libdir_flag_spec is actually meaningless, as there is
15616 # no search path for DLLs.
15617 case $cc_basename in
15618 cl*)
15619 # Native MSVC
15620 hardcode_libdir_flag_spec=' '
15621 allow_undefined_flag=unsupported
15622 always_export_symbols=yes
15623 file_list_spec='@'
15624 # Tell ltmain to make .lib files, not .a files.
15625 libext=lib
15626 # Tell ltmain to make .dll files, not .so files.
15627 shrext_cmds=".dll"
15628 # FIXME: Setting linknames here is a bad hack.
15629 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15630 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15631 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15632 else
15633 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15634 fi~
15635 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15636 linknames='
15637 # The linker will not automatically build a static lib if we build a DLL.
15638 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15639 enable_shared_with_static_runtimes=yes
15640 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15641 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15642 # Don't use ranlib
15643 old_postinstall_cmds='chmod 644 $oldlib'
15644 postlink_cmds='lt_outputfile="@OUTPUT@"~
15645 lt_tool_outputfile="@TOOL_OUTPUT@"~
15646 case $lt_outputfile in
15647 *.exe|*.EXE) ;;
15648 *)
15649 lt_outputfile="$lt_outputfile.exe"
15650 lt_tool_outputfile="$lt_tool_outputfile.exe"
15651 ;;
15652 esac~
15653 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15654 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15655 $RM "$lt_outputfile.manifest";
15656 fi'
15657 ;;
15658 *)
15659 # Assume MSVC wrapper
15660 hardcode_libdir_flag_spec=' '
15661 allow_undefined_flag=unsupported
15662 # Tell ltmain to make .lib files, not .a files.
15663 libext=lib
15664 # Tell ltmain to make .dll files, not .so files.
15665 shrext_cmds=".dll"
15666 # FIXME: Setting linknames here is a bad hack.
15667 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15668 # The linker will automatically build a .lib file if we build a DLL.
15669 old_archive_from_new_cmds='true'
15670 # FIXME: Should let the user specify the lib program.
15671 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15672 enable_shared_with_static_runtimes=yes
15673 ;;
15674 esac
15675 ;;
15676
15677 darwin* | rhapsody*)
15678
15679
15680 archive_cmds_need_lc=no
15681 hardcode_direct=no
15682 hardcode_automatic=yes
15683 hardcode_shlibpath_var=unsupported
15684 if test "$lt_cv_ld_force_load" = "yes"; then
15685 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\"`'
15686
15687 else
15688 whole_archive_flag_spec=''
15689 fi
15690 link_all_deplibs=yes
15691 allow_undefined_flag="$_lt_dar_allow_undefined"
15692 case $cc_basename in
15693 ifort*) _lt_dar_can_shared=yes ;;
15694 *) _lt_dar_can_shared=$GCC ;;
15695 esac
15696 if test "$_lt_dar_can_shared" = "yes"; then
15697 output_verbose_link_cmd=func_echo_all
15698 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15699 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15700 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}"
15701 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}"
15702
15703 else
15704 ld_shlibs=no
15705 fi
15706
15707 ;;
15708
15709 dgux*)
15710 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15711 hardcode_libdir_flag_spec='-L$libdir'
15712 hardcode_shlibpath_var=no
15713 ;;
15714
15715 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15716 # support. Future versions do this automatically, but an explicit c++rt0.o
15717 # does not break anything, and helps significantly (at the cost of a little
15718 # extra space).
15719 freebsd2.2*)
15720 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15721 hardcode_libdir_flag_spec='-R$libdir'
15722 hardcode_direct=yes
15723 hardcode_shlibpath_var=no
15724 ;;
15725
15726 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15727 freebsd2.*)
15728 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15729 hardcode_direct=yes
15730 hardcode_minus_L=yes
15731 hardcode_shlibpath_var=no
15732 ;;
15733
15734 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15735 freebsd* | dragonfly*)
15736 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15737 hardcode_libdir_flag_spec='-R$libdir'
15738 hardcode_direct=yes
15739 hardcode_shlibpath_var=no
15740 ;;
15741
15742 hpux9*)
15743 if test "$GCC" = yes; then
15744 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15745 else
15746 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15747 fi
15748 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15749 hardcode_libdir_separator=:
15750 hardcode_direct=yes
15751
15752 # hardcode_minus_L: Not really in the search PATH,
15753 # but as the default location of the library.
15754 hardcode_minus_L=yes
15755 export_dynamic_flag_spec='${wl}-E'
15756 ;;
15757
15758 hpux10*)
15759 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15760 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15761 else
15762 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15763 fi
15764 if test "$with_gnu_ld" = no; then
15765 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15766 hardcode_libdir_separator=:
15767 hardcode_direct=yes
15768 hardcode_direct_absolute=yes
15769 export_dynamic_flag_spec='${wl}-E'
15770 # hardcode_minus_L: Not really in the search PATH,
15771 # but as the default location of the library.
15772 hardcode_minus_L=yes
15773 fi
15774 ;;
15775
15776 hpux11*)
15777 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15778 case $host_cpu in
15779 hppa*64*)
15780 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15781 ;;
15782 ia64*)
15783 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15784 ;;
15785 *)
15786 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15787 ;;
15788 esac
15789 else
15790 case $host_cpu in
15791 hppa*64*)
15792 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15793 ;;
15794 ia64*)
15795 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15796 ;;
15797 *)
15798
15799 # Older versions of the 11.00 compiler do not understand -b yet
15800 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15802 $as_echo_n "checking if $CC understands -b... " >&6; }
15803 if ${lt_cv_prog_compiler__b+:} false; then :
15804 $as_echo_n "(cached) " >&6
15805 else
15806 lt_cv_prog_compiler__b=no
15807 save_LDFLAGS="$LDFLAGS"
15808 LDFLAGS="$LDFLAGS -b"
15809 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15810 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15811 # The linker can only warn and ignore the option if not recognized
15812 # So say no if there are warnings
15813 if test -s conftest.err; then
15814 # Append any errors to the config.log.
15815 cat conftest.err 1>&5
15816 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15817 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15818 if diff conftest.exp conftest.er2 >/dev/null; then
15819 lt_cv_prog_compiler__b=yes
15820 fi
15821 else
15822 lt_cv_prog_compiler__b=yes
15823 fi
15824 fi
15825 $RM -r conftest*
15826 LDFLAGS="$save_LDFLAGS"
15827
15828 fi
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15830 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15831
15832 if test x"$lt_cv_prog_compiler__b" = xyes; then
15833 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15834 else
15835 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15836 fi
15837
15838 ;;
15839 esac
15840 fi
15841 if test "$with_gnu_ld" = no; then
15842 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15843 hardcode_libdir_separator=:
15844
15845 case $host_cpu in
15846 hppa*64*|ia64*)
15847 hardcode_direct=no
15848 hardcode_shlibpath_var=no
15849 ;;
15850 *)
15851 hardcode_direct=yes
15852 hardcode_direct_absolute=yes
15853 export_dynamic_flag_spec='${wl}-E'
15854
15855 # hardcode_minus_L: Not really in the search PATH,
15856 # but as the default location of the library.
15857 hardcode_minus_L=yes
15858 ;;
15859 esac
15860 fi
15861 ;;
15862
15863 irix5* | irix6* | nonstopux*)
15864 if test "$GCC" = yes; then
15865 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'
15866 # Try to use the -exported_symbol ld option, if it does not
15867 # work, assume that -exports_file does not work either and
15868 # implicitly export all symbols.
15869 # This should be the same for all languages, so no per-tag cache variable.
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15871 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15872 if ${lt_cv_irix_exported_symbol+:} false; then :
15873 $as_echo_n "(cached) " >&6
15874 else
15875 save_LDFLAGS="$LDFLAGS"
15876 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15878 /* end confdefs.h. */
15879 int foo (void) { return 0; }
15880 _ACEOF
15881 if ac_fn_c_try_link "$LINENO"; then :
15882 lt_cv_irix_exported_symbol=yes
15883 else
15884 lt_cv_irix_exported_symbol=no
15885 fi
15886 rm -f core conftest.err conftest.$ac_objext \
15887 conftest$ac_exeext conftest.$ac_ext
15888 LDFLAGS="$save_LDFLAGS"
15889 fi
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15891 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
15892 if test "$lt_cv_irix_exported_symbol" = yes; then
15893 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'
15894 fi
15895 else
15896 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'
15897 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'
15898 fi
15899 archive_cmds_need_lc='no'
15900 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15901 hardcode_libdir_separator=:
15902 inherit_rpath=yes
15903 link_all_deplibs=yes
15904 ;;
15905
15906 netbsd* | netbsdelf*-gnu)
15907 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15908 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15909 else
15910 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15911 fi
15912 hardcode_libdir_flag_spec='-R$libdir'
15913 hardcode_direct=yes
15914 hardcode_shlibpath_var=no
15915 ;;
15916
15917 newsos6)
15918 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15919 hardcode_direct=yes
15920 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15921 hardcode_libdir_separator=:
15922 hardcode_shlibpath_var=no
15923 ;;
15924
15925 *nto* | *qnx*)
15926 ;;
15927
15928 openbsd*)
15929 if test -f /usr/libexec/ld.so; then
15930 hardcode_direct=yes
15931 hardcode_shlibpath_var=no
15932 hardcode_direct_absolute=yes
15933 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15934 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15935 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15936 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15937 export_dynamic_flag_spec='${wl}-E'
15938 else
15939 case $host_os in
15940 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15941 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15942 hardcode_libdir_flag_spec='-R$libdir'
15943 ;;
15944 *)
15945 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15946 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15947 ;;
15948 esac
15949 fi
15950 else
15951 ld_shlibs=no
15952 fi
15953 ;;
15954
15955 os2*)
15956 hardcode_libdir_flag_spec='-L$libdir'
15957 hardcode_minus_L=yes
15958 allow_undefined_flag=unsupported
15959 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15960 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15961 ;;
15962
15963 osf3*)
15964 if test "$GCC" = yes; then
15965 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15966 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'
15967 else
15968 allow_undefined_flag=' -expect_unresolved \*'
15969 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'
15970 fi
15971 archive_cmds_need_lc='no'
15972 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15973 hardcode_libdir_separator=:
15974 ;;
15975
15976 osf4* | osf5*) # as osf3* with the addition of -msym flag
15977 if test "$GCC" = yes; then
15978 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15979 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'
15980 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15981 else
15982 allow_undefined_flag=' -expect_unresolved \*'
15983 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'
15984 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~
15985 $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'
15986
15987 # Both c and cxx compiler support -rpath directly
15988 hardcode_libdir_flag_spec='-rpath $libdir'
15989 fi
15990 archive_cmds_need_lc='no'
15991 hardcode_libdir_separator=:
15992 ;;
15993
15994 solaris*)
15995 no_undefined_flag=' -z defs'
15996 if test "$GCC" = yes; then
15997 wlarc='${wl}'
15998 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15999 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16000 $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'
16001 else
16002 case `$CC -V 2>&1` in
16003 *"Compilers 5.0"*)
16004 wlarc=''
16005 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16006 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16007 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16008 ;;
16009 *)
16010 wlarc='${wl}'
16011 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16012 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16013 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16014 ;;
16015 esac
16016 fi
16017 hardcode_libdir_flag_spec='-R$libdir'
16018 hardcode_shlibpath_var=no
16019 case $host_os in
16020 solaris2.[0-5] | solaris2.[0-5].*) ;;
16021 *)
16022 # The compiler driver will combine and reorder linker options,
16023 # but understands `-z linker_flag'. GCC discards it without `$wl',
16024 # but is careful enough not to reorder.
16025 # Supported since Solaris 2.6 (maybe 2.5.1?)
16026 if test "$GCC" = yes; then
16027 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16028 else
16029 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16030 fi
16031 ;;
16032 esac
16033 link_all_deplibs=yes
16034 ;;
16035
16036 sunos4*)
16037 if test "x$host_vendor" = xsequent; then
16038 # Use $CC to link under sequent, because it throws in some extra .o
16039 # files that make .init and .fini sections work.
16040 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16041 else
16042 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16043 fi
16044 hardcode_libdir_flag_spec='-L$libdir'
16045 hardcode_direct=yes
16046 hardcode_minus_L=yes
16047 hardcode_shlibpath_var=no
16048 ;;
16049
16050 sysv4)
16051 case $host_vendor in
16052 sni)
16053 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16054 hardcode_direct=yes # is this really true???
16055 ;;
16056 siemens)
16057 ## LD is ld it makes a PLAMLIB
16058 ## CC just makes a GrossModule.
16059 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16060 reload_cmds='$CC -r -o $output$reload_objs'
16061 hardcode_direct=no
16062 ;;
16063 motorola)
16064 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16065 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16066 ;;
16067 esac
16068 runpath_var='LD_RUN_PATH'
16069 hardcode_shlibpath_var=no
16070 ;;
16071
16072 sysv4.3*)
16073 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16074 hardcode_shlibpath_var=no
16075 export_dynamic_flag_spec='-Bexport'
16076 ;;
16077
16078 sysv4*MP*)
16079 if test -d /usr/nec; then
16080 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16081 hardcode_shlibpath_var=no
16082 runpath_var=LD_RUN_PATH
16083 hardcode_runpath_var=yes
16084 ld_shlibs=yes
16085 fi
16086 ;;
16087
16088 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16089 no_undefined_flag='${wl}-z,text'
16090 archive_cmds_need_lc=no
16091 hardcode_shlibpath_var=no
16092 runpath_var='LD_RUN_PATH'
16093
16094 if test "$GCC" = yes; then
16095 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16096 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16097 else
16098 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16099 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16100 fi
16101 ;;
16102
16103 sysv5* | sco3.2v5* | sco5v6*)
16104 # Note: We can NOT use -z defs as we might desire, because we do not
16105 # link with -lc, and that would cause any symbols used from libc to
16106 # always be unresolved, which means just about no library would
16107 # ever link correctly. If we're not using GNU ld we use -z text
16108 # though, which does catch some bad symbols but isn't as heavy-handed
16109 # as -z defs.
16110 no_undefined_flag='${wl}-z,text'
16111 allow_undefined_flag='${wl}-z,nodefs'
16112 archive_cmds_need_lc=no
16113 hardcode_shlibpath_var=no
16114 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16115 hardcode_libdir_separator=':'
16116 link_all_deplibs=yes
16117 export_dynamic_flag_spec='${wl}-Bexport'
16118 runpath_var='LD_RUN_PATH'
16119
16120 if test "$GCC" = yes; then
16121 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16122 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16123 else
16124 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16125 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16126 fi
16127 ;;
16128
16129 uts4*)
16130 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16131 hardcode_libdir_flag_spec='-L$libdir'
16132 hardcode_shlibpath_var=no
16133 ;;
16134
16135 *)
16136 ld_shlibs=no
16137 ;;
16138 esac
16139
16140 if test x$host_vendor = xsni; then
16141 case $host in
16142 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16143 export_dynamic_flag_spec='${wl}-Blargedynsym'
16144 ;;
16145 esac
16146 fi
16147 fi
16148
16149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16150 $as_echo "$ld_shlibs" >&6; }
16151 test "$ld_shlibs" = no && can_build_shared=no
16152
16153 with_gnu_ld=$with_gnu_ld
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169 #
16170 # Do we need to explicitly link libc?
16171 #
16172 case "x$archive_cmds_need_lc" in
16173 x|xyes)
16174 # Assume -lc should be added
16175 archive_cmds_need_lc=yes
16176
16177 if test "$enable_shared" = yes && test "$GCC" = yes; then
16178 case $archive_cmds in
16179 *'~'*)
16180 # FIXME: we may have to deal with multi-command sequences.
16181 ;;
16182 '$CC '*)
16183 # Test whether the compiler implicitly links with -lc since on some
16184 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16185 # to ld, don't add -lc before -lgcc.
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16187 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16188 if ${lt_cv_archive_cmds_need_lc+:} false; then :
16189 $as_echo_n "(cached) " >&6
16190 else
16191 $RM conftest*
16192 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16193
16194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16195 (eval $ac_compile) 2>&5
16196 ac_status=$?
16197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16198 test $ac_status = 0; } 2>conftest.err; then
16199 soname=conftest
16200 lib=conftest
16201 libobjs=conftest.$ac_objext
16202 deplibs=
16203 wl=$lt_prog_compiler_wl
16204 pic_flag=$lt_prog_compiler_pic
16205 compiler_flags=-v
16206 linker_flags=-v
16207 verstring=
16208 output_objdir=.
16209 libname=conftest
16210 lt_save_allow_undefined_flag=$allow_undefined_flag
16211 allow_undefined_flag=
16212 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16213 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16214 ac_status=$?
16215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16216 test $ac_status = 0; }
16217 then
16218 lt_cv_archive_cmds_need_lc=no
16219 else
16220 lt_cv_archive_cmds_need_lc=yes
16221 fi
16222 allow_undefined_flag=$lt_save_allow_undefined_flag
16223 else
16224 cat conftest.err 1>&5
16225 fi
16226 $RM conftest*
16227
16228 fi
16229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16230 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16231 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16232 ;;
16233 esac
16234 fi
16235 ;;
16236 esac
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16390 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16391
16392 if test "$GCC" = yes; then
16393 case $host_os in
16394 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16395 *) lt_awk_arg="/^libraries:/" ;;
16396 esac
16397 case $host_os in
16398 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16399 *) lt_sed_strip_eq="s,=/,/,g" ;;
16400 esac
16401 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16402 case $lt_search_path_spec in
16403 *\;*)
16404 # if the path contains ";" then we assume it to be the separator
16405 # otherwise default to the standard path separator (i.e. ":") - it is
16406 # assumed that no part of a normal pathname contains ";" but that should
16407 # okay in the real world where ";" in dirpaths is itself problematic.
16408 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16409 ;;
16410 *)
16411 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16412 ;;
16413 esac
16414 # Ok, now we have the path, separated by spaces, we can step through it
16415 # and add multilib dir if necessary.
16416 lt_tmp_lt_search_path_spec=
16417 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16418 for lt_sys_path in $lt_search_path_spec; do
16419 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16420 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16421 else
16422 test -d "$lt_sys_path" && \
16423 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16424 fi
16425 done
16426 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16427 BEGIN {RS=" "; FS="/|\n";} {
16428 lt_foo="";
16429 lt_count=0;
16430 for (lt_i = NF; lt_i > 0; lt_i--) {
16431 if ($lt_i != "" && $lt_i != ".") {
16432 if ($lt_i == "..") {
16433 lt_count++;
16434 } else {
16435 if (lt_count == 0) {
16436 lt_foo="/" $lt_i lt_foo;
16437 } else {
16438 lt_count--;
16439 }
16440 }
16441 }
16442 }
16443 if (lt_foo != "") { lt_freq[lt_foo]++; }
16444 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16445 }'`
16446 # AWK program above erroneously prepends '/' to C:/dos/paths
16447 # for these hosts.
16448 case $host_os in
16449 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16450 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16451 esac
16452 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16453 else
16454 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16455 fi
16456 library_names_spec=
16457 libname_spec='lib$name'
16458 soname_spec=
16459 shrext_cmds=".so"
16460 postinstall_cmds=
16461 postuninstall_cmds=
16462 finish_cmds=
16463 finish_eval=
16464 shlibpath_var=
16465 shlibpath_overrides_runpath=unknown
16466 version_type=none
16467 dynamic_linker="$host_os ld.so"
16468 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16469 need_lib_prefix=unknown
16470 hardcode_into_libs=no
16471
16472 # when you set need_version to no, make sure it does not cause -set_version
16473 # flags to be left without arguments
16474 need_version=unknown
16475
16476 case $host_os in
16477 aix3*)
16478 version_type=linux # correct to gnu/linux during the next big refactor
16479 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16480 shlibpath_var=LIBPATH
16481
16482 # AIX 3 has no versioning support, so we append a major version to the name.
16483 soname_spec='${libname}${release}${shared_ext}$major'
16484 ;;
16485
16486 aix[4-9]*)
16487 version_type=linux # correct to gnu/linux during the next big refactor
16488 need_lib_prefix=no
16489 need_version=no
16490 hardcode_into_libs=yes
16491 if test "$host_cpu" = ia64; then
16492 # AIX 5 supports IA64
16493 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16494 shlibpath_var=LD_LIBRARY_PATH
16495 else
16496 # With GCC up to 2.95.x, collect2 would create an import file
16497 # for dependence libraries. The import file would start with
16498 # the line `#! .'. This would cause the generated library to
16499 # depend on `.', always an invalid library. This was fixed in
16500 # development snapshots of GCC prior to 3.0.
16501 case $host_os in
16502 aix4 | aix4.[01] | aix4.[01].*)
16503 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16504 echo ' yes '
16505 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16506 :
16507 else
16508 can_build_shared=no
16509 fi
16510 ;;
16511 esac
16512 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16513 # soname into executable. Probably we can add versioning support to
16514 # collect2, so additional links can be useful in future.
16515 if test "$aix_use_runtimelinking" = yes; then
16516 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16517 # instead of lib<name>.a to let people know that these are not
16518 # typical AIX shared libraries.
16519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16520 else
16521 # We preserve .a as extension for shared libraries through AIX4.2
16522 # and later when we are not doing run time linking.
16523 library_names_spec='${libname}${release}.a $libname.a'
16524 soname_spec='${libname}${release}${shared_ext}$major'
16525 fi
16526 shlibpath_var=LIBPATH
16527 fi
16528 ;;
16529
16530 amigaos*)
16531 case $host_cpu in
16532 powerpc)
16533 # Since July 2007 AmigaOS4 officially supports .so libraries.
16534 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16536 ;;
16537 m68k)
16538 library_names_spec='$libname.ixlibrary $libname.a'
16539 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16540 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16541 ;;
16542 esac
16543 ;;
16544
16545 beos*)
16546 library_names_spec='${libname}${shared_ext}'
16547 dynamic_linker="$host_os ld.so"
16548 shlibpath_var=LIBRARY_PATH
16549 ;;
16550
16551 bsdi[45]*)
16552 version_type=linux # correct to gnu/linux during the next big refactor
16553 need_version=no
16554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16555 soname_spec='${libname}${release}${shared_ext}$major'
16556 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16557 shlibpath_var=LD_LIBRARY_PATH
16558 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16559 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16560 # the default ld.so.conf also contains /usr/contrib/lib and
16561 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16562 # libtool to hard-code these into programs
16563 ;;
16564
16565 cygwin* | mingw* | pw32* | cegcc*)
16566 version_type=windows
16567 shrext_cmds=".dll"
16568 need_version=no
16569 need_lib_prefix=no
16570
16571 case $GCC,$cc_basename in
16572 yes,*)
16573 # gcc
16574 library_names_spec='$libname.dll.a'
16575 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16576 postinstall_cmds='base_file=`basename \${file}`~
16577 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16578 dldir=$destdir/`dirname \$dlpath`~
16579 test -d \$dldir || mkdir -p \$dldir~
16580 $install_prog $dir/$dlname \$dldir/$dlname~
16581 chmod a+x \$dldir/$dlname~
16582 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16583 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16584 fi'
16585 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16586 dlpath=$dir/\$dldll~
16587 $RM \$dlpath'
16588 shlibpath_overrides_runpath=yes
16589
16590 case $host_os in
16591 cygwin*)
16592 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16593 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16594
16595 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16596 ;;
16597 mingw* | cegcc*)
16598 # MinGW DLLs use traditional 'lib' prefix
16599 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16600 ;;
16601 pw32*)
16602 # pw32 DLLs use 'pw' prefix rather than 'lib'
16603 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16604 ;;
16605 esac
16606 dynamic_linker='Win32 ld.exe'
16607 ;;
16608
16609 *,cl*)
16610 # Native MSVC
16611 libname_spec='$name'
16612 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16613 library_names_spec='${libname}.dll.lib'
16614
16615 case $build_os in
16616 mingw*)
16617 sys_lib_search_path_spec=
16618 lt_save_ifs=$IFS
16619 IFS=';'
16620 for lt_path in $LIB
16621 do
16622 IFS=$lt_save_ifs
16623 # Let DOS variable expansion print the short 8.3 style file name.
16624 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16625 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16626 done
16627 IFS=$lt_save_ifs
16628 # Convert to MSYS style.
16629 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16630 ;;
16631 cygwin*)
16632 # Convert to unix form, then to dos form, then back to unix form
16633 # but this time dos style (no spaces!) so that the unix form looks
16634 # like /cygdrive/c/PROGRA~1:/cygdr...
16635 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16636 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16637 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16638 ;;
16639 *)
16640 sys_lib_search_path_spec="$LIB"
16641 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16642 # It is most probably a Windows format PATH.
16643 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16644 else
16645 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16646 fi
16647 # FIXME: find the short name or the path components, as spaces are
16648 # common. (e.g. "Program Files" -> "PROGRA~1")
16649 ;;
16650 esac
16651
16652 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16653 postinstall_cmds='base_file=`basename \${file}`~
16654 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16655 dldir=$destdir/`dirname \$dlpath`~
16656 test -d \$dldir || mkdir -p \$dldir~
16657 $install_prog $dir/$dlname \$dldir/$dlname'
16658 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16659 dlpath=$dir/\$dldll~
16660 $RM \$dlpath'
16661 shlibpath_overrides_runpath=yes
16662 dynamic_linker='Win32 link.exe'
16663 ;;
16664
16665 *)
16666 # Assume MSVC wrapper
16667 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16668 dynamic_linker='Win32 ld.exe'
16669 ;;
16670 esac
16671 # FIXME: first we should search . and the directory the executable is in
16672 shlibpath_var=PATH
16673 ;;
16674
16675 darwin* | rhapsody*)
16676 dynamic_linker="$host_os dyld"
16677 version_type=darwin
16678 need_lib_prefix=no
16679 need_version=no
16680 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16681 soname_spec='${libname}${release}${major}$shared_ext'
16682 shlibpath_overrides_runpath=yes
16683 shlibpath_var=DYLD_LIBRARY_PATH
16684 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16685
16686 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16687 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16688 ;;
16689
16690 dgux*)
16691 version_type=linux # correct to gnu/linux during the next big refactor
16692 need_lib_prefix=no
16693 need_version=no
16694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16695 soname_spec='${libname}${release}${shared_ext}$major'
16696 shlibpath_var=LD_LIBRARY_PATH
16697 ;;
16698
16699 freebsd* | dragonfly*)
16700 # DragonFly does not have aout. When/if they implement a new
16701 # versioning mechanism, adjust this.
16702 if test -x /usr/bin/objformat; then
16703 objformat=`/usr/bin/objformat`
16704 else
16705 case $host_os in
16706 freebsd[23].*) objformat=aout ;;
16707 *) objformat=elf ;;
16708 esac
16709 fi
16710 version_type=freebsd-$objformat
16711 case $version_type in
16712 freebsd-elf*)
16713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16714 need_version=no
16715 need_lib_prefix=no
16716 ;;
16717 freebsd-*)
16718 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16719 need_version=yes
16720 ;;
16721 esac
16722 shlibpath_var=LD_LIBRARY_PATH
16723 case $host_os in
16724 freebsd2.*)
16725 shlibpath_overrides_runpath=yes
16726 ;;
16727 freebsd3.[01]* | freebsdelf3.[01]*)
16728 shlibpath_overrides_runpath=yes
16729 hardcode_into_libs=yes
16730 ;;
16731 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16732 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16733 shlibpath_overrides_runpath=no
16734 hardcode_into_libs=yes
16735 ;;
16736 *) # from 4.6 on, and DragonFly
16737 shlibpath_overrides_runpath=yes
16738 hardcode_into_libs=yes
16739 ;;
16740 esac
16741 ;;
16742
16743 haiku*)
16744 version_type=linux # correct to gnu/linux during the next big refactor
16745 need_lib_prefix=no
16746 need_version=no
16747 dynamic_linker="$host_os runtime_loader"
16748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16749 soname_spec='${libname}${release}${shared_ext}$major'
16750 shlibpath_var=LIBRARY_PATH
16751 shlibpath_overrides_runpath=yes
16752 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16753 hardcode_into_libs=yes
16754 ;;
16755
16756 hpux9* | hpux10* | hpux11*)
16757 # Give a soname corresponding to the major version so that dld.sl refuses to
16758 # link against other versions.
16759 version_type=sunos
16760 need_lib_prefix=no
16761 need_version=no
16762 case $host_cpu in
16763 ia64*)
16764 shrext_cmds='.so'
16765 hardcode_into_libs=yes
16766 dynamic_linker="$host_os dld.so"
16767 shlibpath_var=LD_LIBRARY_PATH
16768 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16770 soname_spec='${libname}${release}${shared_ext}$major'
16771 if test "X$HPUX_IA64_MODE" = X32; then
16772 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16773 else
16774 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16775 fi
16776 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16777 ;;
16778 hppa*64*)
16779 shrext_cmds='.sl'
16780 hardcode_into_libs=yes
16781 dynamic_linker="$host_os dld.sl"
16782 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16783 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16785 soname_spec='${libname}${release}${shared_ext}$major'
16786 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16787 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16788 ;;
16789 *)
16790 shrext_cmds='.sl'
16791 dynamic_linker="$host_os dld.sl"
16792 shlibpath_var=SHLIB_PATH
16793 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16795 soname_spec='${libname}${release}${shared_ext}$major'
16796 ;;
16797 esac
16798 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16799 postinstall_cmds='chmod 555 $lib'
16800 # or fails outright, so override atomically:
16801 install_override_mode=555
16802 ;;
16803
16804 interix[3-9]*)
16805 version_type=linux # correct to gnu/linux during the next big refactor
16806 need_lib_prefix=no
16807 need_version=no
16808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16809 soname_spec='${libname}${release}${shared_ext}$major'
16810 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16811 shlibpath_var=LD_LIBRARY_PATH
16812 shlibpath_overrides_runpath=no
16813 hardcode_into_libs=yes
16814 ;;
16815
16816 irix5* | irix6* | nonstopux*)
16817 case $host_os in
16818 nonstopux*) version_type=nonstopux ;;
16819 *)
16820 if test "$lt_cv_prog_gnu_ld" = yes; then
16821 version_type=linux # correct to gnu/linux during the next big refactor
16822 else
16823 version_type=irix
16824 fi ;;
16825 esac
16826 need_lib_prefix=no
16827 need_version=no
16828 soname_spec='${libname}${release}${shared_ext}$major'
16829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16830 case $host_os in
16831 irix5* | nonstopux*)
16832 libsuff= shlibsuff=
16833 ;;
16834 *)
16835 case $LD in # libtool.m4 will add one of these switches to LD
16836 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16837 libsuff= shlibsuff= libmagic=32-bit;;
16838 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16839 libsuff=32 shlibsuff=N32 libmagic=N32;;
16840 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16841 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16842 *) libsuff= shlibsuff= libmagic=never-match;;
16843 esac
16844 ;;
16845 esac
16846 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16847 shlibpath_overrides_runpath=no
16848 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16849 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16850 hardcode_into_libs=yes
16851 ;;
16852
16853 # No shared lib support for Linux oldld, aout, or coff.
16854 linux*oldld* | linux*aout* | linux*coff*)
16855 dynamic_linker=no
16856 ;;
16857
16858 # This must be glibc/ELF.
16859 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16860 version_type=linux # correct to gnu/linux during the next big refactor
16861 need_lib_prefix=no
16862 need_version=no
16863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16864 soname_spec='${libname}${release}${shared_ext}$major'
16865 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16866 shlibpath_var=LD_LIBRARY_PATH
16867 shlibpath_overrides_runpath=no
16868
16869 # Some binutils ld are patched to set DT_RUNPATH
16870 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16871 $as_echo_n "(cached) " >&6
16872 else
16873 lt_cv_shlibpath_overrides_runpath=no
16874 save_LDFLAGS=$LDFLAGS
16875 save_libdir=$libdir
16876 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16877 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16879 /* end confdefs.h. */
16880
16881 int
16882 main ()
16883 {
16884
16885 ;
16886 return 0;
16887 }
16888 _ACEOF
16889 if ac_fn_c_try_link "$LINENO"; then :
16890 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16891 lt_cv_shlibpath_overrides_runpath=yes
16892 fi
16893 fi
16894 rm -f core conftest.err conftest.$ac_objext \
16895 conftest$ac_exeext conftest.$ac_ext
16896 LDFLAGS=$save_LDFLAGS
16897 libdir=$save_libdir
16898
16899 fi
16900
16901 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16902
16903 # This implies no fast_install, which is unacceptable.
16904 # Some rework will be needed to allow for fast_install
16905 # before this can be enabled.
16906 hardcode_into_libs=yes
16907
16908 # Append ld.so.conf contents to the search path
16909 if test -f /etc/ld.so.conf; then
16910 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' ' '`
16911 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16912 fi
16913
16914 # We used to test for /lib/ld.so.1 and disable shared libraries on
16915 # powerpc, because MkLinux only supported shared libraries with the
16916 # GNU dynamic linker. Since this was broken with cross compilers,
16917 # most powerpc-linux boxes support dynamic linking these days and
16918 # people can always --disable-shared, the test was removed, and we
16919 # assume the GNU/Linux dynamic linker is in use.
16920 dynamic_linker='GNU/Linux ld.so'
16921 ;;
16922
16923 netbsdelf*-gnu)
16924 version_type=linux
16925 need_lib_prefix=no
16926 need_version=no
16927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16928 soname_spec='${libname}${release}${shared_ext}$major'
16929 shlibpath_var=LD_LIBRARY_PATH
16930 shlibpath_overrides_runpath=no
16931 hardcode_into_libs=yes
16932 dynamic_linker='NetBSD ld.elf_so'
16933 ;;
16934
16935 netbsd*)
16936 version_type=sunos
16937 need_lib_prefix=no
16938 need_version=no
16939 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16941 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16942 dynamic_linker='NetBSD (a.out) ld.so'
16943 else
16944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16945 soname_spec='${libname}${release}${shared_ext}$major'
16946 dynamic_linker='NetBSD ld.elf_so'
16947 fi
16948 shlibpath_var=LD_LIBRARY_PATH
16949 shlibpath_overrides_runpath=yes
16950 hardcode_into_libs=yes
16951 ;;
16952
16953 newsos6)
16954 version_type=linux # correct to gnu/linux during the next big refactor
16955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16956 shlibpath_var=LD_LIBRARY_PATH
16957 shlibpath_overrides_runpath=yes
16958 ;;
16959
16960 *nto* | *qnx*)
16961 version_type=qnx
16962 need_lib_prefix=no
16963 need_version=no
16964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16965 soname_spec='${libname}${release}${shared_ext}$major'
16966 shlibpath_var=LD_LIBRARY_PATH
16967 shlibpath_overrides_runpath=no
16968 hardcode_into_libs=yes
16969 dynamic_linker='ldqnx.so'
16970 ;;
16971
16972 openbsd*)
16973 version_type=sunos
16974 sys_lib_dlsearch_path_spec="/usr/lib"
16975 need_lib_prefix=no
16976 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16977 case $host_os in
16978 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16979 *) need_version=no ;;
16980 esac
16981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16982 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16983 shlibpath_var=LD_LIBRARY_PATH
16984 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16985 case $host_os in
16986 openbsd2.[89] | openbsd2.[89].*)
16987 shlibpath_overrides_runpath=no
16988 ;;
16989 *)
16990 shlibpath_overrides_runpath=yes
16991 ;;
16992 esac
16993 else
16994 shlibpath_overrides_runpath=yes
16995 fi
16996 ;;
16997
16998 os2*)
16999 libname_spec='$name'
17000 shrext_cmds=".dll"
17001 need_lib_prefix=no
17002 library_names_spec='$libname${shared_ext} $libname.a'
17003 dynamic_linker='OS/2 ld.exe'
17004 shlibpath_var=LIBPATH
17005 ;;
17006
17007 osf3* | osf4* | osf5*)
17008 version_type=osf
17009 need_lib_prefix=no
17010 need_version=no
17011 soname_spec='${libname}${release}${shared_ext}$major'
17012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17013 shlibpath_var=LD_LIBRARY_PATH
17014 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17015 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17016 ;;
17017
17018 rdos*)
17019 dynamic_linker=no
17020 ;;
17021
17022 solaris*)
17023 version_type=linux # correct to gnu/linux during the next big refactor
17024 need_lib_prefix=no
17025 need_version=no
17026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17027 soname_spec='${libname}${release}${shared_ext}$major'
17028 shlibpath_var=LD_LIBRARY_PATH
17029 shlibpath_overrides_runpath=yes
17030 hardcode_into_libs=yes
17031 # ldd complains unless libraries are executable
17032 postinstall_cmds='chmod +x $lib'
17033 ;;
17034
17035 sunos4*)
17036 version_type=sunos
17037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17038 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17039 shlibpath_var=LD_LIBRARY_PATH
17040 shlibpath_overrides_runpath=yes
17041 if test "$with_gnu_ld" = yes; then
17042 need_lib_prefix=no
17043 fi
17044 need_version=yes
17045 ;;
17046
17047 sysv4 | sysv4.3*)
17048 version_type=linux # correct to gnu/linux during the next big refactor
17049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17050 soname_spec='${libname}${release}${shared_ext}$major'
17051 shlibpath_var=LD_LIBRARY_PATH
17052 case $host_vendor in
17053 sni)
17054 shlibpath_overrides_runpath=no
17055 need_lib_prefix=no
17056 runpath_var=LD_RUN_PATH
17057 ;;
17058 siemens)
17059 need_lib_prefix=no
17060 ;;
17061 motorola)
17062 need_lib_prefix=no
17063 need_version=no
17064 shlibpath_overrides_runpath=no
17065 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17066 ;;
17067 esac
17068 ;;
17069
17070 sysv4*MP*)
17071 if test -d /usr/nec ;then
17072 version_type=linux # correct to gnu/linux during the next big refactor
17073 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17074 soname_spec='$libname${shared_ext}.$major'
17075 shlibpath_var=LD_LIBRARY_PATH
17076 fi
17077 ;;
17078
17079 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17080 version_type=freebsd-elf
17081 need_lib_prefix=no
17082 need_version=no
17083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17084 soname_spec='${libname}${release}${shared_ext}$major'
17085 shlibpath_var=LD_LIBRARY_PATH
17086 shlibpath_overrides_runpath=yes
17087 hardcode_into_libs=yes
17088 if test "$with_gnu_ld" = yes; then
17089 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17090 else
17091 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17092 case $host_os in
17093 sco3.2v5*)
17094 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17095 ;;
17096 esac
17097 fi
17098 sys_lib_dlsearch_path_spec='/usr/lib'
17099 ;;
17100
17101 tpf*)
17102 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17103 version_type=linux # correct to gnu/linux during the next big refactor
17104 need_lib_prefix=no
17105 need_version=no
17106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17107 shlibpath_var=LD_LIBRARY_PATH
17108 shlibpath_overrides_runpath=no
17109 hardcode_into_libs=yes
17110 ;;
17111
17112 uts4*)
17113 version_type=linux # correct to gnu/linux during the next big refactor
17114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17115 soname_spec='${libname}${release}${shared_ext}$major'
17116 shlibpath_var=LD_LIBRARY_PATH
17117 ;;
17118
17119 *)
17120 dynamic_linker=no
17121 ;;
17122 esac
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17124 $as_echo "$dynamic_linker" >&6; }
17125 test "$dynamic_linker" = no && can_build_shared=no
17126
17127 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17128 if test "$GCC" = yes; then
17129 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17130 fi
17131
17132 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17133 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17134 fi
17135 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17136 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17137 fi
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17231 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17232 hardcode_action=
17233 if test -n "$hardcode_libdir_flag_spec" ||
17234 test -n "$runpath_var" ||
17235 test "X$hardcode_automatic" = "Xyes" ; then
17236
17237 # We can hardcode non-existent directories.
17238 if test "$hardcode_direct" != no &&
17239 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17240 # have to relink, otherwise we might link with an installed library
17241 # when we should be linking with a yet-to-be-installed one
17242 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17243 test "$hardcode_minus_L" != no; then
17244 # Linking always hardcodes the temporary library directory.
17245 hardcode_action=relink
17246 else
17247 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17248 hardcode_action=immediate
17249 fi
17250 else
17251 # We cannot hardcode anything, or else we can only hardcode existing
17252 # directories.
17253 hardcode_action=unsupported
17254 fi
17255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17256 $as_echo "$hardcode_action" >&6; }
17257
17258 if test "$hardcode_action" = relink ||
17259 test "$inherit_rpath" = yes; then
17260 # Fast installation is not supported
17261 enable_fast_install=no
17262 elif test "$shlibpath_overrides_runpath" = yes ||
17263 test "$enable_shared" = no; then
17264 # Fast installation is not necessary
17265 enable_fast_install=needless
17266 fi
17267
17268
17269
17270
17271
17272
17273 if test "x$enable_dlopen" != xyes; then
17274 enable_dlopen=unknown
17275 enable_dlopen_self=unknown
17276 enable_dlopen_self_static=unknown
17277 else
17278 lt_cv_dlopen=no
17279 lt_cv_dlopen_libs=
17280
17281 case $host_os in
17282 beos*)
17283 lt_cv_dlopen="load_add_on"
17284 lt_cv_dlopen_libs=
17285 lt_cv_dlopen_self=yes
17286 ;;
17287
17288 mingw* | pw32* | cegcc*)
17289 lt_cv_dlopen="LoadLibrary"
17290 lt_cv_dlopen_libs=
17291 ;;
17292
17293 cygwin*)
17294 lt_cv_dlopen="dlopen"
17295 lt_cv_dlopen_libs=
17296 ;;
17297
17298 darwin*)
17299 # if libdl is installed we need to link against it
17300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17301 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17302 if ${ac_cv_lib_dl_dlopen+:} false; then :
17303 $as_echo_n "(cached) " >&6
17304 else
17305 ac_check_lib_save_LIBS=$LIBS
17306 LIBS="-ldl $LIBS"
17307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17308 /* end confdefs.h. */
17309
17310 /* Override any GCC internal prototype to avoid an error.
17311 Use char because int might match the return type of a GCC
17312 builtin and then its argument prototype would still apply. */
17313 #ifdef __cplusplus
17314 extern "C"
17315 #endif
17316 char dlopen ();
17317 int
17318 main ()
17319 {
17320 return dlopen ();
17321 ;
17322 return 0;
17323 }
17324 _ACEOF
17325 if ac_fn_c_try_link "$LINENO"; then :
17326 ac_cv_lib_dl_dlopen=yes
17327 else
17328 ac_cv_lib_dl_dlopen=no
17329 fi
17330 rm -f core conftest.err conftest.$ac_objext \
17331 conftest$ac_exeext conftest.$ac_ext
17332 LIBS=$ac_check_lib_save_LIBS
17333 fi
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17335 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17336 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17337 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17338 else
17339
17340 lt_cv_dlopen="dyld"
17341 lt_cv_dlopen_libs=
17342 lt_cv_dlopen_self=yes
17343
17344 fi
17345
17346 ;;
17347
17348 *)
17349 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17350 if test "x$ac_cv_func_shl_load" = xyes; then :
17351 lt_cv_dlopen="shl_load"
17352 else
17353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17354 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17355 if ${ac_cv_lib_dld_shl_load+:} false; then :
17356 $as_echo_n "(cached) " >&6
17357 else
17358 ac_check_lib_save_LIBS=$LIBS
17359 LIBS="-ldld $LIBS"
17360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17361 /* end confdefs.h. */
17362
17363 /* Override any GCC internal prototype to avoid an error.
17364 Use char because int might match the return type of a GCC
17365 builtin and then its argument prototype would still apply. */
17366 #ifdef __cplusplus
17367 extern "C"
17368 #endif
17369 char shl_load ();
17370 int
17371 main ()
17372 {
17373 return shl_load ();
17374 ;
17375 return 0;
17376 }
17377 _ACEOF
17378 if ac_fn_c_try_link "$LINENO"; then :
17379 ac_cv_lib_dld_shl_load=yes
17380 else
17381 ac_cv_lib_dld_shl_load=no
17382 fi
17383 rm -f core conftest.err conftest.$ac_objext \
17384 conftest$ac_exeext conftest.$ac_ext
17385 LIBS=$ac_check_lib_save_LIBS
17386 fi
17387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17388 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17389 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17390 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17391 else
17392 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17393 if test "x$ac_cv_func_dlopen" = xyes; then :
17394 lt_cv_dlopen="dlopen"
17395 else
17396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17397 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17398 if ${ac_cv_lib_dl_dlopen+:} false; then :
17399 $as_echo_n "(cached) " >&6
17400 else
17401 ac_check_lib_save_LIBS=$LIBS
17402 LIBS="-ldl $LIBS"
17403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17404 /* end confdefs.h. */
17405
17406 /* Override any GCC internal prototype to avoid an error.
17407 Use char because int might match the return type of a GCC
17408 builtin and then its argument prototype would still apply. */
17409 #ifdef __cplusplus
17410 extern "C"
17411 #endif
17412 char dlopen ();
17413 int
17414 main ()
17415 {
17416 return dlopen ();
17417 ;
17418 return 0;
17419 }
17420 _ACEOF
17421 if ac_fn_c_try_link "$LINENO"; then :
17422 ac_cv_lib_dl_dlopen=yes
17423 else
17424 ac_cv_lib_dl_dlopen=no
17425 fi
17426 rm -f core conftest.err conftest.$ac_objext \
17427 conftest$ac_exeext conftest.$ac_ext
17428 LIBS=$ac_check_lib_save_LIBS
17429 fi
17430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17431 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17432 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17433 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17434 else
17435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17436 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17437 if ${ac_cv_lib_svld_dlopen+:} false; then :
17438 $as_echo_n "(cached) " >&6
17439 else
17440 ac_check_lib_save_LIBS=$LIBS
17441 LIBS="-lsvld $LIBS"
17442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17443 /* end confdefs.h. */
17444
17445 /* Override any GCC internal prototype to avoid an error.
17446 Use char because int might match the return type of a GCC
17447 builtin and then its argument prototype would still apply. */
17448 #ifdef __cplusplus
17449 extern "C"
17450 #endif
17451 char dlopen ();
17452 int
17453 main ()
17454 {
17455 return dlopen ();
17456 ;
17457 return 0;
17458 }
17459 _ACEOF
17460 if ac_fn_c_try_link "$LINENO"; then :
17461 ac_cv_lib_svld_dlopen=yes
17462 else
17463 ac_cv_lib_svld_dlopen=no
17464 fi
17465 rm -f core conftest.err conftest.$ac_objext \
17466 conftest$ac_exeext conftest.$ac_ext
17467 LIBS=$ac_check_lib_save_LIBS
17468 fi
17469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17470 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17471 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17472 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17473 else
17474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17475 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17476 if ${ac_cv_lib_dld_dld_link+:} false; then :
17477 $as_echo_n "(cached) " >&6
17478 else
17479 ac_check_lib_save_LIBS=$LIBS
17480 LIBS="-ldld $LIBS"
17481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17482 /* end confdefs.h. */
17483
17484 /* Override any GCC internal prototype to avoid an error.
17485 Use char because int might match the return type of a GCC
17486 builtin and then its argument prototype would still apply. */
17487 #ifdef __cplusplus
17488 extern "C"
17489 #endif
17490 char dld_link ();
17491 int
17492 main ()
17493 {
17494 return dld_link ();
17495 ;
17496 return 0;
17497 }
17498 _ACEOF
17499 if ac_fn_c_try_link "$LINENO"; then :
17500 ac_cv_lib_dld_dld_link=yes
17501 else
17502 ac_cv_lib_dld_dld_link=no
17503 fi
17504 rm -f core conftest.err conftest.$ac_objext \
17505 conftest$ac_exeext conftest.$ac_ext
17506 LIBS=$ac_check_lib_save_LIBS
17507 fi
17508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17509 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17510 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17511 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17512 fi
17513
17514
17515 fi
17516
17517
17518 fi
17519
17520
17521 fi
17522
17523
17524 fi
17525
17526
17527 fi
17528
17529 ;;
17530 esac
17531
17532 if test "x$lt_cv_dlopen" != xno; then
17533 enable_dlopen=yes
17534 else
17535 enable_dlopen=no
17536 fi
17537
17538 case $lt_cv_dlopen in
17539 dlopen)
17540 save_CPPFLAGS="$CPPFLAGS"
17541 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17542
17543 save_LDFLAGS="$LDFLAGS"
17544 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17545
17546 save_LIBS="$LIBS"
17547 LIBS="$lt_cv_dlopen_libs $LIBS"
17548
17549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17550 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17551 if ${lt_cv_dlopen_self+:} false; then :
17552 $as_echo_n "(cached) " >&6
17553 else
17554 if test "$cross_compiling" = yes; then :
17555 lt_cv_dlopen_self=cross
17556 else
17557 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17558 lt_status=$lt_dlunknown
17559 cat > conftest.$ac_ext <<_LT_EOF
17560 #line $LINENO "configure"
17561 #include "confdefs.h"
17562
17563 #if HAVE_DLFCN_H
17564 #include <dlfcn.h>
17565 #endif
17566
17567 #include <stdio.h>
17568
17569 #ifdef RTLD_GLOBAL
17570 # define LT_DLGLOBAL RTLD_GLOBAL
17571 #else
17572 # ifdef DL_GLOBAL
17573 # define LT_DLGLOBAL DL_GLOBAL
17574 # else
17575 # define LT_DLGLOBAL 0
17576 # endif
17577 #endif
17578
17579 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17580 find out it does not work in some platform. */
17581 #ifndef LT_DLLAZY_OR_NOW
17582 # ifdef RTLD_LAZY
17583 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17584 # else
17585 # ifdef DL_LAZY
17586 # define LT_DLLAZY_OR_NOW DL_LAZY
17587 # else
17588 # ifdef RTLD_NOW
17589 # define LT_DLLAZY_OR_NOW RTLD_NOW
17590 # else
17591 # ifdef DL_NOW
17592 # define LT_DLLAZY_OR_NOW DL_NOW
17593 # else
17594 # define LT_DLLAZY_OR_NOW 0
17595 # endif
17596 # endif
17597 # endif
17598 # endif
17599 #endif
17600
17601 /* When -fvisbility=hidden is used, assume the code has been annotated
17602 correspondingly for the symbols needed. */
17603 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17604 int fnord () __attribute__((visibility("default")));
17605 #endif
17606
17607 int fnord () { return 42; }
17608 int main ()
17609 {
17610 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17611 int status = $lt_dlunknown;
17612
17613 if (self)
17614 {
17615 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17616 else
17617 {
17618 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17619 else puts (dlerror ());
17620 }
17621 /* dlclose (self); */
17622 }
17623 else
17624 puts (dlerror ());
17625
17626 return status;
17627 }
17628 _LT_EOF
17629 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17630 (eval $ac_link) 2>&5
17631 ac_status=$?
17632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17633 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17634 (./conftest; exit; ) >&5 2>/dev/null
17635 lt_status=$?
17636 case x$lt_status in
17637 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17638 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17639 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17640 esac
17641 else :
17642 # compilation failed
17643 lt_cv_dlopen_self=no
17644 fi
17645 fi
17646 rm -fr conftest*
17647
17648
17649 fi
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17651 $as_echo "$lt_cv_dlopen_self" >&6; }
17652
17653 if test "x$lt_cv_dlopen_self" = xyes; then
17654 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17656 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17657 if ${lt_cv_dlopen_self_static+:} false; then :
17658 $as_echo_n "(cached) " >&6
17659 else
17660 if test "$cross_compiling" = yes; then :
17661 lt_cv_dlopen_self_static=cross
17662 else
17663 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17664 lt_status=$lt_dlunknown
17665 cat > conftest.$ac_ext <<_LT_EOF
17666 #line $LINENO "configure"
17667 #include "confdefs.h"
17668
17669 #if HAVE_DLFCN_H
17670 #include <dlfcn.h>
17671 #endif
17672
17673 #include <stdio.h>
17674
17675 #ifdef RTLD_GLOBAL
17676 # define LT_DLGLOBAL RTLD_GLOBAL
17677 #else
17678 # ifdef DL_GLOBAL
17679 # define LT_DLGLOBAL DL_GLOBAL
17680 # else
17681 # define LT_DLGLOBAL 0
17682 # endif
17683 #endif
17684
17685 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17686 find out it does not work in some platform. */
17687 #ifndef LT_DLLAZY_OR_NOW
17688 # ifdef RTLD_LAZY
17689 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17690 # else
17691 # ifdef DL_LAZY
17692 # define LT_DLLAZY_OR_NOW DL_LAZY
17693 # else
17694 # ifdef RTLD_NOW
17695 # define LT_DLLAZY_OR_NOW RTLD_NOW
17696 # else
17697 # ifdef DL_NOW
17698 # define LT_DLLAZY_OR_NOW DL_NOW
17699 # else
17700 # define LT_DLLAZY_OR_NOW 0
17701 # endif
17702 # endif
17703 # endif
17704 # endif
17705 #endif
17706
17707 /* When -fvisbility=hidden is used, assume the code has been annotated
17708 correspondingly for the symbols needed. */
17709 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17710 int fnord () __attribute__((visibility("default")));
17711 #endif
17712
17713 int fnord () { return 42; }
17714 int main ()
17715 {
17716 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17717 int status = $lt_dlunknown;
17718
17719 if (self)
17720 {
17721 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17722 else
17723 {
17724 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17725 else puts (dlerror ());
17726 }
17727 /* dlclose (self); */
17728 }
17729 else
17730 puts (dlerror ());
17731
17732 return status;
17733 }
17734 _LT_EOF
17735 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17736 (eval $ac_link) 2>&5
17737 ac_status=$?
17738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17739 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17740 (./conftest; exit; ) >&5 2>/dev/null
17741 lt_status=$?
17742 case x$lt_status in
17743 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17744 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17745 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17746 esac
17747 else :
17748 # compilation failed
17749 lt_cv_dlopen_self_static=no
17750 fi
17751 fi
17752 rm -fr conftest*
17753
17754
17755 fi
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17757 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17758 fi
17759
17760 CPPFLAGS="$save_CPPFLAGS"
17761 LDFLAGS="$save_LDFLAGS"
17762 LIBS="$save_LIBS"
17763 ;;
17764 esac
17765
17766 case $lt_cv_dlopen_self in
17767 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17768 *) enable_dlopen_self=unknown ;;
17769 esac
17770
17771 case $lt_cv_dlopen_self_static in
17772 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17773 *) enable_dlopen_self_static=unknown ;;
17774 esac
17775 fi
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793 striplib=
17794 old_striplib=
17795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17796 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17797 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17798 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17799 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17801 $as_echo "yes" >&6; }
17802 else
17803 # FIXME - insert some real tests, host_os isn't really good enough
17804 case $host_os in
17805 darwin*)
17806 if test -n "$STRIP" ; then
17807 striplib="$STRIP -x"
17808 old_striplib="$STRIP -S"
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17810 $as_echo "yes" >&6; }
17811 else
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17813 $as_echo "no" >&6; }
17814 fi
17815 ;;
17816 *)
17817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17818 $as_echo "no" >&6; }
17819 ;;
17820 esac
17821 fi
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834 # Report which library types will actually be built
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17836 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17838 $as_echo "$can_build_shared" >&6; }
17839
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17841 $as_echo_n "checking whether to build shared libraries... " >&6; }
17842 test "$can_build_shared" = "no" && enable_shared=no
17843
17844 # On AIX, shared libraries and static libraries use the same namespace, and
17845 # are all built from PIC.
17846 case $host_os in
17847 aix3*)
17848 test "$enable_shared" = yes && enable_static=no
17849 if test -n "$RANLIB"; then
17850 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17851 postinstall_cmds='$RANLIB $lib'
17852 fi
17853 ;;
17854
17855 aix[4-9]*)
17856 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17857 test "$enable_shared" = yes && enable_static=no
17858 fi
17859 ;;
17860 esac
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17862 $as_echo "$enable_shared" >&6; }
17863
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17865 $as_echo_n "checking whether to build static libraries... " >&6; }
17866 # Make sure either enable_shared or enable_static is yes.
17867 test "$enable_shared" = yes || enable_static=yes
17868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17869 $as_echo "$enable_static" >&6; }
17870
17871
17872
17873
17874 fi
17875 ac_ext=c
17876 ac_cpp='$CPP $CPPFLAGS'
17877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17880
17881 CC="$lt_save_CC"
17882
17883
17884
17885
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895
17896
17897 ac_config_commands="$ac_config_commands libtool"
17898
17899
17900
17901
17902 # Only expand once:
17903
17904
17905 ac_ext=c
17906 ac_cpp='$CPP $CPPFLAGS'
17907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17910 if test -n "$ac_tool_prefix"; then
17911 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
17912 set dummy ${ac_tool_prefix}gcc; ac_word=$2
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17914 $as_echo_n "checking for $ac_word... " >&6; }
17915 if ${ac_cv_prog_CC+:} false; then :
17916 $as_echo_n "(cached) " >&6
17917 else
17918 if test -n "$CC"; then
17919 ac_cv_prog_CC="$CC" # Let the user override the test.
17920 else
17921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17922 for as_dir in $PATH
17923 do
17924 IFS=$as_save_IFS
17925 test -z "$as_dir" && as_dir=.
17926 for ac_exec_ext in '' $ac_executable_extensions; do
17927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17928 ac_cv_prog_CC="${ac_tool_prefix}gcc"
17929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17930 break 2
17931 fi
17932 done
17933 done
17934 IFS=$as_save_IFS
17935
17936 fi
17937 fi
17938 CC=$ac_cv_prog_CC
17939 if test -n "$CC"; then
17940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
17941 $as_echo "$CC" >&6; }
17942 else
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17944 $as_echo "no" >&6; }
17945 fi
17946
17947
17948 fi
17949 if test -z "$ac_cv_prog_CC"; then
17950 ac_ct_CC=$CC
17951 # Extract the first word of "gcc", so it can be a program name with args.
17952 set dummy gcc; ac_word=$2
17953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17954 $as_echo_n "checking for $ac_word... " >&6; }
17955 if ${ac_cv_prog_ac_ct_CC+:} false; then :
17956 $as_echo_n "(cached) " >&6
17957 else
17958 if test -n "$ac_ct_CC"; then
17959 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
17960 else
17961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17962 for as_dir in $PATH
17963 do
17964 IFS=$as_save_IFS
17965 test -z "$as_dir" && as_dir=.
17966 for ac_exec_ext in '' $ac_executable_extensions; do
17967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17968 ac_cv_prog_ac_ct_CC="gcc"
17969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17970 break 2
17971 fi
17972 done
17973 done
17974 IFS=$as_save_IFS
17975
17976 fi
17977 fi
17978 ac_ct_CC=$ac_cv_prog_ac_ct_CC
17979 if test -n "$ac_ct_CC"; then
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
17981 $as_echo "$ac_ct_CC" >&6; }
17982 else
17983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17984 $as_echo "no" >&6; }
17985 fi
17986
17987 if test "x$ac_ct_CC" = x; then
17988 CC=""
17989 else
17990 case $cross_compiling:$ac_tool_warned in
17991 yes:)
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17994 ac_tool_warned=yes ;;
17995 esac
17996 CC=$ac_ct_CC
17997 fi
17998 else
17999 CC="$ac_cv_prog_CC"
18000 fi
18001
18002 if test -z "$CC"; then
18003 if test -n "$ac_tool_prefix"; then
18004 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18005 set dummy ${ac_tool_prefix}cc; ac_word=$2
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18007 $as_echo_n "checking for $ac_word... " >&6; }
18008 if ${ac_cv_prog_CC+:} false; then :
18009 $as_echo_n "(cached) " >&6
18010 else
18011 if test -n "$CC"; then
18012 ac_cv_prog_CC="$CC" # Let the user override the test.
18013 else
18014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18015 for as_dir in $PATH
18016 do
18017 IFS=$as_save_IFS
18018 test -z "$as_dir" && as_dir=.
18019 for ac_exec_ext in '' $ac_executable_extensions; do
18020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18021 ac_cv_prog_CC="${ac_tool_prefix}cc"
18022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18023 break 2
18024 fi
18025 done
18026 done
18027 IFS=$as_save_IFS
18028
18029 fi
18030 fi
18031 CC=$ac_cv_prog_CC
18032 if test -n "$CC"; then
18033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18034 $as_echo "$CC" >&6; }
18035 else
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18037 $as_echo "no" >&6; }
18038 fi
18039
18040
18041 fi
18042 fi
18043 if test -z "$CC"; then
18044 # Extract the first word of "cc", so it can be a program name with args.
18045 set dummy cc; ac_word=$2
18046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18047 $as_echo_n "checking for $ac_word... " >&6; }
18048 if ${ac_cv_prog_CC+:} false; then :
18049 $as_echo_n "(cached) " >&6
18050 else
18051 if test -n "$CC"; then
18052 ac_cv_prog_CC="$CC" # Let the user override the test.
18053 else
18054 ac_prog_rejected=no
18055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18056 for as_dir in $PATH
18057 do
18058 IFS=$as_save_IFS
18059 test -z "$as_dir" && as_dir=.
18060 for ac_exec_ext in '' $ac_executable_extensions; do
18061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18062 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18063 ac_prog_rejected=yes
18064 continue
18065 fi
18066 ac_cv_prog_CC="cc"
18067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18068 break 2
18069 fi
18070 done
18071 done
18072 IFS=$as_save_IFS
18073
18074 if test $ac_prog_rejected = yes; then
18075 # We found a bogon in the path, so make sure we never use it.
18076 set dummy $ac_cv_prog_CC
18077 shift
18078 if test $# != 0; then
18079 # We chose a different compiler from the bogus one.
18080 # However, it has the same basename, so the bogon will be chosen
18081 # first if we set CC to just the basename; use the full file name.
18082 shift
18083 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
18084 fi
18085 fi
18086 fi
18087 fi
18088 CC=$ac_cv_prog_CC
18089 if test -n "$CC"; then
18090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18091 $as_echo "$CC" >&6; }
18092 else
18093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18094 $as_echo "no" >&6; }
18095 fi
18096
18097
18098 fi
18099 if test -z "$CC"; then
18100 if test -n "$ac_tool_prefix"; then
18101 for ac_prog in cl.exe
18102 do
18103 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18104 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18106 $as_echo_n "checking for $ac_word... " >&6; }
18107 if ${ac_cv_prog_CC+:} false; then :
18108 $as_echo_n "(cached) " >&6
18109 else
18110 if test -n "$CC"; then
18111 ac_cv_prog_CC="$CC" # Let the user override the test.
18112 else
18113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18114 for as_dir in $PATH
18115 do
18116 IFS=$as_save_IFS
18117 test -z "$as_dir" && as_dir=.
18118 for ac_exec_ext in '' $ac_executable_extensions; do
18119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18120 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18122 break 2
18123 fi
18124 done
18125 done
18126 IFS=$as_save_IFS
18127
18128 fi
18129 fi
18130 CC=$ac_cv_prog_CC
18131 if test -n "$CC"; then
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18133 $as_echo "$CC" >&6; }
18134 else
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18136 $as_echo "no" >&6; }
18137 fi
18138
18139
18140 test -n "$CC" && break
18141 done
18142 fi
18143 if test -z "$CC"; then
18144 ac_ct_CC=$CC
18145 for ac_prog in cl.exe
18146 do
18147 # Extract the first word of "$ac_prog", so it can be a program name with args.
18148 set dummy $ac_prog; ac_word=$2
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18150 $as_echo_n "checking for $ac_word... " >&6; }
18151 if ${ac_cv_prog_ac_ct_CC+:} false; then :
18152 $as_echo_n "(cached) " >&6
18153 else
18154 if test -n "$ac_ct_CC"; then
18155 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18156 else
18157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18158 for as_dir in $PATH
18159 do
18160 IFS=$as_save_IFS
18161 test -z "$as_dir" && as_dir=.
18162 for ac_exec_ext in '' $ac_executable_extensions; do
18163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18164 ac_cv_prog_ac_ct_CC="$ac_prog"
18165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18166 break 2
18167 fi
18168 done
18169 done
18170 IFS=$as_save_IFS
18171
18172 fi
18173 fi
18174 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18175 if test -n "$ac_ct_CC"; then
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
18177 $as_echo "$ac_ct_CC" >&6; }
18178 else
18179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18180 $as_echo "no" >&6; }
18181 fi
18182
18183
18184 test -n "$ac_ct_CC" && break
18185 done
18186
18187 if test "x$ac_ct_CC" = x; then
18188 CC=""
18189 else
18190 case $cross_compiling:$ac_tool_warned in
18191 yes:)
18192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18193 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18194 ac_tool_warned=yes ;;
18195 esac
18196 CC=$ac_ct_CC
18197 fi
18198 fi
18199
18200 fi
18201
18202
18203 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18205 as_fn_error $? "no acceptable C compiler found in \$PATH
18206 See \`config.log' for more details" "$LINENO" 5; }
18207
18208 # Provide some information about the compiler.
18209 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
18210 set X $ac_compile
18211 ac_compiler=$2
18212 for ac_option in --version -v -V -qversion; do
18213 { { ac_try="$ac_compiler $ac_option >&5"
18214 case "(($ac_try" in
18215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18216 *) ac_try_echo=$ac_try;;
18217 esac
18218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18219 $as_echo "$ac_try_echo"; } >&5
18220 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18221 ac_status=$?
18222 if test -s conftest.err; then
18223 sed '10a\
18224 ... rest of stderr output deleted ...
18225 10q' conftest.err >conftest.er1
18226 cat conftest.er1 >&5
18227 fi
18228 rm -f conftest.er1 conftest.err
18229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18230 test $ac_status = 0; }
18231 done
18232
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
18234 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
18235 if ${ac_cv_c_compiler_gnu+:} false; then :
18236 $as_echo_n "(cached) " >&6
18237 else
18238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18239 /* end confdefs.h. */
18240
18241 int
18242 main ()
18243 {
18244 #ifndef __GNUC__
18245 choke me
18246 #endif
18247
18248 ;
18249 return 0;
18250 }
18251 _ACEOF
18252 if ac_fn_c_try_compile "$LINENO"; then :
18253 ac_compiler_gnu=yes
18254 else
18255 ac_compiler_gnu=no
18256 fi
18257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18258 ac_cv_c_compiler_gnu=$ac_compiler_gnu
18259
18260 fi
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
18262 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
18263 if test $ac_compiler_gnu = yes; then
18264 GCC=yes
18265 else
18266 GCC=
18267 fi
18268 ac_test_CFLAGS=${CFLAGS+set}
18269 ac_save_CFLAGS=$CFLAGS
18270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
18271 $as_echo_n "checking whether $CC accepts -g... " >&6; }
18272 if ${ac_cv_prog_cc_g+:} false; then :
18273 $as_echo_n "(cached) " >&6
18274 else
18275 ac_save_c_werror_flag=$ac_c_werror_flag
18276 ac_c_werror_flag=yes
18277 ac_cv_prog_cc_g=no
18278 CFLAGS="-g"
18279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18280 /* end confdefs.h. */
18281
18282 int
18283 main ()
18284 {
18285
18286 ;
18287 return 0;
18288 }
18289 _ACEOF
18290 if ac_fn_c_try_compile "$LINENO"; then :
18291 ac_cv_prog_cc_g=yes
18292 else
18293 CFLAGS=""
18294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18295 /* end confdefs.h. */
18296
18297 int
18298 main ()
18299 {
18300
18301 ;
18302 return 0;
18303 }
18304 _ACEOF
18305 if ac_fn_c_try_compile "$LINENO"; then :
18306
18307 else
18308 ac_c_werror_flag=$ac_save_c_werror_flag
18309 CFLAGS="-g"
18310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18311 /* end confdefs.h. */
18312
18313 int
18314 main ()
18315 {
18316
18317 ;
18318 return 0;
18319 }
18320 _ACEOF
18321 if ac_fn_c_try_compile "$LINENO"; then :
18322 ac_cv_prog_cc_g=yes
18323 fi
18324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18325 fi
18326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18327 fi
18328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18329 ac_c_werror_flag=$ac_save_c_werror_flag
18330 fi
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
18332 $as_echo "$ac_cv_prog_cc_g" >&6; }
18333 if test "$ac_test_CFLAGS" = set; then
18334 CFLAGS=$ac_save_CFLAGS
18335 elif test $ac_cv_prog_cc_g = yes; then
18336 if test "$GCC" = yes; then
18337 CFLAGS="-g -O2"
18338 else
18339 CFLAGS="-g"
18340 fi
18341 else
18342 if test "$GCC" = yes; then
18343 CFLAGS="-O2"
18344 else
18345 CFLAGS=
18346 fi
18347 fi
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
18349 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
18350 if ${ac_cv_prog_cc_c89+:} false; then :
18351 $as_echo_n "(cached) " >&6
18352 else
18353 ac_cv_prog_cc_c89=no
18354 ac_save_CC=$CC
18355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18356 /* end confdefs.h. */
18357 #include <stdarg.h>
18358 #include <stdio.h>
18359 struct stat;
18360 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
18361 struct buf { int x; };
18362 FILE * (*rcsopen) (struct buf *, struct stat *, int);
18363 static char *e (p, i)
18364 char **p;
18365 int i;
18366 {
18367 return p[i];
18368 }
18369 static char *f (char * (*g) (char **, int), char **p, ...)
18370 {
18371 char *s;
18372 va_list v;
18373 va_start (v,p);
18374 s = g (p, va_arg (v,int));
18375 va_end (v);
18376 return s;
18377 }
18378
18379 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
18380 function prototypes and stuff, but not '\xHH' hex character constants.
18381 These don't provoke an error unfortunately, instead are silently treated
18382 as 'x'. The following induces an error, until -std is added to get
18383 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
18384 array size at least. It's necessary to write '\x00'==0 to get something
18385 that's true only with -std. */
18386 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
18387
18388 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
18389 inside strings and character constants. */
18390 #define FOO(x) 'x'
18391 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
18392
18393 int test (int i, double x);
18394 struct s1 {int (*f) (int a);};
18395 struct s2 {int (*f) (double a);};
18396 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
18397 int argc;
18398 char **argv;
18399 int
18400 main ()
18401 {
18402 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
18403 ;
18404 return 0;
18405 }
18406 _ACEOF
18407 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
18408 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
18409 do
18410 CC="$ac_save_CC $ac_arg"
18411 if ac_fn_c_try_compile "$LINENO"; then :
18412 ac_cv_prog_cc_c89=$ac_arg
18413 fi
18414 rm -f core conftest.err conftest.$ac_objext
18415 test "x$ac_cv_prog_cc_c89" != "xno" && break
18416 done
18417 rm -f conftest.$ac_ext
18418 CC=$ac_save_CC
18419
18420 fi
18421 # AC_CACHE_VAL
18422 case "x$ac_cv_prog_cc_c89" in
18423 x)
18424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
18425 $as_echo "none needed" >&6; } ;;
18426 xno)
18427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
18428 $as_echo "unsupported" >&6; } ;;
18429 *)
18430 CC="$CC $ac_cv_prog_cc_c89"
18431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
18432 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
18433 esac
18434 if test "x$ac_cv_prog_cc_c89" != xno; then :
18435
18436 fi
18437
18438 ac_ext=c
18439 ac_cpp='$CPP $CPPFLAGS'
18440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18443
18444 ac_ext=c
18445 ac_cpp='$CPP $CPPFLAGS'
18446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
18450 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
18451 if ${am_cv_prog_cc_c_o+:} false; then :
18452 $as_echo_n "(cached) " >&6
18453 else
18454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18455 /* end confdefs.h. */
18456
18457 int
18458 main ()
18459 {
18460
18461 ;
18462 return 0;
18463 }
18464 _ACEOF
18465 # Make sure it works both with $CC and with simple cc.
18466 # Following AC_PROG_CC_C_O, we do the test twice because some
18467 # compilers refuse to overwrite an existing .o file with -o,
18468 # though they will create one.
18469 am_cv_prog_cc_c_o=yes
18470 for am_i in 1 2; do
18471 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
18472 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
18473 ac_status=$?
18474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); } \
18476 && test -f conftest2.$ac_objext; then
18477 : OK
18478 else
18479 am_cv_prog_cc_c_o=no
18480 break
18481 fi
18482 done
18483 rm -f core conftest*
18484 unset am_i
18485 fi
18486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
18487 $as_echo "$am_cv_prog_cc_c_o" >&6; }
18488 if test "$am_cv_prog_cc_c_o" != yes; then
18489 # Losing compiler, so override with the script.
18490 # FIXME: It is wrong to rewrite CC.
18491 # But if we don't then we get into trouble of one sort or another.
18492 # A longer-term fix would be to have automake use am__CC in this case,
18493 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
18494 CC="$am_aux_dir/compile $CC"
18495 fi
18496 ac_ext=c
18497 ac_cpp='$CPP $CPPFLAGS'
18498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18501
18502
18503 depcc="$CC" am_compiler_list=
18504
18505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
18506 $as_echo_n "checking dependency style of $depcc... " >&6; }
18507 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
18508 $as_echo_n "(cached) " >&6
18509 else
18510 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
18511 # We make a subdir and do the tests there. Otherwise we can end up
18512 # making bogus files that we don't know about and never remove. For
18513 # instance it was reported that on HP-UX the gcc test will end up
18514 # making a dummy file named 'D' -- because '-MD' means "put the output
18515 # in D".
18516 rm -rf conftest.dir
18517 mkdir conftest.dir
18518 # Copy depcomp to subdir because otherwise we won't find it if we're
18519 # using a relative directory.
18520 cp "$am_depcomp" conftest.dir
18521 cd conftest.dir
18522 # We will build objects and dependencies in a subdirectory because
18523 # it helps to detect inapplicable dependency modes. For instance
18524 # both Tru64's cc and ICC support -MD to output dependencies as a
18525 # side effect of compilation, but ICC will put the dependencies in
18526 # the current directory while Tru64 will put them in the object
18527 # directory.
18528 mkdir sub
18529
18530 am_cv_CC_dependencies_compiler_type=none
18531 if test "$am_compiler_list" = ""; then
18532 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
18533 fi
18534 am__universal=false
18535 case " $depcc " in #(
18536 *\ -arch\ *\ -arch\ *) am__universal=true ;;
18537 esac
18538
18539 for depmode in $am_compiler_list; do
18540 # Setup a source with many dependencies, because some compilers
18541 # like to wrap large dependency lists on column 80 (with \), and
18542 # we should not choose a depcomp mode which is confused by this.
18543 #
18544 # We need to recreate these files for each test, as the compiler may
18545 # overwrite some of them when testing with obscure command lines.
18546 # This happens at least with the AIX C compiler.
18547 : > sub/conftest.c
18548 for i in 1 2 3 4 5 6; do
18549 echo '#include "conftst'$i'.h"' >> sub/conftest.c
18550 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
18551 # Solaris 10 /bin/sh.
18552 echo '/* dummy */' > sub/conftst$i.h
18553 done
18554 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
18555
18556 # We check with '-c' and '-o' for the sake of the "dashmstdout"
18557 # mode. It turns out that the SunPro C++ compiler does not properly
18558 # handle '-M -o', and we need to detect this. Also, some Intel
18559 # versions had trouble with output in subdirs.
18560 am__obj=sub/conftest.${OBJEXT-o}
18561 am__minus_obj="-o $am__obj"
18562 case $depmode in
18563 gcc)
18564 # This depmode causes a compiler race in universal mode.
18565 test "$am__universal" = false || continue
18566 ;;
18567 nosideeffect)
18568 # After this tag, mechanisms are not by side-effect, so they'll
18569 # only be used when explicitly requested.
18570 if test "x$enable_dependency_tracking" = xyes; then
18571 continue
18572 else
18573 break
18574 fi
18575 ;;
18576 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
18577 # This compiler won't grok '-c -o', but also, the minuso test has
18578 # not run yet. These depmodes are late enough in the game, and
18579 # so weak that their functioning should not be impacted.
18580 am__obj=conftest.${OBJEXT-o}
18581 am__minus_obj=
18582 ;;
18583 none) break ;;
18584 esac
18585 if depmode=$depmode \
18586 source=sub/conftest.c object=$am__obj \
18587 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
18588 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
18589 >/dev/null 2>conftest.err &&
18590 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
18591 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
18592 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
18593 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
18594 # icc doesn't choke on unknown options, it will just issue warnings
18595 # or remarks (even with -Werror). So we grep stderr for any message
18596 # that says an option was ignored or not supported.
18597 # When given -MP, icc 7.0 and 7.1 complain thusly:
18598 # icc: Command line warning: ignoring option '-M'; no argument required
18599 # The diagnosis changed in icc 8.0:
18600 # icc: Command line remark: option '-MP' not supported
18601 if (grep 'ignoring option' conftest.err ||
18602 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
18603 am_cv_CC_dependencies_compiler_type=$depmode
18604 break
18605 fi
18606 fi
18607 done
18608
18609 cd ..
18610 rm -rf conftest.dir
18611 else
18612 am_cv_CC_dependencies_compiler_type=none
18613 fi
18614
18615 fi
18616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
18617 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
18618 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
18619
18620 if
18621 test "x$enable_dependency_tracking" != xno \
18622 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
18623 am__fastdepCC_TRUE=
18624 am__fastdepCC_FALSE='#'
18625 else
18626 am__fastdepCC_TRUE='#'
18627 am__fastdepCC_FALSE=
18628 fi
18629
18630
18631
18632
18633
18634
18635 # Check whether --with-xorg-module-dir was given.
18636 if test "${with_xorg_module_dir+set}" = set; then :
18637 withval=$with_xorg_module_dir; moduledir="$withval"
18638 else
18639 moduledir="$libdir/xorg/modules"
18640 fi
18641
18642
18643 # Checks for extensions
18644
18645
18646 SAVE_CFLAGS="$CFLAGS"
18647 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18649 /* end confdefs.h. */
18650
18651 #include "xorg-server.h"
18652 #if !defined RANDR
18653 #error RANDR not defined
18654 #endif
18655
18656 int
18657 main ()
18658 {
18659
18660 ;
18661 return 0;
18662 }
18663 _ACEOF
18664 if ac_fn_c_try_compile "$LINENO"; then :
18665 _EXT_CHECK=yes
18666 else
18667 _EXT_CHECK=no
18668 fi
18669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18670 CFLAGS="$SAVE_CFLAGS"
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
18672 $as_echo_n "checking if RANDR is defined... " >&6; }
18673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18674 $as_echo "$_EXT_CHECK" >&6; }
18675 if test "$_EXT_CHECK" != no; then
18676 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
18677 fi
18678
18679
18680
18681 SAVE_CFLAGS="$CFLAGS"
18682 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18684 /* end confdefs.h. */
18685
18686 #include "xorg-server.h"
18687 #if !defined RENDER
18688 #error RENDER not defined
18689 #endif
18690
18691 int
18692 main ()
18693 {
18694
18695 ;
18696 return 0;
18697 }
18698 _ACEOF
18699 if ac_fn_c_try_compile "$LINENO"; then :
18700 _EXT_CHECK=yes
18701 else
18702 _EXT_CHECK=no
18703 fi
18704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18705 CFLAGS="$SAVE_CFLAGS"
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
18707 $as_echo_n "checking if RENDER is defined... " >&6; }
18708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18709 $as_echo "$_EXT_CHECK" >&6; }
18710 if test "$_EXT_CHECK" != no; then
18711 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
18712 fi
18713
18714
18715
18716 SAVE_CFLAGS="$CFLAGS"
18717 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18719 /* end confdefs.h. */
18720
18721 #include "xorg-server.h"
18722 #if !defined XV
18723 #error XV not defined
18724 #endif
18725
18726 int
18727 main ()
18728 {
18729
18730 ;
18731 return 0;
18732 }
18733 _ACEOF
18734 if ac_fn_c_try_compile "$LINENO"; then :
18735 _EXT_CHECK=yes
18736 else
18737 _EXT_CHECK=no
18738 fi
18739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18740 CFLAGS="$SAVE_CFLAGS"
18741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
18742 $as_echo_n "checking if XV is defined... " >&6; }
18743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18744 $as_echo "$_EXT_CHECK" >&6; }
18745 if test "$_EXT_CHECK" != no; then
18746 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
18747 fi
18748
18749
18750
18751 SAVE_CFLAGS="$CFLAGS"
18752 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18754 /* end confdefs.h. */
18755
18756 #include "xorg-server.h"
18757 #if !defined DPMSExtension
18758 #error DPMSExtension not defined
18759 #endif
18760
18761 int
18762 main ()
18763 {
18764
18765 ;
18766 return 0;
18767 }
18768 _ACEOF
18769 if ac_fn_c_try_compile "$LINENO"; then :
18770 _EXT_CHECK=yes
18771 else
18772 _EXT_CHECK=no
18773 fi
18774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18775 CFLAGS="$SAVE_CFLAGS"
18776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
18777 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
18778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18779 $as_echo "$_EXT_CHECK" >&6; }
18780 if test "$_EXT_CHECK" != no; then
18781 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
18782 fi
18783
18784
18785
18786 SAVE_CFLAGS="$CFLAGS"
18787 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18789 /* end confdefs.h. */
18790
18791 #include "xorg-server.h"
18792 #if !defined DRI2
18793 #error DRI2 not defined
18794 #endif
18795
18796 int
18797 main ()
18798 {
18799
18800 ;
18801 return 0;
18802 }
18803 _ACEOF
18804 if ac_fn_c_try_compile "$LINENO"; then :
18805 _EXT_CHECK=yes
18806 else
18807 _EXT_CHECK=no
18808 fi
18809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18810 CFLAGS="$SAVE_CFLAGS"
18811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DRI2 is defined" >&5
18812 $as_echo_n "checking if DRI2 is defined... " >&6; }
18813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18814 $as_echo "$_EXT_CHECK" >&6; }
18815 if test "$_EXT_CHECK" != no; then
18816 REQUIRED_MODULES="$REQUIRED_MODULES dri2proto >= 2.6"
18817 fi
18818
18819
18820 # Checks for pkg-config packages
18821
18822 pkg_failed=no
18823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5
18824 $as_echo_n "checking for LIBDRM... " >&6; }
18825
18826 if test -n "$LIBDRM_CFLAGS"; then
18827 pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
18828 elif test -n "$PKG_CONFIG"; then
18829 if test -n "$PKG_CONFIG" && \
18830 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.17\""; } >&5
18831 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.17") 2>&5
18832 ac_status=$?
18833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18834 test $ac_status = 0; }; then
18835 pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.17" 2>/dev/null`
18836 test "x$?" != "x0" && pkg_failed=yes
18837 else
18838 pkg_failed=yes
18839 fi
18840 else
18841 pkg_failed=untried
18842 fi
18843 if test -n "$LIBDRM_LIBS"; then
18844 pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
18845 elif test -n "$PKG_CONFIG"; then
18846 if test -n "$PKG_CONFIG" && \
18847 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.17\""; } >&5
18848 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.17") 2>&5
18849 ac_status=$?
18850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18851 test $ac_status = 0; }; then
18852 pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.17" 2>/dev/null`
18853 test "x$?" != "x0" && pkg_failed=yes
18854 else
18855 pkg_failed=yes
18856 fi
18857 else
18858 pkg_failed=untried
18859 fi
18860
18861
18862
18863 if test $pkg_failed = yes; then
18864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18865 $as_echo "no" >&6; }
18866
18867 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18868 _pkg_short_errors_supported=yes
18869 else
18870 _pkg_short_errors_supported=no
18871 fi
18872 if test $_pkg_short_errors_supported = yes; then
18873 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.4.17" 2>&1`
18874 else
18875 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.4.17" 2>&1`
18876 fi
18877 # Put the nasty error message in config.log where it belongs
18878 echo "$LIBDRM_PKG_ERRORS" >&5
18879
18880 as_fn_error $? "Package requirements (libdrm >= 2.4.17) were not met:
18881
18882 $LIBDRM_PKG_ERRORS
18883
18884 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18885 installed software in a non-standard prefix.
18886
18887 Alternatively, you may set the environment variables LIBDRM_CFLAGS
18888 and LIBDRM_LIBS to avoid the need to call pkg-config.
18889 See the pkg-config man page for more details." "$LINENO" 5
18890 elif test $pkg_failed = untried; then
18891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18892 $as_echo "no" >&6; }
18893 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18895 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18896 is in your PATH or set the PKG_CONFIG environment variable to the full
18897 path to pkg-config.
18898
18899 Alternatively, you may set the environment variables LIBDRM_CFLAGS
18900 and LIBDRM_LIBS to avoid the need to call pkg-config.
18901 See the pkg-config man page for more details.
18902
18903 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18904 See \`config.log' for more details" "$LINENO" 5; }
18905 else
18906 LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
18907 LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18909 $as_echo "yes" >&6; }
18910
18911 fi
18912
18913 pkg_failed=no
18914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM_NOUVEAU" >&5
18915 $as_echo_n "checking for LIBDRM_NOUVEAU... " >&6; }
18916
18917 if test -n "$LIBDRM_NOUVEAU_CFLAGS"; then
18918 pkg_cv_LIBDRM_NOUVEAU_CFLAGS="$LIBDRM_NOUVEAU_CFLAGS"
18919 elif test -n "$PKG_CONFIG"; then
18920 if test -n "$PKG_CONFIG" && \
18921 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_nouveau >= 2.4.25\""; } >&5
18922 ($PKG_CONFIG --exists --print-errors "libdrm_nouveau >= 2.4.25") 2>&5
18923 ac_status=$?
18924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18925 test $ac_status = 0; }; then
18926 pkg_cv_LIBDRM_NOUVEAU_CFLAGS=`$PKG_CONFIG --cflags "libdrm_nouveau >= 2.4.25" 2>/dev/null`
18927 test "x$?" != "x0" && pkg_failed=yes
18928 else
18929 pkg_failed=yes
18930 fi
18931 else
18932 pkg_failed=untried
18933 fi
18934 if test -n "$LIBDRM_NOUVEAU_LIBS"; then
18935 pkg_cv_LIBDRM_NOUVEAU_LIBS="$LIBDRM_NOUVEAU_LIBS"
18936 elif test -n "$PKG_CONFIG"; then
18937 if test -n "$PKG_CONFIG" && \
18938 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_nouveau >= 2.4.25\""; } >&5
18939 ($PKG_CONFIG --exists --print-errors "libdrm_nouveau >= 2.4.25") 2>&5
18940 ac_status=$?
18941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18942 test $ac_status = 0; }; then
18943 pkg_cv_LIBDRM_NOUVEAU_LIBS=`$PKG_CONFIG --libs "libdrm_nouveau >= 2.4.25" 2>/dev/null`
18944 test "x$?" != "x0" && pkg_failed=yes
18945 else
18946 pkg_failed=yes
18947 fi
18948 else
18949 pkg_failed=untried
18950 fi
18951
18952
18953
18954 if test $pkg_failed = yes; then
18955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18956 $as_echo "no" >&6; }
18957
18958 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18959 _pkg_short_errors_supported=yes
18960 else
18961 _pkg_short_errors_supported=no
18962 fi
18963 if test $_pkg_short_errors_supported = yes; then
18964 LIBDRM_NOUVEAU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_nouveau >= 2.4.25" 2>&1`
18965 else
18966 LIBDRM_NOUVEAU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_nouveau >= 2.4.25" 2>&1`
18967 fi
18968 # Put the nasty error message in config.log where it belongs
18969 echo "$LIBDRM_NOUVEAU_PKG_ERRORS" >&5
18970
18971 as_fn_error $? "Package requirements (libdrm_nouveau >= 2.4.25) were not met:
18972
18973 $LIBDRM_NOUVEAU_PKG_ERRORS
18974
18975 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18976 installed software in a non-standard prefix.
18977
18978 Alternatively, you may set the environment variables LIBDRM_NOUVEAU_CFLAGS
18979 and LIBDRM_NOUVEAU_LIBS to avoid the need to call pkg-config.
18980 See the pkg-config man page for more details." "$LINENO" 5
18981 elif test $pkg_failed = untried; then
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18983 $as_echo "no" >&6; }
18984 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18986 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18987 is in your PATH or set the PKG_CONFIG environment variable to the full
18988 path to pkg-config.
18989
18990 Alternatively, you may set the environment variables LIBDRM_NOUVEAU_CFLAGS
18991 and LIBDRM_NOUVEAU_LIBS to avoid the need to call pkg-config.
18992 See the pkg-config man page for more details.
18993
18994 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18995 See \`config.log' for more details" "$LINENO" 5; }
18996 else
18997 LIBDRM_NOUVEAU_CFLAGS=$pkg_cv_LIBDRM_NOUVEAU_CFLAGS
18998 LIBDRM_NOUVEAU_LIBS=$pkg_cv_LIBDRM_NOUVEAU_LIBS
18999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19000 $as_echo "yes" >&6; }
19001
19002 fi
19003
19004
19005
19006
19007 pkg_failed=no
19008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
19009 $as_echo_n "checking for XORG... " >&6; }
19010
19011 if test -n "$XORG_CFLAGS"; then
19012 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
19013 elif test -n "$PKG_CONFIG"; then
19014 if test -n "$PKG_CONFIG" && \
19015 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.8 xproto fontsproto libdrm \$REQUIRED_MODULES\""; } >&5
19016 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.8 xproto fontsproto libdrm $REQUIRED_MODULES") 2>&5
19017 ac_status=$?
19018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19019 test $ac_status = 0; }; then
19020 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.8 xproto fontsproto libdrm $REQUIRED_MODULES" 2>/dev/null`
19021 test "x$?" != "x0" && pkg_failed=yes
19022 else
19023 pkg_failed=yes
19024 fi
19025 else
19026 pkg_failed=untried
19027 fi
19028 if test -n "$XORG_LIBS"; then
19029 pkg_cv_XORG_LIBS="$XORG_LIBS"
19030 elif test -n "$PKG_CONFIG"; then
19031 if test -n "$PKG_CONFIG" && \
19032 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.8 xproto fontsproto libdrm \$REQUIRED_MODULES\""; } >&5
19033 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.8 xproto fontsproto libdrm $REQUIRED_MODULES") 2>&5
19034 ac_status=$?
19035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19036 test $ac_status = 0; }; then
19037 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.8 xproto fontsproto libdrm $REQUIRED_MODULES" 2>/dev/null`
19038 test "x$?" != "x0" && pkg_failed=yes
19039 else
19040 pkg_failed=yes
19041 fi
19042 else
19043 pkg_failed=untried
19044 fi
19045
19046
19047
19048 if test $pkg_failed = yes; then
19049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19050 $as_echo "no" >&6; }
19051
19052 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19053 _pkg_short_errors_supported=yes
19054 else
19055 _pkg_short_errors_supported=no
19056 fi
19057 if test $_pkg_short_errors_supported = yes; then
19058 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.8 xproto fontsproto libdrm $REQUIRED_MODULES" 2>&1`
19059 else
19060 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.8 xproto fontsproto libdrm $REQUIRED_MODULES" 2>&1`
19061 fi
19062 # Put the nasty error message in config.log where it belongs
19063 echo "$XORG_PKG_ERRORS" >&5
19064
19065 as_fn_error $? "Package requirements (xorg-server >= 1.8 xproto fontsproto libdrm $REQUIRED_MODULES) were not met:
19066
19067 $XORG_PKG_ERRORS
19068
19069 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19070 installed software in a non-standard prefix.
19071
19072 Alternatively, you may set the environment variables XORG_CFLAGS
19073 and XORG_LIBS to avoid the need to call pkg-config.
19074 See the pkg-config man page for more details." "$LINENO" 5
19075 elif test $pkg_failed = untried; then
19076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19077 $as_echo "no" >&6; }
19078 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19080 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19081 is in your PATH or set the PKG_CONFIG environment variable to the full
19082 path to pkg-config.
19083
19084 Alternatively, you may set the environment variables XORG_CFLAGS
19085 and XORG_LIBS to avoid the need to call pkg-config.
19086 See the pkg-config man page for more details.
19087
19088 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19089 See \`config.log' for more details" "$LINENO" 5; }
19090 else
19091 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
19092 XORG_LIBS=$pkg_cv_XORG_LIBS
19093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19094 $as_echo "yes" >&6; }
19095
19096 fi
19097
19098 pkg_failed=no
19099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
19100 $as_echo_n "checking for XEXT... " >&6; }
19101
19102 if test -n "$XEXT_CFLAGS"; then
19103 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
19104 elif test -n "$PKG_CONFIG"; then
19105 if test -n "$PKG_CONFIG" && \
19106 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
19107 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
19108 ac_status=$?
19109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19110 test $ac_status = 0; }; then
19111 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
19112 test "x$?" != "x0" && pkg_failed=yes
19113 else
19114 pkg_failed=yes
19115 fi
19116 else
19117 pkg_failed=untried
19118 fi
19119 if test -n "$XEXT_LIBS"; then
19120 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
19121 elif test -n "$PKG_CONFIG"; then
19122 if test -n "$PKG_CONFIG" && \
19123 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
19124 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
19125 ac_status=$?
19126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19127 test $ac_status = 0; }; then
19128 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
19129 test "x$?" != "x0" && pkg_failed=yes
19130 else
19131 pkg_failed=yes
19132 fi
19133 else
19134 pkg_failed=untried
19135 fi
19136
19137
19138
19139 if test $pkg_failed = yes; then
19140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19141 $as_echo "no" >&6; }
19142
19143 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19144 _pkg_short_errors_supported=yes
19145 else
19146 _pkg_short_errors_supported=no
19147 fi
19148 if test $_pkg_short_errors_supported = yes; then
19149 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
19150 else
19151 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
19152 fi
19153 # Put the nasty error message in config.log where it belongs
19154 echo "$XEXT_PKG_ERRORS" >&5
19155
19156 HAVE_XEXTPROTO_71="no"
19157 elif test $pkg_failed = untried; then
19158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19159 $as_echo "no" >&6; }
19160 HAVE_XEXTPROTO_71="no"
19161 else
19162 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
19163 XEXT_LIBS=$pkg_cv_XEXT_LIBS
19164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19165 $as_echo "yes" >&6; }
19166 HAVE_XEXTPROTO_71="yes";
19167 $as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
19168
19169 fi
19170 if test "$HAVE_XEXTPROTO_71" = "yes" ; then
19171 HAVE_XEXTPROTO_71_TRUE=
19172 HAVE_XEXTPROTO_71_FALSE='#'
19173 else
19174 HAVE_XEXTPROTO_71_TRUE='#'
19175 HAVE_XEXTPROTO_71_FALSE=
19176 fi
19177
19178 sdkdir=$(pkg-config --variable=sdkdir xorg-server)
19179
19180 # Checks for libraries.
19181
19182 pkg_failed=no
19183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
19184 $as_echo_n "checking for PCIACCESS... " >&6; }
19185
19186 if test -n "$PCIACCESS_CFLAGS"; then
19187 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
19188 elif test -n "$PKG_CONFIG"; then
19189 if test -n "$PKG_CONFIG" && \
19190 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5
19191 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
19192 ac_status=$?
19193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19194 test $ac_status = 0; }; then
19195 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.10" 2>/dev/null`
19196 test "x$?" != "x0" && pkg_failed=yes
19197 else
19198 pkg_failed=yes
19199 fi
19200 else
19201 pkg_failed=untried
19202 fi
19203 if test -n "$PCIACCESS_LIBS"; then
19204 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
19205 elif test -n "$PKG_CONFIG"; then
19206 if test -n "$PKG_CONFIG" && \
19207 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5
19208 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
19209 ac_status=$?
19210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19211 test $ac_status = 0; }; then
19212 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.10" 2>/dev/null`
19213 test "x$?" != "x0" && pkg_failed=yes
19214 else
19215 pkg_failed=yes
19216 fi
19217 else
19218 pkg_failed=untried
19219 fi
19220
19221
19222
19223 if test $pkg_failed = yes; then
19224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19225 $as_echo "no" >&6; }
19226
19227 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19228 _pkg_short_errors_supported=yes
19229 else
19230 _pkg_short_errors_supported=no
19231 fi
19232 if test $_pkg_short_errors_supported = yes; then
19233 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1`
19234 else
19235 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1`
19236 fi
19237 # Put the nasty error message in config.log where it belongs
19238 echo "$PCIACCESS_PKG_ERRORS" >&5
19239
19240 as_fn_error $? "Package requirements (pciaccess >= 0.10) were not met:
19241
19242 $PCIACCESS_PKG_ERRORS
19243
19244 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19245 installed software in a non-standard prefix.
19246
19247 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19248 and PCIACCESS_LIBS to avoid the need to call pkg-config.
19249 See the pkg-config man page for more details." "$LINENO" 5
19250 elif test $pkg_failed = untried; then
19251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19252 $as_echo "no" >&6; }
19253 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19255 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19256 is in your PATH or set the PKG_CONFIG environment variable to the full
19257 path to pkg-config.
19258
19259 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19260 and PCIACCESS_LIBS to avoid the need to call pkg-config.
19261 See the pkg-config man page for more details.
19262
19263 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19264 See \`config.log' for more details" "$LINENO" 5; }
19265 else
19266 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
19267 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
19268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19269 $as_echo "yes" >&6; }
19270
19271 fi
19272
19273
19274 pkg_failed=no
19275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUDEV" >&5
19276 $as_echo_n "checking for LIBUDEV... " >&6; }
19277
19278 if test -n "$LIBUDEV_CFLAGS"; then
19279 pkg_cv_LIBUDEV_CFLAGS="$LIBUDEV_CFLAGS"
19280 elif test -n "$PKG_CONFIG"; then
19281 if test -n "$PKG_CONFIG" && \
19282 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
19283 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
19284 ac_status=$?
19285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19286 test $ac_status = 0; }; then
19287 pkg_cv_LIBUDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null`
19288 test "x$?" != "x0" && pkg_failed=yes
19289 else
19290 pkg_failed=yes
19291 fi
19292 else
19293 pkg_failed=untried
19294 fi
19295 if test -n "$LIBUDEV_LIBS"; then
19296 pkg_cv_LIBUDEV_LIBS="$LIBUDEV_LIBS"
19297 elif test -n "$PKG_CONFIG"; then
19298 if test -n "$PKG_CONFIG" && \
19299 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
19300 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
19301 ac_status=$?
19302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19303 test $ac_status = 0; }; then
19304 pkg_cv_LIBUDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null`
19305 test "x$?" != "x0" && pkg_failed=yes
19306 else
19307 pkg_failed=yes
19308 fi
19309 else
19310 pkg_failed=untried
19311 fi
19312
19313
19314
19315 if test $pkg_failed = yes; then
19316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19317 $as_echo "no" >&6; }
19318
19319 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19320 _pkg_short_errors_supported=yes
19321 else
19322 _pkg_short_errors_supported=no
19323 fi
19324 if test $_pkg_short_errors_supported = yes; then
19325 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1`
19326 else
19327 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1`
19328 fi
19329 # Put the nasty error message in config.log where it belongs
19330 echo "$LIBUDEV_PKG_ERRORS" >&5
19331
19332 LIBUDEV=no
19333 elif test $pkg_failed = untried; then
19334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19335 $as_echo "no" >&6; }
19336 LIBUDEV=no
19337 else
19338 LIBUDEV_CFLAGS=$pkg_cv_LIBUDEV_CFLAGS
19339 LIBUDEV_LIBS=$pkg_cv_LIBUDEV_LIBS
19340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19341 $as_echo "yes" >&6; }
19342 LIBUDEV=yes
19343 fi
19344 if test "x$LIBUDEV" = xyes; then
19345
19346 $as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h
19347
19348 fi
19349 if test "x$LIBUDEV" = "xyes" ; then
19350 LIBUDEV_TRUE=
19351 LIBUDEV_FALSE='#'
19352 else
19353 LIBUDEV_TRUE='#'
19354 LIBUDEV_FALSE=
19355 fi
19356
19357
19358
19359
19360 # Checks for header files.
19361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19362 $as_echo_n "checking for ANSI C header files... " >&6; }
19363 if ${ac_cv_header_stdc+:} false; then :
19364 $as_echo_n "(cached) " >&6
19365 else
19366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19367 /* end confdefs.h. */
19368 #include <stdlib.h>
19369 #include <stdarg.h>
19370 #include <string.h>
19371 #include <float.h>
19372
19373 int
19374 main ()
19375 {
19376
19377 ;
19378 return 0;
19379 }
19380 _ACEOF
19381 if ac_fn_c_try_compile "$LINENO"; then :
19382 ac_cv_header_stdc=yes
19383 else
19384 ac_cv_header_stdc=no
19385 fi
19386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19387
19388 if test $ac_cv_header_stdc = yes; then
19389 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19391 /* end confdefs.h. */
19392 #include <string.h>
19393
19394 _ACEOF
19395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19396 $EGREP "memchr" >/dev/null 2>&1; then :
19397
19398 else
19399 ac_cv_header_stdc=no
19400 fi
19401 rm -f conftest*
19402
19403 fi
19404
19405 if test $ac_cv_header_stdc = yes; then
19406 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19408 /* end confdefs.h. */
19409 #include <stdlib.h>
19410
19411 _ACEOF
19412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19413 $EGREP "free" >/dev/null 2>&1; then :
19414
19415 else
19416 ac_cv_header_stdc=no
19417 fi
19418 rm -f conftest*
19419
19420 fi
19421
19422 if test $ac_cv_header_stdc = yes; then
19423 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19424 if test "$cross_compiling" = yes; then :
19425 :
19426 else
19427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19428 /* end confdefs.h. */
19429 #include <ctype.h>
19430 #include <stdlib.h>
19431 #if ((' ' & 0x0FF) == 0x020)
19432 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19433 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19434 #else
19435 # define ISLOWER(c) \
19436 (('a' <= (c) && (c) <= 'i') \
19437 || ('j' <= (c) && (c) <= 'r') \
19438 || ('s' <= (c) && (c) <= 'z'))
19439 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19440 #endif
19441
19442 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19443 int
19444 main ()
19445 {
19446 int i;
19447 for (i = 0; i < 256; i++)
19448 if (XOR (islower (i), ISLOWER (i))
19449 || toupper (i) != TOUPPER (i))
19450 return 2;
19451 return 0;
19452 }
19453 _ACEOF
19454 if ac_fn_c_try_run "$LINENO"; then :
19455
19456 else
19457 ac_cv_header_stdc=no
19458 fi
19459 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19460 conftest.$ac_objext conftest.beam conftest.$ac_ext
19461 fi
19462
19463 fi
19464 fi
19465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
19466 $as_echo "$ac_cv_header_stdc" >&6; }
19467 if test $ac_cv_header_stdc = yes; then
19468
19469 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
19470
19471 fi
19472
19473
19474 # Use -Wall all the time
19475 CFLAGS="$CFLAGS -Wall"
19476
19477 # Check for -minline-all-stringops availabtility
19478 OLD_CFLAGS="$CFLAGS"
19479 CFLAGS="$CFLAGS -minline-all-stringops"
19480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19481 /* end confdefs.h. */
19482 #include <stdio.h>
19483 int
19484 main ()
19485 {
19486
19487 ;
19488 return 0;
19489 }
19490 _ACEOF
19491 if ac_fn_c_try_compile "$LINENO"; then :
19492 CFLAGS="$OLD_CFLAGS -minline-all-stringops"
19493 else
19494 CFLAGS="$OLD_CFLAGS"
19495 fi
19496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19497
19498 # needed for the next test
19499 CFLAGS="$CFLAGS $XORG_CFLAGS"
19500
19501
19502
19503
19504 DRIVER_NAME=nouveau
19505
19506
19507
19508
19509
19510
19511 if test x$APP_MAN_SUFFIX = x ; then
19512 APP_MAN_SUFFIX=1
19513 fi
19514 if test x$APP_MAN_DIR = x ; then
19515 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19516 fi
19517
19518 if test x$LIB_MAN_SUFFIX = x ; then
19519 LIB_MAN_SUFFIX=3
19520 fi
19521 if test x$LIB_MAN_DIR = x ; then
19522 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19523 fi
19524
19525 if test x$FILE_MAN_SUFFIX = x ; then
19526 case $host_os in
19527 solaris*) FILE_MAN_SUFFIX=4 ;;
19528 *) FILE_MAN_SUFFIX=5 ;;
19529 esac
19530 fi
19531 if test x$FILE_MAN_DIR = x ; then
19532 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19533 fi
19534
19535 if test x$MISC_MAN_SUFFIX = x ; then
19536 case $host_os in
19537 solaris*) MISC_MAN_SUFFIX=5 ;;
19538 *) MISC_MAN_SUFFIX=7 ;;
19539 esac
19540 fi
19541 if test x$MISC_MAN_DIR = x ; then
19542 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19543 fi
19544
19545 if test x$DRIVER_MAN_SUFFIX = x ; then
19546 case $host_os in
19547 solaris*) DRIVER_MAN_SUFFIX=7 ;;
19548 *) DRIVER_MAN_SUFFIX=4 ;;
19549 esac
19550 fi
19551 if test x$DRIVER_MAN_DIR = x ; then
19552 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19553 fi
19554
19555 if test x$ADMIN_MAN_SUFFIX = x ; then
19556 case $host_os in
19557 solaris*) ADMIN_MAN_SUFFIX=1m ;;
19558 *) ADMIN_MAN_SUFFIX=8 ;;
19559 esac
19560 fi
19561 if test x$ADMIN_MAN_DIR = x ; then
19562 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19563 fi
19564
19565
19566
19567
19568
19569
19570
19571
19572
19573
19574
19575
19576
19577
19578
19579 XORG_MAN_PAGE="X Version 11"
19580
19581 MAN_SUBSTS="\
19582 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19583 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19584 -e 's|__xservername__|Xorg|g' \
19585 -e 's|__xconfigfile__|xorg.conf|g' \
19586 -e 's|__projectroot__|\$(prefix)|g' \
19587 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
19588 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19589 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19590 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19591 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19592 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19593 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19594
19595
19596
19597
19598
19599 cat >>confdefs.h <<_ACEOF
19600 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19601 _ACEOF
19602
19603 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19604 if test "x$PVM" = "x"; then
19605 PVM="0"
19606 fi
19607
19608 cat >>confdefs.h <<_ACEOF
19609 #define PACKAGE_VERSION_MINOR $PVM
19610 _ACEOF
19611
19612 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19613 if test "x$PVP" = "x"; then
19614 PVP="0"
19615 fi
19616
19617 cat >>confdefs.h <<_ACEOF
19618 #define PACKAGE_VERSION_PATCHLEVEL $PVP
19619 _ACEOF
19620
19621
19622
19623 for ac_header in list.h
19624 do :
19625 ac_fn_c_check_header_compile "$LINENO" "list.h" "ac_cv_header_list_h" "#include <X11/Xdefs.h>
19626 #include \"xorg-server.h\"
19627 "
19628 if test "x$ac_cv_header_list_h" = xyes; then :
19629 cat >>confdefs.h <<_ACEOF
19630 #define HAVE_LIST_H 1
19631 _ACEOF
19632 have_list_h="yes"
19633 else
19634 have_list_h="no"
19635 fi
19636
19637 done
19638
19639
19640 if test "x$have_list_h" = xyes; then
19641 ac_fn_c_check_decl "$LINENO" "xorg_list_init" "ac_cv_have_decl_xorg_list_init" "#include <X11/Xdefs.h>
19642 #include \"xorg-server.h\"
19643 #include \"list.h\"
19644 "
19645 if test "x$ac_cv_have_decl_xorg_list_init" = xyes; then :
19646
19647 $as_echo "#define HAVE_XORG_LIST 1" >>confdefs.h
19648
19649 fi
19650
19651 fi
19652
19653 for ac_header in glamor.h
19654 do :
19655 ac_fn_c_check_header_compile "$LINENO" "glamor.h" "ac_cv_header_glamor_h" "#include \"xorg-server.h\"
19656 "
19657 if test "x$ac_cv_header_glamor_h" = xyes; then :
19658 cat >>confdefs.h <<_ACEOF
19659 #define HAVE_GLAMOR_H 1
19660 _ACEOF
19661 found_glamor_header=yes
19662 else
19663 found_glamor_header=no
19664 fi
19665
19666 done
19667
19668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include GLAMOR support" >&5
19669 $as_echo_n "checking whether to include GLAMOR support... " >&6; }
19670 if test "x$found_glamor_header" = xyes && pkg-config --exists "xorg-server >= 1.15.99.901"
19671 then
19672
19673 $as_echo "#define HAVE_GLAMOR 1" >>confdefs.h
19674
19675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19676 $as_echo "yes" >&6; }
19677 else
19678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19679 $as_echo "no" >&6; }
19680 fi
19681
19682 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
19683
19684 cat >confcache <<\_ACEOF
19685 # This file is a shell script that caches the results of configure
19686 # tests run on this system so they can be shared between configure
19687 # scripts and configure runs, see configure's option --config-cache.
19688 # It is not useful on other systems. If it contains results you don't
19689 # want to keep, you may remove or edit it.
19690 #
19691 # config.status only pays attention to the cache file if you give it
19692 # the --recheck option to rerun configure.
19693 #
19694 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19695 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19696 # following values.
19697
19698 _ACEOF
19699
19700 # The following way of writing the cache mishandles newlines in values,
19701 # but we know of no workaround that is simple, portable, and efficient.
19702 # So, we kill variables containing newlines.
19703 # Ultrix sh set writes to stderr and can't be redirected directly,
19704 # and sets the high bit in the cache file unless we assign to the vars.
19705 (
19706 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19707 eval ac_val=\$$ac_var
19708 case $ac_val in #(
19709 *${as_nl}*)
19710 case $ac_var in #(
19711 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19712 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19713 esac
19714 case $ac_var in #(
19715 _ | IFS | as_nl) ;; #(
19716 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19717 *) { eval $ac_var=; unset $ac_var;} ;;
19718 esac ;;
19719 esac
19720 done
19721
19722 (set) 2>&1 |
19723 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19724 *${as_nl}ac_space=\ *)
19725 # `set' does not quote correctly, so add quotes: double-quote
19726 # substitution turns \\\\ into \\, and sed turns \\ into \.
19727 sed -n \
19728 "s/'/'\\\\''/g;
19729 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19730 ;; #(
19731 *)
19732 # `set' quotes correctly as required by POSIX, so do not add quotes.
19733 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19734 ;;
19735 esac |
19736 sort
19737 ) |
19738 sed '
19739 /^ac_cv_env_/b end
19740 t clear
19741 :clear
19742 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19743 t end
19744 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19745 :end' >>confcache
19746 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19747 if test -w "$cache_file"; then
19748 if test "x$cache_file" != "x/dev/null"; then
19749 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19750 $as_echo "$as_me: updating cache $cache_file" >&6;}
19751 if test ! -f "$cache_file" || test -h "$cache_file"; then
19752 cat confcache >"$cache_file"
19753 else
19754 case $cache_file in #(
19755 */* | ?:*)
19756 mv -f confcache "$cache_file"$$ &&
19757 mv -f "$cache_file"$$ "$cache_file" ;; #(
19758 *)
19759 mv -f confcache "$cache_file" ;;
19760 esac
19761 fi
19762 fi
19763 else
19764 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19765 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19766 fi
19767 fi
19768 rm -f confcache
19769
19770 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19771 # Let make expand exec_prefix.
19772 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19773
19774 DEFS=-DHAVE_CONFIG_H
19775
19776 ac_libobjs=
19777 ac_ltlibobjs=
19778 U=
19779 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19780 # 1. Remove the extension, and $U if already installed.
19781 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19782 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19783 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19784 # will be set to the directory where LIBOBJS objects are built.
19785 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19786 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19787 done
19788 LIBOBJS=$ac_libobjs
19789
19790 LTLIBOBJS=$ac_ltlibobjs
19791
19792
19793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19794 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19795 if test -n "$am_sleep_pid"; then
19796 # Hide warnings about reused PIDs.
19797 wait $am_sleep_pid 2>/dev/null
19798 fi
19799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19800 $as_echo "done" >&6; }
19801 if test -n "$EXEEXT"; then
19802 am__EXEEXT_TRUE=
19803 am__EXEEXT_FALSE='#'
19804 else
19805 am__EXEEXT_TRUE='#'
19806 am__EXEEXT_FALSE=
19807 fi
19808
19809 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19810 as_fn_error $? "conditional \"AMDEP\" was never defined.
19811 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19812 fi
19813 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19814 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19815 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19816 fi
19817 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19818 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19819 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19820 fi
19821 if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
19822 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
19823 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19824 fi
19825 if test -z "${LIBUDEV_TRUE}" && test -z "${LIBUDEV_FALSE}"; then
19826 as_fn_error $? "conditional \"LIBUDEV\" was never defined.
19827 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19828 fi
19829
19830 : "${CONFIG_STATUS=./config.status}"
19831 ac_write_fail=0
19832 ac_clean_files_save=$ac_clean_files
19833 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19834 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19835 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19836 as_write_fail=0
19837 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19838 #! $SHELL
19839 # Generated by $as_me.
19840 # Run this file to recreate the current configuration.
19841 # Compiler output produced by configure, useful for debugging
19842 # configure, is in config.log if it exists.
19843
19844 debug=false
19845 ac_cs_recheck=false
19846 ac_cs_silent=false
19847
19848 SHELL=\${CONFIG_SHELL-$SHELL}
19849 export SHELL
19850 _ASEOF
19851 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19852 ## -------------------- ##
19853 ## M4sh Initialization. ##
19854 ## -------------------- ##
19855
19856 # Be more Bourne compatible
19857 DUALCASE=1; export DUALCASE # for MKS sh
19858 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19859 emulate sh
19860 NULLCMD=:
19861 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19862 # is contrary to our usage. Disable this feature.
19863 alias -g '${1+"$@"}'='"$@"'
19864 setopt NO_GLOB_SUBST
19865 else
19866 case `(set -o) 2>/dev/null` in #(
19867 *posix*) :
19868 set -o posix ;; #(
19869 *) :
19870 ;;
19871 esac
19872 fi
19873
19874
19875 as_nl='
19876 '
19877 export as_nl
19878 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19879 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19880 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19881 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19882 # Prefer a ksh shell builtin over an external printf program on Solaris,
19883 # but without wasting forks for bash or zsh.
19884 if test -z "$BASH_VERSION$ZSH_VERSION" \
19885 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19886 as_echo='print -r --'
19887 as_echo_n='print -rn --'
19888 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19889 as_echo='printf %s\n'
19890 as_echo_n='printf %s'
19891 else
19892 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19893 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19894 as_echo_n='/usr/ucb/echo -n'
19895 else
19896 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19897 as_echo_n_body='eval
19898 arg=$1;
19899 case $arg in #(
19900 *"$as_nl"*)
19901 expr "X$arg" : "X\\(.*\\)$as_nl";
19902 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19903 esac;
19904 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19905 '
19906 export as_echo_n_body
19907 as_echo_n='sh -c $as_echo_n_body as_echo'
19908 fi
19909 export as_echo_body
19910 as_echo='sh -c $as_echo_body as_echo'
19911 fi
19912
19913 # The user is always right.
19914 if test "${PATH_SEPARATOR+set}" != set; then
19915 PATH_SEPARATOR=:
19916 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19917 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19918 PATH_SEPARATOR=';'
19919 }
19920 fi
19921
19922
19923 # IFS
19924 # We need space, tab and new line, in precisely that order. Quoting is
19925 # there to prevent editors from complaining about space-tab.
19926 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19927 # splitting by setting IFS to empty value.)
19928 IFS=" "" $as_nl"
19929
19930 # Find who we are. Look in the path if we contain no directory separator.
19931 as_myself=
19932 case $0 in #((
19933 *[\\/]* ) as_myself=$0 ;;
19934 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19935 for as_dir in $PATH
19936 do
19937 IFS=$as_save_IFS
19938 test -z "$as_dir" && as_dir=.
19939 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19940 done
19941 IFS=$as_save_IFS
19942
19943 ;;
19944 esac
19945 # We did not find ourselves, most probably we were run as `sh COMMAND'
19946 # in which case we are not to be found in the path.
19947 if test "x$as_myself" = x; then
19948 as_myself=$0
19949 fi
19950 if test ! -f "$as_myself"; then
19951 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19952 exit 1
19953 fi
19954
19955 # Unset variables that we do not need and which cause bugs (e.g. in
19956 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19957 # suppresses any "Segmentation fault" message there. '((' could
19958 # trigger a bug in pdksh 5.2.14.
19959 for as_var in BASH_ENV ENV MAIL MAILPATH
19960 do eval test x\${$as_var+set} = xset \
19961 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19962 done
19963 PS1='$ '
19964 PS2='> '
19965 PS4='+ '
19966
19967 # NLS nuisances.
19968 LC_ALL=C
19969 export LC_ALL
19970 LANGUAGE=C
19971 export LANGUAGE
19972
19973 # CDPATH.
19974 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19975
19976
19977 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19978 # ----------------------------------------
19979 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19980 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19981 # script with STATUS, using 1 if that was 0.
19982 as_fn_error ()
19983 {
19984 as_status=$1; test $as_status -eq 0 && as_status=1
19985 if test "$4"; then
19986 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19987 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19988 fi
19989 $as_echo "$as_me: error: $2" >&2
19990 as_fn_exit $as_status
19991 } # as_fn_error
19992
19993
19994 # as_fn_set_status STATUS
19995 # -----------------------
19996 # Set $? to STATUS, without forking.
19997 as_fn_set_status ()
19998 {
19999 return $1
20000 } # as_fn_set_status
20001
20002 # as_fn_exit STATUS
20003 # -----------------
20004 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20005 as_fn_exit ()
20006 {
20007 set +e
20008 as_fn_set_status $1
20009 exit $1
20010 } # as_fn_exit
20011
20012 # as_fn_unset VAR
20013 # ---------------
20014 # Portably unset VAR.
20015 as_fn_unset ()
20016 {
20017 { eval $1=; unset $1;}
20018 }
20019 as_unset=as_fn_unset
20020 # as_fn_append VAR VALUE
20021 # ----------------------
20022 # Append the text in VALUE to the end of the definition contained in VAR. Take
20023 # advantage of any shell optimizations that allow amortized linear growth over
20024 # repeated appends, instead of the typical quadratic growth present in naive
20025 # implementations.
20026 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20027 eval 'as_fn_append ()
20028 {
20029 eval $1+=\$2
20030 }'
20031 else
20032 as_fn_append ()
20033 {
20034 eval $1=\$$1\$2
20035 }
20036 fi # as_fn_append
20037
20038 # as_fn_arith ARG...
20039 # ------------------
20040 # Perform arithmetic evaluation on the ARGs, and store the result in the
20041 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20042 # must be portable across $(()) and expr.
20043 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20044 eval 'as_fn_arith ()
20045 {
20046 as_val=$(( $* ))
20047 }'
20048 else
20049 as_fn_arith ()
20050 {
20051 as_val=`expr "$@" || test $? -eq 1`
20052 }
20053 fi # as_fn_arith
20054
20055
20056 if expr a : '\(a\)' >/dev/null 2>&1 &&
20057 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20058 as_expr=expr
20059 else
20060 as_expr=false
20061 fi
20062
20063 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20064 as_basename=basename
20065 else
20066 as_basename=false
20067 fi
20068
20069 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20070 as_dirname=dirname
20071 else
20072 as_dirname=false
20073 fi
20074
20075 as_me=`$as_basename -- "$0" ||
20076 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20077 X"$0" : 'X\(//\)$' \| \
20078 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20079 $as_echo X/"$0" |
20080 sed '/^.*\/\([^/][^/]*\)\/*$/{
20081 s//\1/
20082 q
20083 }
20084 /^X\/\(\/\/\)$/{
20085 s//\1/
20086 q
20087 }
20088 /^X\/\(\/\).*/{
20089 s//\1/
20090 q
20091 }
20092 s/.*/./; q'`
20093
20094 # Avoid depending upon Character Ranges.
20095 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20096 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20097 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20098 as_cr_digits='0123456789'
20099 as_cr_alnum=$as_cr_Letters$as_cr_digits
20100
20101 ECHO_C= ECHO_N= ECHO_T=
20102 case `echo -n x` in #(((((
20103 -n*)
20104 case `echo 'xy\c'` in
20105 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20106 xy) ECHO_C='\c';;
20107 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20108 ECHO_T=' ';;
20109 esac;;
20110 *)
20111 ECHO_N='-n';;
20112 esac
20113
20114 rm -f conf$$ conf$$.exe conf$$.file
20115 if test -d conf$$.dir; then
20116 rm -f conf$$.dir/conf$$.file
20117 else
20118 rm -f conf$$.dir
20119 mkdir conf$$.dir 2>/dev/null
20120 fi
20121 if (echo >conf$$.file) 2>/dev/null; then
20122 if ln -s conf$$.file conf$$ 2>/dev/null; then
20123 as_ln_s='ln -s'
20124 # ... but there are two gotchas:
20125 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20126 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20127 # In both cases, we have to default to `cp -pR'.
20128 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20129 as_ln_s='cp -pR'
20130 elif ln conf$$.file conf$$ 2>/dev/null; then
20131 as_ln_s=ln
20132 else
20133 as_ln_s='cp -pR'
20134 fi
20135 else
20136 as_ln_s='cp -pR'
20137 fi
20138 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20139 rmdir conf$$.dir 2>/dev/null
20140
20141
20142 # as_fn_mkdir_p
20143 # -------------
20144 # Create "$as_dir" as a directory, including parents if necessary.
20145 as_fn_mkdir_p ()
20146 {
20147
20148 case $as_dir in #(
20149 -*) as_dir=./$as_dir;;
20150 esac
20151 test -d "$as_dir" || eval $as_mkdir_p || {
20152 as_dirs=
20153 while :; do
20154 case $as_dir in #(
20155 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20156 *) as_qdir=$as_dir;;
20157 esac
20158 as_dirs="'$as_qdir' $as_dirs"
20159 as_dir=`$as_dirname -- "$as_dir" ||
20160 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20161 X"$as_dir" : 'X\(//\)[^/]' \| \
20162 X"$as_dir" : 'X\(//\)$' \| \
20163 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20164 $as_echo X"$as_dir" |
20165 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20166 s//\1/
20167 q
20168 }
20169 /^X\(\/\/\)[^/].*/{
20170 s//\1/
20171 q
20172 }
20173 /^X\(\/\/\)$/{
20174 s//\1/
20175 q
20176 }
20177 /^X\(\/\).*/{
20178 s//\1/
20179 q
20180 }
20181 s/.*/./; q'`
20182 test -d "$as_dir" && break
20183 done
20184 test -z "$as_dirs" || eval "mkdir $as_dirs"
20185 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20186
20187
20188 } # as_fn_mkdir_p
20189 if mkdir -p . 2>/dev/null; then
20190 as_mkdir_p='mkdir -p "$as_dir"'
20191 else
20192 test -d ./-p && rmdir ./-p
20193 as_mkdir_p=false
20194 fi
20195
20196
20197 # as_fn_executable_p FILE
20198 # -----------------------
20199 # Test if FILE is an executable regular file.
20200 as_fn_executable_p ()
20201 {
20202 test -f "$1" && test -x "$1"
20203 } # as_fn_executable_p
20204 as_test_x='test -x'
20205 as_executable_p=as_fn_executable_p
20206
20207 # Sed expression to map a string onto a valid CPP name.
20208 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20209
20210 # Sed expression to map a string onto a valid variable name.
20211 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20212
20213
20214 exec 6>&1
20215 ## ----------------------------------- ##
20216 ## Main body of $CONFIG_STATUS script. ##
20217 ## ----------------------------------- ##
20218 _ASEOF
20219 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20220
20221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20222 # Save the log message, to keep $0 and so on meaningful, and to
20223 # report actual input values of CONFIG_FILES etc. instead of their
20224 # values after options handling.
20225 ac_log="
20226 This file was extended by xf86-video-nouveau $as_me 1.0.11, which was
20227 generated by GNU Autoconf 2.69. Invocation command line was
20228
20229 CONFIG_FILES = $CONFIG_FILES
20230 CONFIG_HEADERS = $CONFIG_HEADERS
20231 CONFIG_LINKS = $CONFIG_LINKS
20232 CONFIG_COMMANDS = $CONFIG_COMMANDS
20233 $ $0 $@
20234
20235 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20236 "
20237
20238 _ACEOF
20239
20240 case $ac_config_files in *"
20241 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20242 esac
20243
20244 case $ac_config_headers in *"
20245 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20246 esac
20247
20248
20249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20250 # Files that config.status was made for.
20251 config_files="$ac_config_files"
20252 config_headers="$ac_config_headers"
20253 config_commands="$ac_config_commands"
20254
20255 _ACEOF
20256
20257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20258 ac_cs_usage="\
20259 \`$as_me' instantiates files and other configuration actions
20260 from templates according to the current configuration. Unless the files
20261 and actions are specified as TAGs, all are instantiated by default.
20262
20263 Usage: $0 [OPTION]... [TAG]...
20264
20265 -h, --help print this help, then exit
20266 -V, --version print version number and configuration settings, then exit
20267 --config print configuration, then exit
20268 -q, --quiet, --silent
20269 do not print progress messages
20270 -d, --debug don't remove temporary files
20271 --recheck update $as_me by reconfiguring in the same conditions
20272 --file=FILE[:TEMPLATE]
20273 instantiate the configuration file FILE
20274 --header=FILE[:TEMPLATE]
20275 instantiate the configuration header FILE
20276
20277 Configuration files:
20278 $config_files
20279
20280 Configuration headers:
20281 $config_headers
20282
20283 Configuration commands:
20284 $config_commands
20285
20286 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
20287
20288 _ACEOF
20289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20290 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20291 ac_cs_version="\\
20292 xf86-video-nouveau config.status 1.0.11
20293 configured by $0, generated by GNU Autoconf 2.69,
20294 with options \\"\$ac_cs_config\\"
20295
20296 Copyright (C) 2012 Free Software Foundation, Inc.
20297 This config.status script is free software; the Free Software Foundation
20298 gives unlimited permission to copy, distribute and modify it."
20299
20300 ac_pwd='$ac_pwd'
20301 srcdir='$srcdir'
20302 INSTALL='$INSTALL'
20303 MKDIR_P='$MKDIR_P'
20304 AWK='$AWK'
20305 test -n "\$AWK" || AWK=awk
20306 _ACEOF
20307
20308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20309 # The default lists apply if the user does not specify any file.
20310 ac_need_defaults=:
20311 while test $# != 0
20312 do
20313 case $1 in
20314 --*=?*)
20315 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20316 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20317 ac_shift=:
20318 ;;
20319 --*=)
20320 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20321 ac_optarg=
20322 ac_shift=:
20323 ;;
20324 *)
20325 ac_option=$1
20326 ac_optarg=$2
20327 ac_shift=shift
20328 ;;
20329 esac
20330
20331 case $ac_option in
20332 # Handling of the options.
20333 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20334 ac_cs_recheck=: ;;
20335 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20336 $as_echo "$ac_cs_version"; exit ;;
20337 --config | --confi | --conf | --con | --co | --c )
20338 $as_echo "$ac_cs_config"; exit ;;
20339 --debug | --debu | --deb | --de | --d | -d )
20340 debug=: ;;
20341 --file | --fil | --fi | --f )
20342 $ac_shift
20343 case $ac_optarg in
20344 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20345 '') as_fn_error $? "missing file argument" ;;
20346 esac
20347 as_fn_append CONFIG_FILES " '$ac_optarg'"
20348 ac_need_defaults=false;;
20349 --header | --heade | --head | --hea )
20350 $ac_shift
20351 case $ac_optarg in
20352 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20353 esac
20354 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20355 ac_need_defaults=false;;
20356 --he | --h)
20357 # Conflict between --help and --header
20358 as_fn_error $? "ambiguous option: \`$1'
20359 Try \`$0 --help' for more information.";;
20360 --help | --hel | -h )
20361 $as_echo "$ac_cs_usage"; exit ;;
20362 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20363 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20364 ac_cs_silent=: ;;
20365
20366 # This is an error.
20367 -*) as_fn_error $? "unrecognized option: \`$1'
20368 Try \`$0 --help' for more information." ;;
20369
20370 *) as_fn_append ac_config_targets " $1"
20371 ac_need_defaults=false ;;
20372
20373 esac
20374 shift
20375 done
20376
20377 ac_configure_extra_args=
20378
20379 if $ac_cs_silent; then
20380 exec 6>/dev/null
20381 ac_configure_extra_args="$ac_configure_extra_args --silent"
20382 fi
20383
20384 _ACEOF
20385 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20386 if \$ac_cs_recheck; then
20387 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20388 shift
20389 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20390 CONFIG_SHELL='$SHELL'
20391 export CONFIG_SHELL
20392 exec "\$@"
20393 fi
20394
20395 _ACEOF
20396 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20397 exec 5>>config.log
20398 {
20399 echo
20400 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20401 ## Running $as_me. ##
20402 _ASBOX
20403 $as_echo "$ac_log"
20404 } >&5
20405
20406 _ACEOF
20407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20408 #
20409 # INIT-COMMANDS
20410 #
20411 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20412
20413
20414 # The HP-UX ksh and POSIX shell print the target directory to stdout
20415 # if CDPATH is set.
20416 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20417
20418 sed_quote_subst='$sed_quote_subst'
20419 double_quote_subst='$double_quote_subst'
20420 delay_variable_subst='$delay_variable_subst'
20421 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20422 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20423 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20424 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20425 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20426 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20427 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20428 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20429 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20430 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20431 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20432 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20433 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20434 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20435 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20436 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20437 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20438 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20439 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20440 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20441 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20442 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20443 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20444 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20445 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20446 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20447 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20448 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20449 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20450 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20451 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20452 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20453 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20454 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20455 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20456 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20457 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20458 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20459 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20460 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20461 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20462 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20463 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20464 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20465 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20466 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20467 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20468 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20469 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20470 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20471 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20472 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20473 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20474 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20475 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20476 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20477 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"`'
20478 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20479 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20480 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20481 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20482 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20483 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20484 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20485 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20486 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20487 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20488 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20489 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20490 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20491 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20492 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20493 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20494 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20495 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20496 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20497 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20498 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20499 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20500 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20501 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20502 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20503 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20504 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20505 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20506 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20507 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20508 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20509 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20510 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20511 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20512 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20513 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20514 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20515 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20516 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20517 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20518 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20519 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20520 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20521 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20522 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20523 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20524 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20525 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20526 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20527 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20528 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20529 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20530 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20531 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20532 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20533 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20534 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20535 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20536 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20537 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20538 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20539 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20540 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20541 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20542 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20543 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20544 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20545 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20546 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20547 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20548 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20549 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20550 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20551
20552 LTCC='$LTCC'
20553 LTCFLAGS='$LTCFLAGS'
20554 compiler='$compiler_DEFAULT'
20555
20556 # A function that is used when there is no print builtin or printf.
20557 func_fallback_echo ()
20558 {
20559 eval 'cat <<_LTECHO_EOF
20560 \$1
20561 _LTECHO_EOF'
20562 }
20563
20564 # Quote evaled strings.
20565 for var in SHELL \
20566 ECHO \
20567 PATH_SEPARATOR \
20568 SED \
20569 GREP \
20570 EGREP \
20571 FGREP \
20572 LD \
20573 NM \
20574 LN_S \
20575 lt_SP2NL \
20576 lt_NL2SP \
20577 reload_flag \
20578 OBJDUMP \
20579 deplibs_check_method \
20580 file_magic_cmd \
20581 file_magic_glob \
20582 want_nocaseglob \
20583 DLLTOOL \
20584 sharedlib_from_linklib_cmd \
20585 AR \
20586 AR_FLAGS \
20587 archiver_list_spec \
20588 STRIP \
20589 RANLIB \
20590 CC \
20591 CFLAGS \
20592 compiler \
20593 lt_cv_sys_global_symbol_pipe \
20594 lt_cv_sys_global_symbol_to_cdecl \
20595 lt_cv_sys_global_symbol_to_c_name_address \
20596 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20597 nm_file_list_spec \
20598 lt_prog_compiler_no_builtin_flag \
20599 lt_prog_compiler_pic \
20600 lt_prog_compiler_wl \
20601 lt_prog_compiler_static \
20602 lt_cv_prog_compiler_c_o \
20603 need_locks \
20604 MANIFEST_TOOL \
20605 DSYMUTIL \
20606 NMEDIT \
20607 LIPO \
20608 OTOOL \
20609 OTOOL64 \
20610 shrext_cmds \
20611 export_dynamic_flag_spec \
20612 whole_archive_flag_spec \
20613 compiler_needs_object \
20614 with_gnu_ld \
20615 allow_undefined_flag \
20616 no_undefined_flag \
20617 hardcode_libdir_flag_spec \
20618 hardcode_libdir_separator \
20619 exclude_expsyms \
20620 include_expsyms \
20621 file_list_spec \
20622 variables_saved_for_relink \
20623 libname_spec \
20624 library_names_spec \
20625 soname_spec \
20626 install_override_mode \
20627 finish_eval \
20628 old_striplib \
20629 striplib; do
20630 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20631 *[\\\\\\\`\\"\\\$]*)
20632 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20633 ;;
20634 *)
20635 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20636 ;;
20637 esac
20638 done
20639
20640 # Double-quote double-evaled strings.
20641 for var in reload_cmds \
20642 old_postinstall_cmds \
20643 old_postuninstall_cmds \
20644 old_archive_cmds \
20645 extract_expsyms_cmds \
20646 old_archive_from_new_cmds \
20647 old_archive_from_expsyms_cmds \
20648 archive_cmds \
20649 archive_expsym_cmds \
20650 module_cmds \
20651 module_expsym_cmds \
20652 export_symbols_cmds \
20653 prelink_cmds \
20654 postlink_cmds \
20655 postinstall_cmds \
20656 postuninstall_cmds \
20657 finish_cmds \
20658 sys_lib_search_path_spec \
20659 sys_lib_dlsearch_path_spec; do
20660 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20661 *[\\\\\\\`\\"\\\$]*)
20662 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20663 ;;
20664 *)
20665 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20666 ;;
20667 esac
20668 done
20669
20670 ac_aux_dir='$ac_aux_dir'
20671 xsi_shell='$xsi_shell'
20672 lt_shell_append='$lt_shell_append'
20673
20674 # See if we are running on zsh, and set the options which allow our
20675 # commands through without removal of \ escapes INIT.
20676 if test -n "\${ZSH_VERSION+set}" ; then
20677 setopt NO_GLOB_SUBST
20678 fi
20679
20680
20681 PACKAGE='$PACKAGE'
20682 VERSION='$VERSION'
20683 TIMESTAMP='$TIMESTAMP'
20684 RM='$RM'
20685 ofile='$ofile'
20686
20687
20688
20689
20690 _ACEOF
20691
20692 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20693
20694 # Handling of arguments.
20695 for ac_config_target in $ac_config_targets
20696 do
20697 case $ac_config_target in
20698 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20699 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20700 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20701 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20702 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20703 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20704
20705 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20706 esac
20707 done
20708
20709
20710 # If the user did not use the arguments to specify the items to instantiate,
20711 # then the envvar interface is used. Set only those that are not.
20712 # We use the long form for the default assignment because of an extremely
20713 # bizarre bug on SunOS 4.1.3.
20714 if $ac_need_defaults; then
20715 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20716 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20717 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20718 fi
20719
20720 # Have a temporary directory for convenience. Make it in the build tree
20721 # simply because there is no reason against having it here, and in addition,
20722 # creating and moving files from /tmp can sometimes cause problems.
20723 # Hook for its removal unless debugging.
20724 # Note that there is a small window in which the directory will not be cleaned:
20725 # after its creation but before its name has been assigned to `$tmp'.
20726 $debug ||
20727 {
20728 tmp= ac_tmp=
20729 trap 'exit_status=$?
20730 : "${ac_tmp:=$tmp}"
20731 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20732 ' 0
20733 trap 'as_fn_exit 1' 1 2 13 15
20734 }
20735 # Create a (secure) tmp directory for tmp files.
20736
20737 {
20738 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20739 test -d "$tmp"
20740 } ||
20741 {
20742 tmp=./conf$$-$RANDOM
20743 (umask 077 && mkdir "$tmp")
20744 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20745 ac_tmp=$tmp
20746
20747 # Set up the scripts for CONFIG_FILES section.
20748 # No need to generate them if there are no CONFIG_FILES.
20749 # This happens for instance with `./config.status config.h'.
20750 if test -n "$CONFIG_FILES"; then
20751
20752
20753 ac_cr=`echo X | tr X '\015'`
20754 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20755 # But we know of no other shell where ac_cr would be empty at this
20756 # point, so we can use a bashism as a fallback.
20757 if test "x$ac_cr" = x; then
20758 eval ac_cr=\$\'\\r\'
20759 fi
20760 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20761 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20762 ac_cs_awk_cr='\\r'
20763 else
20764 ac_cs_awk_cr=$ac_cr
20765 fi
20766
20767 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20768 _ACEOF
20769
20770
20771 {
20772 echo "cat >conf$$subs.awk <<_ACEOF" &&
20773 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20774 echo "_ACEOF"
20775 } >conf$$subs.sh ||
20776 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20777 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20778 ac_delim='%!_!# '
20779 for ac_last_try in false false false false false :; do
20780 . ./conf$$subs.sh ||
20781 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20782
20783 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20784 if test $ac_delim_n = $ac_delim_num; then
20785 break
20786 elif $ac_last_try; then
20787 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20788 else
20789 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20790 fi
20791 done
20792 rm -f conf$$subs.sh
20793
20794 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20795 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20796 _ACEOF
20797 sed -n '
20798 h
20799 s/^/S["/; s/!.*/"]=/
20800 p
20801 g
20802 s/^[^!]*!//
20803 :repl
20804 t repl
20805 s/'"$ac_delim"'$//
20806 t delim
20807 :nl
20808 h
20809 s/\(.\{148\}\)..*/\1/
20810 t more1
20811 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20812 p
20813 n
20814 b repl
20815 :more1
20816 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20817 p
20818 g
20819 s/.\{148\}//
20820 t nl
20821 :delim
20822 h
20823 s/\(.\{148\}\)..*/\1/
20824 t more2
20825 s/["\\]/\\&/g; s/^/"/; s/$/"/
20826 p
20827 b
20828 :more2
20829 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20830 p
20831 g
20832 s/.\{148\}//
20833 t delim
20834 ' <conf$$subs.awk | sed '
20835 /^[^""]/{
20836 N
20837 s/\n//
20838 }
20839 ' >>$CONFIG_STATUS || ac_write_fail=1
20840 rm -f conf$$subs.awk
20841 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20842 _ACAWK
20843 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20844 for (key in S) S_is_set[key] = 1
20845 FS = ""
20846
20847 }
20848 {
20849 line = $ 0
20850 nfields = split(line, field, "@")
20851 substed = 0
20852 len = length(field[1])
20853 for (i = 2; i < nfields; i++) {
20854 key = field[i]
20855 keylen = length(key)
20856 if (S_is_set[key]) {
20857 value = S[key]
20858 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20859 len += length(value) + length(field[++i])
20860 substed = 1
20861 } else
20862 len += 1 + keylen
20863 }
20864
20865 print line
20866 }
20867
20868 _ACAWK
20869 _ACEOF
20870 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20871 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20872 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20873 else
20874 cat
20875 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20876 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20877 _ACEOF
20878
20879 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20880 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20881 # trailing colons and then remove the whole line if VPATH becomes empty
20882 # (actually we leave an empty line to preserve line numbers).
20883 if test "x$srcdir" = x.; then
20884 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20885 h
20886 s///
20887 s/^/:/
20888 s/[ ]*$/:/
20889 s/:\$(srcdir):/:/g
20890 s/:\${srcdir}:/:/g
20891 s/:@srcdir@:/:/g
20892 s/^:*//
20893 s/:*$//
20894 x
20895 s/\(=[ ]*\).*/\1/
20896 G
20897 s/\n//
20898 s/^[^=]*=[ ]*$//
20899 }'
20900 fi
20901
20902 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20903 fi # test -n "$CONFIG_FILES"
20904
20905 # Set up the scripts for CONFIG_HEADERS section.
20906 # No need to generate them if there are no CONFIG_HEADERS.
20907 # This happens for instance with `./config.status Makefile'.
20908 if test -n "$CONFIG_HEADERS"; then
20909 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20910 BEGIN {
20911 _ACEOF
20912
20913 # Transform confdefs.h into an awk script `defines.awk', embedded as
20914 # here-document in config.status, that substitutes the proper values into
20915 # config.h.in to produce config.h.
20916
20917 # Create a delimiter string that does not exist in confdefs.h, to ease
20918 # handling of long lines.
20919 ac_delim='%!_!# '
20920 for ac_last_try in false false :; do
20921 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20922 if test -z "$ac_tt"; then
20923 break
20924 elif $ac_last_try; then
20925 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20926 else
20927 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20928 fi
20929 done
20930
20931 # For the awk script, D is an array of macro values keyed by name,
20932 # likewise P contains macro parameters if any. Preserve backslash
20933 # newline sequences.
20934
20935 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20936 sed -n '
20937 s/.\{148\}/&'"$ac_delim"'/g
20938 t rset
20939 :rset
20940 s/^[ ]*#[ ]*define[ ][ ]*/ /
20941 t def
20942 d
20943 :def
20944 s/\\$//
20945 t bsnl
20946 s/["\\]/\\&/g
20947 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20948 D["\1"]=" \3"/p
20949 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20950 d
20951 :bsnl
20952 s/["\\]/\\&/g
20953 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20954 D["\1"]=" \3\\\\\\n"\\/p
20955 t cont
20956 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20957 t cont
20958 d
20959 :cont
20960 n
20961 s/.\{148\}/&'"$ac_delim"'/g
20962 t clear
20963 :clear
20964 s/\\$//
20965 t bsnlc
20966 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20967 d
20968 :bsnlc
20969 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20970 b cont
20971 ' <confdefs.h | sed '
20972 s/'"$ac_delim"'/"\\\
20973 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20974
20975 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20976 for (key in D) D_is_set[key] = 1
20977 FS = ""
20978 }
20979 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20980 line = \$ 0
20981 split(line, arg, " ")
20982 if (arg[1] == "#") {
20983 defundef = arg[2]
20984 mac1 = arg[3]
20985 } else {
20986 defundef = substr(arg[1], 2)
20987 mac1 = arg[2]
20988 }
20989 split(mac1, mac2, "(") #)
20990 macro = mac2[1]
20991 prefix = substr(line, 1, index(line, defundef) - 1)
20992 if (D_is_set[macro]) {
20993 # Preserve the white space surrounding the "#".
20994 print prefix "define", macro P[macro] D[macro]
20995 next
20996 } else {
20997 # Replace #undef with comments. This is necessary, for example,
20998 # in the case of _POSIX_SOURCE, which is predefined and required
20999 # on some systems where configure will not decide to define it.
21000 if (defundef == "undef") {
21001 print "/*", prefix defundef, macro, "*/"
21002 next
21003 }
21004 }
21005 }
21006 { print }
21007 _ACAWK
21008 _ACEOF
21009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21010 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21011 fi # test -n "$CONFIG_HEADERS"
21012
21013
21014 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21015 shift
21016 for ac_tag
21017 do
21018 case $ac_tag in
21019 :[FHLC]) ac_mode=$ac_tag; continue;;
21020 esac
21021 case $ac_mode$ac_tag in
21022 :[FHL]*:*);;
21023 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21024 :[FH]-) ac_tag=-:-;;
21025 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21026 esac
21027 ac_save_IFS=$IFS
21028 IFS=:
21029 set x $ac_tag
21030 IFS=$ac_save_IFS
21031 shift
21032 ac_file=$1
21033 shift
21034
21035 case $ac_mode in
21036 :L) ac_source=$1;;
21037 :[FH])
21038 ac_file_inputs=
21039 for ac_f
21040 do
21041 case $ac_f in
21042 -) ac_f="$ac_tmp/stdin";;
21043 *) # Look for the file first in the build tree, then in the source tree
21044 # (if the path is not absolute). The absolute path cannot be DOS-style,
21045 # because $ac_f cannot contain `:'.
21046 test -f "$ac_f" ||
21047 case $ac_f in
21048 [\\/$]*) false;;
21049 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21050 esac ||
21051 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21052 esac
21053 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21054 as_fn_append ac_file_inputs " '$ac_f'"
21055 done
21056
21057 # Let's still pretend it is `configure' which instantiates (i.e., don't
21058 # use $as_me), people would be surprised to read:
21059 # /* config.h. Generated by config.status. */
21060 configure_input='Generated from '`
21061 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21062 `' by configure.'
21063 if test x"$ac_file" != x-; then
21064 configure_input="$ac_file. $configure_input"
21065 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21066 $as_echo "$as_me: creating $ac_file" >&6;}
21067 fi
21068 # Neutralize special characters interpreted by sed in replacement strings.
21069 case $configure_input in #(
21070 *\&* | *\|* | *\\* )
21071 ac_sed_conf_input=`$as_echo "$configure_input" |
21072 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21073 *) ac_sed_conf_input=$configure_input;;
21074 esac
21075
21076 case $ac_tag in
21077 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21078 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21079 esac
21080 ;;
21081 esac
21082
21083 ac_dir=`$as_dirname -- "$ac_file" ||
21084 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21085 X"$ac_file" : 'X\(//\)[^/]' \| \
21086 X"$ac_file" : 'X\(//\)$' \| \
21087 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21088 $as_echo X"$ac_file" |
21089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21090 s//\1/
21091 q
21092 }
21093 /^X\(\/\/\)[^/].*/{
21094 s//\1/
21095 q
21096 }
21097 /^X\(\/\/\)$/{
21098 s//\1/
21099 q
21100 }
21101 /^X\(\/\).*/{
21102 s//\1/
21103 q
21104 }
21105 s/.*/./; q'`
21106 as_dir="$ac_dir"; as_fn_mkdir_p
21107 ac_builddir=.
21108
21109 case "$ac_dir" in
21110 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21111 *)
21112 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21113 # A ".." for each directory in $ac_dir_suffix.
21114 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21115 case $ac_top_builddir_sub in
21116 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21117 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21118 esac ;;
21119 esac
21120 ac_abs_top_builddir=$ac_pwd
21121 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21122 # for backward compatibility:
21123 ac_top_builddir=$ac_top_build_prefix
21124
21125 case $srcdir in
21126 .) # We are building in place.
21127 ac_srcdir=.
21128 ac_top_srcdir=$ac_top_builddir_sub
21129 ac_abs_top_srcdir=$ac_pwd ;;
21130 [\\/]* | ?:[\\/]* ) # Absolute name.
21131 ac_srcdir=$srcdir$ac_dir_suffix;
21132 ac_top_srcdir=$srcdir
21133 ac_abs_top_srcdir=$srcdir ;;
21134 *) # Relative name.
21135 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21136 ac_top_srcdir=$ac_top_build_prefix$srcdir
21137 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21138 esac
21139 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21140
21141
21142 case $ac_mode in
21143 :F)
21144 #
21145 # CONFIG_FILE
21146 #
21147
21148 case $INSTALL in
21149 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21150 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21151 esac
21152 ac_MKDIR_P=$MKDIR_P
21153 case $MKDIR_P in
21154 [\\/$]* | ?:[\\/]* ) ;;
21155 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21156 esac
21157 _ACEOF
21158
21159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21160 # If the template does not know about datarootdir, expand it.
21161 # FIXME: This hack should be removed a few years after 2.60.
21162 ac_datarootdir_hack=; ac_datarootdir_seen=
21163 ac_sed_dataroot='
21164 /datarootdir/ {
21165 p
21166 q
21167 }
21168 /@datadir@/p
21169 /@docdir@/p
21170 /@infodir@/p
21171 /@localedir@/p
21172 /@mandir@/p'
21173 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21174 *datarootdir*) ac_datarootdir_seen=yes;;
21175 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21177 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21178 _ACEOF
21179 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21180 ac_datarootdir_hack='
21181 s&@datadir@&$datadir&g
21182 s&@docdir@&$docdir&g
21183 s&@infodir@&$infodir&g
21184 s&@localedir@&$localedir&g
21185 s&@mandir@&$mandir&g
21186 s&\\\${datarootdir}&$datarootdir&g' ;;
21187 esac
21188 _ACEOF
21189
21190 # Neutralize VPATH when `$srcdir' = `.'.
21191 # Shell code in configure.ac might set extrasub.
21192 # FIXME: do we really want to maintain this feature?
21193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21194 ac_sed_extra="$ac_vpsub
21195 $extrasub
21196 _ACEOF
21197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21198 :t
21199 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21200 s|@configure_input@|$ac_sed_conf_input|;t t
21201 s&@top_builddir@&$ac_top_builddir_sub&;t t
21202 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21203 s&@srcdir@&$ac_srcdir&;t t
21204 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21205 s&@top_srcdir@&$ac_top_srcdir&;t t
21206 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21207 s&@builddir@&$ac_builddir&;t t
21208 s&@abs_builddir@&$ac_abs_builddir&;t t
21209 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21210 s&@INSTALL@&$ac_INSTALL&;t t
21211 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21212 $ac_datarootdir_hack
21213 "
21214 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21215 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21216
21217 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21218 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21219 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21220 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21222 which seems to be undefined. Please make sure it is defined" >&5
21223 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21224 which seems to be undefined. Please make sure it is defined" >&2;}
21225
21226 rm -f "$ac_tmp/stdin"
21227 case $ac_file in
21228 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21229 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21230 esac \
21231 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21232 ;;
21233 :H)
21234 #
21235 # CONFIG_HEADER
21236 #
21237 if test x"$ac_file" != x-; then
21238 {
21239 $as_echo "/* $configure_input */" \
21240 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21241 } >"$ac_tmp/config.h" \
21242 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21243 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21244 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21245 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21246 else
21247 rm -f "$ac_file"
21248 mv "$ac_tmp/config.h" "$ac_file" \
21249 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21250 fi
21251 else
21252 $as_echo "/* $configure_input */" \
21253 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21254 || as_fn_error $? "could not create -" "$LINENO" 5
21255 fi
21256 # Compute "$ac_file"'s index in $config_headers.
21257 _am_arg="$ac_file"
21258 _am_stamp_count=1
21259 for _am_header in $config_headers :; do
21260 case $_am_header in
21261 $_am_arg | $_am_arg:* )
21262 break ;;
21263 * )
21264 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21265 esac
21266 done
21267 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21268 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21269 X"$_am_arg" : 'X\(//\)[^/]' \| \
21270 X"$_am_arg" : 'X\(//\)$' \| \
21271 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21272 $as_echo X"$_am_arg" |
21273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21274 s//\1/
21275 q
21276 }
21277 /^X\(\/\/\)[^/].*/{
21278 s//\1/
21279 q
21280 }
21281 /^X\(\/\/\)$/{
21282 s//\1/
21283 q
21284 }
21285 /^X\(\/\).*/{
21286 s//\1/
21287 q
21288 }
21289 s/.*/./; q'`/stamp-h$_am_stamp_count
21290 ;;
21291
21292 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21293 $as_echo "$as_me: executing $ac_file commands" >&6;}
21294 ;;
21295 esac
21296
21297
21298 case $ac_file$ac_mode in
21299 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21300 # Older Autoconf quotes --file arguments for eval, but not when files
21301 # are listed without --file. Let's play safe and only enable the eval
21302 # if we detect the quoting.
21303 case $CONFIG_FILES in
21304 *\'*) eval set x "$CONFIG_FILES" ;;
21305 *) set x $CONFIG_FILES ;;
21306 esac
21307 shift
21308 for mf
21309 do
21310 # Strip MF so we end up with the name of the file.
21311 mf=`echo "$mf" | sed -e 's/:.*$//'`
21312 # Check whether this is an Automake generated Makefile or not.
21313 # We used to match only the files named 'Makefile.in', but
21314 # some people rename them; so instead we look at the file content.
21315 # Grep'ing the first line is not enough: some people post-process
21316 # each Makefile.in and add a new line on top of each file to say so.
21317 # Grep'ing the whole file is not good either: AIX grep has a line
21318 # limit of 2048, but all sed's we know have understand at least 4000.
21319 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21320 dirpart=`$as_dirname -- "$mf" ||
21321 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21322 X"$mf" : 'X\(//\)[^/]' \| \
21323 X"$mf" : 'X\(//\)$' \| \
21324 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21325 $as_echo X"$mf" |
21326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21327 s//\1/
21328 q
21329 }
21330 /^X\(\/\/\)[^/].*/{
21331 s//\1/
21332 q
21333 }
21334 /^X\(\/\/\)$/{
21335 s//\1/
21336 q
21337 }
21338 /^X\(\/\).*/{
21339 s//\1/
21340 q
21341 }
21342 s/.*/./; q'`
21343 else
21344 continue
21345 fi
21346 # Extract the definition of DEPDIR, am__include, and am__quote
21347 # from the Makefile without running 'make'.
21348 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21349 test -z "$DEPDIR" && continue
21350 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21351 test -z "$am__include" && continue
21352 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21353 # Find all dependency output files, they are included files with
21354 # $(DEPDIR) in their names. We invoke sed twice because it is the
21355 # simplest approach to changing $(DEPDIR) to its actual value in the
21356 # expansion.
21357 for file in `sed -n "
21358 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21359 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21360 # Make sure the directory exists.
21361 test -f "$dirpart/$file" && continue
21362 fdir=`$as_dirname -- "$file" ||
21363 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21364 X"$file" : 'X\(//\)[^/]' \| \
21365 X"$file" : 'X\(//\)$' \| \
21366 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21367 $as_echo X"$file" |
21368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21369 s//\1/
21370 q
21371 }
21372 /^X\(\/\/\)[^/].*/{
21373 s//\1/
21374 q
21375 }
21376 /^X\(\/\/\)$/{
21377 s//\1/
21378 q
21379 }
21380 /^X\(\/\).*/{
21381 s//\1/
21382 q
21383 }
21384 s/.*/./; q'`
21385 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21386 # echo "creating $dirpart/$file"
21387 echo '# dummy' > "$dirpart/$file"
21388 done
21389 done
21390 }
21391 ;;
21392 "libtool":C)
21393
21394 # See if we are running on zsh, and set the options which allow our
21395 # commands through without removal of \ escapes.
21396 if test -n "${ZSH_VERSION+set}" ; then
21397 setopt NO_GLOB_SUBST
21398 fi
21399
21400 cfgfile="${ofile}T"
21401 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21402 $RM "$cfgfile"
21403
21404 cat <<_LT_EOF >> "$cfgfile"
21405 #! $SHELL
21406
21407 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21408 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21409 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21410 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21411 #
21412 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21413 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21414 # Foundation, Inc.
21415 # Written by Gordon Matzigkeit, 1996
21416 #
21417 # This file is part of GNU Libtool.
21418 #
21419 # GNU Libtool is free software; you can redistribute it and/or
21420 # modify it under the terms of the GNU General Public License as
21421 # published by the Free Software Foundation; either version 2 of
21422 # the License, or (at your option) any later version.
21423 #
21424 # As a special exception to the GNU General Public License,
21425 # if you distribute this file as part of a program or library that
21426 # is built using GNU Libtool, you may include this file under the
21427 # same distribution terms that you use for the rest of that program.
21428 #
21429 # GNU Libtool is distributed in the hope that it will be useful,
21430 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21431 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21432 # GNU General Public License for more details.
21433 #
21434 # You should have received a copy of the GNU General Public License
21435 # along with GNU Libtool; see the file COPYING. If not, a copy
21436 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21437 # obtained by writing to the Free Software Foundation, Inc.,
21438 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21439
21440
21441 # The names of the tagged configurations supported by this script.
21442 available_tags=""
21443
21444 # ### BEGIN LIBTOOL CONFIG
21445
21446 # Whether or not to build static libraries.
21447 build_old_libs=$enable_static
21448
21449 # Which release of libtool.m4 was used?
21450 macro_version=$macro_version
21451 macro_revision=$macro_revision
21452
21453 # Whether or not to build shared libraries.
21454 build_libtool_libs=$enable_shared
21455
21456 # What type of objects to build.
21457 pic_mode=$pic_mode
21458
21459 # Whether or not to optimize for fast installation.
21460 fast_install=$enable_fast_install
21461
21462 # Shell to use when invoking shell scripts.
21463 SHELL=$lt_SHELL
21464
21465 # An echo program that protects backslashes.
21466 ECHO=$lt_ECHO
21467
21468 # The PATH separator for the build system.
21469 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21470
21471 # The host system.
21472 host_alias=$host_alias
21473 host=$host
21474 host_os=$host_os
21475
21476 # The build system.
21477 build_alias=$build_alias
21478 build=$build
21479 build_os=$build_os
21480
21481 # A sed program that does not truncate output.
21482 SED=$lt_SED
21483
21484 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21485 Xsed="\$SED -e 1s/^X//"
21486
21487 # A grep program that handles long lines.
21488 GREP=$lt_GREP
21489
21490 # An ERE matcher.
21491 EGREP=$lt_EGREP
21492
21493 # A literal string matcher.
21494 FGREP=$lt_FGREP
21495
21496 # A BSD- or MS-compatible name lister.
21497 NM=$lt_NM
21498
21499 # Whether we need soft or hard links.
21500 LN_S=$lt_LN_S
21501
21502 # What is the maximum length of a command?
21503 max_cmd_len=$max_cmd_len
21504
21505 # Object file suffix (normally "o").
21506 objext=$ac_objext
21507
21508 # Executable file suffix (normally "").
21509 exeext=$exeext
21510
21511 # whether the shell understands "unset".
21512 lt_unset=$lt_unset
21513
21514 # turn spaces into newlines.
21515 SP2NL=$lt_lt_SP2NL
21516
21517 # turn newlines into spaces.
21518 NL2SP=$lt_lt_NL2SP
21519
21520 # convert \$build file names to \$host format.
21521 to_host_file_cmd=$lt_cv_to_host_file_cmd
21522
21523 # convert \$build files to toolchain format.
21524 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21525
21526 # An object symbol dumper.
21527 OBJDUMP=$lt_OBJDUMP
21528
21529 # Method to check whether dependent libraries are shared objects.
21530 deplibs_check_method=$lt_deplibs_check_method
21531
21532 # Command to use when deplibs_check_method = "file_magic".
21533 file_magic_cmd=$lt_file_magic_cmd
21534
21535 # How to find potential files when deplibs_check_method = "file_magic".
21536 file_magic_glob=$lt_file_magic_glob
21537
21538 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21539 want_nocaseglob=$lt_want_nocaseglob
21540
21541 # DLL creation program.
21542 DLLTOOL=$lt_DLLTOOL
21543
21544 # Command to associate shared and link libraries.
21545 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21546
21547 # The archiver.
21548 AR=$lt_AR
21549
21550 # Flags to create an archive.
21551 AR_FLAGS=$lt_AR_FLAGS
21552
21553 # How to feed a file listing to the archiver.
21554 archiver_list_spec=$lt_archiver_list_spec
21555
21556 # A symbol stripping program.
21557 STRIP=$lt_STRIP
21558
21559 # Commands used to install an old-style archive.
21560 RANLIB=$lt_RANLIB
21561 old_postinstall_cmds=$lt_old_postinstall_cmds
21562 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21563
21564 # Whether to use a lock for old archive extraction.
21565 lock_old_archive_extraction=$lock_old_archive_extraction
21566
21567 # A C compiler.
21568 LTCC=$lt_CC
21569
21570 # LTCC compiler flags.
21571 LTCFLAGS=$lt_CFLAGS
21572
21573 # Take the output of nm and produce a listing of raw symbols and C names.
21574 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21575
21576 # Transform the output of nm in a proper C declaration.
21577 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21578
21579 # Transform the output of nm in a C name address pair.
21580 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21581
21582 # Transform the output of nm in a C name address pair when lib prefix is needed.
21583 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21584
21585 # Specify filename containing input files for \$NM.
21586 nm_file_list_spec=$lt_nm_file_list_spec
21587
21588 # The root where to search for dependent libraries,and in which our libraries should be installed.
21589 lt_sysroot=$lt_sysroot
21590
21591 # The name of the directory that contains temporary libtool files.
21592 objdir=$objdir
21593
21594 # Used to examine libraries when file_magic_cmd begins with "file".
21595 MAGIC_CMD=$MAGIC_CMD
21596
21597 # Must we lock files when doing compilation?
21598 need_locks=$lt_need_locks
21599
21600 # Manifest tool.
21601 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21602
21603 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21604 DSYMUTIL=$lt_DSYMUTIL
21605
21606 # Tool to change global to local symbols on Mac OS X.
21607 NMEDIT=$lt_NMEDIT
21608
21609 # Tool to manipulate fat objects and archives on Mac OS X.
21610 LIPO=$lt_LIPO
21611
21612 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21613 OTOOL=$lt_OTOOL
21614
21615 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21616 OTOOL64=$lt_OTOOL64
21617
21618 # Old archive suffix (normally "a").
21619 libext=$libext
21620
21621 # Shared library suffix (normally ".so").
21622 shrext_cmds=$lt_shrext_cmds
21623
21624 # The commands to extract the exported symbol list from a shared archive.
21625 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21626
21627 # Variables whose values should be saved in libtool wrapper scripts and
21628 # restored at link time.
21629 variables_saved_for_relink=$lt_variables_saved_for_relink
21630
21631 # Do we need the "lib" prefix for modules?
21632 need_lib_prefix=$need_lib_prefix
21633
21634 # Do we need a version for libraries?
21635 need_version=$need_version
21636
21637 # Library versioning type.
21638 version_type=$version_type
21639
21640 # Shared library runtime path variable.
21641 runpath_var=$runpath_var
21642
21643 # Shared library path variable.
21644 shlibpath_var=$shlibpath_var
21645
21646 # Is shlibpath searched before the hard-coded library search path?
21647 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21648
21649 # Format of library name prefix.
21650 libname_spec=$lt_libname_spec
21651
21652 # List of archive names. First name is the real one, the rest are links.
21653 # The last name is the one that the linker finds with -lNAME
21654 library_names_spec=$lt_library_names_spec
21655
21656 # The coded name of the library, if different from the real name.
21657 soname_spec=$lt_soname_spec
21658
21659 # Permission mode override for installation of shared libraries.
21660 install_override_mode=$lt_install_override_mode
21661
21662 # Command to use after installation of a shared archive.
21663 postinstall_cmds=$lt_postinstall_cmds
21664
21665 # Command to use after uninstallation of a shared archive.
21666 postuninstall_cmds=$lt_postuninstall_cmds
21667
21668 # Commands used to finish a libtool library installation in a directory.
21669 finish_cmds=$lt_finish_cmds
21670
21671 # As "finish_cmds", except a single script fragment to be evaled but
21672 # not shown.
21673 finish_eval=$lt_finish_eval
21674
21675 # Whether we should hardcode library paths into libraries.
21676 hardcode_into_libs=$hardcode_into_libs
21677
21678 # Compile-time system search path for libraries.
21679 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21680
21681 # Run-time system search path for libraries.
21682 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21683
21684 # Whether dlopen is supported.
21685 dlopen_support=$enable_dlopen
21686
21687 # Whether dlopen of programs is supported.
21688 dlopen_self=$enable_dlopen_self
21689
21690 # Whether dlopen of statically linked programs is supported.
21691 dlopen_self_static=$enable_dlopen_self_static
21692
21693 # Commands to strip libraries.
21694 old_striplib=$lt_old_striplib
21695 striplib=$lt_striplib
21696
21697
21698 # The linker used to build libraries.
21699 LD=$lt_LD
21700
21701 # How to create reloadable object files.
21702 reload_flag=$lt_reload_flag
21703 reload_cmds=$lt_reload_cmds
21704
21705 # Commands used to build an old-style archive.
21706 old_archive_cmds=$lt_old_archive_cmds
21707
21708 # A language specific compiler.
21709 CC=$lt_compiler
21710
21711 # Is the compiler the GNU compiler?
21712 with_gcc=$GCC
21713
21714 # Compiler flag to turn off builtin functions.
21715 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21716
21717 # Additional compiler flags for building library objects.
21718 pic_flag=$lt_lt_prog_compiler_pic
21719
21720 # How to pass a linker flag through the compiler.
21721 wl=$lt_lt_prog_compiler_wl
21722
21723 # Compiler flag to prevent dynamic linking.
21724 link_static_flag=$lt_lt_prog_compiler_static
21725
21726 # Does compiler simultaneously support -c and -o options?
21727 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21728
21729 # Whether or not to add -lc for building shared libraries.
21730 build_libtool_need_lc=$archive_cmds_need_lc
21731
21732 # Whether or not to disallow shared libs when runtime libs are static.
21733 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21734
21735 # Compiler flag to allow reflexive dlopens.
21736 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21737
21738 # Compiler flag to generate shared objects directly from archives.
21739 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21740
21741 # Whether the compiler copes with passing no objects directly.
21742 compiler_needs_object=$lt_compiler_needs_object
21743
21744 # Create an old-style archive from a shared archive.
21745 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21746
21747 # Create a temporary old-style archive to link instead of a shared archive.
21748 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21749
21750 # Commands used to build a shared archive.
21751 archive_cmds=$lt_archive_cmds
21752 archive_expsym_cmds=$lt_archive_expsym_cmds
21753
21754 # Commands used to build a loadable module if different from building
21755 # a shared archive.
21756 module_cmds=$lt_module_cmds
21757 module_expsym_cmds=$lt_module_expsym_cmds
21758
21759 # Whether we are building with GNU ld or not.
21760 with_gnu_ld=$lt_with_gnu_ld
21761
21762 # Flag that allows shared libraries with undefined symbols to be built.
21763 allow_undefined_flag=$lt_allow_undefined_flag
21764
21765 # Flag that enforces no undefined symbols.
21766 no_undefined_flag=$lt_no_undefined_flag
21767
21768 # Flag to hardcode \$libdir into a binary during linking.
21769 # This must work even if \$libdir does not exist
21770 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21771
21772 # Whether we need a single "-rpath" flag with a separated argument.
21773 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21774
21775 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21776 # DIR into the resulting binary.
21777 hardcode_direct=$hardcode_direct
21778
21779 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21780 # DIR into the resulting binary and the resulting library dependency is
21781 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21782 # library is relocated.
21783 hardcode_direct_absolute=$hardcode_direct_absolute
21784
21785 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21786 # into the resulting binary.
21787 hardcode_minus_L=$hardcode_minus_L
21788
21789 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21790 # into the resulting binary.
21791 hardcode_shlibpath_var=$hardcode_shlibpath_var
21792
21793 # Set to "yes" if building a shared library automatically hardcodes DIR
21794 # into the library and all subsequent libraries and executables linked
21795 # against it.
21796 hardcode_automatic=$hardcode_automatic
21797
21798 # Set to yes if linker adds runtime paths of dependent libraries
21799 # to runtime path list.
21800 inherit_rpath=$inherit_rpath
21801
21802 # Whether libtool must link a program against all its dependency libraries.
21803 link_all_deplibs=$link_all_deplibs
21804
21805 # Set to "yes" if exported symbols are required.
21806 always_export_symbols=$always_export_symbols
21807
21808 # The commands to list exported symbols.
21809 export_symbols_cmds=$lt_export_symbols_cmds
21810
21811 # Symbols that should not be listed in the preloaded symbols.
21812 exclude_expsyms=$lt_exclude_expsyms
21813
21814 # Symbols that must always be exported.
21815 include_expsyms=$lt_include_expsyms
21816
21817 # Commands necessary for linking programs (against libraries) with templates.
21818 prelink_cmds=$lt_prelink_cmds
21819
21820 # Commands necessary for finishing linking programs.
21821 postlink_cmds=$lt_postlink_cmds
21822
21823 # Specify filename containing input files.
21824 file_list_spec=$lt_file_list_spec
21825
21826 # How to hardcode a shared library path into an executable.
21827 hardcode_action=$hardcode_action
21828
21829 # ### END LIBTOOL CONFIG
21830
21831 _LT_EOF
21832
21833 case $host_os in
21834 aix3*)
21835 cat <<\_LT_EOF >> "$cfgfile"
21836 # AIX sometimes has problems with the GCC collect2 program. For some
21837 # reason, if we set the COLLECT_NAMES environment variable, the problems
21838 # vanish in a puff of smoke.
21839 if test "X${COLLECT_NAMES+set}" != Xset; then
21840 COLLECT_NAMES=
21841 export COLLECT_NAMES
21842 fi
21843 _LT_EOF
21844 ;;
21845 esac
21846
21847
21848 ltmain="$ac_aux_dir/ltmain.sh"
21849
21850
21851 # We use sed instead of cat because bash on DJGPP gets confused if
21852 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21853 # text mode, it properly converts lines to CR/LF. This bash problem
21854 # is reportedly fixed, but why not run on old versions too?
21855 sed '$q' "$ltmain" >> "$cfgfile" \
21856 || (rm -f "$cfgfile"; exit 1)
21857
21858 if test x"$xsi_shell" = xyes; then
21859 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21860 func_dirname ()\
21861 {\
21862 \ case ${1} in\
21863 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21864 \ * ) func_dirname_result="${3}" ;;\
21865 \ esac\
21866 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21867 && mv -f "$cfgfile.tmp" "$cfgfile" \
21868 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21869 test 0 -eq $? || _lt_function_replace_fail=:
21870
21871
21872 sed -e '/^func_basename ()$/,/^} # func_basename /c\
21873 func_basename ()\
21874 {\
21875 \ func_basename_result="${1##*/}"\
21876 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21877 && mv -f "$cfgfile.tmp" "$cfgfile" \
21878 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21879 test 0 -eq $? || _lt_function_replace_fail=:
21880
21881
21882 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21883 func_dirname_and_basename ()\
21884 {\
21885 \ case ${1} in\
21886 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21887 \ * ) func_dirname_result="${3}" ;;\
21888 \ esac\
21889 \ func_basename_result="${1##*/}"\
21890 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21891 && mv -f "$cfgfile.tmp" "$cfgfile" \
21892 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21893 test 0 -eq $? || _lt_function_replace_fail=:
21894
21895
21896 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21897 func_stripname ()\
21898 {\
21899 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21900 \ # positional parameters, so assign one to ordinary parameter first.\
21901 \ func_stripname_result=${3}\
21902 \ func_stripname_result=${func_stripname_result#"${1}"}\
21903 \ func_stripname_result=${func_stripname_result%"${2}"}\
21904 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21905 && mv -f "$cfgfile.tmp" "$cfgfile" \
21906 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21907 test 0 -eq $? || _lt_function_replace_fail=:
21908
21909
21910 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21911 func_split_long_opt ()\
21912 {\
21913 \ func_split_long_opt_name=${1%%=*}\
21914 \ func_split_long_opt_arg=${1#*=}\
21915 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21916 && mv -f "$cfgfile.tmp" "$cfgfile" \
21917 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21918 test 0 -eq $? || _lt_function_replace_fail=:
21919
21920
21921 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21922 func_split_short_opt ()\
21923 {\
21924 \ func_split_short_opt_arg=${1#??}\
21925 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21926 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21927 && mv -f "$cfgfile.tmp" "$cfgfile" \
21928 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21929 test 0 -eq $? || _lt_function_replace_fail=:
21930
21931
21932 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21933 func_lo2o ()\
21934 {\
21935 \ case ${1} in\
21936 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21937 \ *) func_lo2o_result=${1} ;;\
21938 \ esac\
21939 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21940 && mv -f "$cfgfile.tmp" "$cfgfile" \
21941 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21942 test 0 -eq $? || _lt_function_replace_fail=:
21943
21944
21945 sed -e '/^func_xform ()$/,/^} # func_xform /c\
21946 func_xform ()\
21947 {\
21948 func_xform_result=${1%.*}.lo\
21949 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21950 && mv -f "$cfgfile.tmp" "$cfgfile" \
21951 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21952 test 0 -eq $? || _lt_function_replace_fail=:
21953
21954
21955 sed -e '/^func_arith ()$/,/^} # func_arith /c\
21956 func_arith ()\
21957 {\
21958 func_arith_result=$(( $* ))\
21959 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21960 && mv -f "$cfgfile.tmp" "$cfgfile" \
21961 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21962 test 0 -eq $? || _lt_function_replace_fail=:
21963
21964
21965 sed -e '/^func_len ()$/,/^} # func_len /c\
21966 func_len ()\
21967 {\
21968 func_len_result=${#1}\
21969 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21970 && mv -f "$cfgfile.tmp" "$cfgfile" \
21971 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21972 test 0 -eq $? || _lt_function_replace_fail=:
21973
21974 fi
21975
21976 if test x"$lt_shell_append" = xyes; then
21977 sed -e '/^func_append ()$/,/^} # func_append /c\
21978 func_append ()\
21979 {\
21980 eval "${1}+=\\${2}"\
21981 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21982 && mv -f "$cfgfile.tmp" "$cfgfile" \
21983 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21984 test 0 -eq $? || _lt_function_replace_fail=:
21985
21986
21987 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21988 func_append_quoted ()\
21989 {\
21990 \ func_quote_for_eval "${2}"\
21991 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21992 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21993 && mv -f "$cfgfile.tmp" "$cfgfile" \
21994 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21995 test 0 -eq $? || _lt_function_replace_fail=:
21996
21997
21998 # Save a `func_append' function call where possible by direct use of '+='
21999 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22000 && mv -f "$cfgfile.tmp" "$cfgfile" \
22001 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22002 test 0 -eq $? || _lt_function_replace_fail=:
22003 else
22004 # Save a `func_append' function call even when '+=' is not available
22005 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22006 && mv -f "$cfgfile.tmp" "$cfgfile" \
22007 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22008 test 0 -eq $? || _lt_function_replace_fail=:
22009 fi
22010
22011 if test x"$_lt_function_replace_fail" = x":"; then
22012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22013 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22014 fi
22015
22016
22017 mv -f "$cfgfile" "$ofile" ||
22018 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22019 chmod +x "$ofile"
22020
22021 ;;
22022
22023 esac
22024 done # for ac_tag
22025
22026
22027 as_fn_exit 0
22028 _ACEOF
22029 ac_clean_files=$ac_clean_files_save
22030
22031 test $ac_write_fail = 0 ||
22032 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22033
22034
22035 # configure is writing to config.log, and then calls config.status.
22036 # config.status does its own redirection, appending to config.log.
22037 # Unfortunately, on DOS this fails, as config.log is still kept open
22038 # by configure, so config.status won't be able to write to it; its
22039 # output is simply discarded. So we exec the FD to /dev/null,
22040 # effectively closing config.log, so it can be properly (re)opened and
22041 # appended to by config.status. When coming back to configure, we
22042 # need to make the FD available again.
22043 if test "$no_create" != yes; then
22044 ac_cs_success=:
22045 ac_config_status_args=
22046 test "$silent" = yes &&
22047 ac_config_status_args="$ac_config_status_args --quiet"
22048 exec 5>/dev/null
22049 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22050 exec 5>>config.log
22051 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22052 # would make configure fail if this is the last instruction.
22053 $ac_cs_success || as_fn_exit 1
22054 fi
22055 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22057 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22058 fi
22059
22060
22061 echo ""
22062 echo " prefix: $prefix"
22063 echo " exec_prefix: $exec_prefix"
22064 echo " libdir: $libdir"
22065 echo " includedir: $includedir"
22066
22067 echo ""
22068 echo " CFLAGS: $CFLAGS"
22069 echo " CXXFLAGS: $CXXFLAGS"
22070 echo " Macros: $DEFINES"
22071
22072 echo ""
22073 echo " Run '${MAKE-make}' to build xf86-video-nouveau"
22074 echo ""
22075